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
SELECT * FROM tab1 WHERE + 39 * - + col2 - + + CAST( + - col2 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5631
SELECT * FROM tab1 WHERE + 39 * - + col2 - + + CAST ( + - col2 AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT - 96 + COUNT( ALL - 21 ) AS col0 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - 96 + COUNT ( ALL - 21 ) AS col0 FROM tab1
----
-93

query I rowsort
SELECT ALL - - 71 AS col1 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT ALL - - col0 * + 9 AS col0 FROM tab1 AS cor0
----
459
765
819

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 - + - 54 IS NULL
----

query I rowsort
SELECT - 52 + + col0 AS col0 FROM tab2 AS cor0
----
-6
12
23

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN + 21 AND - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT 2 * - 87, col0 FROM tab0 AS cor0
----
-174
15
-174
87
-174
97

query I rowsort
SELECT - 22 * - - 46 * + col2 + + + 74 FROM tab0 AS cor0
----
-100114
-10046
-47490

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

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

query I rowsort
SELECT ALL + 84 * - + col2 AS col2 FROM tab2
----
-1932
-3360
-4872

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 <= col0
----
51
14
96

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

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT col1 / - 85 * - col2 * - CAST ( + col2 AS INTEGER ) FROM tab0
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 72 + - - 58 = NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-5648
SELECT + MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
15

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL - MIN( + - col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL - MIN ( + - col2 ) AS col1 FROM tab2
----
58

query I rowsort
SELECT + 25 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT - - 24 * - col2 FROM tab0 AS cor0
----
-1128
-2376
-240

query I rowsort
SELECT + col2 * - - 68 * - col0 FROM tab1 AS cor0
----
-332928
-341020
-420784

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - 99 + - col1, + col0 / - col1, + - 39 )
----

query II rowsort
SELECT DISTINCT + + col1 AS col2, - ( + + 69 ) AS col0 FROM tab2 AS cor0
----
51
-69
67
-69
77
-69

query I rowsort
SELECT + - 97 AS col1 FROM tab2 cor0
----
-97
-97
-97

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

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

query II rowsort
SELECT + + 98 AS col0, 29 AS col0 FROM tab1 cor0
----
98
29
98
29
98
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT - 26 DIV - - ( - col2 ) FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5661
SELECT - 26 / - - ( - col2 ) FROM tab2 AS cor0
----
0
0
1

query II rowsort
SELECT + - 91 AS col1, col2 FROM tab1 AS cor0 WHERE NULL < col0 - - col1
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 3 ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 * + col1 + + ( - col0 ) FROM tab1
----
1293
210
3105

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5668
SELECT - CAST( NULL AS SIGNED ) * - SUM( + 59 ) AS col0 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT - CAST ( NULL AS INTEGER ) * - SUM ( + 59 ) AS col0 FROM tab2, tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col0 + - + col1 IN ( - + 31 / col0 * - col0 * + col2, + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5670
SELECT * FROM tab2 WHERE NULL BETWEEN ( - CAST( NULL AS DECIMAL ) - + col0 - - ( - + 44 ) ) AND col0 / + - 51
----

skipif mysql # not compatible
query III rowsort label-5670
SELECT * FROM tab2 WHERE NULL BETWEEN ( - CAST ( NULL AS REAL ) - + col0 - - ( - + 44 ) ) AND col0 / + - 51
----

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

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

query II rowsort
SELECT 90 + col0, + col2 FROM tab0
----
105
47
177
10
187
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT ALL + - CAST( - 43 AS SIGNED ) FROM tab1 AS cor0 WHERE col2 + col2 + 28 + col2 * + + col2 * + col2 * - - 69 IS NOT NULL
----
43
43
43

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL + - CAST ( - 43 AS INTEGER ) FROM tab1 AS cor0 WHERE col2 + col2 + 28 + col2 * + + col2 * + col2 * - - 69 IS NOT NULL
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT + 63 * - COUNT( * ) FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-5675
SELECT + 63 * - COUNT ( * ) FROM tab1 AS cor0
----
-189

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT - col0 * + col1 + + col0 DIV + + col2 FROM tab2 AS cor0
----
-2344
-4927
-5024

skipif mysql # not compatible
query I rowsort label-5677
SELECT - col0 * + col1 + + col0 / + + col2 FROM tab2 AS cor0
----
-2344
-4927
-5024

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

query I rowsort
SELECT + - col0 * - col2 * + + col1 FROM tab0 cor0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT + 19 * + 58 * col0 * col0 * col2 FROM tab0
----
1026503082
11653650
83410380

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

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

skipif mysql # not compatible
query I rowsort label-5682
SELECT + ( + 46 ) - + COUNT ( * ) FROM tab0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT - COUNT( * ) - + - 54 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5683
SELECT - COUNT ( * ) - + - 54 FROM tab1
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL MAX( - col0 ) col0 FROM tab1 AS cor0
----
-51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5687
SELECT - + 77, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-77
NULL
-77
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-5687
SELECT - + 77, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-77
NULL
-77
NULL
-77
NULL

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

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

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

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

query II rowsort
SELECT ALL - col1 * + 88 AS col2, + col1 + - - 18 AS col0 FROM tab0
----
-1848
39
-7128
99
-88
19

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

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

query I rowsort
SELECT DISTINCT 32 * col1 FROM tab0
----
2592
32
672

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

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

query I rowsort
SELECT col0 * - col2 * - + col0 AS col0 FROM tab2
----
163840
326250
48668

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

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

query I rowsort
SELECT 92 * + col2 AS col2 FROM tab2
----
2116
3680
5336

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5699
SELECT DISTINCT COUNT( * ) + + 72 FROM tab0 AS cor0 WHERE NOT col1 + col2 + + - 59 NOT IN ( CAST( NULL AS SIGNED ) )
----
72

skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT COUNT ( * ) + + 72 FROM tab0 AS cor0 WHERE NOT col1 + col2 + + - 59 NOT IN ( CAST ( NULL AS INTEGER ) )
----
72

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5701
SELECT * FROM tab2 cor0 WHERE NOT ( + ( - 77 ) + + ( + - CAST( - ( - 25 ) AS SIGNED ) ) + - - col0 ) >= ( col1 * + - col2 + 73 )
----

skipif mysql # not compatible
query III rowsort label-5701
SELECT * FROM tab2 cor0 WHERE NOT ( + ( - 77 ) + + ( + - CAST ( - ( - 25 ) AS INTEGER ) ) + - - col0 ) >= ( col1 * + - col2 + 73 )
----

query I rowsort
SELECT ALL - 82 * - + col0 * - col0 AS col0 FROM tab1 cor0
----
-213282
-592450
-679042

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + 98 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL - SUM( - 75 ) FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - SUM ( - 75 ) FROM tab1 AS cor0
----
225

query I rowsort
SELECT DISTINCT + ( - col1 ) * + 82 FROM tab2 cor0
----
-4182
-5494
-6314

query II rowsort
SELECT 70 + 60 * - + col0, col1 * + - 9 - + 67 AS col2 FROM tab1 AS cor0
----
-2990
-193
-5030
-112
-5390
-490

query I rowsort
SELECT - + col2 * + col2 + 55 + + col0 + + 98 FROM tab1 AS cor0
----
-3243
-4380
-9012

query I rowsort
SELECT DISTINCT + 68 * - + col2 AS col1 FROM tab1 cor0
----
-4012
-4624
-6528

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

query III rowsort
SELECT * FROM tab2 WHERE - col1 + - - 29 IN ( 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5713
SELECT * FROM tab1 WHERE NULL IN ( CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5713
SELECT * FROM tab1 WHERE NULL IN ( CAST ( col0 AS INTEGER ) )
----

query II rowsort
SELECT col2, col1 + col1 AS col2 FROM tab2
----
23
102
40
154
58
134

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT + + COUNT( 40 ) AS col1 FROM tab0 WHERE 95 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5715
SELECT + + COUNT ( 40 ) AS col1 FROM tab0 WHERE 95 IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5717
SELECT DISTINCT - COUNT( * ), + 46 AS col2 FROM tab2
----
-3
46

skipif mysql # not compatible
query II rowsort label-5717
SELECT DISTINCT - COUNT ( * ), + 46 AS col2 FROM tab2
----
-3
46

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT + - 34 + - - CAST( NULL AS SIGNED ) - 62 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT + - 34 + - - CAST ( NULL AS INTEGER ) - 62 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT MIN ( 57 ) AS col0 FROM tab0
----
57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT ALL COUNT( * ) * + 8 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
72

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL COUNT ( * ) * + 8 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - col0 ) col2, - 40 FROM tab1
----
51
-40
85
-40
91
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT - - COUNT( * ) * 79 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
711

skipif mysql # not compatible
query I rowsort label-5725
SELECT - - COUNT ( * ) * 79 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
711

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

query I rowsort
SELECT DISTINCT 34 FROM tab2 cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT - + 9 * + - 35 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
945

skipif mysql # not compatible
query I rowsort label-5728
SELECT - + 9 * + - 35 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
945

query I rowsort
SELECT ALL col1 * - + col2 + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-123
-2
-3792

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL COUNT( * ) * 54 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL COUNT ( * ) * 54 FROM tab2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT + 62 * MIN( - col2 ) * COUNT( * ) AS col0 FROM tab1
----
-17856

skipif mysql # not compatible
query I rowsort label-5733
SELECT + 62 * MIN ( - col2 ) * COUNT ( * ) AS col0 FROM tab1
----
-17856

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5734
SELECT - CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT - CAST ( NULL AS REAL ) * COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5735
SELECT ALL - CAST( NULL AS SIGNED ) + - 60 FROM tab2 WHERE NOT NULL >= - - 31
----

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL - CAST ( NULL AS INTEGER ) + - 60 FROM tab2 WHERE NOT NULL >= - - 31
----

query I rowsort
SELECT - col2 + col1 + + 93 AS col0 FROM tab2 AS cor0
----
102
121
130

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( + - col0 * - col0, col0 * - col2 * + - 0 )
----

query I rowsort
SELECT - + ( + col0 ) * - col2 + - 91 AS col0 FROM tab2 AS cor0
----
2469
4259
967

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

query I rowsort
SELECT DISTINCT col0 + - col2 + + col2 FROM tab0
----
15
87
97

query II rowsort
SELECT + 69 * - col1 AS col1, - 46 FROM tab1 AS cor0
----
-3243
-46
-345
-46
-966
-46

query I rowsort
SELECT + ( 28 ) FROM tab0 cor0
----
28
28
28

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5745
SELECT - col1 * + CAST( - 66 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE - col1 * + col2 IS NOT NULL
----
3102
330
924

skipif mysql # not compatible
query I rowsort label-5745
SELECT - col1 * + CAST ( - 66 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE - col1 * + col2 IS NOT NULL
----
3102
330
924

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

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

query II rowsort
SELECT DISTINCT ( col0 ) + + col0, + 35 * - col0 AS col2 FROM tab0
----
174
-3045
194
-3395
30
-525

query I rowsort
SELECT DISTINCT col0 + + 59 FROM tab2
----
105
123
134

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5750
SELECT DISTINCT - 84 + + + col1 * col0 DIV col1 DIV ( - - col0 ) FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT - 84 + + + col1 * col0 / col1 / ( - - col0 ) FROM tab2
----
-83

query I rowsort
SELECT - col0 + - + 79 FROM tab0
----
-166
-176
-94

query I rowsort
SELECT - col0 - 15 FROM tab2 WHERE NULL < NULL
----

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

query II rowsort
SELECT ALL - ( col0 ) * + 56 AS col2, col0 FROM tab1 AS cor0
----
-2856
51
-4760
85
-5096
91

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 73 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5757
SELECT DISTINCT ( + SUM( ALL + CAST( - col1 AS SIGNED ) ) ), - COUNT( * ) AS col1 FROM tab1
----
-66
-3

skipif mysql # not compatible
query II rowsort label-5757
SELECT DISTINCT ( + SUM ( ALL + CAST ( - col1 AS INTEGER ) ) ), - COUNT ( * ) AS col1 FROM tab1
----
-66
-3

query I rowsort
SELECT DISTINCT 94 * + - col0 * - col2 FROM tab2
----
240640
408900
99452

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT + - SUM( + 84 ) AS col0 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-5761
SELECT + - SUM ( + 84 ) AS col0 FROM tab2 AS cor0
----
-252

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL - MIN( - 16 ) * + 73 AS col0 FROM tab0
----
1168

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL - MIN ( - 16 ) * + 73 AS col0 FROM tab0
----
1168

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT COUNT( * ) * - MAX( + 16 ) AS col1 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-5768
SELECT COUNT ( * ) * - MAX ( + 16 ) AS col1 FROM tab2
----
-48

query II rowsort
SELECT ALL - col1 + - 43, 15 AS col1 FROM tab2
----
-110
15
-120
15
-94
15

query I rowsort
SELECT + col0 * - - col1 * col0 * - 55 AS col1 FROM tab1
----
-1986875
-2002770
-21406385

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * - col2 col0 FROM tab1
----
1152
708
816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5773
SELECT + MIN( ALL - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

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

query I rowsort
SELECT + col1 + - ( - col2 ) + - 63 FROM tab2
----
11
54
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT ALL COUNT( * ) * - MIN( - col0 ) AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL COUNT ( * ) * - MIN ( - col0 ) AS col1 FROM tab2
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT ALL + 22 + + + col2 + - 64 DIV - col2 FROM tab1 AS cor0
----
118
82
90

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL + 22 + + + col2 + - 64 / - col2 FROM tab1 AS cor0
----
118
82
90

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

query I rowsort
SELECT DISTINCT - + 72 AS col2 FROM tab1 AS cor0 WHERE NOT 41 - - + 19 >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col1 ) * - - 33 IS NULL
----

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

query II rowsort
SELECT DISTINCT - col2 + ( col1 ) - + col0, col0 FROM tab2 cor0
----
-18
46
-27
64
-66
75

query I rowsort
SELECT - 37 * + col1 FROM tab1 AS cor0
----
-1739
-185
-518

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 22 * - col2 * - + 73 + - 91 col0, 84 AS col2 FROM tab1
----
109117
84
154085
84
94663
84

query I rowsort
SELECT + col2 - + col1 + - - col0 FROM tab0
----
-19
195
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 - + col2 col2 FROM tab1
----
-23
-32
-60

query I rowsort
SELECT DISTINCT + 36 - col2 FROM tab2
----
-22
-4
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5789
SELECT DISTINCT 71 * + 99 AS col0, - MIN( + col0 ) + - + 99 * + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
7029
-348

skipif mysql # not compatible
query II rowsort label-5789
SELECT DISTINCT 71 * + 99 AS col0, - MIN ( + col0 ) + - + 99 * + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
7029
-348

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE + col2 + col2 * + col0 + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5791
SELECT ALL * FROM tab2 AS cor0 WHERE - 40 * - 65 <= + + CAST( - + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5791
SELECT ALL * FROM tab2 AS cor0 WHERE - 40 * - 65 <= + + CAST ( - + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT ALL COUNT( * ) * 68 * - - COUNT( ALL + col1 ) AS col1 FROM tab1
----
612

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL COUNT ( * ) * 68 * - - COUNT ( ALL + col1 ) AS col1 FROM tab1
----
612

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5793
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 IN ( - + col0, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5793
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 IN ( - + col0, + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col1, 17 + - col1 col2 FROM tab2 AS cor0
----
-23
-34
-40
-60
-58
-50

query II rowsort
SELECT col2 * - + 12 AS col1, - col1 + 3 * + 45 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - 47 AS col0, col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-47
14
-47
47
-47
5

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

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

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

skipif mysql # not compatible
query I rowsort label-5798
SELECT + col2 / - 66 FROM tab1 cor0
----
-1
-1
0

query I rowsort
SELECT - col1 * - - 61 * col1 + + - 61 AS col0 FROM tab0 AS cor0
----
-122
-26962
-400282

query II rowsort
SELECT DISTINCT 9 + + 53, col0 FROM tab2
----
62
46
62
64
62
75

query I rowsort
SELECT DISTINCT col1 * - 2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-10
-28
-94

query II rowsort
SELECT ALL 41, col0 FROM tab1
----
41
51
41
85
41
91

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

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL + MIN ( + 76 ) FROM tab0 AS cor0
----
76

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

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

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

query I rowsort
SELECT - + col2 * + + col1 - + 2 FROM tab2 AS cor0
----
-1175
-3082
-3888

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5809
SELECT ALL - col2 + col0 * col2 DIV - CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
-122
-43
-73

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL - col2 + col0 * col2 / - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
-122
-43
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - ( - col0 ) * 38 col0 FROM tab1
----
16150
162526
27132

query I rowsort
SELECT ALL col0 * + + col1 * - ( + - 82 ) AS col0 FROM tab1
----
34850
350714
58548

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT DISTINCT 27 DIV col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT 27 / col0 FROM tab0
----
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5813
SELECT 5 DIV - + 12 * col2, + ( + 16 ) + col0 AS col2 FROM tab1
----
0
101
0
107
0
67

skipif mysql # not compatible
query II rowsort label-5813
SELECT 5 / - + 12 * col2, + ( + 16 ) + col0 AS col2 FROM tab1
----
0
101
0
107
0
67

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

query I rowsort
SELECT DISTINCT - 50 * + 25 AS col0 FROM tab0
----
-1250

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

query II rowsort
SELECT col0 AS col0, col2 AS col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT 52 * col1 FROM tab2 AS cor0
----
2652
3484
4004

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

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

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

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

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

query II rowsort
SELECT DISTINCT col0 * - 50, col0 FROM tab0
----
-4350
87
-4850
97
-750
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT 64 * COUNT( ALL 81 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
576

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT 64 * COUNT ( ALL 81 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
576

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

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

query I rowsort
SELECT ( - - col2 ) AS col0 FROM tab2 cor0
----
23
40
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT DISTINCT + COUNT( * ) * - 33 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT + COUNT ( * ) * - 33 FROM tab1 AS cor0
----
-99

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

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

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

query I rowsort
SELECT 13 + col0 FROM tab1 AS cor0
----
104
64
98

query I rowsort
SELECT col1 + + + 72 * - col0 - col2 FROM tab1
----
-3754
-6174
-6573

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT - COUNT( * ) * - 22 AS col0 FROM tab0, tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-5834
SELECT - COUNT ( * ) * - 22 AS col0 FROM tab0, tab0 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ALL - - MIN( ALL + 94 ) FROM tab1 WHERE + + col2 + - + col0 >= - col1
----
94

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL - - MIN ( ALL + 94 ) FROM tab1 WHERE + + col2 + - + col0 >= - col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5836
SELECT DISTINCT + MAX( + 75 ) + 60 DIV ( + - 40 ) AS col1 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT + MAX ( + 75 ) + 60 / ( + - 40 ) AS col1 FROM tab1
----
74

query I rowsort
SELECT 4 * + col0 AS col1 FROM tab0
----
348
388
60

query I rowsort
SELECT + col0 - 63 AS col1 FROM tab2 AS cor0
----
-17
1
12

query I rowsort
SELECT DISTINCT + ( + col1 ) * + + 92 + - - col1 AS col0 FROM tab0
----
1953
7533
93

query II rowsort
SELECT ALL 37 + + - col1 AS col2, 76 FROM tab2
----
-14
76
-30
76
-40
76

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

query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5843
SELECT col2 AS col1 FROM tab2 cor0 WHERE + col2 / - 19 IN ( - ( CAST( NULL AS SIGNED ) ), - 97 )
----

skipif mysql # not compatible
query I rowsort label-5843
SELECT col2 AS col1 FROM tab2 cor0 WHERE + col2 / - 19 IN ( - ( CAST ( NULL AS INTEGER ) ), - 97 )
----

query I rowsort
SELECT DISTINCT ( + + col1 ) - + 82 FROM tab2 AS cor0
----
-15
-31
-5

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5847
SELECT DISTINCT + - 67 AS col2, CAST( NULL AS DECIMAL ) - col0 AS col0 FROM tab2 AS cor0
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-5847
SELECT DISTINCT + - 67 AS col2, CAST ( NULL AS REAL ) - col0 AS col0 FROM tab2 AS cor0
----
-67
NULL

query II rowsort
SELECT ALL - col2 * + + 12 AS col1, col2 AS col0 FROM tab1
----
-1152
96
-708
59
-816
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ALL + COUNT( * ) * 81 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL + COUNT ( * ) * 81 FROM tab0
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-5850
SELECT DISTINCT 91 DIV - 91 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT 91 / - 91 AS col0 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab2 WHERE + 28 / col0 IS NOT NULL OR NOT - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT DISTINCT + 86 * COUNT( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT + 86 * COUNT ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
258

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

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

query I rowsort
SELECT - col1 * - - col2 * - + col1 FROM tab1
----
1475
150212
18816

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( col0 + - col1, - col2 )
----

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

query I rowsort
SELECT DISTINCT + 21 * + col1 AS col0 FROM tab2 AS cor0
----
1071
1407
1617

query I rowsort
SELECT ALL col2 + - - 51 * col0 FROM tab1 AS cor0
----
2697
4394
4709

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

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

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

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE + 10 - + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT - 46 AS col0, + MAX( ALL 84 ) FROM tab0 WHERE NULL IS NOT NULL
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-5866
SELECT - 46 AS col0, + MAX ( ALL 84 ) FROM tab0 WHERE NULL IS NOT NULL
----
-46
NULL

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

query I rowsort
SELECT ALL 1 - + - col2 FROM tab0
----
100
11
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5869
SELECT CAST( - - CAST( - 80 AS SIGNED ) AS SIGNED ) DIV - ( - col2 ) - + col0 AS col0 FROM tab0 AS cor0
----
-16
-95
-97

skipif mysql # not compatible
query I rowsort label-5869
SELECT CAST ( - - CAST ( - 80 AS INTEGER ) AS INTEGER ) / - ( - col2 ) - + col0 AS col0 FROM tab0 AS cor0
----
-16
-95
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5870
SELECT ALL + - col1 * + + ( col2 ) * + 70 - - col0 * - 92 - col0 / - 74 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL + - col1 * + + ( col2 ) * + 70 - - col0 * - 92 - col0 / - 74 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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

query I rowsort
SELECT - - 46 AS col2 FROM tab0 cor0 WHERE NOT NULL IN ( col1, - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5875
SELECT - 14, + 41 DIV SUM( col2 ) AS col1 FROM tab2
----
-14
0

skipif mysql # not compatible
query II rowsort label-5875
SELECT - 14, + 41 / SUM ( col2 ) AS col1 FROM tab2
----
-14
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT DISTINCT MIN( DISTINCT - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT MIN ( DISTINCT - col0 ) AS col1 FROM tab2
----
-75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 28 AS col1, + 79 col0 FROM tab1 AS cor0
----
28
79
28
79
28
79

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5881
SELECT ALL - col0 AS col0, col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-5881
SELECT ALL - col0 AS col0, col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

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

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT CAST ( - SUM ( ALL + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * ( - + col2 ) * col2 + - col1 + col0 col0 FROM tab2
----
-152013
-319572
-50260

query I rowsort
SELECT DISTINCT - col0 * col0 * + ( 81 ) AS col0 FROM tab1
----
-210681
-585225
-670761

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

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

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

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) + 49 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT DISTINCT MAX( DISTINCT col1 ) + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT MAX ( DISTINCT col1 ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL - + col2 / - col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL ( + + 71 ) + - col1 FROM tab0
----
-10
50
70

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

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

query I rowsort
SELECT - + 50 - - 77 * - col2 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ALL COUNT( * ) col2 FROM tab1 WHERE 8 IS NULL
----
0

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

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

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

query II rowsort
SELECT ALL + + 21, 30 + + 58 AS col2 FROM tab2 AS cor0
----
21
88
21
88
21
88

query I rowsort
SELECT ALL col1 - - col1 * + col1 AS col0 FROM tab0 AS cor0
----
2
462
6642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 + + col0 col2 FROM tab0 AS cor0
----
169
179
97

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

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT + - col1 / 51 AS col1 FROM tab1 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT SUM( DISTINCT 52 ) + + - ( - 44 ) AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-5901
SELECT SUM ( DISTINCT 52 ) + + - ( - 44 ) AS col1 FROM tab2
----
96

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 28 > NULL
----

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

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

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

query I rowsort
SELECT - + col1 * + + col0 * - col0 AS col1 FROM tab0 AS cor0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT 59 * - - 21 * - COUNT( * ) AS col1 FROM tab0
----
-3717

skipif mysql # not compatible
query I rowsort label-5908
SELECT 59 * - - 21 * - COUNT ( * ) AS col1 FROM tab0
----
-3717

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

query II rowsort
SELECT DISTINCT + 72, - 79 AS col1 FROM tab1 AS cor0
----
72
-79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL + 76 + COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL + 76 + COUNT ( * ) FROM tab1
----
79

query I rowsort
SELECT ALL + 20 + 81 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to abec6b3410aa771c209e22ecdf81edba

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

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

query I rowsort
SELECT ALL - - col2 * - 94 AS col0 FROM tab0 AS cor0
----
-4418
-9306
-940

query I rowsort
SELECT - + ( col0 ) * - 70 FROM tab1 AS cor0
----
3570
5950
6370

query I rowsort
SELECT + 18 * col0 * col0 FROM tab2 AS cor0
----
101250
38088
73728

query I rowsort
SELECT + 23 * ( col0 ) FROM tab2 AS cor0
----
1058
1472
1725

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

skipif mysql # not compatible
query I rowsort label-5919
SELECT - + CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT ALL - col0 * + - 91 FROM tab1 AS cor0
----
4641
7735
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT - + 63 + - COUNT( * ) FROM tab0 AS cor0
----
-66

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

query I rowsort
SELECT DISTINCT + col1 * col0 + 59 FROM tab1
----
4336
484
773

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

query II rowsort
SELECT - col1 + ( - col1 ) * - - col2 * + 81 AS col2, 56 FROM tab0
----
-17031
56
-308448
56
-8020
56

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

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

query I rowsort
SELECT DISTINCT - col0 + + col0 - 91 * 96 FROM tab2 AS cor0
----
-8736

query I rowsort
SELECT DISTINCT - 84 AS col2 FROM tab1 cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * 80 * 71 AS col2, 16 col0 FROM tab1
----
266960
16
28400
16
79520
16

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * col1 / - col2 > - col0
----
15
81
47

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 60 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 14 * - 32 + - - 0 BETWEEN NULL AND ( + + 92 )
----

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

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

query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab0 AS cor0
----
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT DISTINCT + SUM( - + ( + 89 ) ) FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT + SUM ( - + ( + 89 ) ) FROM tab2 AS cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT DISTINCT MIN( DISTINCT 25 ) AS col1 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT MIN ( DISTINCT 25 ) AS col1 FROM tab2
----
25

query I rowsort
SELECT 57 * col2 FROM tab2
----
1311
2280
3306

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT col2 DIV - - col1 AS col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-5941
SELECT col2 / - - col1 AS col0 FROM tab1
----
1
11
6

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 + + - col2 col0 FROM tab2
----
-14
-31
-49

query I rowsort
SELECT ALL ( - 98 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + 62 ) AS col0 FROM tab0
----
62
62
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT MAX( ALL 33 ) AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT MAX ( ALL 33 ) AS col2 FROM tab2
----
33

query I rowsort
SELECT DISTINCT - + 17 * - - col1 FROM tab1 cor0
----
-238
-799
-85

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

query I rowsort
SELECT - - 0 * col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - + col0, col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-46
23
-64
40
-75
58

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5956
SELECT + col2 DIV - CAST( + col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5956
SELECT + col2 / - CAST ( + col0 AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT ALL SUM( DISTINCT - - 28 ) AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL SUM ( DISTINCT - - 28 ) AS col1 FROM tab1
----
28

query I rowsort
SELECT 40 * 88 AS col2 FROM tab1
----
3520
3520
3520

query I rowsort
SELECT ( + ( - col0 ) ) * - 86 + + - col1 FROM tab0
----
1209
7461
8341

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

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

query I rowsort
SELECT ALL - ( col1 ) - - col1 FROM tab0
----
0
0
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 IS NOT NULL AND - 24 IS NULL
----

query I rowsort
SELECT ALL col0 * + ( + 79 ) FROM tab2 AS cor0
----
3634
5056
5925

query I rowsort
SELECT + + ( + col2 ) * + 0 + + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - - 46 * col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5967
SELECT ALL + col2 DIV - col1 AS col1, 80 AS col1 FROM tab2
----
0
80
0
80
0
80

skipif mysql # not compatible
query II rowsort label-5967
SELECT ALL + col2 / - col1 AS col1, 80 AS col1 FROM tab2
----
0
80
0
80
0
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT COUNT( * ) col1 FROM tab2 WHERE NOT 46 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5968
SELECT COUNT ( * ) col1 FROM tab2 WHERE NOT 46 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT - - COUNT( * ) * 93 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
837

skipif mysql # not compatible
query I rowsort label-5969
SELECT - - COUNT ( * ) * 93 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT ALL + ( + + ( MIN( 76 ) ) ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL + ( + + ( MIN ( 76 ) ) ) FROM tab2 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT - ( - CAST( - + 58 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-5971
SELECT - ( - CAST ( - + 58 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-58
-58
-58

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 59 + - 35 * + 87 / + col0 + - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 91 AS col2 FROM tab2 cor0
----
-91
-91
-91

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

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

query I rowsort
SELECT - - col1 * - col2 + 11 * + + col2 AS col2 FROM tab2 AS cor0
----
-2640
-3248
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL - - COUNT( * ) * - + 55 FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL - - COUNT ( * ) * - + 55 FROM tab0 AS cor0
----
-165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 + + col1 * - col2 + + col1 col0 FROM tab0 AS cor0
----
-3501
7380
9311

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL - COUNT( ALL + + 98 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL - COUNT ( ALL + + 98 ) FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5981
SELECT ALL 76 * 74 * - 86, + COUNT( * ) col1 FROM tab1
----
-483664
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5981
SELECT ALL 76 * 74 * - 86, + COUNT ( * ) col1 FROM tab1
----
-483664
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT DISTINCT - - 1 * COUNT( - + 29 ) AS col0 FROM tab1 WHERE NOT + - col1 * - col1 + - 18 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT - - 1 * COUNT ( - + 29 ) AS col0 FROM tab1 WHERE NOT + - col1 * - col1 + - 18 > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT col0 DIV 77 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5983
SELECT col0 / 77 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT 52 AS col2, ( - - col0 ) FROM tab2
----
52
46
52
64
52
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5985
SELECT ALL - col0 DIV 2 col1 FROM tab0
----
-43
-48
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5985
SELECT ALL - col0 / 2 col1 FROM tab0
----
-43
-48
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT - MIN( DISTINCT ( + + col2 ) ) + + MIN( - 78 ) FROM tab0 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5987
SELECT - MIN ( DISTINCT ( + + col2 ) ) + + MIN ( - 78 ) FROM tab0 cor0
----
-88

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

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

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

query II rowsort
SELECT - - 93 + - - col0 * + col1 AS col0, + col1 FROM tab0 AS cor0
----
1308
81
190
1
1920
21

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT ( col0 - - ( + 17 + + col0 * 57 ) ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT DISTINCT - 5 * MIN( DISTINCT + col0 ) AS col1 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT - 5 * MIN ( DISTINCT + col0 ) AS col1 FROM tab0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL ( + 24 ) * - COUNT( * ) col1 FROM tab2
----
-72

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5994
SELECT + CAST( NULL AS DECIMAL ) * col2 + col2 * col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT COUNT( * ) - + 15 AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-5995
SELECT COUNT ( * ) - + 15 AS col2 FROM tab2
----
-12

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5997
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( - col0 AS DECIMAL ) NOT BETWEEN ( - ( + 24 ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5997
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( - col0 AS REAL ) NOT BETWEEN ( - ( + 24 ) ) AND NULL
----

query I rowsort
SELECT DISTINCT ( 40 ) * col2 AS col1 FROM tab1
----
2360
2720
3840

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5999
SELECT - 1 AS col1 FROM tab2 WHERE NOT ( + CAST( NULL AS DECIMAL ) / - 72 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5999
SELECT - 1 AS col1 FROM tab2 WHERE NOT ( + CAST ( NULL AS REAL ) / - 72 ) IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-6001
SELECT - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT + col1 DIV 58 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6002
SELECT + col1 / 58 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT - 53 - - 72 FROM tab2
----
19

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6005
SELECT COUNT( * ) DIV SUM( DISTINCT col2 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6005
SELECT COUNT ( * ) / SUM ( DISTINCT col2 ) AS col2 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT - CAST ( - ( + ( 96 ) ) AS INTEGER ) AS col2 FROM tab1
----
96

query I rowsort
SELECT col2 * 9 FROM tab2
----
207
360
522

query I rowsort
SELECT 92 * 65 AS col2 FROM tab2
----
5980
5980
5980

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

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT NULL < col2 / + 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6011
SELECT - col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6011
SELECT - col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND CAST ( col2 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 6 >= col2 - 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6014
SELECT * FROM tab1 WHERE NULL BETWEEN - 62 AND + CAST( NULL AS SIGNED ) * - 75
----

skipif mysql # not compatible
query III rowsort label-6014
SELECT * FROM tab1 WHERE NULL BETWEEN - 62 AND + CAST ( NULL AS INTEGER ) * - 75
----

query I rowsort
SELECT - ( 88 ) FROM tab0 AS cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6016
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * CAST( 88 AS DECIMAL ) <= ( + 76 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6016
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * CAST ( 88 AS REAL ) <= ( + 76 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL - COUNT( * ) * SUM( ALL - 3 * 71 ) AS col0 FROM tab2
----
1917

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL - COUNT ( * ) * SUM ( ALL - 3 * 71 ) AS col0 FROM tab2
----
1917

onlyif mysql # DIV for integer division: 
query I rowsort label-6019
SELECT + col1 DIV 46 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6019
SELECT + col1 / 46 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL + 47 * col1 FROM tab2
----
2397
3149
3619

query I rowsort
SELECT DISTINCT 26 FROM tab0 cor0 CROSS JOIN tab0
----
26

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

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

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - col1 >= 15 * 42 - + ( + col2 ) * 11
----
23
40
58

query I rowsort
SELECT + col2 * + 52 AS col0 FROM tab0 AS cor0
----
2444
5148
520

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 8 ) * - col0 col1 FROM tab0 AS cor0
----
-120
-696
-776

query I rowsort
SELECT 93 + 35 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 74 ) < NULL
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - 90 ) - 24 * - 86 ) <> NULL
----

query I rowsort
SELECT DISTINCT 66 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
3547
4690
9282

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT - COUNT( * ) + + ( + 54 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6032
SELECT - COUNT ( * ) + + ( + 54 ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6033
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NULL <= + col0 + 45
----

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NULL <= + col0 + 45
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL - SUM( ALL col0 ) + - 15 AS col2 FROM tab1 AS cor0
----
-242

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - SUM ( ALL col0 ) + - 15 AS col2 FROM tab1 AS cor0
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT MAX( DISTINCT 88 ) + - 18 * + 6 AS col1 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-6036
SELECT MAX ( DISTINCT 88 ) + - 18 * + 6 AS col1 FROM tab0 AS cor0
----
-20

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 72 * - 1 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT MIN( - 7 ) AS col0 FROM tab0 WHERE NOT + 66 IS NULL
----
-7

skipif mysql # not compatible
query I rowsort label-6038
SELECT MIN ( - 7 ) AS col0 FROM tab0 WHERE NOT + 66 IS NULL
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT SUM( DISTINCT col2 ) * - MIN( DISTINCT col0 ) FROM tab1
----
-11373

skipif mysql # not compatible
query I rowsort label-6039
SELECT SUM ( DISTINCT col2 ) * - MIN ( DISTINCT col0 ) FROM tab1
----
-11373

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 84 * + col1 IS NULL OR ( + col2 ) + + 25 < NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 > 11
----

query I rowsort
SELECT + col1 * - ( 62 ) AS col0 FROM tab2
----
-3162
-4154
-4774

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT 46 DIV col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6044
SELECT 46 / col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ( + col0 ) * 53 FROM tab2 WHERE - ( col1 ) * 85 <> 14 * 64
----
2438
3392
3975

query I rowsort
SELECT - - 53 * - col1 AS col1 FROM tab2 AS cor0
----
-2703
-3551
-4081

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( ( + col0 ) + col2 * 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL 36 * - COUNT( * ) AS col0 FROM tab1 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL 36 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT DISTINCT + - 30 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT + - 30 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT - CAST( NULL AS SIGNED ) + col0 + + 72 * 98 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT - CAST ( NULL AS INTEGER ) + col0 + + 72 * 98 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 88 * col2 FROM tab0 AS cor0
----
4136
8712
880

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT + 72 + + - COUNT( * ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-6052
SELECT + 72 + + - COUNT ( * ) AS col2 FROM tab0
----
69

query I rowsort
SELECT 76 + + 13 + + col0 AS col2 FROM tab2
----
135
153
164

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT ALL - COUNT( * ) + 49 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
40

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL - COUNT ( * ) + 49 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT ALL COUNT( * ) + + 25 AS col1 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL COUNT ( * ) + + 25 AS col1 FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT DISTINCT SUM( - + 92 ) + COUNT( * ) col0 FROM tab2, tab1 AS cor0
----
-819

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6056
SELECT DISTINCT SUM ( - + 92 ) + COUNT ( * ) col0 FROM tab2, tab1 AS cor0
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT COUNT( * ) * - 20 + - + 35 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-6057
SELECT COUNT ( * ) * - 20 + - + 35 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-98

query I rowsort
SELECT DISTINCT + - col0 - - + col0 FROM tab1 cor0
----
0

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

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

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

query I rowsort
SELECT - + col1 * 46 * - 89 FROM tab0 AS cor0
----
331614
4094
85974

query I rowsort
SELECT - col0 * 41 FROM tab2 WHERE - 89 * + col2 IS NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6065
SELECT ALL 53 DIV - + COUNT( * ) AS col1 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL 53 / - + COUNT ( * ) AS col1 FROM tab0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col1
----
0

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT 33 * ( col0 ) * - 11 + + col2 IS NULL
----
1
21
81

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * col2 FROM tab0 WHERE + - 71 * + col0 + col1 * - 83 IS NOT NULL
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 * + + col1 ) > col2 * + col2 + - 44
----
15
81
47
97
1
99

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT ALL - SUM( DISTINCT - 61 ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - SUM ( DISTINCT - 61 ) FROM tab2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT COUNT( * ) * + 37 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-6077
SELECT COUNT ( * ) * + 37 FROM tab1 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT + 45 * + + COUNT( * ) FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-6078
SELECT + 45 * + + COUNT ( * ) FROM tab0 AS cor0
----
135

query I rowsort
SELECT ALL + 23 FROM tab2 AS cor0 WHERE NOT ( + 50 * + + col1 ) NOT BETWEEN col0 * + col1 AND ( 90 )
----

query I rowsort
SELECT DISTINCT - 67 * - - col1 FROM tab1 AS cor0
----
-3149
-335
-938

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

query I rowsort
SELECT col1 * + col1 - 24 FROM tab2 AS cor0
----
2577
4465
5905

query I rowsort
SELECT ALL + col1 * - 10 + - col0 + + col2 + - col2 + 87 FROM tab2 AS cor0
----
-469
-658
-747

query I rowsort
SELECT DISTINCT - 13 + + - col0 AS col0 FROM tab2 AS cor0
----
-59
-77
-88

query I rowsort
SELECT ALL 26 FROM tab1 WHERE + - col2 + - col2 + ( + 39 ) * - col1 < - col1 + 28
----
26
26
26

query II rowsort
SELECT DISTINCT col0 AS col0, - col1 AS col0 FROM tab0
----
15
-81
87
-21
97
-1

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

query III rowsort
SELECT * FROM tab2 WHERE 39 = NULL
----

query II rowsort
SELECT DISTINCT + 69 AS col1, 13 * + - col0 * col0 FROM tab0 AS cor0
----
69
-122317
69
-2925
69
-98397

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 - - 11 + + - 44 col2 FROM tab2
----
5
5
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT ALL - 63 - 60 * 89 * - - MIN( ALL + col0 ) FROM tab1 AS cor0
----
-272403

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL - 63 - 60 * 89 * - - MIN ( ALL + col0 ) FROM tab1 AS cor0
----
-272403

query I rowsort
SELECT col2 + - 97 AS col0 FROM tab0 cor0
----
-50
-87
2

query II rowsort
SELECT DISTINCT 26 - - 96 * + - 48 AS col2, col0 AS col2 FROM tab0 cor0
----
-4582
15
-4582
87
-4582
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6097
SELECT ALL - 39 DIV + col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL - 39 / + col2 FROM tab2 AS cor0
----
-1
0
0

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

query I rowsort
SELECT + 23 * + 76 FROM tab0
----
1748
1748
1748

query III rowsort
SELECT * FROM tab1 WHERE NOT 91 * + + 32 + + col2 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT - COUNT( DISTINCT + 6 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6102
SELECT - COUNT ( DISTINCT + 6 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL MAX( ALL 30 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL MAX ( ALL 30 ) FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT SUM( - col1 ) FROM tab1 WHERE NOT col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6104
SELECT SUM ( - col1 ) FROM tab1 WHERE NOT col1 = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6105
SELECT + CAST( + + 29 AS SIGNED ) AS col2 FROM tab0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-6105
SELECT + CAST ( + + 29 AS INTEGER ) AS col2 FROM tab0
----
29
29
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6106
SELECT COUNT( * ) AS col2, + ( COUNT( * ) ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-6106
SELECT COUNT ( * ) AS col2, + ( COUNT ( * ) ) AS col2 FROM tab1
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, + col0 * + + col0 * - col1 col0 FROM tab2
----
51
-107916
67
-376875
77
-315392

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL - 19 * COUNT( * ) AS col2 FROM tab0 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL - 19 * COUNT ( * ) AS col2 FROM tab0 cor0
----
-57

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

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

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

query I rowsort
SELECT DISTINCT + 95 FROM tab1 AS cor0 WHERE NULL < - col0 * + col2 / col2 / + 95
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col0, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT + 86 + MAX( - col2 ) FROM tab1 AS cor0 WHERE ( + + col2 ) - + + col1 IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-6116
SELECT + 86 + MAX ( - col2 ) FROM tab1 AS cor0 WHERE ( + + col2 ) - + + col1 IS NOT NULL
----
27

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

query I rowsort
SELECT 6 - + + 24 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT ALL - 92 + - col0 AS col0 FROM tab2
----
-138
-156
-167

query I rowsort
SELECT ( - 23 ) AS col2 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT DISTINCT - 65 * + + 62 + - + col1 + - col1 FROM tab2
----
-4132
-4164
-4184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6123
SELECT MAX( CAST( col2 AS SIGNED ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6123
SELECT MAX ( CAST ( col2 AS INTEGER ) ) FROM tab1
----
96

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

query I rowsort
SELECT - col0 - - + col1 + - 42 - - col2 * - + ( - col1 ) * col2 FROM tab2 cor0
----
123171
225338
26942

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6126
SELECT + ( AVG ( DISTINCT col0 ) ) FROM tab1 AS cor0 WHERE ( - col1 ) * - + col1 * + 67 NOT IN ( + col2 / - 13 - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6126
SELECT + ( AVG ( DISTINCT col0 ) ) FROM tab1 AS cor0 WHERE ( - col1 ) * - + col1 * + 67 NOT IN ( + col2 / - 13 - + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT + col2 * col2 - + col0 FROM tab1
----
3396
4533
9165

query I rowsort
SELECT DISTINCT - 42 - - col1 * col2 AS col2 FROM tab1
----
1302
253
3154

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6130
SELECT DISTINCT - 91 * + MIN( DISTINCT + - CAST( + 90 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
8190

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT - 91 * + MIN ( DISTINCT + - CAST ( + 90 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
8190

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * 1 + 74 ) IS NOT NULL AND NULL IS NULL
----

query II rowsort
SELECT + col1 AS col2, 55 FROM tab0 AS cor0
----
1
55
21
55
81
55

query I rowsort
SELECT + col0 * - 3 AS col1 FROM tab0 AS cor0
----
-261
-291
-45

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

query I rowsort
SELECT + col1 * - 65 * + col2 FROM tab0
----
-13650
-247455
-6435

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

query I rowsort
SELECT + col0 * - + col1 + col2 + - col2 + ( + 99 ) * - col1 * col2 AS col0 FROM tab2 WHERE NOT ( NOT 31 * + - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL - 13 * + + MAX( 7 ) AS col1 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL - 13 * + + MAX ( 7 ) AS col1 FROM tab2
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-6139
SELECT ALL - 64 DIV - 11, - col1 AS col1 FROM tab1
----
5
-14
5
-47
5
-5

skipif mysql # not compatible
query II rowsort label-6139
SELECT ALL - 64 / - 11, - col1 AS col1 FROM tab1
----
5
-14
5
-47
5
-5

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

skipif mysql # not compatible
query I rowsort label-6140
SELECT - COUNT ( col1 ) AS col1 FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 NOT BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6142
SELECT DISTINCT - COUNT( ALL + - CAST( - - col1 AS SIGNED ) ) FROM tab1 cor0 WHERE ( 46 ) <> ( + col0 + 69 )
----
-3

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - COUNT ( ALL + - CAST ( - - col1 AS INTEGER ) ) FROM tab1 cor0 WHERE ( 46 ) <> ( + col0 + 69 )
----
-3

query I rowsort
SELECT - - 55 FROM tab1 cor0
----
55
55
55

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 73 * - col0 + 38 NOT IN ( - + 27 * + + 43 + - + col0, - 5 )
----

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

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

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

query I rowsort
SELECT ALL - - col0 * - 85 AS col2 FROM tab2 AS cor0
----
-3910
-5440
-6375

query I rowsort
SELECT - 86 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

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

query II rowsort
SELECT - col1 AS col0, - col1 * + 62 FROM tab2 AS cor0
----
-51
-3162
-67
-4154
-77
-4774

query II rowsort
SELECT DISTINCT - col1, - 67 AS col1 FROM tab1 AS cor0
----
-14
-67
-47
-67
-5
-67

query I rowsort
SELECT 15 * + 46 + + - 98 * - + 50 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT 97 * + ( - col1 ) + - ( col0 ) + - + 69 FROM tab2 AS cor0
----
-5062
-6643
-7602

query II rowsort
SELECT DISTINCT - - col2, - col1 AS col0 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

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

query I rowsort
SELECT + 0 * + 17 + + col2 + - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 + + - 56 col1 FROM tab1
----
103
88
91

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

query I rowsort
SELECT ALL + + 69 FROM tab0 WHERE NULL <> - ( ( + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col2 + col1 col1 FROM tab0
----
101
209
52

query II rowsort
SELECT 51 + - col2 AS col1, 53 FROM tab1
----
-17
53
-45
53
-8
53

query I rowsort
SELECT ALL + col1 + + - col2 - - col0 + - col1 * col0 + 58 AS col1 FROM tab1
----
-336
-4149
-687

query II rowsort
SELECT DISTINCT - col1 + col2, 77 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL COUNT( * ) * - COUNT( * ) * + 81 AS col0 FROM tab2 AS cor0 WHERE NOT - 6 IS NULL
----
-729

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + 81 AS col0 FROM tab2 AS cor0 WHERE NOT - 6 IS NULL
----
-729

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT 19 * MIN( DISTINCT - + 28 ) * - COUNT( * ) - - MIN( - - col2 ) FROM tab1 AS cor0
----
1655

skipif mysql # not compatible
query I rowsort label-6170
SELECT 19 * MIN ( DISTINCT - + 28 ) * - COUNT ( * ) - - MIN ( - - col2 ) FROM tab1 AS cor0
----
1655

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT 99 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-6171
SELECT 99 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE ( - col0 ) > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6172
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE ( - col0 ) > ( NULL )
----
0

query I rowsort
SELECT DISTINCT - 82 * + 87 * col1 * + + col2 FROM tab0
----
-1498140
-27159138
-706266

query I rowsort
SELECT ALL - + 67 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6177
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-6

query I rowsort
SELECT ALL 23 * - - 86 FROM tab1
----
1978
1978
1978

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6179
SELECT DISTINCT + 44 + 86 + + col1 * + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT + + col2 + - col0 + + + 58 + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT + 44 + 86 + + col1 * + CAST ( NULL AS REAL ) FROM tab2 WHERE NOT + + col2 + - col0 + + + 58 + + col0 IS NOT NULL
----

query I rowsort
SELECT col0 * + + col0 * + + col2 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query II rowsort label-6181
SELECT ALL + + 99 * + - 66 * - + MIN( ALL + + col1 ) col1, COUNT( 69 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6181
SELECT ALL + + 99 * + - 66 * - + MIN ( ALL + + col1 ) col1, COUNT ( 69 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT SUM( ALL col0 ) * COUNT( * ) AS col1 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-6182
SELECT SUM ( ALL col0 ) * COUNT ( * ) AS col1 FROM tab1
----
681

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6185
SELECT ALL + 3 / col0 col2 FROM tab0
----
0
0
0

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

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

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

query II rowsort
SELECT ALL + - col0 * 21 AS col1, + 90 + ( - 71 ) AS col0 FROM tab2 AS cor0
----
-1344
19
-1575
19
-966
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT COUNT( DISTINCT 15 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6190
SELECT COUNT ( DISTINCT 15 ) FROM tab2
----
1

query II rowsort
SELECT + col2 * - 53 AS col0, col2 FROM tab1
----
-3127
59
-3604
68
-5088
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6192
SELECT DISTINCT + + COUNT( * ) + + + COUNT( * ) col1, 23 AS col2 FROM tab1 AS cor0
----
6
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6192
SELECT DISTINCT + + COUNT ( * ) + + + COUNT ( * ) col1, 23 AS col2 FROM tab1 AS cor0
----
6
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT DISTINCT + 50 * COUNT( * ) * COUNT( * ) * + - COUNT( * ) col2 FROM tab2 AS cor0
----
-1350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6193
SELECT DISTINCT + 50 * COUNT ( * ) * COUNT ( * ) * + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-1350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6194
SELECT * FROM tab2 AS cor0 WHERE ( + 48 * 3 + - - col2 * - ( - + col2 ) + - + col0 + + - CAST( NULL AS SIGNED ) - col1 + - 14 + 25 / col1 + + - col2 * + CAST( - 52 AS SIGNED ) * + 42 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6194
SELECT * FROM tab2 AS cor0 WHERE ( + 48 * 3 + - - col2 * - ( - + col2 ) + - + col0 + + - CAST ( NULL AS INTEGER ) - col1 + - 14 + 25 / col1 + + - col2 * + CAST ( - 52 AS INTEGER ) * + 42 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6196
SELECT SUM( - col0 ) AS col1, 17 FROM tab1 AS cor0
----
-227
17

skipif mysql # not compatible
query II rowsort label-6196
SELECT SUM ( - col0 ) AS col1, 17 FROM tab1 AS cor0
----
-227
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT col1 DIV + + 93 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6197
SELECT col1 / + + 93 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6199
SELECT 13 DIV COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-6199
SELECT 13 / COUNT ( * ) FROM tab2
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT DISTINCT COUNT( * ) - - MAX( ALL + + col1 ) + COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT COUNT ( * ) - - MAX ( ALL + + col1 ) + COUNT ( * ) FROM tab0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6202
SELECT COUNT( ALL + + col1 ) - - MIN( ALL + CAST( + 36 AS SIGNED ) ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-6202
SELECT COUNT ( ALL + + col1 ) - - MIN ( ALL + CAST ( + 36 AS INTEGER ) ) FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT DISTINCT + 70 + - COUNT( * ) AS col2 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT + 70 + - COUNT ( * ) AS col2 FROM tab0
----
67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6205
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN ( + CAST( + - col0 AS SIGNED ) ) + - col2 AND - 93
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-6205
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN ( + CAST ( + - col0 AS INTEGER ) ) + - col2 AND - 93
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + col2 - + ( 52 ) FROM tab0 AS cor0
----
-42
-5
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT DISTINCT + ( + - COUNT( * ) ) + + ( - - SUM( + col0 ) ) FROM tab1 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT + ( + - COUNT ( * ) ) + + ( - - SUM ( + col0 ) ) FROM tab1 AS cor0
----
224

query I rowsort
SELECT - col1 + + - col1 FROM tab1 cor0
----
-10
-28
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6209
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 <= + col1 DIV col2 * + + col0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6209
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 <= + col1 / col2 * + + col0
----
51
85
91

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

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

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

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

query II rowsort
SELECT col2 * - ( + col1 ), - ( + col2 ) AS col2 FROM tab2
----
-1173
-23
-3080
-40
-3886
-58

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT ( col0 * + - col2 ) IS NULL
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 0 * - col1 * col2 >= NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - 27 * + + col1 AS col2 FROM tab2 cor0
----
-1377
-1809
-2079

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 78 + - 73 <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT + ( 4 ) + + 8 - + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6220
SELECT + ( 4 ) + + 8 - + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
15

query I rowsort
SELECT ALL + ( + col2 ) + - - col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT + 41 * - 62 AS col2 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN 83 AND - + col1
----
-2542
-2542
-2542

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

query I rowsort
SELECT 28 * - col2 AS col1 FROM tab2
----
-1120
-1624
-644

onlyif mysql # DIV for integer division: 
query II rowsort label-6225
SELECT DISTINCT - + col0 * 12 AS col2, col1 DIV + 66 AS col1 FROM tab1 AS cor0
----
-1020
0
-1092
0
-612
0

skipif mysql # not compatible
query II rowsort label-6225
SELECT DISTINCT - + col0 * 12 AS col2, col1 / + 66 AS col1 FROM tab1 AS cor0
----
-1020
0
-1092
0
-612
0

query I rowsort
SELECT - 30 + - col0 + - - 11 FROM tab0 AS cor0
----
-106
-116
-34

query I rowsort
SELECT ALL col1 + - + 9 * col0 AS col2 FROM tab1 cor0
----
-445
-760
-772

onlyif mysql # DIV for integer division: 
query I rowsort label-6228
SELECT col0 DIV + + col0 + - col0 FROM tab0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-6228
SELECT col0 / + + col0 + - col0 FROM tab0
----
-14
-86
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) NOT BETWEEN 56 + + + 38 AND - ( 14 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT ALL col1 / ( + col2 ) + - - 31 + + CAST( NULL AS SIGNED ) + 34 * - 82 * + col2 / + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL col1 / ( + col2 ) + - - 31 + + CAST ( NULL AS INTEGER ) + 34 * - 82 * + col2 / + col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 54 ) col2 FROM tab2
----
-54
-54
-54

query III rowsort
SELECT ALL * FROM tab0 WHERE - 79 * ( 51 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT + + COUNT( DISTINCT - + 41 ) * + 85 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-6234
SELECT + + COUNT ( DISTINCT - + 41 ) * + 85 FROM tab0 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT - SUM( ALL 98 ) - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT - SUM ( ALL 98 ) - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
NULL

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

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

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

query I rowsort
SELECT ALL + - 99 * + col2 FROM tab2 AS cor0
----
-2277
-3960
-5742

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT DISTINCT + COUNT( ALL + 89 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT + COUNT ( ALL + 89 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 NOT BETWEEN + 33 AND + 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + 75 FROM tab2
----
3825
5025
5775

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

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

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

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - col2 * - 51 + 70 AND NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - col0 col2 FROM tab0 cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6247
SELECT ALL + - 67 + CAST( NULL AS SIGNED ) AS col1, + 84 * ( + - col0 ) AS col2 FROM tab1 AS cor0
----
NULL
-4284
NULL
-7140
NULL
-7644

skipif mysql # not compatible
query II rowsort label-6247
SELECT ALL + - 67 + CAST ( NULL AS INTEGER ) AS col1, + 84 * ( + - col0 ) AS col2 FROM tab1 AS cor0
----
NULL
-4284
NULL
-7140
NULL
-7644

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE 20 IS NULL
----

query I rowsort
SELECT DISTINCT + 96 - + 52 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
44

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6252
SELECT DISTINCT - 56 DIV - + MIN( ALL col1 ) AS col0 FROM tab1 cor0
----
11

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT - 56 / - + MIN ( ALL col1 ) AS col0 FROM tab1 cor0
----
11

query I rowsort
SELECT ALL + col0 - + ( + - col0 ) + 14 + + - col0 * + col0 * + col1 FROM tab2 AS cor0
----
-107810
-315250
-376711

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + col2 < NULL
----

query II rowsort
SELECT DISTINCT + col0, + 56 FROM tab1 AS cor0
----
51
56
85
56
91
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 23 IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT + - col0 + - - col1 / + 82 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + 87 - 82 FROM tab0
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6260
SELECT DISTINCT 71 DIV + col1 + col1 FROM tab0
----
24
72
81

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT 71 / + col1 + col1 FROM tab0
----
24
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT - 40 - COUNT( * ) AS col2 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-6261
SELECT - 40 - COUNT ( * ) AS col2 FROM tab1
----
-43

query I rowsort
SELECT DISTINCT 79 * - 70 + - col2 FROM tab0
----
-5540
-5577
-5629

query I rowsort
SELECT + col2 - + + 86 + + ( col2 ) FROM tab0
----
-66
112
8

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 39 * + 24 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6265
SELECT 50 * - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col2 IN ( 97 + - col2 )
----
-2950
-3400
-4800

skipif mysql # not compatible
query I rowsort label-6265
SELECT 50 * - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col2 IN ( 97 + - col2 )
----
-2950
-3400
-4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6266
SELECT ALL - - ( + CAST( + MIN( - ( + col1 ) ) AS SIGNED ) ) AS col1 FROM tab2 cor0
----
-77

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

query I rowsort
SELECT 40 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
40
40
40

query II rowsort
SELECT ALL - + 53 AS col2, col2 - - + 29 AS col2 FROM tab1 AS cor0
----
-53
125
-53
88
-53
97

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 69 <= NULL
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT - MIN( DISTINCT - + 57 ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-6275
SELECT - MIN ( DISTINCT - + 57 ) FROM tab2
----
57

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

query II rowsort
SELECT DISTINCT + 16 AS col0, - 19 FROM tab0
----
16
-19

query I rowsort
SELECT - 26 * - col1 AS col1 FROM tab0
----
2106
26
546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6279
SELECT ALL col0 + - CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL col0 + - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT + 67 + - 3 FROM tab2
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 20 - + col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6282
SELECT + + col0 * + col1 + 71 DIV - + col2 AS col2 FROM tab2 AS cor0
----
2343
4927
5024

skipif mysql # not compatible
query I rowsort label-6282
SELECT + + col0 * + col1 + 71 / - + col2 AS col2 FROM tab2 AS cor0
----
2343
4927
5024

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + - 49 + col2 col2 FROM tab1 AS cor0
----
15
61
66

query I rowsort
SELECT ALL + - 0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 - + 16 FROM tab1 cor0
----
-21
-30
-63

query I rowsort
SELECT 12 - + 44 * - col2 + - + col2 FROM tab2 cor0
----
1001
1732
2506

query I rowsort
SELECT DISTINCT + - col2 - 96 + + col0 FROM tab0 AS cor0
----
-128
-19
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT + col1 * col0 + - CAST( + + col2 AS SIGNED ) * - 81 + - col0 AS col2 FROM tab1 AS cor0
----
5119
8439
9694

skipif mysql # not compatible
query I rowsort label-6289
SELECT + col1 * col0 + - CAST ( + + col2 AS INTEGER ) * - 81 + - col0 AS col2 FROM tab1 AS cor0
----
5119
8439
9694

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <= 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL SUM( ALL - ( 19 ) ) AS col1 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL SUM ( ALL - ( 19 ) ) AS col1 FROM tab0
----
-57

query I rowsort
SELECT ALL + col1 * - 91 FROM tab1
----
-1274
-4277
-455

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6297
SELECT - col2 DIV + + 40 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6297
SELECT - col2 / + + 40 FROM tab2
----
-1
-1
0

query I rowsort
SELECT 74 * col1 AS col0 FROM tab1
----
1036
3478
370

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

skipif mysql # not compatible
query I rowsort label-6299
SELECT SUM ( DISTINCT - 24 ) AS col0 FROM tab0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6300
SELECT * FROM tab2 WHERE NOT ( col0 = - + CAST( + 48 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6300
SELECT * FROM tab2 WHERE NOT ( col0 = - + CAST ( + 48 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6301
SELECT DISTINCT + - 32 AS col1, COUNT( * ) + 43 FROM tab0 cor0
----
-32
46

skipif mysql # not compatible
query II rowsort label-6301
SELECT DISTINCT + - 32 AS col1, COUNT ( * ) + 43 FROM tab0 cor0
----
-32
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 4 * col0 * col1 * + col0 col1 FROM tab2 AS cor0
----
101002500
22014864
97140736

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6304
SELECT ALL CAST( - + COUNT( ALL + CAST( + - 14 AS SIGNED ) ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL CAST ( - + COUNT ( ALL + CAST ( + - 14 AS INTEGER ) ) AS INTEGER ) FROM tab1
----
-3

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

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

query II rowsort
SELECT DISTINCT + col1, + col1 FROM tab1 cor0
----
14
14
47
47
5
5

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 <= - 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE - 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT DISTINCT + COUNT( * ) + 21 * SUM( + 68 ) FROM tab1
----
4287

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT + COUNT ( * ) + 21 * SUM ( + 68 ) FROM tab1
----
4287

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT DISTINCT 23 DIV + + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT 23 / + + col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT - COUNT( ALL col2 ) * 5 AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6313
SELECT - COUNT ( ALL col2 ) * 5 AS col1 FROM tab0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6314
SELECT CAST( - SUM( + 54 ) AS SIGNED ) AS col2 FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-6314
SELECT CAST ( - SUM ( + 54 ) AS INTEGER ) AS col2 FROM tab1
----
-162

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

query I rowsort
SELECT ( - 17 ) * - 56 FROM tab2
----
952
952
952

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT + 23 + - ( - ( - COUNT( * ) ) ) - - 61 AS col0 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6318
SELECT + 23 + - ( - ( - COUNT ( * ) ) ) - - 61 AS col0 FROM tab1 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT col2 * - 21 * 22 + - CAST( + ( + col2 ) AS SIGNED ) AS col0 FROM tab2
----
-10649
-18520
-26854

skipif mysql # not compatible
query I rowsort label-6319
SELECT col2 * - 21 * 22 + - CAST ( + ( + col2 ) AS INTEGER ) AS col0 FROM tab2
----
-10649
-18520
-26854

query I rowsort
SELECT DISTINCT col2 + + col1 - - col2 * + 51 FROM tab2
----
1247
2157
3083

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + ( + - 16 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 + ( - col0 ) col0 FROM tab1
----
-100
-60
-94

query I rowsort
SELECT - 18 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT DISTINCT col0 - + col2 + + + col2 * - - 85 * + col1 AS col2 FROM tab2
----
261824
330327
99728

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

query I rowsort
SELECT DISTINCT 9 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 50 IS NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6327
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( ( + 96 ) / + - col2 * - 76 * + - 25 + + CAST( NULL AS SIGNED ), col0 )
----

skipif mysql # not compatible
query III rowsort label-6327
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( ( + 96 ) / + - col2 * - 76 * + - 25 + + CAST ( NULL AS INTEGER ), col0 )
----

query I rowsort
SELECT DISTINCT + col0 * - col0 FROM tab1 AS cor0 WHERE col0 > + 89
----
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT + MIN( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6329
SELECT + MIN ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-47

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6331
SELECT ALL + + 69 * - CAST( - COUNT( - + 60 ) AS SIGNED ) * + + COUNT( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
621

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL + + 69 * - CAST ( - COUNT ( - + 60 ) AS INTEGER ) * + + COUNT ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
621

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL + COUNT( * ) * + - ( + MAX( DISTINCT - + 23 ) ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL + COUNT ( * ) * + - ( + MAX ( DISTINCT - + 23 ) ) FROM tab1 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6335
SELECT 46 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT 46 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - + col0 AS col2 FROM tab1
----
-2601
-7225
-8281

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

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

query I rowsort
SELECT - - col1 AS col0 FROM tab1 WHERE NOT - col1 * - col1 IS NULL
----
14
47
5

query I rowsort
SELECT - + col2 FROM tab0 WHERE NOT - col0 * col0 / + 56 IS NOT NULL
----

query I rowsort
SELECT ( + 96 ) * - 30 FROM tab2 AS cor0 WHERE NOT - col1 * col0 * + + col2 + + 9 * - ( - + col0 ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6341
SELECT - ( - - 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 + col2 * col1 * + col2 col1 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # DIV for integer division: 
query I rowsort label-6343
SELECT DISTINCT - col0 DIV - + col0 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT - col0 / - + col0 AS col2 FROM tab0
----
1

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

skipif mysql # not compatible
query I rowsort label-6344
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6345
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= ( - 5 ) * 95 + + col2 - - - 37 + CAST( NULL AS SIGNED ) + - 54 + - col2 * + CAST( + 96 AS SIGNED ) * - 82 * + + 71
----

skipif mysql # not compatible
query III rowsort label-6345
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= ( - 5 ) * 95 + + col2 - - - 37 + CAST ( NULL AS INTEGER ) + - 54 + - col2 * + CAST ( + 96 AS INTEGER ) * - 82 * + + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT + - MIN( - - 94 ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-6346
SELECT + - MIN ( - - 94 ) FROM tab0 AS cor0
----
-94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT - 51 DIV ( col1 ) AS col0 FROM tab1 AS cor0
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-6348
SELECT - 51 / ( col1 ) AS col0 FROM tab1 AS cor0
----
-1
-10
-3

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL COUNT( * ) + + SUM( ( + col0 ) ) * SUM( - 36 ) * 66 AS col1 FROM tab0
----
-1418469

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL COUNT ( * ) + + SUM ( ( + col0 ) ) * SUM ( - 36 ) * 66 AS col1 FROM tab0
----
-1418469

query I rowsort
SELECT 16 + - 71 FROM tab1
----
-55
-55
-55

query I rowsort
SELECT DISTINCT - - col0 * - ( + 24 ) AS col0 FROM tab1 WHERE col1 * + col1 IS NOT NULL
----
-1224
-2040
-2184

query I rowsort
SELECT DISTINCT col0 * + col2 + 63 FROM tab2
----
1121
2623
4413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6357
SELECT + 5 * + SUM( - CAST( - + col1 AS SIGNED ) ) + COUNT( * ) AS col0 FROM tab1
----
333

skipif mysql # not compatible
query I rowsort label-6357
SELECT + 5 * + SUM ( - CAST ( - + col1 AS INTEGER ) ) + COUNT ( * ) AS col0 FROM tab1
----
333

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

query I rowsort
SELECT ALL + col0 + 19 FROM tab0
----
106
116
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6360
SELECT 7 DIV - 26 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6360
SELECT 7 / - 26 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL MIN( ALL col2 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL MIN ( ALL col2 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT + 33 DIV + col1 + + - 86 AS col0 FROM tab2 AS cor0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-6363
SELECT + 33 / + col1 + + - 86 AS col0 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT col2 * ( - col1 ) * - - 99 + - - col1 AS col2 FROM tab0 AS cor0
----
-20769
-376812
-9800

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6365
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + col2 + + - CAST( NULL AS DECIMAL ) * col0
----

skipif mysql # not compatible
query III rowsort label-6365
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + col2 + + - CAST ( NULL AS REAL ) * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ALL + ( COUNT( * ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL + ( COUNT ( * ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6368
SELECT + col2 - + col1 * - col0 + + CAST( - - col0 AS SIGNED ) col1 FROM tab1
----
4436
569
861

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6368
SELECT + col2 - + col1 * - col0 + + CAST ( - - col0 AS INTEGER ) col1 FROM tab1
----
4436
569
861

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + ( + + col1 ) > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 col0 FROM tab0 cor0 WHERE NOT + 24 - col0 <> 69
----

query II rowsort
SELECT + col0, col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
46
64
64
75
75

query II rowsort
SELECT col0, - 92 AS col0 FROM tab1
----
51
-92
85
-92
91
-92

query I rowsort
SELECT 33 * col0 FROM tab0
----
2871
3201
495

onlyif mysql # DIV for integer division: 
query I rowsort label-6375
SELECT 56 DIV 37 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6375
SELECT 56 / 37 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6376
SELECT ( + CAST( + col1 AS SIGNED ) ) DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6376
SELECT ( + CAST ( + col1 AS INTEGER ) ) / col2 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - col2 * - col1 ) <> col0 - + + 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col1, col2 FROM tab2 cor0
----
51
23
67
58
77
40

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

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

query I rowsort
SELECT DISTINCT 37 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < col1 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT DISTINCT - 32 * 35 DIV + + col1 AS col0 FROM tab2 cor0
----
-14
-16
-21

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT - 32 * 35 / + + col1 AS col0 FROM tab2 cor0
----
-14
-16
-21

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

query I rowsort
SELECT ALL + + col0 + + - col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL col0 + - - col0 AS col1 FROM tab0
----
174
194
30

query I rowsort
SELECT DISTINCT + col0 + - + col0 * 57 * + col0 * - + 93 AS col0 FROM tab2
----
11216962
21712960
29818200

query I rowsort
SELECT ALL 84 + - col0 FROM tab0
----
-13
-3
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT - SUM( ALL - 7 ) AS col2 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-6389
SELECT - SUM ( ALL - 7 ) AS col2 FROM tab1
----
21

query I rowsort
SELECT DISTINCT + col1 - + 22 FROM tab2
----
29
45
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * ( 12 ) - ( - 23 ) col0, + 18 AS col2 FROM tab1
----
-1129
18
-685
18
-793
18

query II rowsort
SELECT DISTINCT + col2 * - 7 + + - col0, 46 AS col2 FROM tab2
----
-207
46
-344
46
-481
46

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * - col0 * + col1 > + - 95
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + 55 + - col0 AS col0 FROM tab0 AS cor0
----
-32
-42
40

query I rowsort
SELECT - col0 + + + col2 * + - 19 AS col2 FROM tab1
----
-1206
-1383
-1875

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6401
SELECT ALL - 30 col1, MAX( - col0 ) AS col0 FROM tab1 AS cor0
----
-30
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6401
SELECT ALL - 30 col1, MAX ( - col0 ) AS col0 FROM tab1 AS cor0
----
-30
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT DISTINCT + SUM( DISTINCT - 41 ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT + SUM ( DISTINCT - 41 ) FROM tab1 AS cor0
----
-41

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 < + + 60 * col1 + + col2 + - - 70
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT - MAX( col1 ) * COUNT( + col2 ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-6406
SELECT - MAX ( col1 ) * COUNT ( + col2 ) FROM tab2 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT DISTINCT - SUM( DISTINCT - 39 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT - SUM ( DISTINCT - 39 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
36

query I rowsort
SELECT DISTINCT + + ( + 22 ) + - col2 * + 47 FROM tab1 WHERE col1 * - 53 / - - 19 * + + 19 * + - col2 * + ( - + col2 ) * + col0 IS NOT NULL
----
-2751
-3174
-4490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - ( - + 61 ) * col0 col2 FROM tab1
----
3125
5190
5598

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( + col1 ) + - col0 * 82 col1 FROM tab1 AS cor0
----
-3986
-5253
-6945

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + ( - col2 ) < 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # DIV for integer division: 
query I rowsort label-6416
SELECT 19 DIV + col0 + - 6 FROM tab1 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-6416
SELECT 19 / + col0 + - 6 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ALL + + col0 * - col2 + + col0 + col0 + + 49 + 21 * - col2 AS col2 FROM tab1 AS cor0
----
-6035
-6761
-7385

query I rowsort
SELECT ( + col1 ) + + 66 * - - col1 + + - col2 FROM tab1 cor0
----
276
3081
842

query I rowsort
SELECT - + col0 * 78 + + col0 AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
-1155
-6699
-7469

query I rowsort
SELECT ALL + col2 + + + 25 FROM tab2
----
48
65
83

query I rowsort
SELECT - col2 + + + col1 + - col2 + - col1 FROM tab1
----
-118
-136
-192

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

query I rowsort
SELECT col0 + - col2 + - 45 FROM tab1
----
-19
-22
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6424
SELECT DISTINCT col2 - + + 55 + + CAST( + - 31 AS SIGNED ) * + col0 FROM tab2
----
-1458
-1999
-2322

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT col2 - + + 55 + + CAST ( + - 31 AS INTEGER ) * + col0 FROM tab2
----
-1458
-1999
-2322

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

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

query I rowsort
SELECT ALL col0 * - - 32 + col0 + - 63 AS col1 FROM tab2
----
1455
2049
2412

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT DISTINCT + COUNT( DISTINCT - col2 ) - + SUM( ALL 44 ) FROM tab2 WHERE - col0 >= col1 + - col0 / 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) - + SUM ( ALL 44 ) FROM tab2 WHERE - col0 >= col1 + - col0 / 25
----
NULL

query I rowsort
SELECT DISTINCT col0 * + 77 FROM tab1
----
3927
6545
7007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6429
SELECT DISTINCT + COUNT( * ) DIV + 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT + COUNT ( * ) / + 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6431
SELECT + CAST( - + 69 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

skipif mysql # not compatible
query I rowsort label-6431
SELECT + CAST ( - + 69 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT + ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT DISTINCT - - 82 DIV - 75 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT - - 82 / - 75 FROM tab1 AS cor0
----
-1

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL + 71 / + - CAST ( NULL AS INTEGER ) * - - 17 + - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 79 AS col2, + col0 AS col0 FROM tab1 cor0
----
79
51
79
85
79
91

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

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

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

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

query II rowsort
SELECT DISTINCT - col0, + col0 FROM tab0
----
-15
15
-87
87
-97
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + + 82 AS col1 FROM tab0
----
129
181
92

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6446
SELECT - col1 DIV + 74 AS col2, col0 DIV + col0 AS col2 FROM tab0
----
-1
1
0
1
0
1

skipif mysql # not compatible
query II rowsort label-6446
SELECT - col1 / + 74 AS col2, col0 / + col0 AS col2 FROM tab0
----
-1
1
0
1
0
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL + COUNT( DISTINCT - 28 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL + COUNT ( DISTINCT - 28 ) AS col2 FROM tab1
----
1

query II rowsort
SELECT - - col2 * col0 AS col1, col2 FROM tab1 AS cor0
----
4896
96
5015
59
6188
68

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

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

query I rowsort
SELECT 9 + - col1 FROM tab2
----
-42
-58
-68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + + 67 / + col0 * - 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT ( - + 99 ) * 17 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1683

query I rowsort
SELECT DISTINCT ( + col0 ) * - col2 + col2 AS col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6456
SELECT DISTINCT - COUNT( * ) / 38 + - + COUNT( * ) + - 79 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT - COUNT ( * ) / 38 + - + COUNT ( * ) + - 79 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + 80 AS col2, - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
80
-51
80
-85
80
-91

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

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

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

query I rowsort
SELECT - col0 FROM tab0 WHERE + 79 - - col2 + + ( - col0 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6461
SELECT DISTINCT col1 DIV - col0 - + + 97 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT col1 / - col0 - + + 97 FROM tab1
----
-97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT + COUNT( * ) FROM tab0 WHERE NULL BETWEEN col2 AND - - col1
----
0

skipif mysql # not compatible
query I rowsort label-6464
SELECT + COUNT ( * ) FROM tab0 WHERE NULL BETWEEN col2 AND - - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 86 <= NULL
----

query I rowsort
SELECT ALL + col1 - - + ( + - col2 ) AS col2 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT - COUNT( * ) + - 58 AS col2 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6467
SELECT - COUNT ( * ) + - 58 AS col2 FROM tab1 AS cor0
----
-61

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

query I rowsort
SELECT - 43 * + - col0 * + + 8 + + + col2 FROM tab1 AS cor0
----
17640
29299
31372

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN 88 AND 50 * 45
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 1 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6475
SELECT ALL - col1 + 41 DIV + 36 AS col0 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL - col1 + 41 / + 36 AS col0 FROM tab2
----
-50
-66
-76

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

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL + MIN ( DISTINCT + 71 ) FROM tab1
----
71

query I rowsort
SELECT DISTINCT + 70 * col1 AS col0 FROM tab0 WHERE + col1 NOT BETWEEN ( + 64 * 21 + 88 ) AND - 50
----
1470
5670
70

query I rowsort
SELECT 28 FROM tab2 WHERE ( NULL ) < col0
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT ( NULL ) < 80
----

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

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

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

query I rowsort
SELECT ALL 99 * 44 FROM tab2
----
4356
4356
4356

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

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

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

query I rowsort
SELECT DISTINCT 89 * 1 FROM tab1
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT + SUM( col2 ) AS col1 FROM tab1 WHERE - 27 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT + SUM ( col2 ) AS col1 FROM tab1 WHERE - 27 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE 87 IN ( + col1 )
----

query I rowsort
SELECT DISTINCT - col0 * - 69 FROM tab2 WHERE NULL IS NULL
----
3174
4416
5175

query I rowsort
SELECT col0 + - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-340
-4186
-663

query I rowsort
SELECT + 67 + col1 FROM tab2 AS cor0
----
118
134
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6493
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE ( NULL ) = - col2
----

skipif mysql # not compatible
query I rowsort label-6493
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( NULL ) = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6494
SELECT DISTINCT - col2 + - col0 FROM tab1 WHERE NOT CAST( - col1 AS SIGNED ) >= ( 51 )
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT - col2 + - col0 FROM tab1 WHERE NOT CAST ( - col1 AS INTEGER ) >= ( 51 )
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT 43 * COUNT( * ) - 86 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-6495
SELECT 43 * COUNT ( * ) - 86 FROM tab0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT - + 79 - COUNT( ALL - col0 ) * + COUNT( * ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-6496
SELECT - + 79 - COUNT ( ALL - col0 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-88

query I rowsort
SELECT ALL + col0 + 74 AS col1 FROM tab1 AS cor0 WHERE NOT ( 6 ) IS NULL
----
125
159
165

query I rowsort
SELECT - + col0 * - 39 + col1 AS col1 FROM tab2 AS cor0
----
1845
2573
2992

query I rowsort
SELECT col2 * 3 + 68 FROM tab0 AS cor0
----
209
365
98

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NULL = ( col0 * col0 )
----

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

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

query I rowsort
SELECT ALL + col0 * 41 + - 8 / + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + 17 AS col2 FROM tab1 AS cor0 WHERE + ( - 60 ) / + 41 + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6505
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) NOT IN ( - col2 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-6505
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( - col2 + + col1 )
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6508
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NULL >= - CAST( + 85 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NULL >= - CAST ( + 85 AS REAL )
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 84 ) <> 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT COUNT( * ) FROM tab0 WHERE - col2 BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6513
SELECT COUNT ( * ) FROM tab0 WHERE - col2 BETWEEN ( NULL ) AND NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-6514
SELECT - ( + 23 ) * + COUNT ( * ) FROM tab1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT - ( - MAX( DISTINCT col0 ) ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6515
SELECT - ( - MAX ( DISTINCT col0 ) ) AS col2 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT DISTINCT + COUNT( * ) * + MIN( + col1 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT + COUNT ( * ) * + MIN ( + col1 ) FROM tab1
----
15

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6518
SELECT + CAST( - - col0 AS SIGNED ) * col2 AS col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-6518
SELECT + CAST ( - - col0 AS INTEGER ) * col2 AS col0 FROM tab2
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - 30 * col2 col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - - col2 AND ( NULL )
----

query I rowsort
SELECT - 7 * - - ( + col2 ) FROM tab0
----
-329
-693
-70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT - MIN( - 94 ) FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-6522
SELECT - MIN ( - 94 ) FROM tab1 cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 93 col1, col2 FROM tab2 AS cor0
----
93
23
93
40
93
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 46 ) NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT DISTINCT + COUNT( * ) * SUM( DISTINCT + 87 ) col1 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6526
SELECT DISTINCT + COUNT ( * ) * SUM ( DISTINCT + 87 ) col1 FROM tab2 AS cor0
----
261

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6527
SELECT DISTINCT + - 40 + + 53 DIV + CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
-30
-37
-39

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT + - 40 + + 53 / + CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
-30
-37
-39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6529
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + + col2 ) + ( CAST( 78 AS SIGNED ) ) IN ( col0 * col2 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6529
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + + col2 ) + ( CAST ( 78 AS INTEGER ) ) IN ( col0 * col2 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT col2 + ( - 71 ) / col2 FROM tab0 AS cor0
----
3
46
99

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

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

skipif mysql # not compatible
query I rowsort label-6532
SELECT ( - MIN ( DISTINCT + 88 ) ) AS col1 FROM tab0
----
-88

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT col0 * - - 89 BETWEEN ( - 22 + col2 ) AND + col0
----
23
40
58

query I rowsort
SELECT ALL col0 + - 94 FROM tab0
----
-7
-79
3

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

query II rowsort
SELECT col2 * col0 AS col1, - col2 * + col0 FROM tab0
----
705
-705
870
-870
9603
-9603

query I rowsort
SELECT ALL col0 * + - col1 + - col1 + + 54 FROM tab1
----
-376
-4270
-674

query I rowsort
SELECT DISTINCT ( 1 ) AS col2 FROM tab0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT MAX( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6540
SELECT MAX ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT + col0 + + col2 - 84 FROM tab2 cor0
----
-15
20
49

query I rowsort
SELECT - col2 + col1 + 91 AS col1 FROM tab2 AS cor0
----
100
119
128

onlyif mysql # DIV for integer division: 
query I rowsort label-6543
SELECT - col0 + - col0 + 9 * + 7 * - col1 DIV + col1 AS col0 FROM tab1
----
-165
-233
-245

skipif mysql # not compatible
query I rowsort label-6543
SELECT - col0 + - col0 + 9 * + 7 * - col1 / + col1 AS col0 FROM tab1
----
-165
-233
-245

query I rowsort
SELECT ALL + 90 + + + col0 FROM tab0
----
105
177
187

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

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

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

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

query II rowsort
SELECT + - col2 - + ( col1 ) AS col0, col1 FROM tab0 AS cor0
----
-100
1
-128
81
-31
21

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

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

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

query I rowsort
SELECT 70 * + - col0 FROM tab2
----
-3220
-4480
-5250

query I rowsort
SELECT + 10 * - + 21 FROM tab2, tab0 AS cor0
----
9 values hashing to ceea7215d265e15a570f1309daac50d8

query I rowsort
SELECT ALL 88 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

query I rowsort
SELECT col1 * - col2 * + col2 FROM tab2
----
-123200
-225388
-26979

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL - COUNT( * ) * + 13 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-39

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - COUNT ( * ) * + 13 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6559
SELECT COUNT( * ) * + + 83 DIV - MAX( col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6559
SELECT COUNT ( * ) * + + 83 / - MAX ( col1 ) FROM tab0 AS cor0
----
-3

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

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

query I rowsort
SELECT DISTINCT + col1 * - - col2 * + - ( - col0 ) FROM tab0
----
18270
57105
9603

query II rowsort
SELECT - col0 * col1, col0 AS col0 FROM tab1
----
-425
85
-4277
91
-714
51

query I rowsort
SELECT + col2 * - + 65 AS col0 FROM tab2
----
-1495
-2600
-3770

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL - + MIN( + + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL - + MIN ( + + col1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - 75 * + col2 * - 11 FROM tab0 AS cor0
----
38775
81675
8250

query I rowsort
SELECT ALL + col0 + + 15 FROM tab2 AS cor0
----
61
79
90

query I rowsort
SELECT ALL + 35 * - col2 + - 48 * - 83 + + - 67 FROM tab1
----
1537
1852
557

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col2, col1 )
----

query I rowsort
SELECT ALL 8 + + 59 * - ( + col0 ) FROM tab0
----
-5125
-5715
-877

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT DISTINCT 29 * - 46 + + COUNT( + 67 ) AS col0 FROM tab1
----
-1331

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT 29 * - 46 + + COUNT ( + 67 ) AS col0 FROM tab1
----
-1331

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > + 75 * - 63
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6575
SELECT MIN( - col2 ) + COUNT( * ) + + - ( + 16 ) * + CAST( + - MAX( ALL + 99 ) AS SIGNED ) * 48 FROM tab0
----
75936

skipif mysql # not compatible
query I rowsort label-6575
SELECT MIN ( - col2 ) + COUNT ( * ) + + - ( + 16 ) * + CAST ( + - MAX ( ALL + 99 ) AS INTEGER ) * 48 FROM tab0
----
75936

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL COUNT( ALL + ( + col2 ) ) * + COUNT( * ) + + 44 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL COUNT ( ALL + ( + col2 ) ) * + COUNT ( * ) + + 44 FROM tab2
----
53

query I rowsort
SELECT DISTINCT + col0 * 48 AS col2 FROM tab0
----
4176
4656
720

query I rowsort
SELECT col0 + + - col2 AS col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6579
SELECT col0 DIV col2 + - col0 + - + col0 AS col1 FROM tab0 AS cor0
----
-166
-194
-30

skipif mysql # not compatible
query I rowsort label-6579
SELECT col0 / col2 + - col0 + - + col0 AS col1 FROM tab0 AS cor0
----
-166
-194
-30

query II rowsort
SELECT ALL + col1 * 30 + col0 * col0, col1 FROM tab2 AS cor0
----
3646
51
6406
77
7635
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT DISTINCT - + COUNT( * ) * - - COUNT( * ) FROM tab0 WHERE NOT ( NOT NULL >= - 56 )
----
0

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT - + COUNT ( * ) * - - COUNT ( * ) FROM tab0 WHERE NOT ( NOT NULL >= - 56 )
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6584
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL + col1 + - + col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( col1 ) col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT + col2 * + - col1 - + col1 + + col2 + + col2 + - col0 * - col1 + + 22 * - col0 * 72 FROM tab2 AS cor0
----
-117612
-71696
-99525

query I rowsort
SELECT col2 + + ( 57 ) AS col0 FROM tab2 AS cor0
----
115
80
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6589
SELECT ALL * FROM tab1 cor0 WHERE - 53 * + CAST( NULL AS SIGNED ) BETWEEN ( - 44 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6589
SELECT ALL * FROM tab1 cor0 WHERE - 53 * + CAST ( NULL AS INTEGER ) BETWEEN ( - 44 ) AND ( NULL )
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6592
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * col2 + + CAST( - 36 AS DECIMAL ) * + + col1 BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6592
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * col2 + + CAST ( - 36 AS REAL ) * + + col1 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT SUM( ALL ( - 19 ) ) * COUNT( * ) FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-6593
SELECT SUM ( ALL ( - 19 ) ) * COUNT ( * ) FROM tab2
----
-171

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

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

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

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

query I rowsort
SELECT col1 * - - 18 AS col2 FROM tab1
----
252
846
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT COUNT( * ) * + - 28 AS col1 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-6598
SELECT COUNT ( * ) * + - 28 AS col1 FROM tab0
----
-84

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

query I rowsort
SELECT ALL - ( + - col2 ) * 23 AS col2 FROM tab1
----
1357
1564
2208

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6602
SELECT DISTINCT CAST( - - MAX( ALL + - col1 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6602
SELECT DISTINCT CAST ( - - MAX ( ALL + - col1 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-5

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) >= 54 + 63 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT DISTINCT - COUNT( * ) * - SUM( + - 40 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-3240

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT - COUNT ( * ) * - SUM ( + - 40 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-3240

query I rowsort
SELECT - 98 * - 57 FROM tab2
----
5586
5586
5586

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT - MAX( DISTINCT - + 91 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6607
SELECT - MAX ( DISTINCT - + 91 ) FROM tab1
----
91

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 46 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT + col0 * - 2 + + 31 AS col0 FROM tab0 cor0
----
-143
-163
1

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

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL - MIN ( + - col0 ) AS col1 FROM tab0 AS cor0
----
97

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

query I rowsort
SELECT - 23 + + - col0 AS col1 FROM tab1 AS cor0
----
-108
-114
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ALL + COUNT( - col0 ) AS col1 FROM tab0 AS cor0 WHERE - 69 IN ( - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL + COUNT ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE - 69 IN ( - + col0 )
----
0

query I rowsort
SELECT ALL col0 + - 74 * + col0 AS col1 FROM tab0 AS cor0
----
-1095
-6351
-7081

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

query III rowsort
SELECT * FROM tab0 WHERE - 92 <> + 57 - + col0 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( + col1 ) <= NULL )
----

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

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

query I rowsort
SELECT + col1 + + + col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT 34 + COUNT( * ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-6621
SELECT 34 + COUNT ( * ) FROM tab1
----
37

query I rowsort
SELECT DISTINCT - ( 5 ) AS col0 FROM tab0
----
-5

query I rowsort
SELECT col0 + - col1 + - - col0 FROM tab1
----
135
165
88

query I rowsort
SELECT ALL - - 36 * - col1 AS col2 FROM tab0 WHERE + + 79 IS NOT NULL
----
-2916
-36
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6625
SELECT + + CAST( NULL AS SIGNED ) - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6625
SELECT + + CAST ( NULL AS INTEGER ) - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

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

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

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

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

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

query II rowsort
SELECT col1 AS col2, 62 / col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

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

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

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

query II rowsort
SELECT ALL + col2 / - col0, + col2 FROM tab0 WHERE NOT NULL < 40
----

query I rowsort
SELECT ALL col1 * + - ( - - 27 ) FROM tab2
----
-1377
-1809
-2079

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - + col2 NOT BETWEEN NULL AND - ( - 15 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 45 * - col2 / - 96 NOT BETWEEN + + col0 AND 79 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col0 * - 46 AS col0 FROM tab1 AS cor0
----
-2346
-3910
-4186

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

query I rowsort
SELECT + - 41 AS col0 FROM tab2 AS cor0
----
-41
-41
-41

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

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

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

query I rowsort
SELECT ALL + 44 + col2 * col0 - - ( + col1 ) AS col1 FROM tab0
----
830
935
9648

query I rowsort
SELECT - col2 + + 17 + + col2 * - col0 + - col1 FROM tab0
----
-816
-884
-9686

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT DISTINCT + 94 + + COUNT( * ) * 61 FROM tab2
----
277

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT + 94 + + COUNT ( * ) * 61 FROM tab2
----
277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6644
SELECT + col1 + + CAST( + + 59 AS SIGNED ) AS col0 FROM tab0
----
140
60
80

skipif mysql # not compatible
query I rowsort label-6644
SELECT + col1 + + CAST ( + + 59 AS INTEGER ) AS col0 FROM tab0
----
140
60
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE - col0 + col0 + - 47 + - 39 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6645
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE - col0 + col0 + - 47 + - 39 IS NOT NULL
----
3

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

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

query II rowsort
SELECT 63 * + col0 AS col1, + 70 FROM tab2 AS cor0
----
2898
70
4032
70
4725
70

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

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

query II rowsort
SELECT 75, col0 FROM tab1 AS cor0
----
75
51
75
85
75
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6650
SELECT DISTINCT + 46 * 82 DIV 5 DIV 16 * + col1 + - - ( col1 ) col1 FROM tab2 AS cor0
----
2448
3216
3696

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6650
SELECT DISTINCT + 46 * 82 / 5 / 16 * + col1 + - - ( col1 ) col1 FROM tab2 AS cor0
----
2448
3216
3696

query I rowsort
SELECT - + 55 + + + 13 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT DISTINCT + - ( - 45 ) * - col0 * 54 AS col2 FROM tab2 AS cor0
----
-111780
-155520
-182250

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL 73 * - ( ( COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL 73 * - ( ( COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
-219

query I rowsort
SELECT + ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

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

skipif mysql # not compatible
query I rowsort label-6655
SELECT - ( - MAX ( DISTINCT + + col0 ) ) AS col2 FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 NOT BETWEEN col1 + col2 / col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6657
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * - + CAST( NULL AS SIGNED ) <> + + col1
----

skipif mysql # not compatible
query III rowsort label-6657
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * - + CAST ( NULL AS INTEGER ) <> + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT DISTINCT COUNT( * ) * 89 FROM tab1 cor0
----
267

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT COUNT ( * ) * 89 FROM tab1 cor0
----
267

query II rowsort
SELECT DISTINCT + col0 * + + col2, col2 AS col1 FROM tab0 AS cor0 WHERE col0 * - col1 / + col2 + - - 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL + MIN( DISTINCT - 40 ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL + MIN ( DISTINCT - 40 ) FROM tab0
----
-40

query I rowsort
SELECT ALL 1 * - col1 * - 4 FROM tab1
----
188
20
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT ( + + COUNT( * ) ) * - + 36 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT ( + + COUNT ( * ) ) * - + 36 FROM tab2
----
-108

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 64, ( 88 ) col2 FROM tab0
----
64
88
64
88
64
88

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 53 <= 55 / 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6668
SELECT DISTINCT 39, - 47 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
39
NULL

skipif mysql # not compatible
query II rowsort label-6668
SELECT DISTINCT 39, - 47 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
39
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6669
SELECT ALL - - SUM( + ( 47 ) ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL - - SUM ( + ( 47 ) ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6671
SELECT DISTINCT SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

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

query I rowsort
SELECT 30 * 94 + - - col2 AS col0 FROM tab1
----
2879
2888
2916

query II rowsort
SELECT col0 + + col2, 44 AS col0 FROM tab0
----
196
44
62
44
97
44

query I rowsort
SELECT + - AVG ( 34 ) FROM tab0 AS cor0 WHERE ( NULL ) <= + + 10 + + + col2 / - - col1 / 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6675
SELECT * FROM tab1 AS cor0 WHERE NULL > + 72 + + col1 + + CAST( + col1 AS SIGNED ) + col2 * + col2
----

skipif mysql # not compatible
query III rowsort label-6675
SELECT * FROM tab1 AS cor0 WHERE NULL > + 72 + + col1 + + CAST ( + col1 AS INTEGER ) + col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT SUM( ALL 48 ) AS col0 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-6676
SELECT SUM ( ALL 48 ) AS col0 FROM tab2
----
144

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 18 IS NOT NULL
----

query I rowsort
SELECT + + col0 FROM tab1 WHERE NULL = - 49
----

query I rowsort
SELECT col1 * + col0 * + + col1 - - col2 + + + ( - 48 ) FROM tab2
----
119621
336685
379448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6680
SELECT DISTINCT - + ( + - CAST( col0 AS SIGNED ) ) - + col2 AS col1 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT - + ( + - CAST ( col0 AS INTEGER ) ) - + col2 AS col1 FROM tab2 AS cor0
----
17
23
24

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

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

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

query I rowsort
SELECT ALL + 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 28 IS NOT NULL
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT 24 * + - ( col1 ) AS col1 FROM tab2
----
-1224
-1608
-1848

query I rowsort
SELECT 6 * + + ( - 57 ) AS col1 FROM tab1
----
-342
-342
-342

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

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

query I rowsort
SELECT - ( - 27 ) FROM tab2, tab0 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE - col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE - col2 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6690
SELECT ALL 88 AS col1, + 13 DIV + SUM( ALL + col2 ) FROM tab0
----
88
0

skipif mysql # not compatible
query II rowsort label-6690
SELECT ALL 88 AS col1, + 13 / + SUM ( ALL + col2 ) FROM tab0
----
88
0

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

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

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

query I rowsort
SELECT ALL - - col2 FROM tab0 cor0 WHERE + col0 * + - 58 + - - 39 + + col2 <> + - col2
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6694
SELECT - COUNT( * ) AS col2, + 78 - + 71 AS col2 FROM tab0 cor0
----
-3
7

skipif mysql # not compatible
query II rowsort label-6694
SELECT - COUNT ( * ) AS col2, + 78 - + 71 AS col2 FROM tab0 cor0
----
-3
7

query I rowsort
SELECT + + 40 * + + col2 FROM tab1 AS cor0
----
2360
2720
3840

query I rowsort
SELECT - col1 * col0 + + + col0 FROM tab0 AS cor0
----
-1200
-1740
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT DISTINCT + col2 DIV + col2 AS col1 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT + col2 / + col2 AS col1 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - 0 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * 50 AS col2 FROM tab0
----
4350
4850
750

query I rowsort
SELECT ALL 29 + + col0 * - col0 * ( + + col2 ) FROM tab2 WHERE NOT 34 IS NULL
----
-163811
-326221
-48639

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

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT - 0 * + COUNT ( * ) FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6702
SELECT DISTINCT - MIN( DISTINCT - CAST( + col1 AS SIGNED ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT - MIN ( DISTINCT - CAST ( + col1 AS INTEGER ) ) FROM tab2
----
77

query I rowsort
SELECT - 44 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

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

query I rowsort
SELECT - col1 * - 48 * col2 + + + 81 FROM tab0 AS cor0
----
10161
182817
4833

query I rowsort
SELECT - - col0 + + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( 45 ) + - + col2 FROM tab1 WHERE ( - 72 ) IS NOT NULL
----
-14
-23
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6710
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - + 16 - - ( + col0 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT - CAST ( NULL AS REAL ) * - + 16 - - ( + col0 ) AS col0 FROM tab1 AS cor0
----
NULL

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

query II rowsort
SELECT ALL + 63, + 49 AS col2 FROM tab1 AS cor0
----
63
49
63
49
63
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT - 50 + + MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-6713
SELECT - 50 + + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-147

query I rowsort
SELECT ALL - col0 * - 86 AS col0 FROM tab2 AS cor0
----
3956
5504
6450

query I rowsort
SELECT - - col1 + - 25 AS col0 FROM tab1 AS cor0
----
-11
-20
22

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE - + ( + 24 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NULL BETWEEN + + col1 AND + 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT + 47 + + COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
50

skipif mysql # not compatible
query I rowsort label-6718
SELECT + 47 + + COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
50

query I rowsort
SELECT 82 * + 96 + 70 AS col2 FROM tab1
----
7942
7942
7942

query III rowsort
SELECT * FROM tab1 WHERE + - 50 - - 51 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6721
SELECT DISTINCT - CAST( - ( - col2 ) AS SIGNED ) + + col0 AS col2 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT - CAST ( - ( - col2 ) AS INTEGER ) + + col0 AS col2 FROM tab0
----
-2
-32
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 >= - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6723
SELECT COUNT( ALL - + col2 ) AS col1, + 80 AS col0 FROM tab0 AS cor0
----
3
80

skipif mysql # not compatible
query II rowsort label-6723
SELECT COUNT ( ALL - + col2 ) AS col1, + 80 AS col0 FROM tab0 AS cor0
----
3
80

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

query I rowsort
SELECT ALL - 73 + 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 31 col2, - col2 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
31
-59
31
-68
31
-96

query I rowsort
SELECT DISTINCT - - ( - 78 ) AS col2 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

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

skipif mysql # not compatible
query II rowsort label-6729
SELECT - 9 AS col1, col2 + - ( + CAST ( NULL AS INTEGER ) ) * - + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-9
NULL
-9
NULL
-9
NULL

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

query I rowsort
SELECT + + ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT 78 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT - COUNT( * ) FROM tab0 WHERE NOT 6 + 57 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6732
SELECT - COUNT ( * ) FROM tab0 WHERE NOT 6 + 57 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT DISTINCT + SUM( 85 ) * + + 70 FROM tab2
----
17850

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT + SUM ( 85 ) * + + 70 FROM tab2
----
17850

query I rowsort
SELECT col0 * - 59 FROM tab0
----
-5133
-5723
-885

query I rowsort
SELECT - ( 17 ) FROM tab1
----
-17
-17
-17

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * col1 col2 FROM tab2
----
-237160
-260362
-59823

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6739
SELECT ALL + 3 AS col2, + COUNT( ALL + 9 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-6739
SELECT ALL + 3 AS col2, + COUNT ( ALL + 9 ) FROM tab2
----
3
3

query I rowsort
SELECT ALL col2 / - col1 / - - col1 + + + col1 AS col0 FROM tab0 AS cor0 WHERE NULL > col2 * + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 78 IS NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6743
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE - - CAST( NULL AS SIGNED ) + - col0 + + 57 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) + - col0 + + 57 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT - COUNT( * ) + - + 44 AS col0 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-6744
SELECT - COUNT ( * ) + - + 44 AS col0 FROM tab0
----
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT ALL - 18 - - COUNT( + + ( - + 40 ) ) AS col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL - 18 - - COUNT ( + + ( - + 40 ) ) AS col1 FROM tab2 AS cor0
----
-15

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

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

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

query I rowsort
SELECT ALL + + 87 * col2 AS col2 FROM tab0 AS cor0
----
4089
8613
870

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 88 ) - - col2 col1 FROM tab1 AS cor0
----
147
156
184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6752
SELECT col0 - + + CAST( NULL AS SIGNED ), col0 * 47 + + + 31 AS col0 FROM tab2 AS cor0
----
NULL
2193
NULL
3039
NULL
3556

skipif mysql # not compatible
query II rowsort label-6752
SELECT col0 - + + CAST ( NULL AS INTEGER ), col0 * 47 + + + 31 AS col0 FROM tab2 AS cor0
----
NULL
2193
NULL
3039
NULL
3556

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

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

query II rowsort
SELECT - 86 * + col2 - - col0 AS col0, + col2 * col0 * 18 AS col0 FROM tab2
----
-1932
19044
-3376
46080
-4913
78300

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT col0 DIV - 5 FROM tab1
----
-10
-17
-18

skipif mysql # not compatible
query I rowsort label-6755
SELECT col0 / - 5 FROM tab1
----
-10
-17
-18

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

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + ( - 50 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6758
SELECT DISTINCT - ( CAST( + ( + + col0 ) AS SIGNED ) ) AS col1, + 93 * 66 FROM tab2
----
-46
6138
-64
6138
-75
6138

skipif mysql # not compatible
query II rowsort label-6758
SELECT DISTINCT - ( CAST ( + ( + + col0 ) AS INTEGER ) ) AS col1, + 93 * 66 FROM tab2
----
-46
6138
-64
6138
-75
6138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, 22 - 20 AS col1 FROM tab1 AS cor0 WHERE NOT col0 / - col1 IS NULL
----
51
2
85
2
91
2

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

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

query I rowsort
SELECT DISTINCT + 99 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-6763
SELECT SUM ( DISTINCT - 82 ) FROM tab1 AS cor0
----
-82

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT + - CAST( NULL AS SIGNED ) 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-6765
SELECT + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 8 ) + + 57 FROM tab2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6767
SELECT 59 + SUM( + 26 ) + + MAX( ALL - col0 ) DIV + ( ( - 2 ) ) AS col0 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-6767
SELECT 59 + SUM ( + 26 ) + + MAX ( ALL - col0 ) / + ( ( - 2 ) ) AS col0 FROM tab1
----
162

query I rowsort
SELECT ALL col0 * - col0 + + - col0 AS col2 FROM tab1
----
-2652
-7310
-8372

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6770
SELECT + CAST( 40 AS SIGNED ) DIV + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6770
SELECT + CAST ( 40 AS INTEGER ) / + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE + 85 < - 48 - + 45 - + ( - col0 )
----

query I rowsort
SELECT ALL col2 + + + 10 * col1 FROM tab0
----
109
220
857

query I rowsort
SELECT DISTINCT col0 + + col2 - 66 AS col0 FROM tab2
----
3
38
67

query I rowsort
SELECT 57 + - + 22 AS col2 FROM tab2 AS cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + - col1 + col1 col0 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT ALL - col0 * + - col0 - + 82 FROM tab2 cor0
----
2034
4014
5543

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

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

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

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

query I rowsort
SELECT 8 + + - 18 FROM tab1 cor0
----
-10
-10
-10

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

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

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

skipif mysql # not compatible
query I rowsort label-6783
SELECT SUM ( col0 ) AS col1 FROM tab1
----
227

onlyif mysql # DIV for integer division: 
query II rowsort label-6784
SELECT 99 DIV + + col0, - col1 AS col2 FROM tab2
----
1
-67
1
-77
2
-51

skipif mysql # not compatible
query II rowsort label-6784
SELECT 99 / + + col0, - col1 AS col2 FROM tab2
----
1
-67
1
-77
2
-51

query III rowsort
SELECT ALL * FROM tab2 WHERE + 89 + + col1 * + + col1 < + + 11 - + col0 + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6786
SELECT DISTINCT - col0 DIV + - col0, col2 AS col0 FROM tab2
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-6786
SELECT DISTINCT - col0 / + - col0, col2 AS col0 FROM tab2
----
1
23
1
40
1
58

query I rowsort
SELECT ALL + - col2 * + 95 AS col1 FROM tab2 AS cor0
----
-2185
-3800
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT DISTINCT ( + MAX( DISTINCT - 82 ) ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT ( + MAX ( DISTINCT - 82 ) ) FROM tab1 AS cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6789
SELECT CAST( - 88 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + 40 + - + col0 + + 40 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-6789
SELECT CAST ( - 88 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 40 + - + col0 + + 40 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-88
-88
-88

query I rowsort
SELECT + col1 + + col2 FROM tab0 WHERE NOT col2 * + col1 * col1 > NULL
----

query II rowsort
SELECT - col1, 84 AS col1 FROM tab0
----
-1
84
-21
84
-81
84

query I rowsort
SELECT - + 39 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT DISTINCT SUM( DISTINCT - + 15 ) AS col0 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT SUM ( DISTINCT - + 15 ) AS col0 FROM tab2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6794
SELECT - + CAST( COUNT( * ) AS SIGNED ) - - 22 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-6794
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) - - 22 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
13

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 ) NOT IN ( - - 36 * + - 46 * ( + + ( - ( + 95 ) ) ) + - col0 + + 81 - + col0 + - 74, + col1 * - col0 - - col0, + col0 + + 18, ( + col0 ) * col0, col1, - 41 * + + ( col0 ) )
----

query I rowsort
SELECT DISTINCT - + ( - 9 ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT - + 31 * - col2 + - + 76 + - 10 AS col0 FROM tab1 AS cor0
----
1743
2022
2890

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT DISTINCT + SUM( DISTINCT 92 ) + - 4 AS col2 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT + SUM ( DISTINCT 92 ) + - 4 AS col2 FROM tab1
----
88

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL SUM( - 67 ) AS col1 FROM tab2 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL SUM ( - 67 ) AS col1 FROM tab2 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT DISTINCT 33 - - col0 FROM tab2
----
108
79
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * 38 col2, + ( + col1 ) FROM tab1 WHERE NULL NOT BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 12 FROM tab2 cor0
----
58
76
87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 94 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6810
SELECT 10 * + - MIN( ALL + - CAST( 9 AS SIGNED ) ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT 10 * + - MIN ( ALL + - CAST ( 9 AS INTEGER ) ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 6 / 32 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT - + 46 AS col0 FROM tab1 cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT - COUNT( * ) * 11 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6813
SELECT - COUNT ( * ) * 11 FROM tab2 AS cor0
----
-33

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6815
SELECT COUNT( * ) AS col0, + 99 * - MIN( col2 ) * + - 93 AS col2 FROM tab1 AS cor0
----
3
543213

skipif mysql # not compatible
query II rowsort label-6815
SELECT COUNT ( * ) AS col0, + 99 * - MIN ( col2 ) * + - 93 AS col2 FROM tab1 AS cor0
----
3
543213

onlyif mysql # DIV for integer division: 
query II rowsort label-6816
SELECT + 53 DIV 20 AS col1, - 62 FROM tab0
----
2
-62
2
-62
2
-62

skipif mysql # not compatible
query II rowsort label-6816
SELECT + 53 / 20 AS col1, - 62 FROM tab0
----
2
-62
2
-62
2
-62

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT - - 32 IS NULL
----
14
47
5

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

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

query I rowsort
SELECT DISTINCT 39 * + ( - col0 ) AS col0 FROM tab2
----
-1794
-2496
-2925

onlyif mysql # DIV for integer division: 
query II rowsort label-6821
SELECT DISTINCT col1 AS col1, + 94 DIV - ( - 25 ) col2 FROM tab0
----
1
3
21
3
81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6821
SELECT DISTINCT col1 AS col1, + 94 / - ( - 25 ) col2 FROM tab0
----
1
3
21
3
81
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 56, col1 + - + 93 col0 FROM tab0
----
56
-12
56
-72
56
-92

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

query I rowsort
SELECT - 11 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6828
SELECT * FROM tab0 AS cor0 WHERE - CAST( ( + ( - + ( 13 ) ) ) AS SIGNED ) >= + 65 + col0
----

skipif mysql # not compatible
query III rowsort label-6828
SELECT * FROM tab0 AS cor0 WHERE - CAST ( ( + ( - + ( 13 ) ) ) AS INTEGER ) >= + 65 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT - - MIN( + 81 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6829
SELECT - - MIN ( + 81 ) AS col2 FROM tab0 AS cor0
----
81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6831
SELECT + ( + - col1 ) + + col2 + - col0 DIV + - col2 FROM tab2 AS cor0
----
-26
-36
-8

skipif mysql # not compatible
query I rowsort label-6831
SELECT + ( + - col1 ) + + col2 + - col0 / + - col2 FROM tab2 AS cor0
----
-26
-36
-8

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6834
SELECT ALL CAST( NULL AS SIGNED ) + - col1 + - + 57 * - + CAST( NULL AS SIGNED ) AS col2, col2 DIV - col2 AS col2 FROM tab1
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-6834
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 + - + 57 * - + CAST ( NULL AS INTEGER ) AS col2, col2 / - col2 AS col2 FROM tab1
----
NULL
-1
NULL
-1
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL COUNT( * ) + 26 AS col0 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL COUNT ( * ) + 26 AS col0 FROM tab0
----
29

query I rowsort
SELECT + 34 - - col0 FROM tab2 AS cor0 WHERE - col1 * - 37 IS NOT NULL
----
109
80
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT ALL - COUNT( DISTINCT + + 10 ) AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - COUNT ( DISTINCT + + 10 ) AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-1

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 32 + - - 57 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + 39 FROM tab1 AS cor0
----
1833
195
546

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6841
SELECT DISTINCT + col1 * + - col0 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT + col1 * + - col0 + - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 52 - - 4 < NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6846
SELECT COUNT ( DISTINCT CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0
----
3

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

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

query I rowsort
SELECT DISTINCT col2 * + 56 FROM tab1
----
3304
3808
5376

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND - col1
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT + 36 DIV 54 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6850
SELECT + 36 / 54 AS col0 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-6851
SELECT - 2 / + col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6852
SELECT - 88 DIV col2 + ( - col0 ) FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-6852
SELECT - 88 / col2 + ( - col0 ) FROM tab2 AS cor0
----
-49
-66
-76

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6854
SELECT DISTINCT + 28 * - SUM( DISTINCT + - col0 ) col1, 40 FROM tab1 AS cor0
----
6356
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6854
SELECT DISTINCT + 28 * - SUM ( DISTINCT + - col0 ) col1, 40 FROM tab1 AS cor0
----
6356
40

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

query II rowsort
SELECT ALL col2, - col2 * - 88 FROM tab2 AS cor0
----
23
2024
40
3520
58
5104

query II rowsort
SELECT + 28 AS col0, col0 * col2 * + 66 AS col2 FROM tab2 AS cor0
----
28
168960
28
287100
28
69828

query I rowsort
SELECT DISTINCT + 24 * ( + ( - col0 ) ) AS col1 FROM tab2
----
-1104
-1536
-1800

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT DISTINCT 10 DIV - col0 * - col1 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT 10 / - col0 * - col1 AS col2 FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 73, + col1 )
----

query I rowsort
SELECT DISTINCT - + 0 FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN + - col1 * + col0 + + col1 AND col2 + + 26
----
0

query I rowsort
SELECT DISTINCT 94 + + + 24 FROM tab0
----
118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT + - 76 + + 95 + + + COUNT( * ) + + - SUM( + 30 ) AS col2 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-6865
SELECT + - 76 + + 95 + + + COUNT ( * ) + + - SUM ( + 30 ) AS col2 FROM tab1 AS cor0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT 17 DIV - col1 AS col2 FROM tab0
----
-17
0
0

skipif mysql # not compatible
query I rowsort label-6866
SELECT 17 / - col1 AS col2 FROM tab0
----
-17
0
0

query II rowsort
SELECT DISTINCT - 38 AS col0, col1 FROM tab2
----
-38
51
-38
67
-38
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 >= col2
----

query I rowsort
SELECT - - col2 FROM tab1 AS cor0 WHERE NOT col2 <= + col0 + - + col2
----
59
68
96

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

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

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

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

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

query I rowsort
SELECT ALL + + 25 AS col0 FROM tab1 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT + 1 * + - ( 33 ) FROM tab2 cor0
----
-33
-33
-33

query I rowsort
SELECT col2 * - ( 1 ) AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT + + ( 78 ) NOT IN ( + 80 - - ( ( + col1 ) ), col1 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6880
SELECT col1 col2 FROM tab0 AS cor0 WHERE NOT - CAST ( + ( + + col0 ) AS INTEGER ) NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT col2 + + 33 - - - col1 FROM tab1 AS cor0
----
115
54
87

query I rowsort
SELECT ALL + + 35 * + col0 FROM tab1 AS cor0
----
1785
2975
3185

query I rowsort
SELECT DISTINCT col1 * col0 * col0 AS col1 FROM tab0 AS cor0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT + ( col0 ) * col1 + + col1 * + 55 FROM tab1 AS cor0
----
1484
6862
700

query I rowsort
SELECT ALL - 24 + + 67 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT - 90 + col0 FROM tab2
----
-15
-26
-44

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

skipif mysql # not compatible
query I rowsort label-6887
SELECT - 2 / - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col2 * 68 AS col1 FROM tab0 AS cor0
----
3196
6732
680

query I rowsort
SELECT ALL + col1 * - 24 * col2 FROM tab1 AS cor0
----
-32256
-7080
-76704

query I rowsort
SELECT col1 + 49 + col1 * + col1 FROM tab2 cor0
----
2701
4605
6055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6891
SELECT ( SUM( + col0 ) ) + + CAST( - 99 AS SIGNED ) * + COUNT( * ) * + 38 FROM tab0 AS cor0
----
-11087

skipif mysql # not compatible
query I rowsort label-6891
SELECT ( SUM ( + col0 ) ) + + CAST ( - 99 AS INTEGER ) * + COUNT ( * ) * + 38 FROM tab0 AS cor0
----
-11087

query I rowsort
SELECT ALL + 87 * + 2 FROM tab1 AS cor0
----
174
174
174

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT - 96 + COUNT( * ) - - - 29 AS col0 FROM tab2 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-6893
SELECT - 96 + COUNT ( * ) - - - 29 AS col0 FROM tab2 AS cor0
----
-122

query I rowsort
SELECT - - col2 + 82 FROM tab1 AS cor0
----
141
150
178

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT ALL - COUNT( * ) * + 40 AS col0 FROM tab0 cor0
----
-120

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL - COUNT ( * ) * + 40 AS col0 FROM tab0 cor0
----
-120

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT - MAX( ALL + 42 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-6898
SELECT - MAX ( ALL + 42 ) FROM tab2
----
-42

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

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT 31 / - COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
-7

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE - col1 IS NOT NULL
----
-14
-47
-5

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

query I rowsort
SELECT DISTINCT + - col1 * - 30 - + col0 AS col2 FROM tab2 cor0
----
1484
1935
2246

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 + - ( - ( + - 30 ) ) / - col0 * + - col2 - - col2 * - col1 + 16 + + ( col2 ) * col2 * - col2 * + + 55 + + col1 * + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6904
SELECT - col2 * - col2 AS col0, CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
1600
64
3364
75
529
46

skipif mysql # not compatible
query II rowsort label-6904
SELECT - col2 * - col2 AS col0, CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
1600
64
3364
75
529
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6905
SELECT ( - + col0 ) AS col2, + col2 * + 42 * + CAST( NULL AS SIGNED ) * - CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-6905
SELECT ( - + col0 ) AS col2, + col2 * + 42 * + CAST ( NULL AS INTEGER ) * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6907
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 BETWEEN + col1 AND + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6907
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 BETWEEN + col1 AND + CAST ( - col2 AS INTEGER )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT ALL - MAX( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL - MAX ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-58

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

query I rowsort
SELECT DISTINCT + col0 * 37 FROM tab0
----
3219
3589
555

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT MAX( ALL - - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6914
SELECT MAX ( ALL - - col0 ) FROM tab0
----
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 39 + 48 IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT ALL COUNT( * ) + SUM( DISTINCT - col2 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL COUNT ( * ) + SUM ( DISTINCT - col2 ) FROM tab2
----
-118

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

query I rowsort
SELECT + col2 * + 42 AS col0 FROM tab1
----
2478
2856
4032

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 - 4 * + col1 NOT IN ( - col2 + - ( 89 ) * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT + COUNT( * ) + + 86 * - COUNT( * ) AS col2 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-6923
SELECT + COUNT ( * ) + + 86 * - COUNT ( * ) AS col2 FROM tab2
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT SUM( ALL - 71 ) * + 43 AS col0 FROM tab2
----
-9159

skipif mysql # not compatible
query I rowsort label-6924
SELECT SUM ( ALL - 71 ) * + 43 AS col0 FROM tab2
----
-9159

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT ( - col0 ) + col1 DIV - col1 AS col1 FROM tab2
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-6927
SELECT ( - col0 ) + col1 / - col1 AS col1 FROM tab2
----
-47
-65
-76

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 / col1 - + 52 BETWEEN col1 - col2 / + col1 AND + 1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6930
SELECT ALL 99 + + 1 DIV - col0 AS col0 FROM tab1
----
99
99
99

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL 99 + + 1 / - col0 AS col0 FROM tab1
----
99
99
99

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

query I rowsort
SELECT col0 * 56 AS col0 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT 35 + - col2 * - ( 68 ) AS col0 FROM tab2
----
1599
2755
3979

onlyif mysql # DIV for integer division: 
query I rowsort label-6934
SELECT ALL 55 DIV col2 + - 9 FROM tab0
----
-4
-8
-9

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL 55 / col2 + - 9 FROM tab0
----
-4
-8
-9

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6936
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( * ) col0 FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT - COUNT( col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6938
SELECT - COUNT ( col2 ) FROM tab2
----
-3

query I rowsort
SELECT + col0 + + 68 FROM tab2
----
114
132
143

query I rowsort
SELECT DISTINCT col2 * - 81 AS col2 FROM tab0
----
-3807
-8019
-810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6941
SELECT + MIN( DISTINCT 28 ) DIV COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6941
SELECT + MIN ( DISTINCT 28 ) / COUNT ( * ) FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT 76 DIV + 93 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6942
SELECT 76 / + 93 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6943
SELECT DISTINCT 37 DIV - col2 AS col1 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT 37 / - col2 AS col1 FROM tab0
----
-3
0

query III rowsort
SELECT * FROM tab0 WHERE + 63 > ( NULL )
----

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

query I rowsort
SELECT 38 * 22 AS col1 FROM tab2
----
836
836
836

query I rowsort
SELECT - col2 * 63 AS col0 FROM tab1
----
-3717
-4284
-6048

onlyif mysql # DIV for integer division: 
query I rowsort label-6948
SELECT DISTINCT - 25 DIV 21 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT - 25 / 21 FROM tab2 AS cor0
----
-1

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

query I rowsort
SELECT DISTINCT 87 * - 87 AS col1 FROM tab1 AS cor0
----
-7569

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

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

query I rowsort
SELECT ALL 95 * 59 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 030efc5325206f8865ee138bb1a54031

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + - col1 / col2 <> + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6954
SELECT - 1 DIV - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6954
SELECT - 1 / - col2 FROM tab2
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6956
SELECT col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 73 + col2 AND + CAST( 14 AS SIGNED ) * + 78 - + 71
----

skipif mysql # not compatible
query I rowsort label-6956
SELECT col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 73 + col2 AND + CAST ( 14 AS INTEGER ) * + 78 - + 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT ALL + 96 DIV col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL + 96 / col0 FROM tab0
----
0
1
6

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 94 NOT IN ( 26 + + 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT DISTINCT - + 68 * - COUNT( * ) FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT - + 68 * - COUNT ( * ) FROM tab0 AS cor0
----
204

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

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

query I rowsort
SELECT + ( col1 ) * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-1344
-295
-3196

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

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

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

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 cor0 WHERE + col2 NOT BETWEEN NULL AND ( 43 )
----
1
81

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + 52 - col0 ) BETWEEN - col1 AND - col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT + + 53 * SUM( - col2 ) FROM tab0 AS cor0
----
-8268

skipif mysql # not compatible
query I rowsort label-6968
SELECT + + 53 * SUM ( - col2 ) FROM tab0 AS cor0
----
-8268

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT ALL - col0 + - col1 - + col1 DIV col0 FROM tab1
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL - col0 + - col1 - + col1 / col0 FROM tab1
----
-138
-65
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT - col0 DIV - + col0 col0 FROM tab0
----
1
1
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6971
SELECT DISTINCT - ( COUNT( ALL - 44 ) ) DIV + 32 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT - ( COUNT ( ALL - 44 ) ) / + 32 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT AVG ( + 91 ) / COUNT( * ) AS col1 FROM tab2 WHERE NOT col2 * - CAST( NULL AS SIGNED ) + col0 * 82 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT AVG ( + 91 ) / COUNT ( * ) AS col1 FROM tab2 WHERE NOT col2 * - CAST ( NULL AS INTEGER ) + col0 * 82 <> NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( col2 ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - col0 )
----

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

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT - 24 + - COUNT ( * ) + COUNT ( * ) FROM tab0
----
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL COUNT( * ) FROM tab2 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL COUNT ( * ) FROM tab2 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT - col2 + - - col0 * 32 AS col2 FROM tab0
----
2774
3005
433

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 >= ( 78 )
----
85
5
59
91
47
68

query I rowsort
SELECT + col1 + - 22 FROM tab2 AS cor0
----
29
45
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL + + 40 + COUNT( * ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL + + 40 + COUNT ( * ) FROM tab1 AS cor0
----
43

query I rowsort
SELECT - - 71 AS col2 FROM tab1 AS cor0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT DISTINCT + CAST( - col0 AS SIGNED ) + 36 FROM tab0 AS cor0
----
-51
-61
21

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) + 36 FROM tab0 AS cor0
----
-51
-61
21

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NULL BETWEEN + - 5 AND + 51
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE - + col1 >= - ( - col1 )
----

query I rowsort
SELECT ALL 78 + + 55 + + - col1 + ( col1 ) * col0 AS col0 FROM tab0
----
1267
1939
229

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE ( + + col0 * + 43 ) IS NULL
----

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

query I rowsort
SELECT ALL - 55 * col2 FROM tab2 AS cor0 WHERE col0 IN ( + - 31 )
----

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

query I rowsort
SELECT + - 11 * - col1 + + col1 AS col1 FROM tab1 AS cor0
----
168
564
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6993
SELECT + CAST( + col2 AS SIGNED ) + - col2 - - col0 * - col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-6993
SELECT + CAST ( + col2 AS INTEGER ) + - col2 - - col0 * - col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT MIN( col0 ) - 89 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-74

skipif mysql # not compatible
query I rowsort label-6994
SELECT MIN ( col0 ) - 89 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-74

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col2, - col1 AS col2 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT ALL SUM( ALL + 30 ) AS col2 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL SUM ( ALL + 30 ) AS col2 FROM tab2 AS cor0
----
90

query I rowsort
SELECT 60 AS col2 FROM tab2 WHERE ( NULL ) <= ( col2 * - 54 * col1 )
----

query I rowsort
SELECT 23 * - col0 FROM tab1
----
-1173
-1955
-2093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7000
SELECT - CAST( SUM( 41 ) AS SIGNED ) * - 64 FROM tab2 WHERE + col0 NOT BETWEEN - + 88 / + col0 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT - CAST ( SUM ( 41 ) AS INTEGER ) * - 64 FROM tab2 WHERE + col0 NOT BETWEEN - + 88 / + col0 AND ( NULL )
----
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE ( + + col0 ) >= ( - 66 + + 28 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + + col0 col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT col1 + 90 FROM tab2 WHERE NOT ( 52 + + + 94 ) BETWEEN + col0 AND 42 + + ( - col0 )
----
141
157
167

query I rowsort
SELECT col1 + - ( + col1 ) AS col0 FROM tab2 WHERE NOT - 15 + 50 IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7006
SELECT col1 DIV col2 * - + col2 * col1 * col0 AS col2 FROM tab2
----
-107916
-197120
-291450

skipif mysql # not compatible
query I rowsort label-7006
SELECT col1 / col2 * - + col2 * col1 * col0 AS col2 FROM tab2
----
-107916
-197120
-291450

query I rowsort
SELECT - 0 AS col1 FROM tab1 AS cor0 WHERE NOT + 22 NOT IN ( + col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7010
SELECT DISTINCT + CAST( 45 AS SIGNED ), col2 * col2 AS col0 FROM tab2 AS cor0
----
45
1600
45
3364
45
529

skipif mysql # not compatible
query II rowsort label-7010
SELECT DISTINCT + CAST ( 45 AS INTEGER ), col2 * col2 AS col0 FROM tab2 AS cor0
----
45
1600
45
3364
45
529

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

query I rowsort
SELECT DISTINCT + 20 * 39 AS col0 FROM tab0 AS cor0
----
780

query I rowsort
SELECT DISTINCT 93 * - + 96 FROM tab0 AS cor0
----
-8928

query I rowsort
SELECT ALL 11 * + ( ( col2 ) ) AS col0 FROM tab2
----
253
440
638

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT DISTINCT - 62 * + COUNT( ALL 87 ) AS col2 FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT - 62 * + COUNT ( ALL 87 ) AS col2 FROM tab1
----
-186

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

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

query I rowsort
SELECT col0 * 3 AS col2 FROM tab2
----
138
192
225

query I rowsort
SELECT - col1 + 49 FROM tab0 AS cor0
----
-32
28
48

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 + - 90 FROM tab0 AS cor0 WHERE ( - 42 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col2 / - + 68 )
----

query II rowsort
SELECT DISTINCT + + 19 AS col1, + ( - + ( - - 94 ) ) * - - 72 * col2 - + col1 FROM tab0 cor0
----
19
-318177
19
-670033
19
-67701

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT DISTINCT - + 68 * + 98 * + - COUNT( DISTINCT - ( + 12 ) ) AS col2 FROM tab1 AS cor0
----
6664

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT - + 68 * + 98 * + - COUNT ( DISTINCT - ( + 12 ) ) AS col2 FROM tab1 AS cor0
----
6664

query I rowsort
SELECT ALL 33 - 36 FROM tab0 WHERE ( ( - col1 ) NOT BETWEEN NULL AND col2 + 89 * - col0 )
----
-3
-3
-3

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

query I rowsort
SELECT + 82 * + col2 AS col1 FROM tab2
----
1886
3280
4756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7026
SELECT - COUNT( * ) DIV - SUM( col2 ) * - CAST( 6 AS SIGNED ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7026
SELECT - COUNT ( * ) / - SUM ( col2 ) * - CAST ( 6 AS INTEGER ) AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col2 + + col1 col1 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT DISTINCT - - 94 AS col1 FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT ALL - ( - MIN( ALL + col1 ) ) + COUNT( * ) * 31 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL - ( - MIN ( ALL + col1 ) ) + COUNT ( * ) * 31 FROM tab0 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT COUNT( * ) + - 73 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-7030
SELECT COUNT ( * ) + - 73 FROM tab1 AS cor0
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + 35 col0 FROM tab1 cor0
----
-24
-33
-61

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

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

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

query I rowsort
SELECT ALL + col2 * - 16 + - col1 FROM tab0
----
-1585
-181
-833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7035
SELECT - CAST( NULL AS SIGNED ) + col2 + 55 + + - 60 + - 93 - + 43 + - + col2 * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7035
SELECT - CAST ( NULL AS INTEGER ) + col2 + 55 + + - 60 + - 93 - + 43 + - + col2 * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 + - col2 AS col0, + col2 FROM tab2
----
17
58
23
23
24
40

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

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

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

query I rowsort
SELECT DISTINCT + + 40 AS col0 FROM tab2 AS cor0
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7040
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN + 24 * - CAST( NULL AS DECIMAL ) AND + col0 / - col1 )
----

skipif mysql # not compatible
query III rowsort label-7040
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN + 24 * - CAST ( NULL AS REAL ) AND + col0 / - col1 )
----

query I rowsort
SELECT - 98 AS col1 FROM tab0 cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7042
SELECT - 16 DIV - COUNT( * ) AS col1, + 42 AS col2 FROM tab1 AS cor0
----
5
42

skipif mysql # not compatible
query II rowsort label-7042
SELECT - 16 / - COUNT ( * ) AS col1, + 42 AS col2 FROM tab1 AS cor0
----
5
42

query I rowsort
SELECT col1 - ( - 97 ) FROM tab1 AS cor0
----
102
111
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7044
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) FROM tab2 WHERE NOT + 25 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) FROM tab2 WHERE NOT + 25 IS NULL
----
-1

query I rowsort
SELECT DISTINCT 9 * - col2 FROM tab1
----
-531
-612
-864

query II rowsort
SELECT ALL - col1 AS col0, - 89 * - - col1 FROM tab2
----
-51
-4539
-67
-5963
-77
-6853

query I rowsort
SELECT + col0 * - col0 + col2 * + 17 - - - col2 AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
-1748
-3456
-4697

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 51 / + 82 + - 64 - + ( + 34 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT 45 * 17 - - COUNT( ALL - 81 ) FROM tab0 WHERE NOT ( + col0 ) / - 6 + col0 IS NULL
----
768

skipif mysql # not compatible
query I rowsort label-7049
SELECT 45 * 17 - - COUNT ( ALL - 81 ) FROM tab0 WHERE NOT ( + col0 ) / - 6 + col0 IS NULL
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT + MIN( - - col1 ) * 37 AS col0 FROM tab1
----
185

skipif mysql # not compatible
query I rowsort label-7050
SELECT + MIN ( - - col1 ) * 37 AS col0 FROM tab1
----
185

query I rowsort
SELECT ALL + + col1 + ( col1 ) FROM tab2 WHERE 53 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7053
SELECT DISTINCT COUNT( * ) col0, ( - 92 ) AS col0 FROM tab1
----
3
-92

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

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE ( - col2 * col0 ) <> + col2
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + 46, + 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT DISTINCT + SUM( ALL 73 ) AS col2 FROM tab0 cor0
----
219

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT + SUM ( ALL 73 ) AS col2 FROM tab0 cor0
----
219

query I rowsort
SELECT ALL + + 70 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 * + 73, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL COUNT( * ) * 91 AS col2 FROM tab2 cor0
----
273

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL COUNT ( * ) * 91 AS col2 FROM tab2 cor0
----
273

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

query I rowsort
SELECT DISTINCT + 51 * - - 16 * + 61 AS col2 FROM tab2
----
49776

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT DISTINCT - 86 * COUNT( * ) * + 89 AS col0 FROM tab2
----
-22962

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT - 86 * COUNT ( * ) * + 89 AS col0 FROM tab2
----
-22962

query I rowsort
SELECT col0 * 24 * - col1 FROM tab1 AS cor0
----
-10200
-102648
-17136

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

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

query I rowsort
SELECT DISTINCT - 56 AS col2 FROM tab2 cor0
----
-56

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7067
SELECT DISTINCT 92 * + + 70 * + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT 92 * + + 70 * + - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 98 * + - col0 + - col0 AS col2 FROM tab2 AS cor0
----
4462
6208
7275

query I rowsort
SELECT + 60 + 97 - - col1 FROM tab0
----
158
178
238

query I rowsort
SELECT DISTINCT - 97 + + 96 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL - COUNT( * ) + - 9 col1 FROM tab0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7071
SELECT ALL - COUNT ( * ) + - 9 col1 FROM tab0
----
-12

query I rowsort
SELECT DISTINCT + col0 + - 39 * + 15 * 54 FROM tab2
----
-31515
-31526
-31544

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 BETWEEN + + col0 AND - ( + col2 ) * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 29 + col2 AS col1 FROM tab0
----
128
39
76

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

query I rowsort
SELECT ALL ( + col1 ) + + col0 AS col2 FROM tab1
----
138
65
90

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

query I rowsort
SELECT col2 + + col1 + - col1 * - col2 * 88 FROM tab0
----
18511
335144
8812

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - + 40 IN ( - col0, + col0 ) )
----

query I rowsort
SELECT ALL + - ( - col2 ) * + 43 * 22 FROM tab2 AS cor0
----
21758
37840
54868

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

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

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

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

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

query I rowsort
SELECT DISTINCT 18 - + - col0 FROM tab2
----
64
82
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT - COUNT( * ) + - + 82 - 20 * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 75 BETWEEN col0 AND + col2
----
-44

skipif mysql # not compatible
query I rowsort label-7086
SELECT - COUNT ( * ) + - + 82 - 20 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 75 BETWEEN col0 AND + col2
----
-44

query II rowsort
SELECT - col1 AS col1, - 74 AS col1 FROM tab0 AS cor0
----
-1
-74
-21
-74
-81
-74

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

query II rowsort
SELECT ALL + 20 AS col2, 13 AS col0 FROM tab2 AS cor0
----
20
13
20
13
20
13

query II rowsort
SELECT DISTINCT - 55, + 37 AS col1 FROM tab1 cor0
----
-55
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT DISTINCT - 70 * + COUNT( * ) * - + COUNT( * ) + 36 AS col1 FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND + + col0
----
36

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT - 70 * + COUNT ( * ) * - + COUNT ( * ) + 36 AS col1 FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND + + col0
----
36

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + ( + - col2 ) + 60 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT DISTINCT 6 * SUM( + col1 ) FROM tab0
----
618

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT 6 * SUM ( + col1 ) FROM tab0
----
618

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7095
SELECT * FROM tab0 WHERE NOT - + col1 / - 70 + + CAST( - 94 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7095
SELECT * FROM tab0 WHERE NOT - + col1 / - 70 + + CAST ( - 94 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + 13 ) * col2 FROM tab2
----
299
520
754

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7098
SELECT + ( 95 ) col0, 73 * - COUNT( * ) AS col1 FROM tab0
----
95
-219

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

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

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 AS cor0 WHERE col2 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT + 38 * ( + COUNT( * ) ) * + 37 FROM tab1
----
4218

skipif mysql # not compatible
query I rowsort label-7103
SELECT + 38 * ( + COUNT ( * ) ) * + 37 FROM tab1
----
4218

onlyif mysql # DIV for integer division: 
query I rowsort label-7104
SELECT col2 * ( - + 40 ) + - - col0 + - + 86 DIV + ( - col0 ) + + col1 AS col2 FROM tab0
----
-1779
-292
-3862

skipif mysql # not compatible
query I rowsort label-7104
SELECT col2 * ( - + 40 ) + - - col0 + - + 86 / + ( - col0 ) + + col1 AS col2 FROM tab0
----
-1779
-292
-3862

query I rowsort
SELECT DISTINCT col2 * + 62 * + - col1 AS col1 FROM tab1
----
-18290
-198152
-83328

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT - COUNT( * ) + - 17 AS col0 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7108
SELECT - COUNT ( * ) + - 17 AS col0 FROM tab0 AS cor0
----
-20

query II rowsort
SELECT ALL + col2, - 35 * - 55 * col0 AS col1 FROM tab0 AS cor0
----
10
167475
47
28875
99
186725

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7111
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col0 * + CAST( NULL AS SIGNED ) * + - 89 + 94 + ( - col1 ) + - ( + col1 ) + - 51 + - col1 - + 93 * - + 13 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7111
SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 * + CAST ( NULL AS INTEGER ) * + - 89 + 94 + ( - col1 ) + - ( + col1 ) + - 51 + - col1 - + 93 * - + 13 col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT DISTINCT - ( + MIN( + + 63 ) ) + ( 6 ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT - ( + MIN ( + + 63 ) ) + ( 6 ) FROM tab1
----
-57

query I rowsort
SELECT DISTINCT - 62 + + - 65 + + - col0 * col0 AS col2 FROM tab1
----
-2728
-7352
-8408

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT ALL - COUNT( * ) + + COUNT( * ) * + - 98 AS col1 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL - COUNT ( * ) + + COUNT ( * ) * + - 98 AS col1 FROM tab0
----
-297

query II rowsort
SELECT DISTINCT - 80 * + col1 AS col2, col2 * + col1 FROM tab2
----
-4080
1173
-5360
3886
-6160
3080

query I rowsort
SELECT ALL - col2 + + - col2 - - col2 AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ( - 81 ) - - col0 * + col0 AS col2 FROM tab1
----
2520
7144
8200

query I rowsort
SELECT DISTINCT + - 7 - - 50 + - col0 FROM tab0 cor0
----
-44
-54
28

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

query I rowsort
SELECT - col2 + - col1 + col2 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT 23 * - 79 FROM tab2
----
-1817
-1817
-1817

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT + + COUNT( * ) FROM tab2 WHERE NOT NULL = + 21 * - 63
----
0

skipif mysql # not compatible
query I rowsort label-7122
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT NULL = + 21 * - 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL - MIN( col0 ) FROM tab1 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - MIN ( col0 ) FROM tab1 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 * - col2 AS col2 FROM tab2 AS cor0
----
123200
225388
26979

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN col1 AND + 62 + + 64 + ( 36 ) + + 10
----
15
87
97

query I rowsort
SELECT ALL col0 * 15 AS col1 FROM tab2 AS cor0
----
1125
690
960

onlyif mysql # DIV for integer division: 
query I rowsort label-7127
SELECT ALL + 76 DIV - 40 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + 76 / - 40 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + + col1 * 3 FROM tab2 AS cor0
----
153
201
231

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

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL - col0 / + + 45 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 6 AS col0 FROM tab0 cor0
----
6
6
6

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7132
SELECT - - 74, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
74
-3

skipif mysql # not compatible
query II rowsort label-7132
SELECT - - 74, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
74
-3

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

query I rowsort
SELECT - 14 * 75 FROM tab2
----
-1050
-1050
-1050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 3 col2, col2 * + col0 * col2 AS col2 FROM tab1
----
3
295885
3
420784
3
470016

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

skipif mysql # not compatible
query I rowsort label-7136
SELECT COUNT ( * ) * + - ( - + 84 ) FROM tab0
----
252

query I rowsort
SELECT 26 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + col2 * col2 * - 88 AS col0 FROM tab0
----
-194392
-862488
-8800

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 41 <= + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT + - 69 >= - 71
----
0

skipif mysql # not compatible
query I rowsort label-7140
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + - 69 >= - 71
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7142
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + + col2 + + + col0 AND - + 54 / - - 2 - - CAST( NULL AS SIGNED ) + - col0
----

skipif mysql # not compatible
query III rowsort label-7142
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + + col2 + + + col0 AND - + 54 / - - 2 - - CAST ( NULL AS INTEGER ) + - col0
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT 55 >= - col0
----

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

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

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

query I rowsort
SELECT 38 FROM tab2 cor0 WHERE NOT - col1 NOT BETWEEN NULL AND - 56
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * + - 42 col1 FROM tab0
----
3402
42
882

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

query II rowsort
SELECT DISTINCT - + ( + col1 ) AS col2, col1 FROM tab1 AS cor0 WHERE NOT - 38 * col1 IS NOT NULL
----

query I rowsort
SELECT - + 13 + col1 FROM tab0 AS cor0
----
-12
68
8

query I rowsort
SELECT - + 47 FROM tab0 AS cor0 WHERE + 98 IS NOT NULL
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT + 57 + - - MAX( - col2 ) AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7154
SELECT + 57 + - - MAX ( - col2 ) AS col0 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT DISTINCT + 83 * + col2 * col0 AS col1 FROM tab0 AS cor0
----
58515
72210
797049

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

query I rowsort
SELECT ALL - col1 + - - 28 FROM tab0
----
-53
27
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT DISTINCT COUNT( * ) + + 21 AS col1 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT COUNT ( * ) + + 21 AS col1 FROM tab1
----
24

query III rowsort
SELECT * FROM tab2 WHERE 99 + - 93 = - col2
----

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

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

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

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

query I rowsort
SELECT 82 FROM tab2 AS cor0 WHERE NULL IS NULL
----
82
82
82

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT IN ( col0, col0 + + 55, + 68 * col2 )
----

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + 79 + col2 NOT BETWEEN NULL AND 25 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT DISTINCT - - 79 DIV ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT - - 79 / ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-7
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7167
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
14
47
5

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

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

query I rowsort
SELECT ALL - 24 + + + col1 + - 86 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-109
-29
-89

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col0 col1 FROM tab0
----
225
7569
9409

query I rowsort
SELECT 89 * - + 69 * - col0 FROM tab0
----
534267
595677
92115

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT - + col0 >= + col2 - + 6
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 25 * - + col0 FROM tab1
----
-1275
-2125
-2275

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7175
SELECT ALL MIN( + 15 ) DIV COUNT( * ), + COUNT( * ) + - 38 AS col2 FROM tab0
----
5
-35

skipif mysql # not compatible
query II rowsort label-7175
SELECT ALL MIN ( + 15 ) / COUNT ( * ), + COUNT ( * ) + - 38 AS col2 FROM tab0
----
5
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT SUM( 10 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-7176
SELECT SUM ( 10 ) FROM tab0
----
30

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

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

query I rowsort
SELECT - ( - 67 ) + - + 82 AS col2 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT - 82 + - + col0 AS col2 FROM tab2
----
-128
-146
-157

query I rowsort
SELECT + + 71 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ( col1 ) * col1 + + 4 AS col2 FROM tab0
----
445
5
6565

query I rowsort
SELECT + col2 + - 62 AS col1 FROM tab2 AS cor0
----
-22
-39
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7183
SELECT CAST( col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7183
SELECT CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

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

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

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

query I rowsort
SELECT DISTINCT + 53 + - col1 FROM tab0
----
-28
32
52

query I rowsort
SELECT - col1 - - + 73 AS col1 FROM tab0
----
-8
52
72

query I rowsort
SELECT ALL 16 + - col1 FROM tab0
----
-5
-65
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + 37 col2 FROM tab2
----
-14
21
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7191
SELECT CAST( col0 AS SIGNED ) - - 71 FROM tab0
----
158
168
86

skipif mysql # not compatible
query I rowsort label-7191
SELECT CAST ( col0 AS INTEGER ) - - 71 FROM tab0
----
158
168
86

query I rowsort
SELECT + 63 + + + col2 AS col1 FROM tab1
----
122
131
159

query II rowsort
SELECT ALL col0 + - col2, col0 FROM tab1
----
-45
51
23
91
26
85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * + col1 col0, - col2 FROM tab0 cor0
----
-1
-99
-441
-10
-6561
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT - + MIN( 99 ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7197
SELECT - + MIN ( 99 ) FROM tab1 AS cor0
----
-99

query I rowsort
SELECT + + col0 * 8 FROM tab1 AS cor0
----
408
680
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7199
SELECT CAST( - 55 AS SIGNED ) AS col1 FROM tab1
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-7199
SELECT CAST ( - 55 AS INTEGER ) AS col1 FROM tab1
----
-55
-55
-55

query II rowsort
SELECT DISTINCT - col2 * - col1 * + 90 AS col0, - 38 AS col2 FROM tab0
----
18900
-38
342630
-38
8910
-38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT - SUM( ALL col0 ) col1 FROM tab2 cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7202
SELECT - SUM ( ALL col0 ) col1 FROM tab2 cor0
----
-185

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT ALL + - SUM( ALL + ( + ( 41 ) ) ) AS col2 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL + - SUM ( ALL + ( + ( 41 ) ) ) AS col2 FROM tab2 AS cor0
----
-123

query II rowsort
SELECT col0, + ( - 77 ) FROM tab2 AS cor0
----
46
-77
64
-77
75
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT - COUNT( ALL + 13 ) * 43 AS col2 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT - COUNT ( ALL + 13 ) * 43 AS col2 FROM tab1
----
-129

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7210
SELECT ALL 7 DIV - + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL 7 / - + col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + col0 * + - 82 * - col0 * col2 + + + col2 FROM tab2 AS cor0
----
13434920
26752558
3990799

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT - 58 + + COUNT( * ) FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7213
SELECT - 58 + + COUNT ( * ) FROM tab1 AS cor0
----
-55

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

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

query I rowsort
SELECT col0 * + ( - - col0 ) AS col2 FROM tab2 cor0
----
2116
4096
5625

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

skipif mysql # not compatible
query I rowsort label-7216
SELECT COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 - col2 + + col0 AS col1 FROM tab2 AS cor0
----
69
88
92

query I rowsort
SELECT 48 * - - 73 + + col0 + + 1 FROM tab2 AS cor0
----
3551
3569
3580

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND 90 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT - 7 + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7221
SELECT - 7 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-7222
SELECT ALL - MIN( ALL col0 ) AS col2, + 80 AS col2 FROM tab2 WHERE NULL <> NULL
----
NULL
80

skipif mysql # not compatible
query II rowsort label-7222
SELECT ALL - MIN ( ALL col0 ) AS col2, + 80 AS col2 FROM tab2 WHERE NULL <> NULL
----
NULL
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT ALL - 51 - + - MIN( - 45 ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL - 51 - + - MIN ( - 45 ) AS col1 FROM tab0
----
-96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT + 43 * - - col1 DIV - col1 FROM tab1 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-7226
SELECT + 43 * - - col1 / - col1 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT + 78 * + - col0 * - col1 * 54 FROM tab2
----
20756736
21165300
9881352

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

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

query I rowsort
SELECT DISTINCT - ( + col0 ) FROM tab1 cor0 WHERE col0 / - + col1 + - 38 < NULL
----

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

skipif mysql # not compatible
query III rowsort label-7230
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - CAST ( NULL AS INTEGER ) * - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7231
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( + + 8 AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-7231
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( + + 8 AS REAL ) <= NULL
----

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

query I rowsort
SELECT DISTINCT - ( + - 55 ) AS col1 FROM tab1
----
55

query II rowsort
SELECT ( + ( + col2 ) ), 39 + col0 AS col0 FROM tab1
----
59
124
68
130
96
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT - COUNT( - 20 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7235
SELECT - COUNT ( - 20 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT - 18 * - + col2 * + - col0 FROM tab1
----
-111384
-88128
-90270

query I rowsort
SELECT + col1 * + 91 FROM tab1
----
1274
4277
455

query I rowsort
SELECT DISTINCT col0 * - + ( + 52 ) FROM tab0
----
-4524
-5044
-780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 27 col0, - col1 AS col1 FROM tab1
----
-27
-14
-27
-47
-27
-5

query I rowsort
SELECT - 56 * + ( - 65 ) * - + col0 + col0 AS col0 FROM tab1 AS cor0
----
-185589
-309315
-331149

onlyif mysql # DIV for integer division: 
query II rowsort label-7241
SELECT + 23 + 29, - col1 DIV - 75 col2 FROM tab1
----
52
0
52
0
52
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7241
SELECT + 23 + 29, - col1 / - 75 col2 FROM tab1
----
52
0
52
0
52
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 87 BETWEEN + - col1 * + 25 AND + 46
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT ALL - - 50 DIV - - col1 AS col1 FROM tab0 AS cor0
----
0
2
50

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL - - 50 / - - col1 AS col1 FROM tab0 AS cor0
----
0
2
50

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT ALL + 67 DIV + 45 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + 67 / + 45 AS col2 FROM tab2 AS cor0
----
1
1
1

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

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

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

query I rowsort
SELECT - 76 - + col0 FROM tab1 AS cor0
----
-127
-161
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT DISTINCT - MAX( + + ( + 18 ) ) + + COUNT( * ) + + + SUM( + - col0 ) AS col0 FROM tab0
----
-214

skipif mysql # not compatible
query I rowsort label-7249
SELECT DISTINCT - MAX ( + + ( + 18 ) ) + + COUNT ( * ) + + + SUM ( + - col0 ) AS col0 FROM tab0
----
-214

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

query I rowsort
SELECT DISTINCT + 8 * col2 * + 60 AS col0 FROM tab1
----
28320
32640
46080

query II rowsort
SELECT ALL 60 AS col1, col0 * - 30 AS col2 FROM tab0
----
60
-2610
60
-2910
60
-450

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

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

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

query I rowsort
SELECT + 13 * - col0 FROM tab0 AS cor0
----
-1131
-1261
-195

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT COUNT( DISTINCT - col0 ) * 61 + - 77 AS col0 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-7258
SELECT COUNT ( DISTINCT - col0 ) * 61 + - 77 AS col0 FROM tab0
----
106

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

query I rowsort
SELECT ALL ( - 76 ) AS col2 FROM tab1
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7261
SELECT - col1 * - 39 + - 8 FROM tab2 cor0 WHERE NOT NULL >= - col1 + - col1 + - ( - 89 ) / col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7261
SELECT - col1 * - 39 + - 8 FROM tab2 cor0 WHERE NOT NULL >= - col1 + - col1 + - ( - 89 ) / col1 + + CAST ( NULL AS INTEGER )
----

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

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

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

query I rowsort
SELECT ALL - + 15 * + + 68 FROM tab2 AS cor0
----
-1020
-1020
-1020

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7265
SELECT - CAST( NULL AS SIGNED ) AS col1, - col2 DIV col1 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-7265
SELECT - CAST ( NULL AS INTEGER ) AS col1, - col2 / col1 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > - 2
----

query I rowsort
SELECT ALL col2 + + col2 + col2 * + col0 AS col2 FROM tab2
----
1104
2640
4466

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

skipif mysql # not compatible
query I rowsort label-7268
SELECT - MAX ( DISTINCT + col0 ) + - + CAST ( + CAST ( - 99 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 + + col0 * - col1 col1 FROM tab0
----
-1182
-1794
-64

query III rowsort
SELECT ALL 81 * col1 AS col0, col2, - col2 * + 45 AS col0 FROM tab1
----
9 values hashing to dc39d5a4104e2cb6a36367dae6efcedb

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

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN col2 AND NULL
----
0

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + col2 col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE - col0 IN ( + col0 )
----

query I rowsort
SELECT - - col2 * col2 AS col2 FROM tab0 cor0 WHERE NULL > - col2 * + col1 + + col0 + - col2
----

query I rowsort
SELECT - col2 + 68 + + + col0 * - 16 FROM tab1 AS cor0
----
-1351
-1456
-844

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

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

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

query I rowsort
SELECT - col2 + + + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT - COUNT( * ) + - 14 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7283
SELECT - COUNT ( * ) + - 14 FROM tab2 AS cor0
----
-17

query II rowsort
SELECT ALL + col1 AS col0, + ( + + 64 ) * - col0 AS col2 FROM tab2 AS cor0
----
51
-2944
67
-4800
77
-4096

query I rowsort
SELECT DISTINCT + col0 + 35 + + col0 / + 16 AS col2 FROM tab0 WHERE NULL < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT DISTINCT COUNT( * ) * MIN( ALL - 84 ) FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT COUNT ( * ) * MIN ( ALL - 84 ) FROM tab0
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-7288
SELECT ALL - 81 DIV + col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL - 81 / + col1 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT - 6 DIV - - 68 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7289
SELECT - 6 / - - 68 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT - COUNT( DISTINCT - - ( col2 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT - COUNT ( DISTINCT - - ( col2 ) ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7291
SELECT MAX( ALL CAST( + 96 AS SIGNED ) ) FROM tab1
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT COUNT( * ) * - - SUM( - 71 ) AS col1 FROM tab2
----
-639

skipif mysql # not compatible
query I rowsort label-7292
SELECT COUNT ( * ) * - - SUM ( - 71 ) AS col1 FROM tab2
----
-639

query I rowsort
SELECT DISTINCT + 45 * + col0 AS col0 FROM tab0 AS cor0
----
3915
4365
675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7294
SELECT DISTINCT - COUNT( * ) DIV - - 92 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT - COUNT ( * ) / - - 92 AS col0 FROM tab0
----
0

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

query II rowsort
SELECT ALL col1, + col0 - col1 FROM tab1 AS cor0
----
14
37
47
44
5
80

query I rowsort
SELECT col0 + + 66 FROM tab0 AS cor0
----
153
163
81

query I rowsort
SELECT - 44 + - col0 + + 33 * + col0 FROM tab2 AS cor0
----
1428
2004
2356

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7300
SELECT - + 80 + + 20 DIV - 85 - + COUNT( * ) FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-7300
SELECT - + 80 + + 20 / - 85 - + COUNT ( * ) FROM tab1 AS cor0
----
-83

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

query I rowsort
SELECT + + 65 * col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
2990
4160
4875

query I rowsort
SELECT ALL 10 FROM tab2 cor0 WHERE ( - 32 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT + MAX( ALL 23 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7305
SELECT + MAX ( ALL 23 ) FROM tab2
----
23

query I rowsort
SELECT ALL col1 + - - 25 FROM tab0
----
106
26
46

query II rowsort
SELECT ALL + col2, 30 - - 53 FROM tab2
----
23
83
40
83
58
83

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

query I rowsort
SELECT DISTINCT + col1 + - 67 AS col2 FROM tab2
----
-16
0
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7310
SELECT DISTINCT - 48 * 52 AS col2, - SUM( ALL - - 21 ) AS col1 FROM tab1
----
-2496
-63

skipif mysql # not compatible
query II rowsort label-7310
SELECT DISTINCT - 48 * 52 AS col2, - SUM ( ALL - - 21 ) AS col1 FROM tab1
----
-2496
-63

query II rowsort
SELECT col0 AS col2, 60 + col1 + + - col0 FROM tab1
----
51
23
85
-20
91
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT ALL + 29 * + 42 + CAST( NULL AS SIGNED ) + - 79 + - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL + 29 * + 42 + CAST ( NULL AS INTEGER ) + - 79 + - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT 24 + - - col2 * + col1 FROM tab1
----
1368
319
3220

query I rowsort
SELECT col0 + - + col1 * - col0 * - + col2 FROM tab1
----
-24990
-290745
-68493

query I rowsort
SELECT DISTINCT + 71 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
71

query I rowsort
SELECT ALL 31 FROM tab1 WHERE NOT - - 46 * + 54 * - - 84 IS NOT NULL
----

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

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

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

query I rowsort
SELECT + - col2 / - - col2 + - + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 27 AS col0 FROM tab2 AS cor0
----
-27

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

query I rowsort
SELECT + col2 * - 83 FROM tab2 AS cor0
----
-1909
-3320
-4814

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT + + SUM( DISTINCT 0 ) * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7326
SELECT + + SUM ( DISTINCT 0 ) * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT MAX( DISTINCT - col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7327
SELECT MAX ( DISTINCT - col2 ) AS col1 FROM tab0
----
-10

query I rowsort
SELECT ALL col0 * - + col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + col0 * - + col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT - ( + + 37 ) * + + 66 + - 11 * + + COUNT( * ) * MIN( 12 ) * + MIN( ALL + col2 ) FROM tab2 AS cor0
----
-11550

skipif mysql # not compatible
query I rowsort label-7330
SELECT - ( + + 37 ) * + + 66 + - 11 * + + COUNT ( * ) * MIN ( 12 ) * + MIN ( ALL + col2 ) FROM tab2 AS cor0
----
-11550

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT - - MAX( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7331
SELECT - - MAX ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT - col1 AS col0, + col2 + + - col1 FROM tab2 cor0
----
-51
-28
-67
-9
-77
-37

query I rowsort
SELECT DISTINCT col2 * + 90 AS col1 FROM tab0
----
4230
8910
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 78 ), 96 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 920066fb14c27a1f9c390ada3334c075

query I rowsort
SELECT - 22 * + col0 * + - col1 AS col0 FROM tab1 AS cor0
----
15708
9350
94094

query I rowsort
SELECT + col0 + - - 22 * col1 + col2 + - + 35 - col2 AS col0 FROM tab0 AS cor0
----
1762
514
84

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7338
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + CAST( NULL AS DECIMAL ) + + 92 / MIN( ALL + - 2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS REAL ) + + 92 / MIN ( ALL + - 2 ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT - + 44 DIV + - col2 + 21 * - col2 col2 FROM tab1 AS cor0
----
-1239
-1428
-2016

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7340
SELECT - + 44 / + - col2 + 21 * - col2 col2 FROM tab1 AS cor0
----
-1239
-1428
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT ALL MIN( DISTINCT 73 ) AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL MIN ( DISTINCT 73 ) AS col0 FROM tab2
----
73

query II rowsort
SELECT col2 + + + col2 + + col1, col1 + 53 AS col0 FROM tab2
----
157
130
183
120
97
104

query I rowsort
SELECT col2 + - 44 FROM tab2
----
-21
-4
14

query II rowsort
SELECT ALL - 7 AS col1, + col0 + - col2 FROM tab2
----
-7
17
-7
23
-7
24

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT DISTINCT 84 * col1 + + CAST( - + col1 AS SIGNED ) AS col1 FROM tab2
----
4233
5561
6391

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT 84 * col1 + + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2
----
4233
5561
6391

query I rowsort
SELECT col1 FROM tab0 WHERE NULL <= - col0
----

query I rowsort
SELECT - 94 - - ( - col2 ) FROM tab0
----
-104
-141
-193

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 / - 1 + 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - + col0 ) col0 FROM tab0 AS cor0
----
15
87
97

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

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

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

query I rowsort
SELECT ALL - + 86 * + 85 FROM tab1 cor0
----
-7310
-7310
-7310

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 15 col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT - col0 * + col0 DIV + col0 AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7358
SELECT - col0 * + col0 / + col0 AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT ( NULL <> + col2 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT DISTINCT + + COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-7361
SELECT DISTINCT + + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7362
SELECT 30 * + MIN( DISTINCT - CAST( + - col1 AS SIGNED ) ) + + 79 FROM tab1 AS cor0
----
229

skipif mysql # not compatible
query I rowsort label-7362
SELECT 30 * + MIN ( DISTINCT - CAST ( + - col1 AS INTEGER ) ) + + 79 FROM tab1 AS cor0
----
229

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 25, + 64 * - - col2, - col0, 92 * + col0 * col2 - + ( col0 ), + col1 )
----

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( - + col0 ) > - col1 )
----
75
67
58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7367
SELECT DISTINCT - CAST( SUM( - 95 ) AS SIGNED ) AS col2 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT - CAST ( SUM ( - 95 ) AS INTEGER ) AS col2 FROM tab0
----
285

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

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

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

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

query II rowsort
SELECT DISTINCT 84 + + col2, - col1 AS col2 FROM tab2
----
107
-51
124
-77
142
-67

query I rowsort
SELECT + col1 - - 90 + 85 FROM tab2
----
226
242
252

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 24 col1 FROM tab2
----
1224
1608
1848

query I rowsort
SELECT ALL - 97 AS col1 FROM tab2 cor0
----
-97
-97
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - + col1 * + + ( + 5 ) / 34
----

query II rowsort
SELECT ALL + - col2, - ( col2 ) * 52 + col0 AS col1 FROM tab0 cor0
----
-10
-433
-47
-2429
-99
-5051

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT DISTINCT MIN( ALL - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT MIN ( ALL - col2 ) FROM tab2 AS cor0
----
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT MIN( DISTINCT 89 ) AS col2 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-7380
SELECT MIN ( DISTINCT 89 ) AS col2 FROM tab0 AS cor0
----
89

query I rowsort
SELECT col0 * + - col1 + + + 24 AS col2 FROM tab0 AS cor0
----
-1191
-1803
-73

query II rowsort
SELECT - col1 AS col2, 16 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-1
16
-21
16
-81
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT ALL - + MIN( + 31 ) AS col2 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL - + MIN ( + 31 ) AS col2 FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT DISTINCT 73 * + 37 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
8103

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT 73 * + 37 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
8103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7386
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, ( + col1 ) AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7386
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, ( + col1 ) AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT DISTINCT + MIN( ALL + 35 ) col2 FROM tab0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7387
SELECT DISTINCT + MIN ( ALL + 35 ) col2 FROM tab0
----
35

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7391
SELECT ALL col0 DIV - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL col0 / - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT - + ( + + col0 ) DIV col0 col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7392
SELECT - + ( + + col0 ) / col0 col1 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ALL - 77 AS col2, col0 FROM tab2 AS cor0
----
-77
46
-77
64
-77
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT + 90 * ( - SUM( DISTINCT - col1 ) ) FROM tab2
----
17550

skipif mysql # not compatible
query I rowsort label-7395
SELECT + 90 * ( - SUM ( DISTINCT - col1 ) ) FROM tab2
----
17550

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND - col1 + col0 * + 38 + - + col0 - + col2 + + 71
----

query I rowsort
SELECT ALL + col0 * - - col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7402
SELECT DISTINCT 83 * + + col0 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT 83 * + + col0 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7404
SELECT ALL - CAST( ( + 79 ) AS SIGNED ) DIV + col1 FROM tab0 AS cor0
----
-3
-79
0

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL - CAST ( ( + 79 ) AS INTEGER ) / + col1 FROM tab0 AS cor0
----
-3
-79
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7405
SELECT DISTINCT 91 DIV + - COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-30
3

skipif mysql # not compatible
query II rowsort label-7405
SELECT DISTINCT 91 / + - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-30
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT + 63 + + COUNT( * ) * + ( - MAX( ALL - ( col2 ) ) ) AS col2 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-7406
SELECT + 63 + + COUNT ( * ) * + ( - MAX ( ALL - ( col2 ) ) ) AS col2 FROM tab2 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT - - MAX( + col2 ) + 94 AS col0 FROM tab1 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-7407
SELECT - - MAX ( + col2 ) + 94 AS col0 FROM tab1 AS cor0
----
190

query I rowsort
SELECT DISTINCT - 36 * + + 13 * - 86 + - col1 FROM tab0
----
40167
40227
40247

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7410
SELECT ALL * FROM tab2 WHERE - ( + col2 ) >= - CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-7410
SELECT ALL * FROM tab2 WHERE - ( + col2 ) >= - CAST ( NULL AS INTEGER ) + col2
----

query III rowsort
SELECT * FROM tab1 WHERE - + col1 <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-7412
SELECT - MAX ( + 64 ) AS col1 FROM tab1
----
-64

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

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

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 87 FROM tab1
----
NULL

query I rowsort
SELECT ALL col0 + + col1 + - - col1 * - + col0 AS col1 FROM tab1
----
-335
-4139
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT - COUNT( * ) * + 2 AS col0 FROM tab1, tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7416
SELECT - COUNT ( * ) * + 2 AS col0 FROM tab1, tab0 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT - 32 - - SUM( ALL + col1 ) FROM tab2 AS cor0
----
163

skipif mysql # not compatible
query I rowsort label-7417
SELECT - 32 - - SUM ( ALL + col1 ) FROM tab2 AS cor0
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7418
SELECT - col2 - - - 17 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-38
-71
-99

skipif mysql # not compatible
query I rowsort label-7418
SELECT - col2 - - - 17 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-38
-71
-99

query II rowsort
SELECT + col1 AS col2, col2 + - + col0 FROM tab2 AS cor0
----
51
-23
67
-17
77
-24

query II rowsort
SELECT ALL 25 AS col0, col2 AS col1 FROM tab0 AS cor0
----
25
10
25
47
25
99

query I rowsort
SELECT ALL - 5 FROM tab2 WHERE col1 + + 65 / 91 <> 30 + + col1
----
-5
-5
-5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * col1 + ( - col2 ) col0 FROM tab1
----
1108
371
3974

query I rowsort
SELECT ALL col2 / + 54 FROM tab1 WHERE NULL IS NOT NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 94 - - col1 NOT IN ( - col2 * 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT DISTINCT COUNT( - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT COUNT ( - col2 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT + CAST( + 57 AS SIGNED ) * + col1 FROM tab2 WHERE NOT ( col0 ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7429
SELECT + CAST ( + 57 AS INTEGER ) * + col1 FROM tab2 WHERE NOT ( col0 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 60 * col2 + - col0 AND + 6 + col0
----
0

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 60 * col2 + - col0 AND + 6 + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT ALL COUNT( ( 63 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL COUNT ( ( 63 ) ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE - col0 <> ( + 96 + + 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 98 col2 FROM tab0 WHERE NOT 60 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7434
SELECT ALL ( + col2 ) DIV col1 + 86 FROM tab2
----
86
86
86

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL ( + col2 ) / col1 + 86 FROM tab2
----
86
86
86

query I rowsort
SELECT - ( - 32 ) FROM tab0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col2 FROM tab1 WHERE - 58 + - col2 NOT IN ( col0 )
----
58
58
58

query I rowsort
SELECT ALL col1 * col2 + col2 AS col0 FROM tab1
----
1440
3264
354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7438
SELECT ALL SUM( DISTINCT - ( - CAST( NULL AS SIGNED ) ) ) - + 71 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL SUM ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) - + 71 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL 0 + - COUNT( * ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7439
SELECT ALL 0 + - COUNT ( * ) col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT CAST( + col0 AS SIGNED ) * col2 + col1 * col1 FROM tab1 WHERE NOT ( CAST( - col1 AS SIGNED ) ) IS NULL
----
5040
5092
8397

skipif mysql # not compatible
query I rowsort label-7440
SELECT CAST ( + col0 AS INTEGER ) * col2 + col1 * col1 FROM tab1 WHERE NOT ( CAST ( - col1 AS INTEGER ) ) IS NULL
----
5040
5092
8397

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 93 >= - col2
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7442
SELECT - CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7442
SELECT - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT MAX( + col1 ) col2 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7444
SELECT MAX ( + col1 ) col2 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7445
SELECT - CAST( 33 AS SIGNED ) FROM tab0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-7445
SELECT - CAST ( 33 AS INTEGER ) FROM tab0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT COUNT( * ) * - 49 + - COUNT( * ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7446
SELECT COUNT ( * ) * - 49 + - COUNT ( * ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL MIN( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL MIN ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT ALL ( + COUNT( DISTINCT - 69 ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL ( + COUNT ( DISTINCT - 69 ) ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * 42 <> NULL
----

query I rowsort
SELECT ALL col2 + - col2 * col2 FROM tab2 AS cor0
----
-1560
-3306
-506

query I rowsort
SELECT DISTINCT - 22 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT DISTINCT ( ( + COUNT( * ) ) ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT ( ( + COUNT ( * ) ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7453
SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + ( col2 ) NOT BETWEEN ( 10 + - col2 ) AND ( col1 * ( + col1 ) )
----
5

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + ( col2 ) NOT BETWEEN ( 10 + - col2 ) AND ( col1 * ( + col1 ) )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7454
SELECT DISTINCT 65 * CAST( - COUNT( * ) AS SIGNED ) + - COUNT( * ) FROM tab1 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT 65 * CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) FROM tab1 cor0
----
-198

query I rowsort
SELECT ALL - 61 + + col2 FROM tab1
----
-2
35
7

query I rowsort
SELECT 4 AS col2 FROM tab2 WHERE col0 NOT IN ( - col1 + - 55 )
----
4
4
4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col0 * 84 AND 40 / ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT MAX( DISTINCT col2 ) * - 90 FROM tab0
----
-8910

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT MAX ( DISTINCT col2 ) * - 90 FROM tab0
----
-8910

query I rowsort
SELECT DISTINCT + 1 + - col2 FROM tab1 AS cor0
----
-58
-67
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7460
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * 44 - ( col1 - - col1 ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * 44 - ( col1 - - col1 ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 54 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ALL - COUNT( - col0 ) * ( + 48 ) AS col2 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL - COUNT ( - col0 ) * ( + 48 ) AS col2 FROM tab2 AS cor0
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7463
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 14 NOT BETWEEN + col1 * + col2 + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7463
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 14 NOT BETWEEN + col1 * + col2 + - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT - + col2 DIV - 82 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7464
SELECT - + col2 / - 82 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT 17 - + col2 AS col1 FROM tab0 AS cor0 WHERE col1 IN ( ( - col1 ) )
----

query I rowsort
SELECT col0 - - col2 * col2 FROM tab2 cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7467
SELECT ALL + MIN( ALL + 53 ) * + ( COUNT( * ) DIV + 23 + COUNT( * ) ) FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + MIN ( ALL + 53 ) * + ( COUNT ( * ) / + 23 + COUNT ( * ) ) FROM tab1 AS cor0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT DISTINCT - col0 + + CAST( 61 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
5220
5820
900

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT - col0 + + CAST ( 61 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
5220
5820
900

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col0 * + 2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT SUM( col2 ) * - 66 - + COUNT( * ) col1 FROM tab1
----
-14721

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7470
SELECT SUM ( col2 ) * - 66 - + COUNT ( * ) col1 FROM tab1
----
-14721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT col0 * 50 + 55 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT col0 * 50 + 55 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE ( col0 ) NOT BETWEEN ( NULL ) AND - ( col1 ) * - col0
----

skipif mysql # not compatible
query I rowsort label-7472
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE ( col0 ) NOT BETWEEN ( NULL ) AND - ( col1 ) * - col0
----

query I rowsort
SELECT DISTINCT - col1 * + 6 AS col2 FROM tab2
----
-306
-402
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL + 96 * COUNT( * ) FROM tab1 AS cor0 WHERE - 3 IS NOT NULL
----
288

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + 96 * COUNT ( * ) FROM tab1 AS cor0 WHERE - 3 IS NOT NULL
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT ALL CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 cor0 WHERE ( 7 * col1 + - 63 ) <> 10
----
3

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE ( 7 * col1 + - 63 ) <> 10
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7478
SELECT ALL MIN( + - 77 ) DIV COUNT( * ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL MIN ( + - 77 ) / COUNT ( * ) FROM tab0 AS cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT 55 * + + CAST( NULL AS SIGNED ) / - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT 55 * + + CAST ( NULL AS INTEGER ) / - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL - ( - + MIN( ALL col1 ) ) * 52 AS col1 FROM tab2
----
2652

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL - ( - + MIN ( ALL col1 ) ) * 52 AS col1 FROM tab2
----
2652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7481
SELECT + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7481
SELECT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7482
SELECT COUNT( DISTINCT CAST( 15 AS SIGNED ) ) - 77 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-76

skipif mysql # not compatible
query I rowsort label-7482
SELECT COUNT ( DISTINCT CAST ( 15 AS INTEGER ) ) - 77 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-76

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT ( 99 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT + MIN( + - col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7484
SELECT + MIN ( + - col2 ) AS col1 FROM tab2 AS cor0
----
-58

query II rowsort
SELECT + + col1, 88 * - + 3 FROM tab1 AS cor0
----
14
-264
47
-264
5
-264

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 39 ) * col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( 67 ) + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7488
SELECT ALL - + CAST( - 41 AS SIGNED ) col1 FROM tab1 cor0
----
41
41
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7488
SELECT ALL - + CAST ( - 41 AS INTEGER ) col1 FROM tab1 cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT + SUM( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7489
SELECT + SUM ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT - + COUNT( DISTINCT ( + - col1 ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7490
SELECT - + COUNT ( DISTINCT ( + - col1 ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL 2 FROM tab1 cor0 WHERE 82 * + 11 IS NOT NULL
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL + SUM( + 10 ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL + SUM ( + 10 ) FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT MIN( DISTINCT + + ( + col2 ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7493
SELECT MIN ( DISTINCT + + ( + col2 ) ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT 31 * - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( + + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT 31 * - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( + + 61 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT DISTINCT col0 + + ( + + CAST( NULL AS SIGNED ) ) * - col0 * col0 + - 75 * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT col0 + + ( + + CAST ( NULL AS INTEGER ) ) * - col0 * col0 + - 75 * col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ( + + 19 ) + + 44 + COUNT( * ) * 36 AS col2 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-7496
SELECT ( + + 19 ) + + 44 + COUNT ( * ) * 36 AS col2 FROM tab2
----
171

query I rowsort
SELECT ALL - - col0 + - - col1 FROM tab1 AS cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col0 FROM tab1 AS cor0
----
21
21
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN ( 78 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT + MAX( DISTINCT - ( + col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7500
SELECT + MAX ( DISTINCT - ( + col0 ) ) FROM tab0 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <= ( 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT DISTINCT SUM( - - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT SUM ( - - col1 ) FROM tab0
----
103

query I rowsort
SELECT DISTINCT + col1 * + 8 FROM tab1 WHERE + + col0 NOT IN ( + 95 * + col0 + - 56 )
----
112
376
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT + - col1 + + col1 + + + CAST( - col0 AS SIGNED ) * - col1 AS col0 FROM tab1 cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-7504
SELECT + - col1 + + col1 + + + CAST ( - col0 AS INTEGER ) * - col1 AS col0 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT + col1 + + - col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col2 AS col0, - col1 + + - 40 AS col2 FROM tab0 AS cor0
----
10
-61
47
-121
99
-41

query I rowsort
SELECT - 53 + - 20 * col2 + - + 28 + 35 * col0 FROM tab1 cor0
----
-216
1714
1744

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 60 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7509
SELECT + - CAST( NULL AS SIGNED ) + - ( + 15 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT + - CAST ( NULL AS INTEGER ) + - ( + 15 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT AVG ( ALL 82 ) + + COUNT( * ) * COUNT( ALL - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT AVG ( ALL 82 ) + + COUNT ( * ) * COUNT ( ALL - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col1 * + col2 * - 45 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7512
SELECT - CAST( NULL AS DECIMAL ) * 60 + + COUNT( * ) * - 4 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7512
SELECT - CAST ( NULL AS REAL ) * 60 + + COUNT ( * ) * - 4 col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 88 * col0 + + - ( + col1 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7514
SELECT DISTINCT + CAST( 82 AS SIGNED ) col1 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7514
SELECT DISTINCT + CAST ( 82 AS INTEGER ) col1 FROM tab1 AS cor0
----
82

query I rowsort
SELECT DISTINCT + 2 + - 10 AS col2 FROM tab0 cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT DISTINCT - COUNT( * ) + 36 AS col0 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT - COUNT ( * ) + 36 AS col0 FROM tab0
----
33

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 * + + col0 ) <> ( - col0 )
----

query I rowsort
SELECT ALL 21 * + - 58 AS col0 FROM tab2
----
-1218
-1218
-1218

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 30 AND NULL
----

query I rowsort
SELECT 73 * 34 AS col1 FROM tab1
----
2482
2482
2482

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT - + MAX( DISTINCT + - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7521
SELECT - + MAX ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7522
SELECT DISTINCT col0 DIV 27 + + col2 FROM tab0 AS cor0 WHERE NOT - col2 * + + col0 BETWEEN 78 AND NULL
----
102
13
47

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT col0 / 27 + + col2 FROM tab0 AS cor0 WHERE NOT - col2 * + + col0 BETWEEN 78 AND NULL
----
102
13
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7523
SELECT + + CAST( NULL AS SIGNED ) / + col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7523
SELECT + + CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL COUNT( * ) * SUM( ( col2 ) ) AS col2 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL COUNT ( * ) * SUM ( ( col2 ) ) AS col2 FROM tab0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT 18 + + ( - + MIN( DISTINCT + col0 ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7525
SELECT 18 + + ( - + MIN ( DISTINCT + col0 ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT + 6 + - + COUNT( + + 84 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7526
SELECT + 6 + - + COUNT ( + + 84 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 10 + ( + + 84 ) - + + 48 FROM tab2 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7528
SELECT + CAST( SUM( DISTINCT + + 53 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7528
SELECT + CAST ( SUM ( DISTINCT + + 53 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
53

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 75 <= ( 84 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > - col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= ( + - col2 )
----

query II rowsort
SELECT DISTINCT col1 + col0 AS col0, - col1 FROM tab0 AS cor0
----
108
-21
96
-81
98
-1

query I rowsort
SELECT DISTINCT + 16 + col0 + + + 3 * + + col0 FROM tab2
----
200
272
316

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT ALL + MIN( DISTINCT col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL + MIN ( DISTINCT col1 ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT MAX( 10 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7535
SELECT MAX ( 10 ) AS col0 FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-7536
SELECT col2 AS col0, col0 + + + col0 DIV col2 AS col1 FROM tab2
----
23
48
40
65
58
76

skipif mysql # not compatible
query II rowsort label-7536
SELECT col2 AS col0, col0 + + + col0 / col2 AS col1 FROM tab2
----
23
48
40
65
58
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7537
SELECT ( - col1 ) DIV - col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7537
SELECT ( - col1 ) / - col0 FROM tab0
----
0
0
5

query I rowsort
SELECT ALL + col2 + 54 * - 1 AS col0 FROM tab1 AS cor0
----
14
42
5

query II rowsort
SELECT + col2 + + col2 + + 63, col0 AS col0 FROM tab0 AS cor0
----
157
15
261
97
83
87

query I rowsort
SELECT 99 * - col1 + - col2 * + col1 AS col2 FROM tab2
----
-10519
-10703
-6222

query III rowsort
SELECT * FROM tab2 WHERE - - col0 * col0 + - 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= ( - 38 ) * + col2 / - 31
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - 12 + - col0 col1 FROM tab0 AS cor0
----
-65
14
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT ( - + col1 ) * 75 DIV - + col1 FROM tab1 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-7544
SELECT ( - + col1 ) * 75 / - + col1 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT - - col2 DIV - - 18 col2 FROM tab0 AS cor0
----
0
2
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7545
SELECT - - col2 / - - 18 col2 FROM tab0 AS cor0
----
0
2
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * + - col0 col0 FROM tab2
----
-3864
-5376
-6300

query I rowsort
SELECT DISTINCT - 55 * - - col2 FROM tab2
----
-1265
-2200
-3190

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL - 6 * - MIN( + col2 ) FROM tab1
----
354

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL - 6 * - MIN ( + col2 ) FROM tab1
----
354

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * + - 21 AS col1 FROM tab2
----
-1344
-1575
-966

query I rowsort
SELECT ALL 41 * + col0 * + + col2 AS col2 FROM tab0 WHERE - col2 IS NOT NULL
----
28905
35670
393723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, col0 * - 55 col0 FROM tab0
----
10
-4785
47
-825
99
-5335

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT + + col0 / - col1 / - col2 / - col2 IS NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE - 79 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + + 41 FROM tab2 WHERE NOT - col1 + 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT COUNT( DISTINCT col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7557
SELECT COUNT ( DISTINCT col2 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT COUNT( DISTINCT - + 94 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7558
SELECT COUNT ( DISTINCT - + 94 ) FROM tab1
----
1

query II rowsort
SELECT DISTINCT + + col1, - 94 - + + col1 * - col1 + + - col0 FROM tab2 AS cor0
----
51
2461
67
4320
77
5771

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT DISTINCT + SUM( ALL + + col1 ) FROM tab0 AS cor0 WHERE NULL > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT + SUM ( ALL + + col1 ) FROM tab0 AS cor0 WHERE NULL > col0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 75 ) col2 FROM tab2 AS cor0
----
75
75
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 0 NOT IN ( - 52, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 2 * - 8 + + 83 + col2 * - 70 FROM tab1 AS cor0
----
-4063
-4693
-6653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - + col2 col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT ALL col0 + + + col1 + - + 18 DIV - - col0 AS col2 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL col0 + + + col1 + - + 18 / - - col0 AS col2 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL col1 * + col2 + - 3 AS col2 FROM tab0
----
207
3804
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * col2 * - col1 col1 FROM tab2
----
104397
274120
345854

query I rowsort
SELECT ALL - 27 + - col2 FROM tab1
----
-123
-86
-95

query I rowsort
SELECT DISTINCT 8 - + 72 + - - 57 FROM tab1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7571
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL = - CAST( + + 14 AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-7571
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL = - CAST ( + + 14 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7572
SELECT + + CAST( NULL AS SIGNED ) AS col1, + ( col2 ) FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-7572
SELECT + + CAST ( NULL AS INTEGER ) AS col1, + ( col2 ) FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

query II rowsort
SELECT - - col1 AS col0, - 25 FROM tab1 AS cor0
----
14
-25
47
-25
5
-25

query II rowsort
SELECT col0, 53 FROM tab0 AS cor0 WHERE NOT 2 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT ( 99 ) AS col0 FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - col1 + + 25 NOT IN ( - col1, + col2, - - 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL - COUNT( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL - COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7578
SELECT DISTINCT + COUNT( * ) AS col1, - 99 FROM tab2 AS cor0
----
3
-99

skipif mysql # not compatible
query II rowsort label-7578
SELECT DISTINCT + COUNT ( * ) AS col1, - 99 FROM tab2 AS cor0
----
3
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT ALL - + MIN( + col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL - + MIN ( + col1 ) AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - col0 * - col2 * + col2 AS col2 FROM tab2 cor0
----
102400
24334
252300

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( - col2 IS NOT NULL ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT COUNT( * ) * - MAX( DISTINCT - col0 ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7584
SELECT COUNT ( * ) * - MAX ( DISTINCT - col0 ) AS col2 FROM tab0
----
45

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + ( + - 89 ) AS col1 FROM tab0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7587
SELECT + + CAST( + 1 AS SIGNED ) AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-7587
SELECT + + CAST ( + 1 AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT DISTINCT + MIN( + - col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT + MIN ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT - MIN( 6 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-6

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT - MIN ( 6 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7590
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT col0 IN ( - + CAST( NULL AS DECIMAL ), col2 + - CAST( NULL AS SIGNED ) / + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT col0 IN ( - + CAST ( NULL AS REAL ), col2 + - CAST ( NULL AS INTEGER ) / + col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7591
SELECT - 73 * 22 * 60 + 4 - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7591
SELECT - 73 * 22 * 60 + 4 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7592
SELECT - 82 + - - col2 DIV 59 AS col0 FROM tab2
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-7592
SELECT - 82 + - - col2 / 59 AS col0 FROM tab2
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7593
SELECT - CAST( NULL AS SIGNED ) + + 15 + + col2 + + - col2 * - + col2 * 84 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7593
SELECT - CAST ( NULL AS INTEGER ) + + 15 + + col2 + + - col2 * - + col2 * 84 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - ( + col0 ) FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL 75 * 92 FROM tab0 AS cor0
----
6900
6900
6900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col2 FROM tab1
----
-52
-52
-52

query II rowsort
SELECT - 63, - col1 AS col1 FROM tab0
----
-63
-1
-63
-21
-63
-81

query I rowsort
SELECT ALL col1 + 21 AS col1 FROM tab0
----
102
22
42

query I rowsort
SELECT ALL 86 + col2 AS col1 FROM tab1
----
145
154
182

query I rowsort
SELECT DISTINCT 87 * + + col0 * + - col2 - + col2 * + col1 AS col1 FROM tab0
----
-65142
-75900
-835560

query I rowsort
SELECT ALL - col0 * + 69 FROM tab2
----
-3174
-4416
-5175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT + col2 - + CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-7602
SELECT + col2 - + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 IS NOT NULL AND + 54 IS NULL
----

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE ( col0 + col1 + - col2 ) <> - col0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT - - ( COUNT( * ) ) + + + 66 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7605
SELECT - - ( COUNT ( * ) ) + + + 66 FROM tab0 AS cor0
----
69

query I rowsort
SELECT ALL - col1 + 70 AS col2 FROM tab0 AS cor0
----
-11
49
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 38 * - col0 + - col2 col1 FROM tab2 cor0
----
-1771
-2472
-2908

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT DISTINCT COUNT( * ) - - 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
103

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT COUNT ( * ) - - 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
103

query I rowsort
SELECT - col2 * + + 61 FROM tab1
----
-3599
-4148
-5856

query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
69

query I rowsort
SELECT DISTINCT + - 91 AS col2 FROM tab0 WHERE NOT + col1 < + col0
----
-91

query I rowsort
SELECT + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 29, 64 * + - col0, 11, + col1, + + col1 * 88 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 78 < NULL
----

query I rowsort
SELECT + col0 + - + col0 + - 29 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-29
-29
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7615
SELECT DISTINCT - - MIN( - 10 ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT - - MIN ( - 10 ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT + SUM( ALL - 99 ) FROM tab2 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-7616
SELECT + SUM ( ALL - 99 ) FROM tab2 cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT - - COUNT( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7617
SELECT - - COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
3

query I rowsort
SELECT + 72 * - col2 AS col1 FROM tab1
----
-4248
-4896
-6912

query II rowsort
SELECT DISTINCT + col1, ( - col2 ) FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-7620
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7620
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ALL + SUM( - col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL + SUM ( - col1 ) AS col0 FROM tab2
----
-195

query II rowsort
SELECT DISTINCT 17 AS col2, + col1 FROM tab2 AS cor0
----
17
51
17
67
17
77

query I rowsort
SELECT ALL col2 * - col2 + + - col1 + col2 AS col0 FROM tab0 AS cor0
----
-111
-2243
-9703

query I rowsort
SELECT ALL col0 + + 96 FROM tab2 AS cor0
----
142
160
171

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 27 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col1 AND col0
----

query I rowsort
SELECT col2 * + 73 AS col0 FROM tab1
----
4307
4964
7008

query II rowsort
SELECT col1 * - 42 AS col1, col1 FROM tab1
----
-1974
47
-210
5
-588
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + - - col1 col2 FROM tab0 cor0
----
128
48
68

query I rowsort
SELECT ALL col2 * + + col1 AS col1 FROM tab0 AS cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + + col0 * + col2 + - col0 col2 FROM tab1 AS cor0
----
4794
4845
6006

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> ( col2 ) + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7633
SELECT ALL CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + col2 + + col2 + + + col0 AS col1 FROM tab2 AS cor0
----
144
191
92

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 / + - 24 <> NULL
----

query II rowsort
SELECT ALL col0, ( col1 ) FROM tab2 WHERE NULL <> col1 + + + 96
----

query I rowsort
SELECT - 16 * - col2 + - + col2 AS col2 FROM tab2
----
345
600
870

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( + 78 * + + col1 - - col2 + - + 20 + + - col0 - + 92 * - col1 - + 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT DISTINCT 96 + - COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT 96 + - COUNT ( * ) FROM tab1
----
93

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT ALL + col0 + + - col1 + + - ( col0 ) + - col0 + + - ( + 22 ) * - - 58 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + col0 + + - col1 + + - ( col0 ) + - col0 + + - ( + 22 ) * - - 58 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT ALL COUNT( * ) - + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL COUNT ( * ) - + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE + - 57 - 25 BETWEEN + col1 * col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT MIN( + + col1 ) - + - 17 AS col0 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7644
SELECT MIN ( + + col1 ) - + - 17 AS col0 FROM tab2 AS cor0
----
68

query I rowsort
SELECT ALL col0 - col1 + - - col2 * + col0 AS col2 FROM tab0 cor0
----
639
936
9699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7647
SELECT ALL CAST( - - col2 AS SIGNED ) * + 31 FROM tab0
----
1457
3069
310

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL CAST ( - - col2 AS INTEGER ) * + 31 FROM tab0
----
1457
3069
310

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 64 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT 69 * - COUNT( * ) FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT 69 * - COUNT ( * ) FROM tab2
----
-207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7651
SELECT + 48 DIV + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-7651
SELECT + 48 / + COUNT ( * ) FROM tab0
----
16

query II rowsort
SELECT col1 AS col1, col2 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT - col0 AS col1, + 95 FROM tab1 AS cor0
----
-51
95
-85
95
-91
95

query II rowsort
SELECT DISTINCT - 53, - col1 AS col1 FROM tab2 AS cor0
----
-53
-51
-53
-67
-53
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7655
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + - col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

query II rowsort
SELECT - col0 AS col1, 56 AS col2 FROM tab2 AS cor0
----
-46
56
-64
56
-75
56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT + 20 * + ( - col0 ) FROM tab2
----
-1280
-1500
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT + CAST( + 59 AS SIGNED ) * col0 AS col0 FROM tab0
----
5133
5723
885

skipif mysql # not compatible
query I rowsort label-7660
SELECT + CAST ( + 59 AS INTEGER ) * col0 AS col0 FROM tab0
----
5133
5723
885

query I rowsort
SELECT - 88 * - - ( + col1 ) FROM tab2
----
-4488
-5896
-6776

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < col1 * col2 + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - 3 + - ( + + col1 ) + + col2 + + 83, ( 83 ) * col0 + - col0 + - col0, + - col1, - + 83 )
----

query I rowsort
SELECT + col1 * + 47 * - col0 FROM tab0
----
-4559
-57105
-85869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7665
SELECT ALL + CAST( NULL AS SIGNED ) / + + MAX( - 32 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL + CAST ( NULL AS INTEGER ) / + + MAX ( - 32 ) FROM tab2
----
NULL

query I rowsort
SELECT + 54 * + col2 AS col2 FROM tab2
----
1242
2160
3132

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 16 - + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7668
SELECT ( 48 ) + + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT ( 48 ) + + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 64 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + col2 + ( + - 98 ) FROM tab2
----
-107
-126
-135

query I rowsort
SELECT ALL + col0 + - + 75 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + ( + COUNT( * ) ) * + + SUM( 73 ) FROM tab1 AS cor0
----
657

skipif mysql # not compatible
query I rowsort label-7672
SELECT + ( + COUNT ( * ) ) * + + SUM ( 73 ) FROM tab1 AS cor0
----
657

query II rowsort
SELECT DISTINCT col0, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 34 * - col0 * + 74 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7675
SELECT + + col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7675
SELECT + + col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7676
SELECT - col1 DIV - + col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7676
SELECT - col1 / - + col1 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT ALL - CAST( NULL AS SIGNED ) * + + col2 + + - 98 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7677
SELECT ALL - CAST ( NULL AS INTEGER ) * + + col2 + + - 98 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT DISTINCT + SUM( - col1 ) col1 FROM tab0 WHERE - + col2 * + - col2 + + - col0 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7678
SELECT DISTINCT + SUM ( - col1 ) col1 FROM tab0 WHERE - + col2 * + - col2 + + - col0 NOT BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT col0 - + col0, - 95 AS col2 FROM tab2
----
0
-95
0
-95
0
-95

query I rowsort
SELECT + 74 - - 2 FROM tab0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 - 70 col0 FROM tab2
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 * - + col2 + col0 col1 FROM tab1
----
-269
-317
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT ALL - COUNT( * ) - + - 79 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL - COUNT ( * ) - + - 79 FROM tab0
----
76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 / + 78 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 - - 66, - 36 col0 FROM tab0 cor0
----
113
-36
165
-36
76
-36

query I rowsort
SELECT col0 * - 21 + col0 AS col2 FROM tab0 AS cor0
----
-1740
-1940
-300

query I rowsort
SELECT - 24 * + - 59 AS col2 FROM tab0 AS cor0
----
1416
1416
1416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT ALL col1 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL col1 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col1 ) * - col0 col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT 0 * - col0 * + + 6 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * 94 + ( + - 34 ) + - 74 AS col0 FROM tab1 AS cor0 WHERE + 21 * + - col0 - - + col1 * - col2 > + - col0 + + col0 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7692
SELECT ALL + CAST( NULL AS SIGNED ) + col1 + + + col2 * col1 AS col1 FROM tab2 AS cor0 WHERE 65 + - col0 = - col0 + - col1
----

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 + + + col2 * col1 AS col1 FROM tab2 AS cor0 WHERE 65 + - col0 = - col0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT - ( + + ( - MAX( DISTINCT - 6 ) ) ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7693
SELECT - ( + + ( - MAX ( DISTINCT - 6 ) ) ) AS col1 FROM tab1 AS cor0
----
-6

query II rowsort
SELECT ALL col1 + + col2, 52 * + ( - 37 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT DISTINCT + - COUNT( - col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT + - COUNT ( - col2 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( + col2 ) * - 25 FROM tab1 AS cor0
----
-1475
-1700
-2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( + - col1 ) col0 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL + col2 * - 14 FROM tab1 AS cor0
----
-1344
-826
-952

query I rowsort
SELECT ALL col0 * col2 / + ( col0 ) / 62 FROM tab1 cor0 WHERE + col0 >= + 49 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT - + col1 FROM tab1 WHERE NOT + 24 BETWEEN NULL AND - CAST( NULL AS SIGNED ) + - col0
----

skipif mysql # not compatible
query I rowsort label-7700
SELECT - + col1 FROM tab1 WHERE NOT + 24 BETWEEN NULL AND - CAST ( NULL AS INTEGER ) + - col0
----

query I rowsort
SELECT + col0 * col0 + 4 AS col2 FROM tab2
----
2120
4100
5629

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT ALL + 15 + - ( + + COUNT( * ) ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL + 15 + - ( + + COUNT ( * ) ) FROM tab2
----
12

query II rowsort
SELECT DISTINCT col1, col1 AS col1 FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab1 WHERE NOT 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + - 84 col0, ( - 16 ) * + - col1 + + + 63 FROM tab2 AS cor0
----
-26
1135
-44
1295
-61
879

query I rowsort
SELECT ALL + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7707
SELECT col1, col2 * CAST( 18 AS SIGNED ) + + - col2 + + 52 - - col2 AS col2 FROM tab0 AS cor0
----
1
1834
21
232
81
898

skipif mysql # not compatible
query II rowsort label-7707
SELECT col1, col2 * CAST ( 18 AS INTEGER ) + + - col2 + + 52 - - col2 AS col2 FROM tab0 AS cor0
----
1
1834
21
232
81
898

query II rowsort
SELECT ALL col1, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query III rowsort
SELECT * FROM tab1 WHERE + 26 - + col2 NOT BETWEEN NULL AND - col0
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT ALL - COUNT( * ) + - + 72 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL - COUNT ( * ) + - + 72 FROM tab0
----
-75

query I rowsort
SELECT ALL + 82 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL - 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 * + col2 col2 FROM tab0 AS cor0
----
-1175
-2475
-250

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + col0 - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7715
SELECT 56 DIV - + COUNT( * ) + + - SUM( - 31 ) col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7715
SELECT 56 / - + COUNT ( * ) + + - SUM ( - 31 ) col1 FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT col2 / + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT col2 / + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT + COUNT( - 2 ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7718
SELECT + COUNT ( - 2 ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + 8 + + 63 FROM tab2 AS cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col1 FROM tab2 WHERE 98 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT DISTINCT col2 DIV + col1 + col2 + 10 * + col1 - + 76 * - + 8 FROM tab1
----
1147
728
850

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT col2 / + col1 + col2 + 10 * + col1 - + 76 * - + 8 FROM tab1
----
1147
728
850

query III rowsort
SELECT * FROM tab1 WHERE 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT MIN( DISTINCT + col0 ) + 98 FROM tab0
----
113

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT MIN ( DISTINCT + col0 ) + 98 FROM tab0
----
113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * - col0 * + 0 col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT MAX( + col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-7725
SELECT MAX ( + col1 ) FROM tab0 cor0
----
81

query I rowsort
SELECT DISTINCT - 7 * - col1 * 59 * col0 FROM tab0 AS cor0
----
40061
501795
754551

query I rowsort
SELECT 59 * col1 AS col1 FROM tab2 AS cor0
----
3009
3953
4543

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT DISTINCT - - COUNT( * ) * - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-81

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT - - COUNT ( * ) * - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-81

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > + col0 - + + 90
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7730
SELECT - col0 DIV - ( + 76 ) * + - ( - 74 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7730
SELECT - col0 / - ( + 76 ) * + - ( - 74 ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7731
SELECT DISTINCT + col0 + + col1 + + col2 + col1 AS col1, col2 FROM tab2 AS cor0 WHERE NOT col2 * + col2 / + - 31 + + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-7731
SELECT DISTINCT + col0 + + col1 + + col2 + col1 AS col1, col2 FROM tab2 AS cor0 WHERE NOT col2 * + col2 / + - 31 + + + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 6 NOT BETWEEN 19 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 31 )
----

query I rowsort
SELECT col1 * - 63 FROM tab1
----
-2961
-315
-882

query II rowsort
SELECT + 51, col1 FROM tab0
----
51
1
51
21
51
81

query I rowsort
SELECT 45 * + 38 FROM tab0
----
1710
1710
1710

query I rowsort
SELECT ALL 55 + + col0 AS col1 FROM tab2
----
101
119
130

query I rowsort
SELECT DISTINCT ( + + 63 ) * + + 1 FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL COUNT( ALL 23 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL COUNT ( ALL 23 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 - - + col1 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 89 ) col2 FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT 85 * + + COUNT( * ) FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-7742
SELECT 85 * + + COUNT ( * ) FROM tab0
----
255

query I rowsort
SELECT DISTINCT + - 25 AS col2 FROM tab1 AS cor0 WHERE NOT 80 * + col0 > + 36 * - col2 * + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <> + col0 - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7745
SELECT ALL + - 90 DIV + - 40 + + col0 AS col2 FROM tab0 AS cor0
----
17
89
99

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL + - 90 / + - 40 + + col0 AS col2 FROM tab0 AS cor0
----
17
89
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT DISTINCT + COUNT( * ) + 10 AS col0 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT + COUNT ( * ) + 10 AS col0 FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT - ( - 60 ) + - COUNT( * ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-7747
SELECT - ( - 60 ) + - COUNT ( * ) FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT ALL + COUNT( * ) + + 20 AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL + COUNT ( * ) + + 20 AS col0 FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT + COUNT( * ) + 37 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-7749
SELECT + COUNT ( * ) + 37 FROM tab0
----
40

query I rowsort
SELECT + - ( - - col1 ) * + 82 FROM tab0 AS cor0
----
-1722
-6642
-82

query I rowsort
SELECT DISTINCT + col0 - + - col0 AS col0 FROM tab1 AS cor0
----
102
170
182

query II rowsort
SELECT DISTINCT 24 * col1, col0 / - col1 FROM tab0 cor0 WHERE NOT ( NOT 93 <= NULL )
----

query I rowsort
SELECT ALL + 99 - col1 AS col2 FROM tab0 cor0
----
18
78
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7754
SELECT DISTINCT 32 AS col0, 17 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-7754
SELECT DISTINCT 32 AS col0, 17 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
32
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7755
SELECT * FROM tab2 cor0 WHERE NULL < ( + 51 ) / + CAST( - + 88 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7755
SELECT * FROM tab2 cor0 WHERE NULL < ( + 51 ) / + CAST ( - + 88 AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7756
SELECT * FROM tab0 AS cor0 WHERE - 4 IN ( + 86 * - 4 + - col0 * 86 + - + col1, ( - col2 ), + col1, + - col1 * CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-7756
SELECT * FROM tab0 AS cor0 WHERE - 4 IN ( + 86 * - 4 + - col0 * 86 + - + col1, ( - col2 ), + col1, + - col1 * CAST ( NULL AS INTEGER ) * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7757
SELECT ALL + col0 DIV - - 7 + - - CAST( - 77 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
-60
22
33

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL + col0 / - - 7 + - - CAST ( - 77 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
-60
22
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT - COUNT( * ) - + + 3 + - 93 AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7758
SELECT - COUNT ( * ) - + + 3 + - 93 AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT DISTINCT col0 DIV + - 5 FROM tab1 AS cor0
----
-10
-17
-18

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT col0 / + - 5 FROM tab1 AS cor0
----
-10
-17
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT ALL ( + + CAST( + 99 AS SIGNED ) ) FROM tab2
----
99
99
99

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL ( + + CAST ( + 99 AS INTEGER ) ) FROM tab2
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT - COUNT( * ) * - - 28 AS col2 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-7761
SELECT - COUNT ( * ) * - - 28 AS col2 FROM tab2
----
-84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7762
SELECT DISTINCT + 63 * + col1 + - col2 - + + CAST( + + 1 AS DECIMAL ) * - col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 <= + - ( col0 ) * - - col2 / - ( 44 ) + col1 * + col2
----

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT + 63 * + col1 + - col2 - + + CAST ( + + 1 AS REAL ) * - col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 <= + - ( col0 ) * - - col2 / - ( 44 ) + col1 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 21 col2 FROM tab0 AS cor0
----
1827
2037
315

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - col2 * + - 97
----

query I rowsort
SELECT ALL - 10 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT - + 79 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 61 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 * 23 * - col2 * + col0 + + 83 + - + 30 / + - 66 FROM tab0 WHERE ( NOT col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7768
SELECT 19 DIV + col0 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7768
SELECT 19 / + col0 FROM tab0 cor0
----
0
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 17 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col1 * + 93 * - + col1 AS col0 FROM tab2 AS cor0
----
22055880
24213666
5563539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 26 ) col1 FROM tab0 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT - SUM( - + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7772
SELECT - SUM ( - + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT - col2 * + ( - 97 ) + col2 AS col0 FROM tab1
----
5782
6664
9408

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 AS col1 FROM tab2 WHERE col0 < NULL
----

query I rowsort
SELECT DISTINCT 91 * - + 65 AS col1 FROM tab1
----
-5915

query III rowsort
SELECT * FROM tab1 WHERE + 16 + col0 NOT BETWEEN + col1 AND + 85
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7777
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 35 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 35 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 * + 67 AS col0 FROM tab2 AS cor0
----
1541
2680
3886

query I rowsort
SELECT DISTINCT 4 + col2 * - col2 FROM tab2 AS cor0
----
-1596
-3360
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL - - 41 * COUNT( * ) FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL - - 41 * COUNT ( * ) FROM tab0 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT DISTINCT - 22 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7781
SELECT DISTINCT - 22 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT 3 FROM tab0 AS cor0 WHERE ( col2 - 97 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 80 + 98 AS col0 FROM tab0 AS cor0 WHERE - col2 * + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7784
SELECT + ( ( + 65 ) ) DIV col1, + col2 AS col1 FROM tab2 AS cor0
----
0
40
0
58
1
23

skipif mysql # not compatible
query II rowsort label-7784
SELECT + ( ( + 65 ) ) / col1, + col2 AS col1 FROM tab2 AS cor0
----
0
40
0
58
1
23

query III rowsort
SELECT * FROM tab2 WHERE 4 + - 3 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7786
SELECT CAST( + COUNT( * ) AS SIGNED ) + + 5, 62 AS col1 FROM tab0
----
8
62

skipif mysql # not compatible
query II rowsort label-7786
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + + 5, 62 AS col1 FROM tab0
----
8
62

query I rowsort
SELECT 8 + + - col2 AS col0 FROM tab2
----
-15
-32
-50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7788
SELECT SUM( ALL CAST( NULL AS DECIMAL ) ) + - 86 col2, 29 AS col1 FROM tab0
----
NULL
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7788
SELECT SUM ( ALL CAST ( NULL AS REAL ) ) + - 86 col2, 29 AS col1 FROM tab0
----
NULL
29

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 99 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT 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-7790
SELECT COUNT ( * ) + COUNT ( * ) col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT + 49 + + + 97 AS col0 FROM tab0 AS cor0
----
146
146
146

query I rowsort
SELECT + 50 + + 98 FROM tab0 AS cor0
----
148
148
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT + ( CAST( NULL AS SIGNED ) ) + + 22 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT + ( CAST ( NULL AS INTEGER ) ) + + 22 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT COUNT( - col0 ) * - COUNT( * ) + - 5 + + MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7794
SELECT COUNT ( - col0 ) * - COUNT ( * ) + - 5 + + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT + col1 + + + col2 DIV - col2 + + - 90 AS col2 FROM tab2 cor0
----
-14
-24
-40

skipif mysql # not compatible
query I rowsort label-7795
SELECT + col1 + + + col2 / - col2 + + - 90 AS col2 FROM tab2 cor0
----
-14
-24
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7796
SELECT DISTINCT - SUM( CAST( 24 AS SIGNED ) ) AS col1 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT - SUM ( CAST ( 24 AS INTEGER ) ) AS col1 FROM tab1
----
-72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * + - col0 < + 96 + col2
----

query I rowsort
SELECT + 24 AS col0 FROM tab1 WHERE NOT ( + - col1 ) >= - 72 + + col2
----
24
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7799
SELECT CAST( NULL AS SIGNED ), + COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7799
SELECT CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col2 FROM tab0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT - 96 DIV - - col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-7800
SELECT - 96 / - - col2 FROM tab2
----
-1
-2
-4

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col1 ) > NULL
----

query II rowsort
SELECT - col0 AS col1, + col2 AS col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NULL = + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT - MIN( col0 ) * + 44 col0 FROM tab1 AS cor0
----
-2244

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7804
SELECT - MIN ( col0 ) * + 44 col0 FROM tab1 AS cor0
----
-2244

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7805
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE col2 - - col0 / + - CAST( - col0 AS DECIMAL ) * - - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE col2 - - col0 / + - CAST ( - col0 AS REAL ) * - - col1 IS NULL
----

query I rowsort
SELECT col2 + + col0 + + + 6 FROM tab2
----
110
139
75

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT DISTINCT + - COUNT( DISTINCT - 33 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT + - COUNT ( DISTINCT - 33 ) FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT ALL + ( MAX( + col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL + ( MAX ( + col0 ) ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 18 * + 69 + 12 + col0 FROM tab0
----
-1133
-1143
-1215

query I rowsort
SELECT DISTINCT col0 + + + 26 FROM tab2
----
101
72
90

query I rowsort
SELECT ( + ( + + col0 ) ) AS col1 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT ALL + col1 DIV - + 64 + - col0 FROM tab0
----
-16
-87
-97

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + col1 / - + 64 + - col0 FROM tab0
----
-16
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7816
SELECT ALL - ( - CAST( 73 AS SIGNED ) ) FROM tab2
----
73
73
73

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL - ( - CAST ( 73 AS INTEGER ) ) FROM tab2
----
73
73
73

query I rowsort
SELECT ALL - col0 - - 66 AS col1 FROM tab2 cor0
----
-9
2
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7818
SELECT - + 96 + - + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-147
-163
-173

skipif mysql # not compatible
query I rowsort label-7818
SELECT - + 96 + - + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-147
-163
-173

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > + col0
----

query I rowsort
SELECT - 23 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 * + col2 + + col1 + 19 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT ALL + CAST( NULL AS SIGNED ) * col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * - 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7824
SELECT ALL + MIN( + ( ( + CAST( + 34 AS SIGNED ) ) ) ) AS col0 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + MIN ( + ( ( + CAST ( + 34 AS INTEGER ) ) ) ) AS col0 FROM tab1 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT + + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT + + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT - MAX( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7826
SELECT - MAX ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 * + - col1 AND - col2
----

query I rowsort
SELECT 59 * 32 FROM tab1
----
1888
1888
1888

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT DISTINCT + 79 * SUM( DISTINCT + - col0 ) AS col2 FROM tab2
----
-14615

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT + 79 * SUM ( DISTINCT + - col0 ) AS col2 FROM tab2
----
-14615

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT - 19 * + COUNT( - col0 ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-7830
SELECT - 19 * + COUNT ( - col0 ) FROM tab1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7831
SELECT - col2 DIV + + col1 * + col2 * + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7831
SELECT - col2 / + + col1 * + col2 * + col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7832
SELECT ALL - col1 / - - CAST( NULL AS SIGNED ) * - 40 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL - col1 / - - CAST ( NULL AS INTEGER ) * - 40 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7833
SELECT + CAST( - AVG ( ALL 10 ) AS DECIMAL ) * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT + CAST ( - AVG ( ALL 10 ) AS REAL ) * CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT DISTINCT + MAX( ALL - col0 ) * - COUNT( - col2 ) col0 FROM tab0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7834
SELECT DISTINCT + MAX ( ALL - col0 ) * - COUNT ( - col2 ) col0 FROM tab0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7835
SELECT ALL - COUNT( * ) / - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL - COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + + ( - 71 ) FROM tab1 cor0
----
-71
-71
-71

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL >= - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 > - + ( - 97 ) * + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT - + col2 DIV - - col2 + - + 68 FROM tab1 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-7840
SELECT - + col2 / - - col2 + - + 68 FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT + - 58 + - COUNT( * ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7841
SELECT + - 58 + - COUNT ( * ) FROM tab2 AS cor0
----
-61

query I rowsort
SELECT + 92 + col2 - - + col0 AS col1 FROM tab0
----
154
189
288

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7843
SELECT ALL - 30 / - col2 + - - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL - 30 / - col2 + - - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 84 ) + - 34 FROM tab2
----
50

query I rowsort
SELECT - col0 * ( + col1 ) FROM tab2 cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT + 94 * + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
846

skipif mysql # not compatible
query I rowsort label-7846
SELECT + 94 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL MAX( ALL - + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL MAX ( ALL - + col1 ) FROM tab0
----
-1

query II rowsort
SELECT - + col0, 99 AS col2 FROM tab1 AS cor0
----
-51
99
-85
99
-91
99

query I rowsort
SELECT + - 77 * + 4 FROM tab1 cor0
----
-308
-308
-308

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - 80 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7851
SELECT ALL - COUNT( * ), ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-7851
SELECT ALL - COUNT ( * ), ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-3
NULL

query II rowsort
SELECT ALL + + col1, col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT - + ( - col1 ) FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 38 <> NULL
----

query I rowsort
SELECT + col0 * - col2 FROM tab2 AS cor0 WHERE NOT + 65 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT DISTINCT SUM( ALL + 31 ) AS col1 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT SUM ( ALL + 31 ) AS col1 FROM tab1
----
93

query I rowsort
SELECT ALL + 75 * 30 - - col2 AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
2273
2290
2308

onlyif mysql # DIV for integer division: 
query II rowsort label-7858
SELECT col0 DIV - 96 AS col0, col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-7858
SELECT col0 / - 96 AS col0, col0 FROM tab1
----
0
51
0
85
0
91

query I rowsort
SELECT ( col0 ) * - - 21 * + - 74 + - + 92 + + col2 AS col0 FROM tab2
----
-116584
-71553
-99508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7860
SELECT DISTINCT CAST( - - col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL - COUNT( * ) * - MAX( - 35 ) AS col1 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL - COUNT ( * ) * - MAX ( - 35 ) AS col1 FROM tab2
----
-105

query I rowsort
SELECT + ( + + ( 37 ) ) FROM tab1
----
37
37
37

query I rowsort
SELECT - 64 * + + col2 * col0 FROM tab1 AS cor0
----
-313344
-320960
-396032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7864
SELECT - + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7864
SELECT - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 61 + col1 <= - col2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT 32 + - COUNT( * ) * + 37 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-7866
SELECT 32 + - COUNT ( * ) * + 37 FROM tab1
----
-79

query I rowsort
SELECT ALL + ( - col2 ) + - 96 * - + 81 AS col2 FROM tab1
----
7680
7708
7717

query I rowsort
SELECT DISTINCT + col0 + ( - col0 ) * col1 * - 79 AS col0 FROM tab0
----
144420
7760
96000

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7869
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND + - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7869
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND + - ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= + 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 + 2 col2 FROM tab2 cor0
----
-1598
-3362
-527

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7872
SELECT DISTINCT col2 + col2, ( - CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - + col2, col1 + col0, col0, col0, 13 )
----
118
NULL
136
NULL
192
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7872
SELECT DISTINCT col2 + col2, ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - + col2, col1 + col0, col0, col0, 13 )
----
118
NULL
136
NULL
192
NULL

query I rowsort
SELECT DISTINCT - col0 * - - ( + - col2 ) + ( + col2 ) + col1 * - - col1 + - col1 + - 6 FROM tab1 AS cor0
----
5088
5168
8412

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 > 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 67 AS col2 FROM tab1 cor0
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7876
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 IN ( - + col1, col1 * - - 66, 97 * + col2, + col1 + - - 39, + + CAST( col1 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7876
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 IN ( - + col1, col1 * - - 66, 97 * + col2, + col1 + - - 39, + + CAST ( col1 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + 41 FROM tab2 AS cor0
----
64
81
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 * col1 + + + col0 ) IS NOT NULL
----

query I rowsort
SELECT col0 - - col0 + - col1 FROM tab2
----
41
51
83

query I rowsort
SELECT 50 * - 71 * - col2 - col2 FROM tab1
----
209391
241332
340704

query I rowsort
SELECT DISTINCT + col0 + + 13 AS col0 FROM tab2
----
59
77
88

query I rowsort
SELECT DISTINCT + col0 * - + col1 * - 54 + - col1 * + 14 * + col0 AS col0 FROM tab0
----
3880
48600
73080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT ALL - CAST( NULL AS SIGNED ) + + ( + col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL - CAST ( NULL AS INTEGER ) + + ( + col0 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT COUNT( * ) + + 23 AS col2 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-7884
SELECT COUNT ( * ) + + 23 AS col2 FROM tab2
----
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + - 18 * + + col2 FROM tab1 AS cor0
----
-1057
-1177
-1714

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT COUNT( + - 33 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7887
SELECT COUNT ( + - 33 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT - COUNT( * ) * - 72 AS col1 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-7888
SELECT - COUNT ( * ) * - 72 AS col1 FROM tab1
----
216

query II rowsort
SELECT DISTINCT col0 * 9 AS col1, col0 FROM tab0
----
135
15
783
87
873
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + - col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) > + 87
----

query II rowsort
SELECT DISTINCT + col0 AS col0, 15 FROM tab2
----
46
15
64
15
75
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7893
SELECT col2 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT col2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - col2, 50 * - col2 AS col1 FROM tab0
----
-10
-500
-47
-2350
-99
-4950

query I rowsort
SELECT col1 * col2 * - col1 + col1 * - col2 + - col2 + col0 * - col0 AS col0 FROM tab1
----
-161757
-22857
-9054

query I rowsort
SELECT DISTINCT ( + - 82 ) AS col2 FROM tab1
----
-82

query I rowsort
SELECT - col2 * col2 FROM tab1 cor0 WHERE NOT NULL > 86
----

query I rowsort
SELECT ALL 13 * - col2 AS col1 FROM tab2 AS cor0
----
-299
-520
-754

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - - col1 + - col2 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 39 * + + col2 AS col0 FROM tab1 AS cor0
----
2301
2652
3744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7901
SELECT DISTINCT COUNT( * ) * + CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT COUNT ( * ) * + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 - + 99 col2 FROM tab2
----
-158
-158
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 2 col1 FROM tab0
----
45
8
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7904
SELECT DISTINCT - col0 + col1 AS col2 FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) * + col0 NOT IN ( - col0 / + 59 + 9 )
----

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT - col0 + col1 AS col2 FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) * + col0 NOT IN ( - col0 / + 59 + 9 )
----

query I rowsort
SELECT ALL 4 * - 84 FROM tab2
----
-336
-336
-336

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT ( - col2 / col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7907
SELECT ALL ( CAST( NULL AS SIGNED ) ) * 51 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * 51 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + 86 AS col2 FROM tab1
----
-10
18
27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 - col0 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 28 + col1 FROM tab1 WHERE NOT + 32 * - col0 NOT IN ( - 87 )
----

query I rowsort
SELECT - ( 90 ) * col0 + 76 AS col0 FROM tab2 WHERE NOT + 15 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 61 FROM tab0 WHERE NOT NULL < 45 * - col1
----

query I rowsort
SELECT 64 * + ( col2 ) AS col2 FROM tab1
----
3776
4352
6144

query I rowsort
SELECT 2 * col2 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT 71 - - SUM( + 61 + 29 ) FROM tab0
----
341

skipif mysql # not compatible
query I rowsort label-7915
SELECT 71 - - SUM ( + 61 + 29 ) FROM tab0
----
341

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT COUNT( * ) + 70 * + 14 col2 FROM tab1
----
983

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7916
SELECT COUNT ( * ) + 70 * + 14 col2 FROM tab1
----
983

query I rowsort
SELECT DISTINCT - 1 + col2 * 90 AS col0 FROM tab2
----
2069
3599
5219

query I rowsort
SELECT - col1 - 38 FROM tab1
----
-43
-52
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( col2 ) col0 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT ALL 19 * col1 + col1 * - col2 AS col0 FROM tab0
----
-2268
-80
189

query I rowsort
SELECT ( 85 ) * 2 - 64 AS col1 FROM tab0
----
106
106
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7922
SELECT 69 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT 69 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) * + col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT 75 * 13 AS col2 FROM tab1
----
975
975
975

query I rowsort
SELECT 81 * + col1 FROM tab0
----
1701
6561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT 25 * COUNT( * ) FROM tab0 WHERE ( + 74 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7926
SELECT 25 * COUNT ( * ) FROM tab0 WHERE ( + 74 ) >= NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE - 34 > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT COUNT( + 53 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7928
SELECT COUNT ( + 53 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab1 WHERE NOT NULL <> 59 + ( 85 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7930
SELECT ALL - 29 DIV - 22 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL - 29 / - 22 AS col1 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7931
SELECT ALL 95 DIV + 29 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL 95 / + 29 FROM tab1
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7932
SELECT DISTINCT + col2 DIV + CAST( + 28 AS SIGNED ) AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT + col2 / + CAST ( + 28 AS INTEGER ) AS col2 FROM tab0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7933
SELECT * FROM tab2 WHERE NOT - ( CAST( NULL AS SIGNED ) ) - col2 IN ( col1 + col2 )
----

skipif mysql # not compatible
query III rowsort label-7933
SELECT * FROM tab2 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) - col2 IN ( col1 + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( col1 ) AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL - COUNT( ALL + 37 ) * - COUNT( DISTINCT - col1 ) - COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL - COUNT ( ALL + 37 ) * - COUNT ( DISTINCT - col1 ) - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + 5 * col1 FROM tab2 AS cor0
----
255
335
385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 4 col0 FROM tab1 AS cor0
----
204
340
364

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7938
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 <> ( NULL )
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab0 ON ( + 75 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT + MAX( 48 ) FROM tab1 cor0 CROSS JOIN tab0
----
48

skipif mysql # not compatible
query I rowsort label-7940
SELECT + MAX ( 48 ) FROM tab1 cor0 CROSS JOIN tab0
----
48

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + - ( 31 ) * + 74 NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT + COUNT( DISTINCT - 4 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7943
SELECT + COUNT ( DISTINCT - 4 ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7944
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + CAST( NULL AS SIGNED ) + col0 * col1 )
----

skipif mysql # not compatible
query III rowsort label-7944
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + CAST ( NULL AS INTEGER ) + col0 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT - 76 * - 26 + - col2 DIV 42 FROM tab1 cor0 WHERE NOT - 55 IS NULL
----
1974
1975
1975

skipif mysql # not compatible
query I rowsort label-7945
SELECT - 76 * - 26 + - col2 / 42 FROM tab1 cor0 WHERE NOT - 55 IS NULL
----
1974
1975
1975

query I rowsort
SELECT DISTINCT - ( - 25 ) FROM tab1 cor0
----
25

query I rowsort
SELECT + col2 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 IN ( col2 * ( + 1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL - MIN( DISTINCT - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL - MIN ( DISTINCT - col2 ) FROM tab1
----
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + col0 + + 27 )
----

query I rowsort
SELECT DISTINCT - 28 AS col2 FROM tab0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT + SUM( DISTINCT col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7952
SELECT + SUM ( DISTINCT col2 ) AS col1 FROM tab2
----
121

query I rowsort
SELECT + 57 * - - col1 AS col1 FROM tab2
----
2907
3819
4389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col0 FROM tab2
----
57
57
57

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT ( + 62 + col1 ) NOT BETWEEN col2 / 38 AND + col2 * - col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT - - SUM( col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7956
SELECT - - SUM ( col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL col1 * + + col2 + + col1 AS col2 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT ALL + - col0 * - 9 + - 28 + - col2 FROM tab1 AS cor0
----
335
678
723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 24 < + col0
----
87
21
10
97
1
99

query I rowsort
SELECT + 39 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT + - 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE ( - col0 + CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND + 59 OR NOT ( + col1 ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE ( - col0 + CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND + 59 OR NOT ( + col1 ) IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7964
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * CAST( + col0 AS SIGNED ) * col0 NOT BETWEEN col1 AND ( + 14 )
----

skipif mysql # not compatible
query III rowsort label-7964
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * CAST ( + col0 AS INTEGER ) * col0 NOT BETWEEN col1 AND ( + 14 )
----

query I rowsort
SELECT DISTINCT + col0 * + col1 - - col0 AS col0 FROM tab2 cor0
----
2392
4992
5100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ALL COUNT( * ) * - + COUNT( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL COUNT ( * ) * - + COUNT ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

query I rowsort
SELECT col1 * - col1 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 51 * col1 AS col2 FROM tab1 AS cor0
----
2397
255
714

query I rowsort
SELECT + col1 - - 44 AS col0 FROM tab2 AS cor0
----
111
121
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT col2 DIV + + col2 - - + ( + col0 ) AS col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-7971
SELECT col2 / + + col2 - - + ( + col0 ) AS col0 FROM tab2
----
47
65
76

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NOT NULL AND NOT + col1 IN ( col0 / - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT - 73 * - + CAST( NULL AS SIGNED ) * ( - + col0 ) - 20 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT - 73 * - + CAST ( NULL AS INTEGER ) * ( - + col0 ) - 20 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7974
SELECT ALL - CAST( NULL AS SIGNED ) + - 6 + - SUM( col2 ) * 66 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL - CAST ( NULL AS INTEGER ) + - 6 + - SUM ( col2 ) * 66 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT - COUNT( * ) * COUNT( * ) FROM tab1 WHERE ( col0 ) <> ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7975
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE ( col0 ) <> ( + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT DISTINCT COUNT( * ) + 36 * + - COUNT( * ) AS col2 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT COUNT ( * ) + 36 * + - COUNT ( * ) AS col2 FROM tab0
----
-105

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 IS NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL ( MAX( col0 ) ) * + - COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL ( MAX ( col0 ) ) * + - COUNT ( * ) FROM tab2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL + COUNT( + + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL + COUNT ( + + col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 33 * - 69 AS col1 FROM tab1
----
-2277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7981
SELECT ( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7982
SELECT ALL col2 * col0 * - CAST( + + col2 AS SIGNED ) AS col0 FROM tab2
----
-102400
-24334
-252300

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL col2 * col0 * - CAST ( + + col2 AS INTEGER ) AS col0 FROM tab2
----
-102400
-24334
-252300

query I rowsort
SELECT DISTINCT col0 * + - col1 * + + col2 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 85, col0 )
----

query I rowsort
SELECT DISTINCT - + 53 AS col2 FROM tab1 cor0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7987
SELECT + COUNT( + ( CAST( - col1 AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7987
SELECT + COUNT ( + ( CAST ( - col1 AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col0 + col1 FROM tab2 WHERE NOT - + 16 + col0 IS NULL
----
-8
13
5

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE ( + 6 / + 51 - + + 9 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT - 5 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NULL >= + col0 * - - col1
----

query I rowsort
SELECT ALL - 41 AS col0 FROM tab0 cor0
----
-41
-41
-41

query II rowsort
SELECT - col1, - col1 AS col2 FROM tab2 cor0
----
-51
-51
-67
-67
-77
-77

query I rowsort
SELECT - - ( - 80 ) FROM tab1 AS cor0
----
-80
-80
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7995
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + - CAST( NULL AS DECIMAL ) ) NOT BETWEEN + + col1 + + 71 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7995
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + - CAST ( NULL AS REAL ) ) NOT BETWEEN + + col1 + + 71 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT + MIN( + + col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7996
SELECT + MIN ( + + col2 ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7997
SELECT + 27 AS col2, COUNT( DISTINCT + + 99 ) - + + 3 FROM tab2 AS cor0
----
27
-2

skipif mysql # not compatible
query II rowsort label-7997
SELECT + 27 AS col2, COUNT ( DISTINCT + + 99 ) - + + 3 FROM tab2 AS cor0
----
27
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT + MIN( - col1 ) + - 61 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-7998
SELECT + MIN ( - col1 ) + - 61 FROM tab2
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT DISTINCT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT - + ( - 86 ) * + COUNT( * ) FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8000
SELECT - + ( - 86 ) * + COUNT ( * ) FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----
0

query I rowsort
SELECT ALL + 38 + + col2 AS col0 FROM tab2
----
61
78
96

query III rowsort
SELECT * FROM tab2 WHERE - 81 * + - col1 < + - col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 45 + - + col1 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8004
SELECT + col1 + + - CAST( NULL AS SIGNED ) AS col2, - ( - col2 ) - 49 FROM tab2
----
NULL
-26
NULL
-9
NULL
9

skipif mysql # not compatible
query II rowsort label-8004
SELECT + col1 + + - CAST ( NULL AS INTEGER ) AS col2, - ( - col2 ) - 49 FROM tab2
----
NULL
-26
NULL
-9
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT ALL + MIN( DISTINCT 8 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL + MIN ( DISTINCT 8 ) FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL - 78 + + - col1 FROM tab2
----
-129
-145
-155

query III rowsort
SELECT * FROM tab1 WHERE col1 <> ( + col0 * - 39 ) AND NOT - col2 + + 99 IN ( col0 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE 9 - col1 IN ( - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT COUNT( * ) * + + ( + 85 ) + + COUNT( * ) + MAX( - + col1 ) AS col0 FROM tab2 cor0
----
207

skipif mysql # not compatible
query I rowsort label-8010
SELECT COUNT ( * ) * + + ( + 85 ) + + COUNT ( * ) + MAX ( - + col1 ) AS col0 FROM tab2 cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT DISTINCT - MIN( + + col0 ) * + MIN( - col1 ) * + 30 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT - MIN ( + + col0 ) * + MIN ( - col1 ) * + 30 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - 13 * - - col2 AS col2 FROM tab2 cor0
----
-299
-520
-754

query II rowsort
SELECT DISTINCT col0, + ( + - 15 ) * - col1 FROM tab1
----
51
210
85
75
91
705

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT DISTINCT - COUNT( col0 ) + - - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT - COUNT ( col0 ) + - - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT 64 * col2 FROM tab2
----
1472
2560
3712

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT DISTINCT - COUNT( * ) * + 57 * - SUM( ALL - 2 ) col2 FROM tab2
----
-1026

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8016
SELECT DISTINCT - COUNT ( * ) * + 57 * - SUM ( ALL - 2 ) col2 FROM tab2
----
-1026

query I rowsort
SELECT DISTINCT 12 * + col2 FROM tab2
----
276
480
696

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + col1 * 50 * - + col2 >= col1 + + 29
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 - ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * 97 FROM tab1
----
-5723
-6596
-9312

query I rowsort
SELECT DISTINCT - 79 * - + col1 FROM tab0
----
1659
6399
79

query I rowsort
SELECT + + ( 75 ) FROM tab1 AS cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col1, + col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8024
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + col2 NOT BETWEEN + 40 * + col2 * - - col2 AND ( + + 98 )
----

skipif mysql # not compatible
query III rowsort label-8024
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + col2 NOT BETWEEN + 40 * + col2 * - - col2 AND ( + + 98 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT 41 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 11 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8028
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE - - 3 IN ( - col2 + + + col1 * - - ( + 37 ) )
----

query I rowsort
SELECT AVG ( ALL + - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT ALL MAX( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 81 NOT IN ( ( - - col2 ) * - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL MAX ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 81 NOT IN ( ( - - col2 ) * - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8032
SELECT - col1 col1 FROM tab1 AS cor0 WHERE NOT - 44 * + + CAST( + col0 AS SIGNED ) IS NULL
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8032
SELECT - col1 col1 FROM tab1 AS cor0 WHERE NOT - 44 * + + CAST ( + col0 AS INTEGER ) IS NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8034
SELECT ALL col0 * - 59 * + col1 / - 41 + CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8034
SELECT ALL col0 * - 59 * + col1 / - 41 + CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8035
SELECT * FROM tab0 WHERE - CAST( + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8035
SELECT * FROM tab0 WHERE - CAST ( + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8036
SELECT + col1 * + ( CAST( - 11 AS SIGNED ) ) * - col0 AS col2 FROM tab1
----
4675
47047
7854

skipif mysql # not compatible
query I rowsort label-8036
SELECT + col1 * + ( CAST ( - 11 AS INTEGER ) ) * - col0 AS col2 FROM tab1
----
4675
47047
7854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( - 6 ) col1 FROM tab2
----
-306
-402
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT ALL + col1 * 66 + + - ( - col2 ) DIV - col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3366
4422
5082

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + col1 * 66 + + - ( - col2 ) / - col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3366
4422
5082

query II rowsort
SELECT ALL - 20 AS col0, - col0 AS col2 FROM tab2
----
-20
-46
-20
-64
-20
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT - ( MIN( ALL + col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8040
SELECT - ( MIN ( ALL + col2 ) ) FROM tab1
----
-59

query I rowsort
SELECT ALL col0 + + + col1 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT + SUM( + - 2 ) + - COUNT( * ) + - 64 col2 FROM tab2
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8042
SELECT + SUM ( + - 2 ) + - COUNT ( * ) + - 64 col2 FROM tab2
----
-73

query I rowsort
SELECT col1 + + - col2 + col1 * col0 AS col1 FROM tab0 AS cor0
----
-1
1249
1838

query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab0 cor0
----
-51

query II rowsort
SELECT ALL + + 12 * + + 31 + col1 AS col1, + 36 FROM tab1 AS cor0
----
377
36
386
36
419
36

query I rowsort
SELECT ALL - 68 FROM tab1 cor0
----
-68
-68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + - col0 col2 FROM tab2
----
19
37
8

query II rowsort
SELECT col1 AS col0, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 - - + col1 + - col2 col1 FROM tab0
----
-63
46
69

query I rowsort
SELECT ALL col1 - + 32 FROM tab2 cor0
----
19
35
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL SUM( DISTINCT - col1 ) * - - 96 AS col1 FROM tab2 AS cor0
----
-18720

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL SUM ( DISTINCT - col1 ) * - - 96 AS col1 FROM tab2 AS cor0
----
-18720

query I rowsort
SELECT - - col1 * + + col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT + 55 * - + MIN( - + col0 ) AS col1 FROM tab0
----
5335

skipif mysql # not compatible
query I rowsort label-8053
SELECT + 55 * - + MIN ( - + col0 ) AS col1 FROM tab0
----
5335

onlyif mysql # DIV for integer division: 
query I rowsort label-8054
SELECT 8 DIV + + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8054
SELECT 8 / + + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ( col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query II rowsort
SELECT col1, - 55 AS col1 FROM tab1 AS cor0
----
14
-55
47
-55
5
-55

query I rowsort
SELECT ALL + + col0 * + + col0 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8058
SELECT - - ( + + ( + SUM( - col1 ) ) ) DIV - + 11 + - - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8058
SELECT - - ( + + ( + SUM ( - col1 ) ) ) / - + 11 + - - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8059
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) <= + col1 * + 21
----

skipif mysql # not compatible
query III rowsort label-8059
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) <= + col1 * + 21
----

query I rowsort
SELECT + col2 + - + 53 FROM tab0 AS cor0
----
-43
-6
46

query II rowsort
SELECT DISTINCT col1 * col1 * + - 89, col0 AS col2 FROM tab2 AS cor0
----
-231489
46
-399521
75
-527681
64

query I rowsort
SELECT ALL + col2 + - + col1 FROM tab1 AS cor0
----
21
54
82

query II rowsort
SELECT 95 + - col2 * + 48 - - - 2 AS col2, + col0 FROM tab2 AS cor0
----
-1011
46
-1827
64
-2691
75

query I rowsort
SELECT ALL - col2 * - 7 AS col1 FROM tab1 AS cor0
----
413
476
672

query I rowsort
SELECT - 26 + + 61 * + col1 AS col1 FROM tab1
----
279
2841
828

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT DISTINCT COUNT( * ) * 48 + COUNT( * ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT COUNT ( * ) * 48 + COUNT ( * ) FROM tab2
----
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 61 col1 FROM tab0
----
-20
40
60

query II rowsort
SELECT + 19 - - + 69 AS col0, 89 * - col1 FROM tab2 AS cor0
----
88
-4539
88
-5963
88
-6853

query I rowsort
SELECT + + 63 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 / + col1 * + - 26 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8071
SELECT - - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT col0 + ( 31 ) FROM tab0
----
118
128
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8073
SELECT - col2 DIV - col1 + - ( - - col2 ) + col2 + + col0 * - 89 AS col1 FROM tab1
----
-4533
-7554
-8098

skipif mysql # not compatible
query I rowsort label-8073
SELECT - col2 / - col1 + - ( - - col2 ) + col2 + + col0 * - 89 AS col1 FROM tab1
----
-4533
-7554
-8098

query III rowsort
SELECT * FROM tab0 WHERE ( - 78 ) <> col0 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8076
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + col0 - - col2 + + + 70 * - - CAST( NULL AS SIGNED ) - + - col2 <= - - col1
----

skipif mysql # not compatible
query III rowsort label-8076
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + col0 - - col2 + + + 70 * - - CAST ( NULL AS INTEGER ) - + - col2 <= - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 39 col2 FROM tab0 AS cor0
----
39
39
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8078
SELECT CAST( NULL AS DECIMAL ) 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-8078
SELECT CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col0 * + 97 + + col2 AS col1, col2 FROM tab1 AS cor0 WHERE + 50 * + ( + + col1 ) - + col2 IS NOT NULL
----
-4851
96
-8186
59
-8759
68

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + col2 )
----

query II rowsort
SELECT - col2 AS col1, + col1 AS col0 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE NOT NULL = + - 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT - 71 * - COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
639

skipif mysql # not compatible
query I rowsort label-8085
SELECT - 71 * - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
639

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, col1 col1 FROM tab1
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - col0 + + ( col1 ) col1 FROM tab2
----
23
5
40
13
58
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL MAX( DISTINCT - 73 ) AS col2 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL MAX ( DISTINCT - 73 ) AS col2 FROM tab2 AS cor0
----
-73

query II rowsort
SELECT col1 AS col1, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 59 > col1 * + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8091
SELECT ALL CAST( - MAX( DISTINCT col2 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8091
SELECT ALL CAST ( - MAX ( DISTINCT col2 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + col1 > + + col1 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 17 + - 22 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + + col2 / + + col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8094
SELECT DISTINCT - COUNT( * ) * COUNT( * ) DIV + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + col0 = - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ALL - + COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( + 37 ), - col1 * - ( col2 ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8096
SELECT ALL - + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( + 37 ), - col1 * - ( col2 ) )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > + 22
----

query I rowsort
SELECT - 84 * + col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 38 + col1 AS col1 FROM tab2 AS cor0
----
105
115
89

query I rowsort
SELECT + - 22 AS col2 FROM tab1 WHERE NULL IS NULL
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT - CAST( - CAST( 47 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
47
47
47

skipif mysql # not compatible
query I rowsort label-8101
SELECT - CAST ( - CAST ( 47 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
47
47
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( col2 + col0, col0 / 23 * - + col1 * + 45 + col1 + + 89 / - + col0 * - 1 )
----

query II rowsort
SELECT DISTINCT - col1 + + 78 + + 20 * col2, col2 * - col2 AS col1 FROM tab0 WHERE + col1 / - 12 IS NOT NULL
----
2057
-9801
257
-100
937
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT 63 * - COUNT( * ) - + 39 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-8104
SELECT 63 * - COUNT ( * ) - + 39 FROM tab2
----
-228

query I rowsort
SELECT 68 - 22 FROM tab1
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8106
SELECT CAST( + col0 AS SIGNED ) AS col0 FROM tab0 WHERE NULL = + 25
----

skipif mysql # not compatible
query I rowsort label-8106
SELECT CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 WHERE NULL = + 25
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8107
SELECT 47 DIV col0 * col2 + col0 + - 81 AS col1 FROM tab2
----
-12
-17
-6

skipif mysql # not compatible
query I rowsort label-8107
SELECT 47 / col0 * col2 + col0 + - 81 AS col1 FROM tab2
----
-12
-17
-6

query I rowsort
SELECT - 79 + + - 97 - + - 37 * col1 FROM tab2 AS cor0
----
1711
2303
2673

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8109
SELECT * FROM tab1 AS cor0 WHERE - col1 * + CAST( NULL AS DECIMAL ) * + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8109
SELECT * FROM tab1 AS cor0 WHERE - col1 * + CAST ( NULL AS REAL ) * + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT DISTINCT + + MAX( + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT + + MAX ( + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT - + COUNT( ALL - + 82 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8111
SELECT - + COUNT ( ALL - + 82 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT + MIN( 15 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8112
SELECT + MIN ( 15 ) FROM tab0
----
15

query I rowsort
SELECT ALL - + 52 * - + ( col1 ) FROM tab0 AS cor0
----
1092
4212
52

query I rowsort
SELECT DISTINCT - 4 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT - 34 DIV - 20 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8116
SELECT - 34 / - 20 AS col2 FROM tab1 cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 * 32 + + col0 BETWEEN + + col2 AND + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 WHERE NOT NULL NOT IN ( + - 3 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8119
SELECT CAST( NULL AS DECIMAL ) * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8119
SELECT CAST ( NULL AS REAL ) * + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT + CAST( NULL AS SIGNED ) * 9 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT + CAST ( NULL AS INTEGER ) * 9 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8121
SELECT ALL - CAST( 91 AS DECIMAL ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL - CAST ( 91 AS REAL ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT DISTINCT - 61 DIV - col1 AS col0 FROM tab0
----
0
2
61

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT - 61 / - col1 AS col0 FROM tab0
----
0
2
61

query I rowsort
SELECT ALL 70 AS col1 FROM tab2 cor0
----
70
70
70

query II rowsort
SELECT col0, 35 * + col0 AS col1 FROM tab1 AS cor0
----
51
1785
85
2975
91
3185

query I rowsort
SELECT DISTINCT ( 38 ) AS col1 FROM tab1 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT ALL + 39 + SUM( DISTINCT + col2 ) FROM tab1
----
262

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL + 39 + SUM ( DISTINCT + col2 ) FROM tab1
----
262

query I rowsort
SELECT ( 46 ) FROM tab2 cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8129
SELECT COUNT( * ) + - 93, + 43 col0 FROM tab2 AS cor0
----
-90
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8129
SELECT COUNT ( * ) + - 93, + 43 col0 FROM tab2 AS cor0
----
-90
43

query I rowsort
SELECT + col2 + - - col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT col0 + + + col2 - col1 + + col1 * - 53 FROM tab0 AS cor0
----
-1037
-4312
142

query I rowsort
SELECT + col0 * 81 + + + col1 FROM tab0 AS cor0
----
1296
7068
7858

query I rowsort
SELECT - col2 * col2 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT SUM( DISTINCT col1 ) + + + 1 AS col2 FROM tab0 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-8134
SELECT SUM ( DISTINCT col1 ) + + + 1 AS col2 FROM tab0 AS cor0
----
104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col2 FROM tab1
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8136
SELECT DISTINCT 68 DIV + col2 + + + CAST( + ( + 22 ) AS SIGNED ) FROM tab2
----
23
24

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT 68 / + col2 + + + CAST ( + ( + 22 ) AS INTEGER ) FROM tab2
----
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT DISTINCT - COUNT( * ) * 61 + + + ( + 82 ) FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT - COUNT ( * ) * 61 + + + ( + 82 ) FROM tab1
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8138
SELECT * FROM tab1 WHERE - col1 NOT IN ( col2 * + ( col0 ) * + col2, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8138
SELECT * FROM tab1 WHERE - col1 NOT IN ( col2 * + ( col0 ) * + col2, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 80 * - col2 - + col1 AS col0 FROM tab2
----
-1891
-3277
-4707

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + + col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT ALL - COUNT( * ) + - 25 AS col2 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL - COUNT ( * ) + - 25 AS col2 FROM tab2
----
-28

query I rowsort
SELECT col1 * + col0 - - col0 - col0 - ( - col0 ) * + ( 84 ) AS col1 FROM tab1 AS cor0
----
11921
4998
7565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8144
SELECT - + col2 - - 23 - col0 + + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
-28
-62
-68

skipif mysql # not compatible
query I rowsort label-8144
SELECT - + col2 - - 23 - col0 + + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
-28
-62
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / 84 IS NOT NULL
----

query II rowsort
SELECT + col0, - col0 + 69 AS col1 FROM tab1 AS cor0
----
51
18
85
-16
91
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT + MIN( DISTINCT - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8147
SELECT + MIN ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL - 89 * + 71 FROM tab2 AS cor0
----
-6319
-6319
-6319

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + col0 + 22 + - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8150
SELECT DISTINCT - 60 DIV - + 65 + + + col0 + - 87 * - ( - 88 ) FROM tab1 AS cor0
----
-7565
-7571
-7605

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT - 60 / - + 65 + + + col0 + - 87 * - ( - 88 ) FROM tab1 AS cor0
----
-7565
-7571
-7605

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8151
SELECT + col0 * + 83 + - CAST( NULL AS SIGNED ), col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8151
SELECT + col0 * + 83 + - CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( - 9 * + col2 ) IS NOT NULL
----
51
67
77

query II rowsort
SELECT DISTINCT - col2, + 70 + + col0 AS col0 FROM tab2 cor0
----
-23
116
-40
134
-58
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT ALL - SUM( DISTINCT - + 91 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL - SUM ( DISTINCT - + 91 ) FROM tab1 cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8155
SELECT ALL * FROM tab1 WHERE NOT NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8155
SELECT ALL * FROM tab1 WHERE NOT NULL >= CAST ( NULL AS INTEGER )
----

query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 1 * - 3 * + col2 AS col0 FROM tab2
----
120
174
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT 62 * COUNT( * ) FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-8158
SELECT 62 * COUNT ( * ) FROM tab1
----
186

query I rowsort
SELECT + 30 + + 7 AS col0 FROM tab0
----
37
37
37

query I rowsort
SELECT - 10 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT COUNT( ALL - col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8161
SELECT COUNT ( ALL - col1 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT col0 * - 39 AS col2 FROM tab2 cor0
----
-1794
-2496
-2925

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 47 <> - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 AND + ( - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( + 11 - - col2, - col0, + 12 - 75 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8166
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8166
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT ALL - + 53 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL - + 53 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 + ( + 12 ) * + + 29 FROM tab0 cor0
----
267
327
347

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT + CAST( NULL AS SIGNED ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT + CAST ( NULL AS INTEGER ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - + + col0 AS col0 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT SUM( ALL col1 ) - + + COUNT( * ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-8172
SELECT SUM ( ALL col1 ) - + + COUNT ( * ) AS col1 FROM tab1
----
63

query I rowsort
SELECT ALL - 68 - + 62 * + col2 AS col2 FROM tab1
----
-3726
-4284
-6020

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8174
SELECT ALL * FROM tab2 WHERE - 96 * + col2 + - CAST( + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8174
SELECT ALL * FROM tab2 WHERE - 96 * + col2 + - CAST ( + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + + 60 AS col0 FROM tab2
----
100
118
83

query I rowsort
SELECT + 64 + - + 18 FROM tab0
----
46
46
46

query II rowsort
SELECT ALL - col0 + col0 AS col1, ( + - 21 ) FROM tab1
----
0
-21
0
-21
0
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-8178
SELECT DISTINCT + 51 * + - col2 - - 65 + + - col2 DIV col1 * + col1 * - col1 FROM tab0
----
-2332
-445
-4885

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT + 51 * + - col2 - - 65 + + - col2 / col1 * + col1 * - col1 FROM tab0
----
-2332
-445
-4885

query I rowsort
SELECT DISTINCT 18 + col2 AS col1 FROM tab0
----
117
28
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT + 61 * col2 DIV 96 + - - 99 AS col2 FROM tab0 AS cor0 WHERE NOT + 20 IS NULL
----
105
128
161

skipif mysql # not compatible
query I rowsort label-8180
SELECT + 61 * col2 / 96 + - - 99 AS col2 FROM tab0 AS cor0 WHERE NOT + 20 IS NULL
----
105
128
161

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-8182
SELECT ALL + col2 DIV + col1, col1 AS col0 FROM tab0
----
0
21
0
81
99
1

skipif mysql # not compatible
query II rowsort label-8182
SELECT ALL + col2 / + col1, col1 AS col0 FROM tab0
----
0
21
0
81
99
1

query I rowsort
SELECT - - 43 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # DIV for integer division: 
query I rowsort label-8184
SELECT col0 DIV - 14 FROM tab0
----
-1
-6
-6

skipif mysql # not compatible
query I rowsort label-8184
SELECT col0 / - 14 FROM tab0
----
-1
-6
-6

query I rowsort
SELECT ALL + + 84 AS col2 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT + MIN( ALL - ( + + col1 ) ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8186
SELECT + MIN ( ALL - ( + + col1 ) ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8187
SELECT - + CAST( + - col2 AS SIGNED ), ( + - col0 ) AS col1 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

skipif mysql # not compatible
query II rowsort label-8187
SELECT - + CAST ( + - col2 AS INTEGER ), ( + - col0 ) AS col1 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT DISTINCT + COUNT( * ) * SUM( ALL col1 ) col0 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8188
SELECT DISTINCT + COUNT ( * ) * SUM ( ALL col1 ) col0 FROM tab1 AS cor0
----
198

query I rowsort
SELECT col2 * - + col2 + 48 / + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8190
SELECT - 69 * ( - ( MAX( - col0 ) ) ), COUNT( * ) AS col2 FROM tab2 cor0
----
-3174
3

skipif mysql # not compatible
query II rowsort label-8190
SELECT - 69 * ( - ( MAX ( - col0 ) ) ), COUNT ( * ) AS col2 FROM tab2 cor0
----
-3174
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * ( - + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 29 + + - 21 - + 77 FROM tab0 AS cor0
----
-69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 47 * - col2 + 16 - 87 IS NULL
----

query I rowsort
SELECT DISTINCT + + 3 AS col1 FROM tab2 WHERE NOT + - 31 - + col2 + - + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT + 1 * + - ( - - MAX( DISTINCT - col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8195
SELECT + 1 * + - ( - - MAX ( DISTINCT - col1 ) ) FROM tab0
----
1

query I rowsort
SELECT + col2 + + col2 + col0 AS col2 FROM tab0
----
107
109
295

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT - COUNT( DISTINCT - + col1 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8199
SELECT - COUNT ( DISTINCT - + col1 ) col2 FROM tab1
----
-3

query I rowsort
SELECT col2 / 90 + - col2 - + col1 AS col0 FROM tab2 AS cor0 WHERE col0 / - col1 IS NULL
----

query I rowsort
SELECT - - 26 AS col0 FROM tab1 AS cor0
----
26
26
26

query II rowsort
SELECT + 98 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
98
-46
98
-64
98
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8203
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + CAST( + + col1 AS SIGNED ) * + - col2 + + + col2 AND + 29 - - + col0 + + col1
----

skipif mysql # not compatible
query III rowsort label-8203
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + CAST ( + + col1 AS INTEGER ) * + - col2 + + + col2 AND + 29 - - + col0 + + col1
----

query II rowsort
SELECT + col0, 15 FROM tab2 AS cor0
----
46
15
64
15
75
15

query I rowsort
SELECT + 15 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query II rowsort
SELECT ALL col2 + + 63, 7 AS col1 FROM tab2
----
103
7
121
7
86
7

query I rowsort
SELECT DISTINCT - col2 * + 56 + + col0 AS col2 FROM tab2
----
-1242
-2176
-3173

query I rowsort
SELECT + - 58 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 84 + + col0 FROM tab2 AS cor0
----
130
148
159

query I rowsort
SELECT ALL + 79 - + col2 * + - col2 FROM tab2 AS cor0
----
1679
3443
608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT DISTINCT - 75 + - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT 4 + - col0 * - - col0 NOT IN ( - CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT - 75 + - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT 4 + - col0 * - - col0 NOT IN ( - CAST ( col0 AS INTEGER ) )
----

query I rowsort
SELECT + ( col2 ) + col0 * - 73 AS col1 FROM tab2 cor0
----
-3335
-4632
-5417

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT ALL - COUNT( - + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL - COUNT ( - + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8215
SELECT ALL SUM( 87 ) AS col2, - COUNT( * ) col2 FROM tab0 AS cor0
----
261
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8215
SELECT ALL SUM ( 87 ) AS col2, - COUNT ( * ) col2 FROM tab0 AS cor0
----
261
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL - MIN( ALL - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL - MIN ( ALL - col0 ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 17 + - col1 < col1
----

query I rowsort
SELECT + + 47 FROM tab1 WHERE ( 8 * - - 32 IS NOT NULL )
----
47
47
47

query I rowsort
SELECT DISTINCT - col2 * + + col2 + col0 AS col0 FROM tab1
----
-3396
-4533
-9165

query I rowsort
SELECT + 69 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL + SUM( + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL + SUM ( + col0 ) FROM tab0
----
199

query I rowsort
SELECT DISTINCT - ( - col0 ) * + col1 AS col1 FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL BETWEEN NULL AND col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT DISTINCT + SUM( ALL col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT + SUM ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
199

query II rowsort
SELECT ALL - - 35 AS col2, - 32 + + 21 * + col0 * - + 24 AS col0 FROM tab2 AS cor0
----
35
-23216
35
-32288
35
-37832

query I rowsort
SELECT 3 * - col0 * + 65 FROM tab1 AS cor0
----
-16575
-17745
-9945

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT ALL + 6 * + COUNT( * ) AS col2 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL + 6 * + COUNT ( * ) AS col2 FROM tab0 cor0
----
18

query I rowsort
SELECT + col2 * + col1 * - 52 AS col1 FROM tab2
----
-160160
-202072
-60996

query I rowsort
SELECT DISTINCT + col0 * 95 FROM tab0 cor0 WHERE NULL > col0 * - 94 + - - col0
----

query II rowsort
SELECT ALL + 5 * col0, col1 FROM tab0 AS cor0
----
435
21
485
1
75
81

onlyif mysql # DIV for integer division: 
query II rowsort label-8231
SELECT DISTINCT - col1 AS col2, col0 DIV - + 33 AS col0 FROM tab0 cor0
----
-1
-2
-21
-2
-81
0

skipif mysql # not compatible
query II rowsort label-8231
SELECT DISTINCT - col1 AS col2, col0 / - + 33 AS col0 FROM tab0 cor0
----
-1
-2
-21
-2
-81
0

query I rowsort
SELECT DISTINCT + - 98 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT DISTINCT + col2 + col2 DIV + col0 AS col1 FROM tab1 cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT + col2 + col2 / + col0 AS col1 FROM tab1 cor0
----
59
68
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT - CAST( NULL AS SIGNED ) * - - 13 / - CAST( NULL AS SIGNED ) * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT - CAST ( NULL AS INTEGER ) * - - 13 / - CAST ( NULL AS INTEGER ) * - col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE 29 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8236
SELECT + col2 * col2 DIV + - col1 AS col2 FROM tab1
----
-658
-696
-98

skipif mysql # not compatible
query I rowsort label-8236
SELECT + col2 * col2 / + - col1 AS col2 FROM tab1
----
-658
-696
-98

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT 13 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT - 86 * + + COUNT( * ) * + - 4 FROM tab0
----
1032

skipif mysql # not compatible
query I rowsort label-8238
SELECT - 86 * + + COUNT ( * ) * + - 4 FROM tab0
----
1032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * + 41 col2 FROM tab0
----
401841
4100
90569

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT COUNT( * ) + + COUNT( DISTINCT - + col1 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT COUNT ( * ) + + COUNT ( DISTINCT - + col1 ) AS col0 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL - 70 + - + COUNT( * ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - 70 + - + COUNT ( * ) FROM tab1
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 87 * + 2 AS col2, 37 col0 FROM tab1 AS cor0
----
174
37

query I rowsort
SELECT ALL col2 * 40 - + + ( + col2 ) FROM tab0 AS cor0
----
1833
3861
390

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT DISTINCT + MAX( + ( + col2 ) ) * 83 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col2, + col1, + col0, - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT + MAX ( + ( + col2 ) ) * 83 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col2, + col1, + col0, - - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 WHERE + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8246
SELECT - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 WHERE + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT - MIN( - col1 ) FROM tab2 WHERE - + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT - MIN ( - col1 ) FROM tab2 WHERE - + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8248
SELECT ALL - COUNT( * ) - COUNT( * ) * - - 71, 90 + - + 24 AS col2 FROM tab1 AS cor0
----
-216
66

skipif mysql # not compatible
query II rowsort label-8248
SELECT ALL - COUNT ( * ) - COUNT ( * ) * - - 71, 90 + - + 24 AS col2 FROM tab1 AS cor0
----
-216
66

query I rowsort
SELECT DISTINCT - - col2 - + 79 FROM tab0 AS cor0
----
-32
-69
20

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col1 + - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col1 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT + 84 + - - col1 + + 65 IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83 * + col2, - col2 * - - 87 col0 FROM tab0
----
3901
-4089
8217
-8613
830
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT - MAX( ALL + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8254
SELECT - MAX ( ALL + col0 ) FROM tab2
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-8255
SELECT col1 DIV col1 * - + col0 * 98, col0 * - 9 col0 FROM tab0
----
-1470
-135
-8526
-783
-9506
-873

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8255
SELECT col1 / col1 * - + col0 * 98, col0 * - 9 col0 FROM tab0
----
-1470
-135
-8526
-783
-9506
-873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col0 FROM tab1
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab0 WHERE col2 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8258
SELECT - col1 DIV + ( 82 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8258
SELECT - col1 / + ( 82 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8259
SELECT ALL CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT MIN( DISTINCT - - 59 ) - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * - + col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT MIN ( DISTINCT - - 59 ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * - + col0 BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 69 / - - col2 - - - col2 + + + col2 BETWEEN NULL AND - + 57 + - + ( - col0 )
----
46
51
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - 12 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT DISTINCT + COUNT( * ) * 23 col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8263
SELECT DISTINCT + COUNT ( * ) * 23 col2 FROM tab1 AS cor0
----
69

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8265
SELECT + - MIN( + 11 ) DIV COUNT( * ) - - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8265
SELECT + - MIN ( + 11 ) / COUNT ( * ) - - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT - COUNT( DISTINCT 67 ) AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8266
SELECT - COUNT ( DISTINCT 67 ) AS col0 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT + - 21 * - COUNT( * ) + - SUM( + 85 ) AS col2 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8267
SELECT + - 21 * - COUNT ( * ) + - SUM ( + 85 ) AS col2 FROM tab0 AS cor0
----
-192

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 41 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 51 + + - col1 FROM tab0 AS cor0
----
-30
30
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT ALL + col2 DIV 66 + + + col1 AS col0 FROM tab1
----
15
48
5

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL + col2 / 66 + + + col1 AS col0 FROM tab1
----
15
48
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT 5 + 91 + 66 * - MAX( 32 ) AS col0 FROM tab0
----
-2016

skipif mysql # not compatible
query I rowsort label-8271
SELECT 5 + 91 + 66 * - MAX ( 32 ) AS col0 FROM tab0
----
-2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8272
SELECT DISTINCT + ( col2 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT + ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT ALL - COUNT( DISTINCT - 23 ) * + 41 AS col0 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL - COUNT ( DISTINCT - 23 ) * + 41 AS col0 FROM tab1
----
-41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + - - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 * 1 * + col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8276
SELECT DISTINCT - col0 DIV col0 + - - 36 + - col1 + + col1 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT - col0 / col0 + - - 36 + - col1 + + col1 FROM tab2 AS cor0
----
35

query I rowsort
SELECT ALL ( + col0 ) + col2 + col0 AS col1 FROM tab1 AS cor0 WHERE col0 * + 55 * col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT - COUNT( * ) + - MAX( col1 ) AS col2 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8279
SELECT - COUNT ( * ) + - MAX ( col1 ) AS col2 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT - col1 + + - 63 FROM tab2 AS cor0
----
-114
-130
-140

query I rowsort
SELECT ( + 75 ) + + 26 FROM tab2 AS cor0
----
101
101
101

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT ALL + 10 DIV - - 45 + - col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL + 10 / - - 45 + - col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - col0 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT 14 NOT BETWEEN NULL AND - col1 - + + 48
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8285
SELECT DISTINCT 34 DIV + col0 + + 89 AS col1 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT 34 / + col0 + + 89 AS col1 FROM tab2 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8286
SELECT ALL 60 AS col2, COUNT( ALL 76 ) FROM tab1
----
60
3

skipif mysql # not compatible
query II rowsort label-8286
SELECT ALL 60 AS col2, COUNT ( ALL 76 ) FROM tab1
----
60
3

query II rowsort
SELECT DISTINCT + 40 AS col0, - 40 FROM tab1
----
40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ALL - ( - ( COUNT( + + 56 ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL - ( - ( COUNT ( + + 56 ) ) ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT - col1, col1 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT 35 AS col1 FROM tab1 WHERE NOT col0 * + - col2 IS NOT NULL
----

query II rowsort
SELECT col2 AS col2, ( col1 ) * + 44 AS col1 FROM tab0
----
10
924
47
3564
99
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT ALL COUNT( * ) * 28 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL COUNT ( * ) * 28 FROM tab1
----
84

query I rowsort
SELECT - 1 * - col1 * + col2 * - 90 FROM tab2
----
-105570
-277200
-349740

query I rowsort
SELECT ALL - col1 + col1 FROM tab0 WHERE 44 / - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT - MIN( ALL - - col0 ) col1 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8295
SELECT - MIN ( ALL - - col0 ) col1 FROM tab0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND col2 / + 42
----

query I rowsort
SELECT DISTINCT + - ( + - 56 ) FROM tab1 AS cor0
----
56

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + col0 ) + + + col2 FROM tab1
----
144
147
159

query I rowsort
SELECT col2 * 74 * + col2 AS col1 FROM tab2 AS cor0
----
118400
248936
39146

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 10 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 82 col2 FROM tab2
----
133
149
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT ALL col2 + CAST( NULL AS SIGNED ) + + - 50 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL col2 + CAST ( NULL AS INTEGER ) + + - 50 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 39 + - - col0 FROM tab2
----
103
114
85

query I rowsort
SELECT - 6 + col1 FROM tab0
----
-5
15
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT DISTINCT + COUNT( * ) + - 13 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT + COUNT ( * ) + - 13 FROM tab0
----
-10

query I rowsort
SELECT col2 + + 34 FROM tab2
----
57
74
92

query I rowsort
SELECT ALL 93 * col2 FROM tab0
----
4371
9207
930

query I rowsort
SELECT 43 + col1 + + + 25 + + - 40 * col0 * col1 AS col0 FROM tab1
----
-16927
-170965
-28478

query I rowsort
SELECT DISTINCT 11 * - 59 FROM tab2
----
-649

query I rowsort
SELECT DISTINCT 63 - 14 AS col0 FROM tab2 cor0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-8312
SELECT ALL + + 25 col2, - MIN( col2 ) AS col0 FROM tab2 AS cor0
----
25
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8312
SELECT ALL + + 25 col2, - MIN ( col2 ) AS col0 FROM tab2 AS cor0
----
25
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8313
SELECT + - MIN( DISTINCT + col2 ), COUNT( * ) * - 55 AS col0 FROM tab0 WHERE - col1 = col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8313
SELECT + - MIN ( DISTINCT + col2 ), COUNT ( * ) * - 55 AS col0 FROM tab0 WHERE - col1 = col0
----
NULL
0

query I rowsort
SELECT + 45 * - col2 FROM tab2
----
-1035
-1800
-2610

query II rowsort
SELECT ALL 85 AS col0, - col2 * - + col0 AS col2 FROM tab0
----
85
705
85
870
85
9603

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> + 30
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8317
SELECT ALL + CAST( NULL AS DECIMAL ) / + 59 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL + CAST ( NULL AS REAL ) / + 59 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, col0 FROM tab1 cor0
----
-51
51
-85
85
-91
91

query II rowsort
SELECT ALL - 48, + col2 FROM tab0 AS cor0
----
-48
10
-48
47
-48
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL + - ( 69 ) * ( + - COUNT( * ) ) FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL + - ( 69 ) * ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8322
SELECT col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8322
SELECT col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - + col2 < 46 / - - 68
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + 46 col0 FROM tab0
----
2162
4554
460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8325
SELECT + col1 * - - 18 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT + col1 * - - 18 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8326
SELECT col2 DIV - + 10 FROM tab2
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-8326
SELECT col2 / - + 10 FROM tab2
----
-2
-4
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT - COUNT( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8327
SELECT - COUNT ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT DISTINCT - MAX( col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT - MAX ( col2 ) FROM tab0 cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8329
SELECT ALL * FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8329
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab2 WHERE col2 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8331
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 NOT IN ( - + col0, + col1, CAST( NULL AS SIGNED ) + + + 88, - + ( - + col2 ), - + 33 + - col0 + + col0, - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8331
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 NOT IN ( - + col0, + col1, CAST ( NULL AS INTEGER ) + + + 88, - + ( - + col2 ), - + 33 + - col0 + + col0, - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 16 < NULL
----

query II rowsort
SELECT DISTINCT - 92 AS col2, col1 FROM tab1 AS cor0
----
-92
14
-92
47
-92
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8334
SELECT DISTINCT - COUNT( * ) DIV 31 + - + 60 * COUNT( * ) FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT - COUNT ( * ) / 31 + - + 60 * COUNT ( * ) FROM tab0 AS cor0
----
-180

query I rowsort
SELECT 38 + + + 65 AS col0 FROM tab1 AS cor0
----
103
103
103

query II rowsort
SELECT ALL - 27 AS col1, col0 FROM tab0 AS cor0
----
-27
15
-27
87
-27
97

query I rowsort
SELECT + col0 + col1 * - 14 FROM tab1 AS cor0
----
-145
-567
15

query I rowsort
SELECT 8 + - 49 AS col1 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT ( col2 ) + col1 + - col0 FROM tab1 AS cor0
----
-21
24
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT - COUNT( * ) + + + 98 - - 72 - 47 FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-8340
SELECT - COUNT ( * ) + + + 98 - - 72 - 47 FROM tab1 AS cor0
----
120

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 BETWEEN 6 + + - col0 + - col0 AND + col1 * + + col2 + - + col0 - + + 60 / + col1 + 85 + - + 70 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL - COUNT( * ) + - + COUNT( ALL + - col0 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL - COUNT ( * ) + - + COUNT ( ALL + - col0 ) FROM tab1
----
-6

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 96 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( + 51 ) col1 FROM tab2
----
102
118
128

onlyif mysql # DIV for integer division: 
query I rowsort label-8346
SELECT DISTINCT col2 DIV - col0 + col1 FROM tab0
----
0
21
78

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT col2 / - col0 + col1 FROM tab0
----
0
21
78

query III rowsort
SELECT * FROM tab1 WHERE - col2 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 FROM tab2 WHERE - ( + + 40 ) NOT BETWEEN - col2 AND + 70
----
46

query II rowsort
SELECT DISTINCT - col0 + - col1 * - col0 + + - col1 AS col2, col0 FROM tab2
----
2249
46
4787
64
4883
75

query III rowsort
SELECT * FROM tab2 WHERE - 91 BETWEEN + 17 AND NULL
----

query I rowsort
SELECT ALL ( - col1 ) * - col0 + col2 AS col1 FROM tab0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT MIN( DISTINCT col0 ) FROM tab1 WHERE + col2 IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT MIN ( DISTINCT col0 ) FROM tab1 WHERE + col2 IN ( - col0 )
----
NULL

query I rowsort
SELECT + + 16 FROM tab1 WHERE - ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT + COUNT( DISTINCT - ( col2 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8354
SELECT + COUNT ( DISTINCT - ( col2 ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT 78 * 21 + + col0 AS col2 FROM tab0 AS cor0
----
1653
1725
1735

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT COUNT( * ) * 96 - - COUNT( * ) FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-8356
SELECT COUNT ( * ) * 96 - - COUNT ( * ) FROM tab2 AS cor0
----
291

query I rowsort
SELECT ALL - - 5 - - 95 AS col1 FROM tab2 AS cor0
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL - + MAX( - - col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL - + MAX ( - - col2 ) AS col2 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 90 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8361
SELECT - COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8361
SELECT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 * - col1 col2 FROM tab2 AS cor0
----
-3876
-5092
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL - - 20 * - - SUM( ALL + + col1 ) + 92 AS col0 FROM tab1 AS cor0
----
1412

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL - - 20 * - - SUM ( ALL + + col1 ) + 92 AS col0 FROM tab1 AS cor0
----
1412

query II rowsort
SELECT ALL + 22 AS col2, + ( + col1 ) + col2 FROM tab2 cor0
----
22
117
22
125
22
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 >= 92 + - + ( - col1 ) + ( + + 72 ) * + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT DISTINCT + SUM( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT + SUM ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT 94 * + COUNT( * ) FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT 94 * + COUNT ( * ) FROM tab0
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-8368
SELECT - 27 DIV col1 * + 49 DIV - + col1 FROM tab0
----
0
1323
2

skipif mysql # not compatible
query I rowsort label-8368
SELECT - 27 / col1 * + 49 / - + col1 FROM tab0
----
0
1323
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8369
SELECT + CAST( + ( 18 ) AS SIGNED ) * 55 + + COUNT( * ) * - + MIN( ALL - col2 ) - + 19 AS col2 FROM tab1
----
1259

skipif mysql # not compatible
query I rowsort label-8369
SELECT + CAST ( + ( 18 ) AS INTEGER ) * 55 + + COUNT ( * ) * - + MIN ( ALL - col2 ) - + 19 AS col2 FROM tab1
----
1259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8370
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) / - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT + col1, col1 + + + col0 * + + col1 AS col0 FROM tab2
----
51
2397
67
5092
77
5005

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * - col2 + + 61 IS NULL
----

query I rowsort
SELECT DISTINCT + 93 * col1 * - col1 FROM tab2
----
-241893
-417477
-551397

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 1 <= - - col2 / col1
----
3

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 1 <= - - col2 / col1
----
3

query I rowsort
SELECT ALL + ( + col0 ) + - - 44 + + + 91 FROM tab0
----
150
222
232

query I rowsort
SELECT col1 + - col1 + + 20 AS col1 FROM tab1
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 3 col1 FROM tab2
----
49
67
78

query I rowsort
SELECT ALL - ( - col0 ) + 99 FROM tab1
----
150
184
190

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT DISTINCT - SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT - SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT DISTINCT - + 0 + - - col2 * + + 92 AS col1, + 98 FROM tab2 AS cor0 WHERE NOT NULL = 33
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 66 <> 4 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 35 * 59 * + + col0 col1 FROM tab1 cor0
----
-10110240
-10355975
-12778220

onlyif mysql # DIV for integer division: 
query I rowsort label-8383
SELECT - col0 * - col1 DIV + - col1 col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8383
SELECT - col0 * - col1 / + - col1 col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 17 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-1330
-347
82

query I rowsort
SELECT DISTINCT - col0 + - + col2 * - col1 AS col1 FROM tab2 AS cor0
----
1127
3016
3811

query I rowsort
SELECT DISTINCT ( + col0 ) * - 9 * + + col1 AS col1 FROM tab0
----
-10935
-16443
-873

query I rowsort
SELECT DISTINCT 12 - - 87 AS col2 FROM tab1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8388
SELECT - CAST( NULL AS SIGNED ) * + col1 + col2 + - + col0 + col2 col0 FROM tab1 WHERE 27 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8388
SELECT - CAST ( NULL AS INTEGER ) * + col1 + col2 + - + col0 + col2 col0 FROM tab1 WHERE 27 IS NULL
----

query I rowsort
SELECT 81 * + col0 + + ( + col0 ) + + col1 FROM tab2
----
3823
5325
6217

onlyif mysql # DIV for integer division: 
query I rowsort label-8390
SELECT + ( - + col1 ) + + 52 DIV - 25 FROM tab2
----
-53
-69
-79

skipif mysql # not compatible
query I rowsort label-8390
SELECT + ( - + col1 ) + + 52 / - 25 FROM tab2
----
-53
-69
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8391
SELECT DISTINCT col0 - CAST( col1 AS SIGNED ) FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT col0 - CAST ( col1 AS INTEGER ) FROM tab2
----
-13
-5
8

query II rowsort
SELECT + 93 AS col2, + col2 AS col1 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8393
SELECT - COUNT( * ) + + + COUNT( * ) * + CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-8393
SELECT - COUNT ( * ) + + + COUNT ( * ) * + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
-12

query I rowsort
SELECT DISTINCT + col1 - 2 + + ( + + col1 ) * - col0 FROM tab2
----
-2297
-4853
-4960

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 38 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 25 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8397
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8397
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8398
SELECT - + COUNT( DISTINCT col2 ) DIV - MAX( DISTINCT - col0 ) * - + 11 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8398
SELECT - + COUNT ( DISTINCT col2 ) / - MAX ( DISTINCT - col0 ) * - + 11 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 99 * - col1 AS col2 FROM tab0 AS cor0
----
2079
8019
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * - + col2 col1 FROM tab0 cor0
----
-1980
-200
-940

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT - COUNT( DISTINCT col2 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8402
SELECT - COUNT ( DISTINCT col2 ) AS col2 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 47 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT + 80 + COUNT( * ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-8404
SELECT + 80 + COUNT ( * ) FROM tab1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT 12 * + col1 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT 12 * + col1 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT BETWEEN col1 + + col1 AND col0 * - 5 + - ( - ( + 9 ) + - col1 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) = col0 * + col1
----

query I rowsort
SELECT DISTINCT - 61 + 92 FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT DISTINCT MAX( ALL 26 ) + - 29 AS col2 FROM tab0 WHERE NULL IN ( 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT MAX ( ALL 26 ) + - 29 AS col2 FROM tab0 WHERE NULL IN ( 27 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT col2 + + 92 / + 10 AS col1 FROM tab0 WHERE ( col0 * col2 ) >= ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8410
SELECT col2 + + 92 / + 10 AS col1 FROM tab0 WHERE ( col0 * col2 ) >= ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8411
SELECT ALL * FROM tab2 WHERE NULL <= - col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8411
SELECT ALL * FROM tab2 WHERE NULL <= - col1 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT COUNT( ALL - 3 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8412
SELECT COUNT ( ALL - 3 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL + COUNT( * ) + + 27 col0 FROM tab2 WHERE NULL IS NULL
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8413
SELECT ALL + COUNT ( * ) + + 27 col0 FROM tab2 WHERE NULL IS NULL
----
30

query I rowsort
SELECT - 60 + + col2 * - col2 FROM tab2
----
-1660
-3424
-589

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= + col1
----

query I rowsort
SELECT col0 + - col1 * + 32 FROM tab0
----
-2577
-585
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT COUNT( * ) col1 FROM tab2 WHERE col0 BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8417
SELECT COUNT ( * ) col1 FROM tab2 WHERE col0 BETWEEN NULL AND col2
----
0

query I rowsort
SELECT - AVG ( DISTINCT col0 ) + - 53 FROM tab2 WHERE NULL BETWEEN ( 57 * col2 ) AND ( col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8419
SELECT - SUM( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + 56 IN ( + col1 / + 99 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT - COUNT( - 19 ) FROM tab1 WHERE NOT - 6 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8421
SELECT - COUNT ( - 19 ) FROM tab1 WHERE NOT - 6 IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE ( 30 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 FROM tab0 WHERE ( - 97 + ( - col1 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT + 92 * COUNT( * ) AS col2 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-8424
SELECT + 92 * COUNT ( * ) AS col2 FROM tab2
----
276

query I rowsort
SELECT ALL - col2 - 3 FROM tab0
----
-102
-13
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8426
SELECT - COUNT( * ) * + COUNT( - CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8426
SELECT - COUNT ( * ) * + COUNT ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
0

query I rowsort
SELECT - 82 * - col0 FROM tab2
----
3772
5248
6150

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT + COUNT( * ) * 68 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-8428
SELECT + COUNT ( * ) * 68 FROM tab0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL + COUNT( * ) * 17 + MIN( - 29 ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL + COUNT ( * ) * 17 + MIN ( - 29 ) FROM tab1
----
22

query I rowsort
SELECT col1 / - col0 FROM tab2 WHERE + col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT - 92 * + MAX( ALL + 21 ) AS col0 FROM tab2 AS cor0
----
-1932

skipif mysql # not compatible
query I rowsort label-8431
SELECT - 92 * + MAX ( ALL + 21 ) AS col0 FROM tab2 AS cor0
----
-1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT DISTINCT - 58 + - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8432
SELECT DISTINCT - 58 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT DISTINCT + 31 + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT + 31 + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT DISTINCT ( ( + col1 ) ) * + col1 + col0 DIV - col2 FROM tab2 AS cor0
----
2599
4488
5928

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT ( ( + col1 ) ) * + col1 + col0 / - col2 FROM tab2 AS cor0
----
2599
4488
5928

query I rowsort
SELECT DISTINCT col0 * col0 + 90 FROM tab0 AS cor0
----
315
7659
9499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 col2 FROM tab0
----
67
67
67

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col2 + 2 AS col0 FROM tab0 AS cor0
----
-45
-8
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8439
SELECT - col2 + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT - col2 + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 * 12 col2 FROM tab0 AS cor0
----
672
672
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 20 + - col1 * col2 col1 FROM tab0 AS cor0
----
-119
-230
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT - 30 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8442
SELECT - 30 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT + 35 + - col0 * + col1 FROM tab2 AS cor0
----
-2311
-4893
-4990

query I rowsort
SELECT DISTINCT + col0 * + 65 FROM tab2 AS cor0
----
2990
4160
4875

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT ALL - col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL - col0 / + col1 AS col0 FROM tab1 AS cor0
----
-1
-17
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT + 90 * - 41 FROM tab2
----
-3690
-3690
-3690

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT COUNT( * ) AS col1 FROM tab2 WHERE ( 69 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8448
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE ( 69 ) IS NOT NULL
----
3

query I rowsort
SELECT ALL + 26 + - - col1 FROM tab2
----
103
77
93

query I rowsort
SELECT DISTINCT ( - 83 ) - - col0 AS col1 FROM tab1
----
-32
2
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT col0 DIV + - 62 - - 60 FROM tab2
----
59
59
60

skipif mysql # not compatible
query I rowsort label-8451
SELECT col0 / + - 62 - - 60 FROM tab2
----
59
59
60

query I rowsort
SELECT DISTINCT col0 + 41 FROM tab0
----
128
138
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT + ( - + col1 ) - CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8453
SELECT + ( - + col1 ) - CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - ( ( 11 ) ) AS col2 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT - 68 * - - col2 FROM tab2 AS cor0
----
-1564
-2720
-3944

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = - col1 * col0 + 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT MAX( + col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-8457
SELECT MAX ( + col0 ) AS col2 FROM tab2 cor0
----
75

query II rowsort
SELECT ALL 66, - col0 AS col1 FROM tab0
----
66
-15
66
-87
66
-97

query I rowsort
SELECT col2 * + + col0 AS col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT + col2 * + col1 + + 18 FROM tab1 cor0
----
1362
313
3214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8461
SELECT CAST( COUNT( + 40 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8461
SELECT CAST ( COUNT ( + 40 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 39 AS col0 FROM tab0 cor0 WHERE NOT ( + 86 + + - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE ( - - 27 ) IS NULL OR 62 IS NULL
----

query I rowsort
SELECT DISTINCT + - ( - 64 ) FROM tab1 AS cor0
----
64

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 90 IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 58 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT ALL - COUNT( * ) * ( - - COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL - COUNT ( * ) * ( - - COUNT ( * ) ) FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - + ( + col2 ) col1 FROM tab2
----
0

query I rowsort
SELECT - 20 FROM tab0 WHERE NOT ( - col0 + + + 96 ) IS NULL
----
-20
-20
-20

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 * + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= + - col1 * 89 + + 51
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8474
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + MIN( + col2 ) / - - MIN( ALL + 26 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + MIN ( + col2 ) / - - MIN ( ALL + 26 ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT - COUNT( DISTINCT 42 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT - COUNT ( DISTINCT 42 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT + ( + SUM( 90 ) ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT + ( + SUM ( 90 ) ) FROM tab2
----
270

query I rowsort
SELECT - col0 * - col1 AS col2 FROM tab0 WHERE NULL BETWEEN 39 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT + col2 / - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT + col2 / - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - col2 * 17 FROM tab1 AS cor0
----
-22848
-5015
-54332

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8480
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( col0 * + CAST( col2 * + CAST( NULL AS SIGNED ) AS DECIMAL ) ) NOT BETWEEN - 19 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-8480
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( col0 * + CAST ( col2 * + CAST ( NULL AS INTEGER ) AS REAL ) ) NOT BETWEEN - 19 AND NULL )
----

query I rowsort
SELECT ( col1 ) + + 20 * + 44 AS col1 FROM tab0
----
881
901
961

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT DISTINCT - 75 + - COUNT( * ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT - 75 + - COUNT ( * ) FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT + SUM( ALL - 72 ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-8483
SELECT + SUM ( ALL - 72 ) FROM tab0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT COUNT( 5 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8484
SELECT COUNT ( 5 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col2 * + 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT DISTINCT - 53 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT - 53 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8487
SELECT ALL SUM( DISTINCT + col2 ) DIV + 89 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL SUM ( DISTINCT + col2 ) / + 89 FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8488
SELECT ALL CAST( NULL AS DECIMAL ) + - SUM( - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL CAST ( NULL AS REAL ) + - SUM ( - col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 8 - col0 FROM tab2 AS cor0
----
-54
-72
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) + - - ( - 7 ) FROM tab1
----
44
78
84

onlyif mysql # DIV for integer division: 
query II rowsort label-8492
SELECT DISTINCT - 29 DIV + - 40 - + col2 - - col0, col1 + + col2 + - ( col0 ) AS col1 FROM tab2
----
17
50
23
28
24
53

skipif mysql # not compatible
query II rowsort label-8492
SELECT DISTINCT - 29 / + - 40 - + col2 - - col0, col1 + + col2 + - ( col0 ) AS col1 FROM tab2
----
17
50
23
28
24
53

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > col2 * + 9
----

query I rowsort
SELECT DISTINCT - 3 * + 86 FROM tab2
----
-258

onlyif mysql # DIV for integer division: 
query I rowsort label-8495
SELECT DISTINCT - 97 DIV - + col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT - 97 / - + col0 FROM tab1
----
1

query II rowsort
SELECT + - col0, - col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8497
SELECT ALL - col2 - 2 FROM tab1 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) NOT IN ( + - col0 )
----

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL - col2 - 2 FROM tab1 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) NOT IN ( + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - col2 col0, - col1 FROM tab0
----
-100
-21
-2209
-81
-9801
-1

query I rowsort
SELECT - 39 * col2 AS col0 FROM tab0
----
-1833
-3861
-390

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE 44 IS NULL
----

query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab0 cor0
----
37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 20 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 23 AS col2 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT ALL - - 90 AS col0 FROM tab2 AS cor0
----
90
90
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8505
SELECT DISTINCT - + ( + COUNT( * ) ) + + + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8505
SELECT DISTINCT - + ( + COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 + - - col0 AS col0 FROM tab1 cor0
----
102
170
182

query I rowsort
SELECT ALL + col1 + 15 + + - 40 AS col1 FROM tab0 AS cor0
----
-24
-4
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 12 * - - ( - col1 ) + col1 - col2 col2 FROM tab0
----
1066
14614
21935

query I rowsort
SELECT 16 + col0 + + col2 * col2 * + col0 FROM tab2
----
102480
24396
252391

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT DISTINCT - col2 DIV + ( + col1 ) + + 52 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT - col2 / + ( + col1 ) + + 52 FROM tab2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8511
SELECT ( - col0 ) + - - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT ( - col0 ) + - - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL + COUNT( col1 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8512
SELECT ALL + COUNT ( col1 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT + MAX( col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8513
SELECT + MAX ( col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8514
SELECT col1 * - + CAST( col1 AS SIGNED ) DIV + col1 * - - col2 DIV - col2 col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8514
SELECT col1 * - + CAST ( col1 AS INTEGER ) / + col1 * - - col2 / - col2 col2 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT - - col0 AS col2, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query II rowsort
SELECT + - 37 AS col1, col0 FROM tab0 AS cor0
----
-37
15
-37
87
-37
97

query I rowsort
SELECT - 46 - col1 AS col0 FROM tab2
----
-113
-123
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT + - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8518
SELECT + - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + 51 + ( col0 ) * + - col0 AS col0 FROM tab1
----
-2550
-7174
-8230

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8520
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( ( + + col2 ), - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8520
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( ( + + col2 ), - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8521
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col2 * - ( 28 ) * + 51 * - + col1 - + col2 AS col1 FROM tab0 AS cor0
----
141273
299870
5436349

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE col1 - - col1 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8524
SELECT + COUNT( * ) * CAST( + 81 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-8524
SELECT + COUNT ( * ) * CAST ( + 81 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
243

query I rowsort
SELECT ALL + + 1 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - 76 * - col0 AS col0 FROM tab0 cor0
----
1140
6612
7372

query I rowsort
SELECT col0 * - col1 * - + col0 AS col1 FROM tab0
----
158949
18225
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8528
SELECT - 67 AS col1 FROM tab1 WHERE ( 91 * - - CAST( - - 34 AS SIGNED ) + + col0 ) <= + col0 + - col0 + + 87 + 27 * + 82 AND NULL IN ( col0 / + 57 - col0 )
----

skipif mysql # not compatible
query I rowsort label-8528
SELECT - 67 AS col1 FROM tab1 WHERE ( 91 * - - CAST ( - - 34 AS INTEGER ) + + col0 ) <= + col0 + - col0 + + 87 + 27 * + 82 AND NULL IN ( col0 / + 57 - col0 )
----

query I rowsort
SELECT DISTINCT - 30 * + col2 FROM tab1
----
-1770
-2040
-2880

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 49 > + + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT ALL + COUNT( * ) * + 87 AS col2 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + COUNT ( * ) * + 87 AS col2 FROM tab0
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8532
SELECT + - col0 AS col2, - 81 / - col2 FROM tab0 WHERE NOT + col0 * - CAST( - col1 AS SIGNED ) * 38 NOT BETWEEN + + col0 AND NULL
----

skipif mysql # not compatible
query II rowsort label-8532
SELECT + - col0 AS col2, - 81 / - col2 FROM tab0 WHERE NOT + col0 * - CAST ( - col1 AS INTEGER ) * 38 NOT BETWEEN + + col0 AND NULL
----

query II rowsort
SELECT col2 AS col1, col2 AS col1 FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT + col1 AS col0, col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - + 72 + - - col2 FROM tab0 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT + COUNT( * ) + COUNT( - col1 ) + - - 1 * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8537
SELECT + COUNT ( * ) + COUNT ( - col1 ) + - - 1 * COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT + MAX( ALL - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8538
SELECT + MAX ( ALL - col0 ) FROM tab1
----
-51

query I rowsort
SELECT ALL - col0 * 69 AS col1 FROM tab1
----
-3519
-5865
-6279

query II rowsort
SELECT + - 68 AS col1, col2 AS col1 FROM tab1 AS cor0
----
-68
59
-68
68
-68
96

query II rowsort
SELECT + - 69 AS col0, 49 FROM tab0 AS cor0
----
-69
49
-69
49
-69
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT DISTINCT + MIN( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8542
SELECT DISTINCT + MIN ( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8543
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - ( + col0 ) + - + col0 * col2 ) <= CAST( + col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8543
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - ( + col0 ) + - + col0 * col2 ) <= CAST ( + col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8544
SELECT ALL 86 DIV COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - col2 DIV col0 * + col1 * + col1 + + col1 ) = ( + ( - + 29 ) )
----
28

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL 86 / COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - col2 / col0 * + col1 * + col1 + + col1 ) = ( + ( - + 29 ) )
----
28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 > - - col1
----

query I rowsort
SELECT ALL col0 + 3 FROM tab2 AS cor0
----
49
67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 * 67 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 * 67 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 - + ( col1 ) ) NOT BETWEEN col1 * 93 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 21 NOT BETWEEN col0 AND - col0 * col1 + - col0 * col1 + - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 30 + 12 FROM tab1
----
-18
-18
-18

query I rowsort
SELECT DISTINCT + col0 + - - col0 - - 64 FROM tab1 WHERE - 29 IS NULL
----

query I rowsort
SELECT ALL col0 + - 57 AS col2 FROM tab0
----
-42
30
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE ( - 24 / - + col1 ) > - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE ( - 24 / - + col1 ) > - col0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col2 + - + 85 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 80 * + col1 + - 73 - + + 90 - + + col0 AS col0 FROM tab2
----
3871
5122
5933

onlyif mysql # DIV for integer division: 
query I rowsort label-8556
SELECT 12 DIV - + col0 + col1 * + + 74 FROM tab1 AS cor0
----
1036
3478
370

skipif mysql # not compatible
query I rowsort label-8556
SELECT 12 / - + col0 + col1 * + + 74 FROM tab1 AS cor0
----
1036
3478
370

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT ALL - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT + col1 - + + col0 AS col1 FROM tab2 cor0
----
-8
13
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 + - col1 * - col1 + + 35 ) >= NULL
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE + col2 * - 4 NOT IN ( + + col1 )
----
-59
-68
-96

query I rowsort
SELECT 68 * 8 AS col1 FROM tab0 AS cor0
----
544
544
544

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8563
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN + col2 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN + col2 AND - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, + 32 col1 FROM tab2 AS cor0
----
51
32
67
32
77
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8565
SELECT + - col1 DIV 74 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8565
SELECT + - col1 / 74 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8566
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL = - CAST( NULL AS SIGNED ) * - 10 )
----

skipif mysql # not compatible
query III rowsort label-8566
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL = - CAST ( NULL AS INTEGER ) * - 10 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col2 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT + 74 AS col2 FROM tab2 WHERE NOT + + 1 <> + 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8569
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * 87 FROM tab2
----
4002
5568
6525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT DISTINCT - CAST( 78 AS SIGNED ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT - CAST ( 78 AS INTEGER ) FROM tab0
----
-78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) * + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 / - col1 + + 92 > - - 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 col0 FROM tab0 AS cor0 WHERE 19 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 91 = NULL
----

query I rowsort
SELECT 45 * - + 35 FROM tab1
----
-1575
-1575
-1575

query I rowsort
SELECT ALL + + 66 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT + 26 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT + - MAX( DISTINCT col1 ) * SUM( + col1 ) FROM tab2 cor0
----
-15015

skipif mysql # not compatible
query I rowsort label-8579
SELECT + - MAX ( DISTINCT col1 ) * SUM ( + col1 ) FROM tab2 cor0
----
-15015

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - - col2 NOT IN ( + 73 / + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * - + 74 * - 80 * + + col0 + + + 14 + col0 AS col1 FROM tab0 AS cor0
----
10815941
574351
7192829

onlyif mysql # DIV for integer division: 
query I rowsort label-8582
SELECT 92 + + col0 - + - col2 DIV - 12 FROM tab1 AS cor0
----
135
173
178

skipif mysql # not compatible
query I rowsort label-8582
SELECT 92 + + col0 - + - col2 / - 12 FROM tab1 AS cor0
----
135
173
178

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8583
SELECT - 20 AS col1, col0 FROM tab2 AS cor0 WHERE - CAST( - 2 AS SIGNED ) >= + - 82
----
-20
46
-20
64
-20
75

skipif mysql # not compatible
query II rowsort label-8583
SELECT - 20 AS col1, col0 FROM tab2 AS cor0 WHERE - CAST ( - 2 AS INTEGER ) >= + - 82
----
-20
46
-20
64
-20
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8584
SELECT DISTINCT + 86 DIV + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-14
-79
-97

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT + 86 / + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-14
-79
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT - + COUNT( * ) * 1 + MAX( + - col2 ) AS col0 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT - + COUNT ( * ) * 1 + MAX ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-13

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col1 * - + col2 )
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE col2 NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + + col1 * + col0 * + ( - + 5 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL - 13 * 27 + MAX( + + col1 ) AS col0 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL - 13 * 27 + MAX ( + + col1 ) AS col0 FROM tab0
----
-270

query I rowsort
SELECT DISTINCT 72 * + - 71 + + col1 AS col1 FROM tab2
----
-5035
-5045
-5061

onlyif mysql # DIV for integer division: 
query I rowsort label-8591
SELECT ALL col1 * - + col1 DIV + + ( + col1 ) - col1 FROM tab1 AS cor0
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL col1 * - + col1 / + + ( + col1 ) - col1 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT - CAST( NULL AS SIGNED ) * + MIN( ALL 2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT - CAST ( NULL AS INTEGER ) * + MIN ( ALL 2 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + 52 ) <> + 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8594
SELECT ALL 97, + 95 * + + col1 * - + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
97
NULL
97
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8594
SELECT ALL 97, + 95 * + + col1 * - + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
97
NULL
97
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8595
SELECT + col0 - col1 * 45 DIV + - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-3
10
35

skipif mysql # not compatible
query I rowsort label-8595
SELECT + col0 - col1 * 45 / + - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-3
10
35

query I rowsort
SELECT DISTINCT + col1 + 81 AS col1 FROM tab0
----
102
162
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - 21 col0 FROM tab2
----
44
61
79

query I rowsort
SELECT DISTINCT 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8599
SELECT DISTINCT + + 82, + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-8599
SELECT DISTINCT + + 82, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
82
NULL

query II rowsort
SELECT col2 * - col1 AS col1, - col1 FROM tab1 AS cor0
----
-1344
-14
-295
-5
-3196
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT + + ( + - MIN( col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT + + ( + - MIN ( col1 ) ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8602
SELECT ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8603
SELECT DISTINCT COUNT( col2 ) AS col0, COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
3
-9

skipif mysql # not compatible
query II rowsort label-8603
SELECT DISTINCT COUNT ( col2 ) AS col0, COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
3
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8604
SELECT DISTINCT + 12 * ( CAST( - + ( - COUNT( * ) ) AS SIGNED ) ) + MIN( ALL col1 ) + - COUNT( * ) + + 85 * 90 FROM tab0 WHERE NOT col1 BETWEEN - + ( - col2 ) + 57 AND col1
----
7684

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT + 12 * ( CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) ) + MIN ( ALL col1 ) + - COUNT ( * ) + + 85 * 90 FROM tab0 WHERE NOT col1 BETWEEN - + ( - col2 ) + 57 AND col1
----
7684

query I rowsort
SELECT ALL ( - 72 ) FROM tab0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT ( - 70 ) * - + COUNT( * ) AS col1 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-8606
SELECT ( - 70 ) * - + COUNT ( * ) AS col1 FROM tab0
----
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, - col0 FROM tab0
----
-1
-97
-21
-87
-81
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col2 col0 FROM tab1 cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - 10 * + col0 col1 FROM tab2 AS cor0
----
23
-460
40
-640
58
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT - 57 + - 26 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-83

skipif mysql # not compatible
query I rowsort label-8610
SELECT - 57 + - 26 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-83

query I rowsort
SELECT ALL ( col1 ) + + col1 FROM tab1 cor0
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 62 col2 FROM tab1 AS cor0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8613
SELECT DISTINCT col0 + - - ( col0 ) DIV + col2 - ( + col2 ) FROM tab2
----
18
25

skipif mysql # not compatible
query I rowsort label-8613
SELECT DISTINCT col0 + - - ( col0 ) / + col2 - ( + col2 ) FROM tab2
----
18
25

query I rowsort
SELECT ALL + 85 * - 39 FROM tab1 WHERE NULL BETWEEN - 87 AND 65
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8615
SELECT - ( + - CAST( NULL AS DECIMAL ) ) * ( - - col0 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8615
SELECT - ( + - CAST ( NULL AS REAL ) ) * ( - - col0 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 64 * + + 22 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 105c95a06ee2876754ae328b1789aed0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col2 + + 37
----

query II rowsort
SELECT DISTINCT + - 1 * col1, + col2 - col1 + 44 AS col0 FROM tab1 AS cor0
----
-14
126
-47
65
-5
98

query I rowsort
SELECT - col0 * + 75 FROM tab2 AS cor0
----
-3450
-4800
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT ALL - col1 * + col1 / - + col0 + ( + + ( - col2 ) ) - - col2 - + col2 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL - col1 * + col1 / - + col0 + ( + + ( - col2 ) ) - - col2 - + col2 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT ALL - COUNT( * ) * - ( - SUM( col2 ) ) * - COUNT( * ) + + 39 AS col0 FROM tab0 AS cor0
----
1443

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL - COUNT ( * ) * - ( - SUM ( col2 ) ) * - COUNT ( * ) + + 39 AS col0 FROM tab0 AS cor0
----
1443

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 * + col1 * + col1 AND NULL
----

query I rowsort
SELECT ALL + + 71 * + + col1 * + + 15 * - col1 FROM tab2 AS cor0
----
-2770065
-4780785
-6314385

query I rowsort
SELECT ALL + + col2 + + col2 + 18 AS col0 FROM tab1 AS cor0
----
136
154
210

onlyif mysql # aggregate syntax: 
query II rowsort label-8625
SELECT - SUM( DISTINCT + 89 ) AS col0, + ( - COUNT( * ) ) AS col0 FROM tab2 cor0
----
-89
-3

skipif mysql # not compatible
query II rowsort label-8625
SELECT - SUM ( DISTINCT + 89 ) AS col0, + ( - COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-89
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8626
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN - col2 / - col2 - + col1 AND col0
----

skipif mysql # not compatible
query III rowsort label-8626
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 / - col2 - + col1 AND col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8627
SELECT + 50 - + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT + 50 - + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 43 * + col2 * 35 + - col1 - col0 AS col1 FROM tab2
----
34518
60059
87148

query I rowsort
SELECT 85 + - ( + - col1 ) AS col0 FROM tab1
----
132
90
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 col0 FROM tab0 AS cor0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8632
SELECT DISTINCT + + col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT + + col0 / - col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8633
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( col1 * + + col2 ) NOT BETWEEN col0 AND - 12
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( col1 * + + col2 ) NOT BETWEEN col0 AND - 12
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT + 82 DIV - 8 FROM tab1
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-8634
SELECT + 82 / - 8 FROM tab1
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col2 AND 63 + - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8636
SELECT ALL - 19 * 57 DIV + col2 col1 FROM tab0 AS cor0
----
-10
-108
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8636
SELECT ALL - 19 * 57 / + col2 col1 FROM tab0 AS cor0
----
-10
-108
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT + MAX( ALL - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8637
SELECT + MAX ( ALL - col0 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 * col2 ) BETWEEN ( col0 * - 23 * - col2 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 4 FROM tab1 cor0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 82 <> + ( + col0 ) / + + col1
----

query I rowsort
SELECT - ( 32 ) FROM tab2 AS cor0
----
-32
-32
-32

query II rowsort
SELECT ALL col1 * - col1, col0 AS col1 FROM tab0
----
-1
97
-441
87
-6561
15

query I rowsort
SELECT col1 * col1 + - col0 AS col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT MAX( DISTINCT - ( - col2 ) ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8644
SELECT MAX ( DISTINCT - ( - col2 ) ) AS col2 FROM tab0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8645
SELECT DISTINCT - + CAST( + SUM( + - 62 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT - + CAST ( + SUM ( + - 62 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT + COUNT( * ) * 47 + - - 22 FROM tab1 AS cor0
----
163

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT + COUNT ( * ) * 47 + - - 22 FROM tab1 AS cor0
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL COUNT( * ) * - - COUNT( * ) * - + 34 FROM tab1
----
-306

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL COUNT ( * ) * - - COUNT ( * ) * - + 34 FROM tab1
----
-306

query I rowsort
SELECT ALL - + 64 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT + COUNT( * ) + 42 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-8649
SELECT + COUNT ( * ) + 42 FROM tab2
----
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 77 IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT + 78 * + - 69 + col1 * col0 + col0 FROM tab2 AS cor0
----
-282
-2990
-390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - 65 col1 FROM tab2 cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT col2 + + - 53 AS col2 FROM tab2 AS cor0
----
-13
-30
5

query I rowsort
SELECT + ( + col2 ) + + col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8656
SELECT DISTINCT + col0 + - + 11 + CAST( NULL AS SIGNED ) * - 76 / + col2 - + + 53 - - col2 * + col2 + CAST( - - col0 AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT + col0 + - + 11 + CAST ( NULL AS INTEGER ) * - 76 / + col2 - + + 53 - - col2 * + col2 + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT + SUM( ALL col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8657
SELECT + SUM ( ALL col1 ) FROM tab2
----
195

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 IN ( + 58 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 61 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 18 NOT BETWEEN ( + col0 + - col2 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT COUNT( ALL col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT COUNT ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8662
SELECT DISTINCT MIN( - - col0 ) col2, COUNT( * ) FROM tab2 AS cor0
----
46
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8662
SELECT DISTINCT MIN ( - - col0 ) col2, COUNT ( * ) FROM tab2 AS cor0
----
46
3

query I rowsort
SELECT - 17 * - 23 FROM tab0 AS cor0
----
391
391
391

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT ALL - SUM( DISTINCT - + 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL - SUM ( DISTINCT - + 0 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8665
SELECT + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - - col2 - - 57 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT - - ( - - MIN( ALL - + col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8667
SELECT - - ( - - MIN ( ALL - + col1 ) ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT DISTINCT - - SUM( ALL col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT - - SUM ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-8669
SELECT ALL 29 AS col1, ( 39 ) * - - ( - - 35 ) + - SUM( + + 51 ) FROM tab2 cor0
----
29
1212

skipif mysql # not compatible
query II rowsort label-8669
SELECT ALL 29 AS col1, ( 39 ) * - - ( - - 35 ) + - SUM ( + + 51 ) FROM tab2 cor0
----
29
1212

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT DISTINCT - COUNT( ALL - 59 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT - COUNT ( ALL - 59 ) FROM tab1
----
-3

query I rowsort
SELECT ALL 16 + + col0 FROM tab0
----
103
113
31

query II rowsort
SELECT DISTINCT col0, 91 FROM tab2
----
46
91
64
91
75
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT ALL + MIN( DISTINCT + 62 ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL + MIN ( DISTINCT + 62 ) FROM tab2
----
62

query II rowsort
SELECT - col0 AS col0, 97 * - - 50 AS col2 FROM tab1
----
-51
4850
-85
4850
-91
4850

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT - + 22 + + 36 * - ( + col2 ) + + - col0 BETWEEN - 66 AND + col0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col1 FROM tab0
----
35

query I rowsort
SELECT col1 + col2 * - + 29 FROM tab0 AS cor0
----
-1282
-269
-2870

query I rowsort
SELECT DISTINCT - 99 + col0 AS col2 FROM tab0 cor0
----
-12
-2
-84

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - col0 * 24 / + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8681
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - col1 NOT BETWEEN ( + col1 + + col0 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8681
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - col1 NOT BETWEEN ( + col1 + + col0 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 - + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT - + MIN( ALL 19 ) * 56 AS col1 FROM tab1 AS cor0
----
-1064

skipif mysql # not compatible
query I rowsort label-8683
SELECT - + MIN ( ALL 19 ) * 56 AS col1 FROM tab1 AS cor0
----
-1064

query I rowsort
SELECT - - col2 * + 27 AS col0 FROM tab1 AS cor0
----
1593
1836
2592

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - ( 68 ) AND 44 - - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8686
SELECT ALL - MAX( - 11 ) AS col0, + 52 AS col1 FROM tab2 AS cor0
----
11
52

skipif mysql # not compatible
query II rowsort label-8686
SELECT ALL - MAX ( - 11 ) AS col0, + 52 AS col1 FROM tab2 AS cor0
----
11
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8687
SELECT col0 DIV col1 - CAST( - col1 AS SIGNED ) * col2 FROM tab0
----
196
214
3807

skipif mysql # not compatible
query I rowsort label-8687
SELECT col0 / col1 - CAST ( - col1 AS INTEGER ) * col2 FROM tab0
----
196
214
3807

query I rowsort
SELECT 8 + - 57 AS col1 FROM tab2
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( - 64 ) ) - - col0 col0 FROM tab0
----
151
161
79

query I rowsort
SELECT + 40 + - + col0 AS col0 FROM tab1
----
-11
-45
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT MIN( - 6 ) + - - 21 AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8691
SELECT MIN ( - 6 ) + - - 21 AS col1 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT - + col1 * - 18 * CAST( NULL AS SIGNED ) + + + col2 + + + col1 * + 43 AS col2 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8692
SELECT - + col1 * - 18 * CAST ( NULL AS INTEGER ) + + + col2 + + + col1 * + 43 AS col2 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * 7 col0 FROM tab2 AS cor0
----
357
469
539

query II rowsort
SELECT DISTINCT + col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 74 < + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8696
SELECT + CAST( ( + COUNT( * ) ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8696
SELECT + CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT - col2 - - col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ALL - SUM( ALL + + 53 ) AS col0 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL - SUM ( ALL + + 53 ) AS col0 FROM tab1
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL COUNT( * ) * - - ( + ( + + SUM( DISTINCT - + col1 ) ) ) AS col0 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL COUNT ( * ) * - - ( + ( + + SUM ( DISTINCT - + col1 ) ) ) AS col0 FROM tab1
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8700
SELECT DISTINCT - COUNT( * ) DIV + + 99 * - COUNT( * ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8700
SELECT DISTINCT - COUNT ( * ) / + + 99 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= + 77
----

query I rowsort
SELECT ALL 37 AS col0 FROM tab1 cor0 WHERE + ( col1 ) IN ( - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8703
SELECT + col2 * - col0 + - - CAST( NULL AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8703
SELECT + col2 * - col0 + - - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 65 col2 FROM tab0 cor0
----
65
65
65

query I rowsort
SELECT ALL - col0 * col0 * 29 + + col0 AS col0 FROM tab2 AS cor0
----
-118720
-163050
-61318

query I rowsort
SELECT 82 + - - col1 FROM tab1
----
129
87
96

query I rowsort
SELECT col0 + - + col0 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL > ( NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 col1 FROM tab0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8711
SELECT col0 DIV + 85 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8711
SELECT col0 / + 85 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT DISTINCT + + SUM( - 49 ) AS col0 FROM tab0 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT + + SUM ( - 49 ) AS col0 FROM tab0 cor0
----
-147

query I rowsort
SELECT - ( - col1 ) * - 21 FROM tab0 AS cor0
----
-1701
-21
-441

query II rowsort
SELECT col0 AS col0, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT + 11 + - + col2 FROM tab2
----
-12
-29
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT DISTINCT - COUNT( * ) + ( + + 10 ) AS col2 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT - COUNT ( * ) + ( + + 10 ) AS col2 FROM tab1
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 AS cor0 WHERE ( - col1 * - - ( col2 ) + + col2 * + + col0 IS NULL )
----

query I rowsort
SELECT + col2 + ( - 43 ) FROM tab2 cor0
----
-20
-3
15

query I rowsort
SELECT ALL ( + + 47 ) AS col1 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT col1 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
441
6561

onlyif mysql # DIV for integer division: 
query II rowsort label-8721
SELECT ALL + col2 - - 74 + - col1 DIV - 82, col1 FROM tab1 AS cor0
----
133
5
142
47
170
14

skipif mysql # not compatible
query II rowsort label-8721
SELECT ALL + col2 - - 74 + - col1 / - 82, col1 FROM tab1 AS cor0
----
133
5
142
47
170
14

query I rowsort
SELECT + - 32 * + col0 FROM tab2 cor0
----
-1472
-2048
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8723
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT ALL - 16 * SUM( DISTINCT - + 82 ) * 97 FROM tab2 AS cor0 WHERE NOT + col0 - - - 19 * ( - col1 ) NOT IN ( 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL - 16 * SUM ( DISTINCT - + 82 ) * 97 FROM tab2 AS cor0 WHERE NOT + col0 - - - 19 * ( - col1 ) NOT IN ( 11 )
----
NULL

query I rowsort
SELECT - ( 4 ) FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8726
SELECT * FROM tab0 WHERE 30 * 12 - - CAST( NULL AS SIGNED ) + - col1 IN ( + col2 + - col0 + - - col0 * + - col2, col0 + - col2 )
----

skipif mysql # not compatible
query III rowsort label-8726
SELECT * FROM tab0 WHERE 30 * 12 - - CAST ( NULL AS INTEGER ) + - col1 IN ( + col2 + - col0 + - - col0 * + - col2, col0 + - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8727
SELECT MIN( ALL - + col0 ) FROM tab1 WHERE NOT NULL IN ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT MIN ( ALL - + col0 ) FROM tab1 WHERE NOT NULL IN ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8728
SELECT - col0 DIV 97 * + ( - col2 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8728
SELECT - col0 / 97 * + ( - col2 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + + 42 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / col2 * 4 / + - 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + 3 ) FROM tab1 AS cor0
----
-3
-3
-3

query II rowsort
SELECT col1 AS col2, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8733
SELECT - CAST( - col2 AS SIGNED ) DIV - - col1, + col0 FROM tab0 cor0
----
0
15
0
87
99
97

skipif mysql # not compatible
query II rowsort label-8733
SELECT - CAST ( - col2 AS INTEGER ) / - - col1, + col0 FROM tab0 cor0
----
0
15
0
87
99
97

query I rowsort
SELECT - ( 81 ) FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8735
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8735
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 63 + col1 + + + 52 AS col0 FROM tab2 AS cor0
----
40
56
66

query I rowsort
SELECT DISTINCT + col1 * + 82 FROM tab1 AS cor0
----
1148
3854
410

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 37 IS NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ALL 15 + - COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL 15 + - COUNT ( * ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT DISTINCT col0 * - col1 + - 85 FROM tab2
----
-2431
-5013
-5110

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT COUNT( * ) * + COUNT( * ) * 66 AS col2 FROM tab2
----
594

skipif mysql # not compatible
query I rowsort label-8742
SELECT COUNT ( * ) * + COUNT ( * ) * 66 AS col2 FROM tab2
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT COUNT( + col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT COUNT ( + col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT 99 * - 49 FROM tab0
----
-4851
-4851
-4851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 50 col0 FROM tab2 WHERE - 10 + - col1 * col1 IS NULL
----

query I rowsort
SELECT - - ( + - col2 ) + - + 89 AS col1 FROM tab0 AS cor0
----
-136
-188
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 >= 79
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - col0 >= NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 - - col2 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8750
SELECT - MAX( DISTINCT 37 ) FROM tab1 WHERE CAST( NULL AS SIGNED ) = 71 / col2 - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT - MAX ( DISTINCT 37 ) FROM tab1 WHERE CAST ( NULL AS INTEGER ) = 71 / col2 - col2
----
NULL

query I rowsort
SELECT DISTINCT + col2 * 97 + ( - - col0 ) FROM tab2 cor0
----
2277
3944
5701

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 BETWEEN ( 82 ) AND 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8753
SELECT ALL 26 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1326
2210
2366

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL 26 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1326
2210
2366

query I rowsort
SELECT + col2 * - + col1 * - 31 FROM tab1
----
41664
9145
99076

query II rowsort
SELECT + 17, + col2 AS col1 FROM tab0
----
17
10
17
47
17
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT - ( - COUNT( ALL 83 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT - ( - COUNT ( ALL 83 ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + - 3 AS col1 FROM tab2 WHERE - col1 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - ( - 76 ) AS col2 FROM tab2
----
76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 92 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 89 * 83 FROM tab1 cor0
----
-7387
-7387
-7387

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL MAX( - 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL MAX ( - 0 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 77 + col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8763
SELECT - CAST( + + 61 AS SIGNED ) DIV + col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT - CAST ( + + 61 AS INTEGER ) / + col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT DISTINCT MAX( ALL - col0 ) - - - AVG ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT MAX ( ALL - col0 ) - - - AVG ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 42 * + 67 BETWEEN - ( - ( col0 ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT ALL + 37 + + COUNT( * ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL + 37 + + COUNT ( * ) FROM tab2 AS cor0
----
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - col0 - - 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT 87 + - ( + MAX( ALL col0 ) ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT 87 + - ( + MAX ( ALL col0 ) ) FROM tab1
----
-4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT DISTINCT COUNT( * ) + + 83 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT COUNT ( * ) + + 83 FROM tab0
----
86

query I rowsort
SELECT DISTINCT col0 + + + col0 AS col2 FROM tab2
----
128
150
92

query I rowsort
SELECT - 46 * - 14 AS col0 FROM tab0 AS cor0
----
644
644
644

query II rowsort
SELECT ( + col2 ) - 52 AS col2, 45 FROM tab2 cor0
----
-12
45
-29
45
6
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8776
SELECT COUNT( col2 ) - - 24 AS col2, - 89 + - 15 FROM tab0 cor0
----
27
-104

skipif mysql # not compatible
query II rowsort label-8776
SELECT COUNT ( col2 ) - - 24 AS col2, - 89 + - 15 FROM tab0 cor0
----
27
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL COUNT( * ) + + 46 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL COUNT ( * ) + + 46 FROM tab2 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL COUNT( * ) - - - ( - - 6 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL COUNT ( * ) - - - ( - - 6 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT 83 + + col0 + + 87 AS col1 FROM tab1
----
221
255
261

query I rowsort
SELECT ALL - col0 - - - col1 AS col1 FROM tab2
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT COUNT( * ) * + 41 * COUNT( * ) col0 FROM tab1 cor0
----
369

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8781
SELECT COUNT ( * ) * + 41 * COUNT ( * ) col0 FROM tab1 cor0
----
369

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT MIN( + 53 ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT MIN ( + 53 ) FROM tab1 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT + - COUNT( * ) AS col2 FROM tab0 WHERE NOT + + col2 <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-8784
SELECT + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + + col2 <> + col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT - 79 DIV - col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8785
SELECT - 79 / - col0 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8786
SELECT ALL - CAST( NULL AS SIGNED ) + + 91 * 24 AS col1 FROM tab2 WHERE NOT NULL < + col0
----

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL - CAST ( NULL AS INTEGER ) + + 91 * 24 AS col1 FROM tab2 WHERE NOT NULL < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL - SUM( col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - SUM ( col2 ) AS col0 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT MAX( 31 ) AS col1 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-8788
SELECT MAX ( 31 ) AS col1 FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT MIN( + + 48 ) AS col1 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-8789
SELECT MIN ( + + 48 ) AS col1 FROM tab0
----
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8790
SELECT DISTINCT + + CAST( - col1 AS SIGNED ) DIV + 96 col1, - col1 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8790
SELECT DISTINCT + + CAST ( - col1 AS INTEGER ) / + 96 col1, - col1 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

query II rowsort
SELECT DISTINCT 49 AS col2, - col2 FROM tab0 AS cor0
----
49
-10
49
-47
49
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - - 59 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + + + col1 < ( + ( + 57 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 41 AS col2, - col1 AS col0 FROM tab0
----
41
-1
41
-21
41
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT DISTINCT + SUM( DISTINCT + - 92 ) AS col0 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT + SUM ( DISTINCT + - 92 ) AS col0 FROM tab1
----
-92

query I rowsort
SELECT ALL - - 63 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * - - 21 >= - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT ALL + ( + 49 ) * - 5 * + COUNT( * ) col2 FROM tab2 AS cor0
----
-735

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8797
SELECT ALL + ( + 49 ) * - 5 * + COUNT ( * ) col2 FROM tab2 AS cor0
----
-735

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE 4 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > 7 + col0
----

query I rowsort
SELECT 69 AS col2 FROM tab1 WHERE NULL < + col2
----

query II rowsort
SELECT - ( + col1 ), + col2 AS col1 FROM tab1
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT col0 + - col0 + + 50 FROM tab0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8803
SELECT 43 + - - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8803
SELECT 43 + - - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1
----
42

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT + col1 < NULL )
----

query I rowsort
SELECT ( + 26 ) + - + col1 FROM tab1
----
-21
12
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL + 33 + + MAX( - - 6 ) AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + 33 + + MAX ( - - 6 ) AS col1 FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT ALL + 0 + - - MAX( - col0 ) + + + COUNT( * ) * 86 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + 0 + - - MAX ( - col0 ) + + + COUNT ( * ) * 86 FROM tab0
----
243

query I rowsort
SELECT DISTINCT + - col1 * + - col1 - + col1 AS col1 FROM tab1 AS cor0
----
182
20
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT DISTINCT - COUNT( * ) * + - ( + ( + 1 ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT - COUNT ( * ) * + - ( + ( + 1 ) ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT + + 69 FROM tab0 cor0
----
69
69
69

query II rowsort
SELECT 37 * ( + 90 ), 60 + - ( + col1 ) AS col0 FROM tab0
----
3330
-21
3330
39
3330
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL + MAX( 32 ) AS col0 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL + MAX ( 32 ) AS col0 FROM tab2
----
32

query I rowsort
SELECT - ( - col2 ) FROM tab1 AS cor0 WHERE NOT 99 IS NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 38, col2 col1 FROM tab0 AS cor0 WHERE NOT 51 IS NULL
----
38
10
38
47
38
99

query II rowsort
SELECT DISTINCT 80 AS col1, col0 FROM tab2 cor0
----
80
46
80
64
80
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT DISTINCT SUM( - 50 ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT SUM ( - 50 ) FROM tab0 AS cor0
----
-150

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - 61 AND col0 * + 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT - MAX( - - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8819
SELECT - MAX ( - - col2 ) AS col1 FROM tab0 AS cor0
----
-99

query II rowsort
SELECT + col1 AS col0, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL + 93 * col2 FROM tab0
----
4371
9207
930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8822
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab0 WHERE NOT ( - col1 ) < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8822
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab0 WHERE NOT ( - col1 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8823
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( + 33 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8823
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( + 33 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - col0 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT DISTINCT COUNT( 3 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT COUNT ( 3 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 - col1 NOT BETWEEN NULL AND - col2 + - col1 * + col1 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8827
SELECT 82 * - + COUNT( * ) col2, - COUNT( col1 ) AS col1 FROM tab2
----
-246
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8827
SELECT 82 * - + COUNT ( * ) col2, - COUNT ( col1 ) AS col1 FROM tab2
----
-246
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8828
SELECT - 87 - col1 col0 FROM tab1 WHERE NOT NULL IN ( + - col1, 94 / CAST( NULL AS DECIMAL ) * - ( - - col1 ) + - col2, + - col0, CAST( + col0 AS SIGNED ) * col2 + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8828
SELECT - 87 - col1 col0 FROM tab1 WHERE NOT NULL IN ( + - col1, 94 / CAST ( NULL AS REAL ) * - ( - - col1 ) + - col2, + - col0, CAST ( + col0 AS INTEGER ) * col2 + col2 )
----

query I rowsort
SELECT + col0 * - col0 FROM tab1 WHERE NOT - - 43 IS NOT NULL
----

query I rowsort
SELECT 14 * - + col1 FROM tab2 AS cor0
----
-1078
-714
-938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT DISTINCT - + ( col2 ) * - 24 * - CAST( + col0 AS SIGNED ) * - + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
10230600
13514592
5992704

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT - + ( col2 ) * - 24 * - CAST ( + col0 AS INTEGER ) * - + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
10230600
13514592
5992704

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT DISTINCT - COUNT( ALL - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT - COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( + + col0 * + ( + - col0 ) - col2 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8834
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - AVG ( - - col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT DISTINCT + 12 + + col2 + + CAST( + + 33 AS SIGNED ) + - col1 * + + col1 + ( 50 ) AS col1 FROM tab2 AS cor0
----
-2483
-4336
-5794

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT + 12 + + col2 + + CAST ( + + 33 AS INTEGER ) + - col1 * + + col1 + ( 50 ) AS col1 FROM tab2 AS cor0
----
-2483
-4336
-5794

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT - COUNT( * ) + COUNT( + - col0 ) + + 48 + - COUNT( 87 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8839
SELECT - COUNT ( * ) + COUNT ( + - col0 ) + + 48 + - COUNT ( 87 ) FROM tab1 AS cor0
----
45

query I rowsort
SELECT - col0 * - - 51 + + - 48 FROM tab1
----
-2649
-4383
-4689

query I rowsort
SELECT ALL + 60 + - col2 + - ( - - col0 ) FROM tab0
----
-136
-2
-37

query I rowsort
SELECT DISTINCT 40 + - 96 AS col1 FROM tab2
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( col0 ) col1 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - 77
----

query I rowsort
SELECT ALL + col2 + - + ( - - col1 ) * + col2 * - 2 - + + col2 FROM tab0 AS cor0
----
198
420
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL + COUNT( * ) + - COUNT( col0 ) * - + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL + COUNT ( * ) + - COUNT ( col0 ) * - + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 NOT IN ( + + col0 * + 0, - ( - + 14 ) * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT + MIN( ALL - ( - + 52 ) ) col1 FROM tab0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8848
SELECT + MIN ( ALL - ( - + 52 ) ) col1 FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT + SUM( + 78 ) FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT + SUM ( + 78 ) FROM tab1
----
234

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 IN ( + col2 + 82, - 91, - + 46 )
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL - MAX( ALL + 96 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL - MAX ( ALL + 96 ) AS col2 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT col1 * - + col0 * - col2 AS col0 FROM tab0 cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL COUNT( - col1 ) * 94 AS col0 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL COUNT ( - col1 ) * 94 AS col0 FROM tab2
----
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 47 col0 FROM tab2
----
-2162
-3008
-3525

query I rowsort
SELECT DISTINCT + 44 * + col1 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query II rowsort
SELECT col2 * col1 * - - col2, + col2 + - 89 AS col1 FROM tab0
----
178929
-42
2100
-79
9801
10

query I rowsort
SELECT + ( - + col2 ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT col1 * - 82 AS col1 FROM tab2
----
-4182
-5494
-6314

query II rowsort
SELECT - col1, col0 AS col1 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query II rowsort
SELECT DISTINCT 12 * - col0 - - - 76, col1 AS col0 FROM tab0 AS cor0
----
-1120
21
-1240
1
-256
81

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( + ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT 69 * + COUNT( * ) AS col1 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-8862
SELECT 69 * + COUNT ( * ) AS col1 FROM tab1
----
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT 18 + - 37 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT - 67 + + col2 AS col0 FROM tab0 WHERE NOT col0 IN ( + col2 )
----
-20
-57
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT - SUM( ALL + 33 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-8866
SELECT - SUM ( ALL + 33 ) FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT DISTINCT ( + MIN( DISTINCT col1 ) ) * + 28 col0 FROM tab0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8867
SELECT DISTINCT ( + MIN ( DISTINCT col1 ) ) * + 28 col0 FROM tab0
----
28

query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab2
----
-30

query I rowsort
SELECT DISTINCT - col1 * col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT COUNT( * ) AS col2 FROM tab2 WHERE - col1 * 59 = - ( 59 )
----
0

skipif mysql # not compatible
query I rowsort label-8870
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE - col1 * 59 = - ( 59 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT MAX( 10 ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-8871
SELECT MAX ( 10 ) FROM tab1
----
10

query I rowsort
SELECT ALL ( col1 ) - - col2 AS col0 FROM tab1 WHERE col0 - - col0 * col2 > - col2 + col1
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8873
SELECT col1 DIV - 44 col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8873
SELECT col1 / - 44 col1 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8874
SELECT CAST( NULL AS SIGNED ) / + 27 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8874
SELECT CAST ( NULL AS INTEGER ) / + 27 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - col2 AS col2 FROM tab2 WHERE col0 * col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8876
SELECT 53 DIV + col2 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8876
SELECT 53 / + col2 col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8877
SELECT * FROM tab2 WHERE NOT - col2 * + 35 + + col2 BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8877
SELECT * FROM tab2 WHERE NOT - col2 * + 35 + + col2 BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( + 95 ) col0 FROM tab1
----
5605
6460
9120

onlyif mysql # DIV for integer division: 
query I rowsort label-8879
SELECT col1 - col0 DIV col2 AS col1 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-8879
SELECT col1 - col0 / col2 AS col1 FROM tab2
----
49
66
76

query I rowsort
SELECT DISTINCT 51 + + col1 AS col2 FROM tab0
----
132
52
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8881
SELECT * FROM tab2 WHERE col2 * - CAST( col0 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8881
SELECT * FROM tab2 WHERE col2 * - CAST ( col0 AS INTEGER ) < NULL
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT ( col1 ) BETWEEN ( NULL ) AND ( + col0 * 17 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT COUNT( + col2 ) FROM tab0 WHERE NULL < - col1 + - 3 * + 90
----
0

skipif mysql # not compatible
query I rowsort label-8884
SELECT COUNT ( + col2 ) FROM tab0 WHERE NULL < - col1 + - 3 * + 90
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 <> ( col0 )
----

query I rowsort
SELECT + col0 * + 29 AS col2 FROM tab1
----
1479
2465
2639

query I rowsort
SELECT - 64 * 33 + col1 FROM tab2 WHERE NULL IS NULL
----
-2035
-2045
-2061

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT col2 >= 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT - MIN( - 83 ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8889
SELECT - MIN ( - 83 ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 16 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 16 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 )
----

query I rowsort
SELECT DISTINCT ( - 20 ) FROM tab1 AS cor0 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT DISTINCT COUNT( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8893
SELECT DISTINCT COUNT ( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 38 * 93 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3534
3534
3534

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8895
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 >= CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / col1
----

skipif mysql # not compatible
query III rowsort label-8895
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 >= CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / col1
----

query I rowsort
SELECT DISTINCT - 27 * col2 FROM tab1
----
-1593
-1836
-2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * col2 col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 53 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL + + 41 AS col0 FROM tab2 cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT ALL + 89 + - COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
89

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL + 89 + - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
89

query I rowsort
SELECT DISTINCT + col0 * + 37 AS col1 FROM tab1 AS cor0
----
1887
3145
3367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 col2 FROM tab1 AS cor0 WHERE col2 <= + col0
----
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT DISTINCT + COUNT( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT + COUNT ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 NOT IN ( + col0 )
----

query I rowsort
SELECT ALL - ( - 4 ) FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT ALL + col1 * + ( + col2 * col1 ) AS col1 FROM tab2 AS cor0
----
237160
260362
59823

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT MAX( 67 ) FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-8907
SELECT MAX ( 67 ) FROM tab0 AS cor0
----
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 > ( + ( 84 ) )
----
85
5
59
91
47
68

query I rowsort
SELECT + + col2 * - 61 AS col0 FROM tab0 AS cor0
----
-2867
-6039
-610

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL 15 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL 15 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT DISTINCT 28 DIV - - 71 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT 28 / - - 71 AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col2 FROM tab2
----
97
97
97

query I rowsort
SELECT - 46 FROM tab2 WHERE NOT + col1 * 94 IS NULL
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT 13 + COUNT( * ) AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-8915
SELECT 13 + COUNT ( * ) AS col2 FROM tab0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT col0 * CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-8916
SELECT col0 * CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN col1 AND + col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL SUM( - col1 ) + - - 67 AS col1 FROM tab2
----
-128

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL SUM ( - col1 ) + - - 67 AS col1 FROM tab2
----
-128

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8920
SELECT * FROM tab2 WHERE + col2 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8920
SELECT * FROM tab2 WHERE + col2 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT - 89 + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-98

skipif mysql # not compatible
query I rowsort label-8921
SELECT - 89 + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < ( 17 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT - + col2 + - - CAST( + ( 0 ) AS SIGNED ) AS col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8923
SELECT - + col2 + - - CAST ( + ( 0 ) AS INTEGER ) AS col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT ( + ( 22 ) ) + 48 AS col0 FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT ALL - col0 * - col1 + 63 AS col0 FROM tab0 AS cor0
----
1278
160
1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8926
SELECT COUNT( + col1 ) + - - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT COUNT ( + col1 ) + - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + 98 < 6
----

query I rowsort
SELECT ALL - 82 * - col2 * + + col0 * + 23 FROM tab2 AS cor0
----
1995388
4828160
8204100

query I rowsort
SELECT ALL + + 19 * + col2 FROM tab0 AS cor0
----
1881
190
893

query I rowsort
SELECT ALL + + col0 * + - col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT 65 + - 70 FROM tab1 AS cor0
----
-5
-5
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col2 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <> col2 * - col0 * - col2 + - 38
----

query I rowsort
SELECT + 99 * + col0 + + ( col2 ) * + 58 FROM tab2 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 67 ) >= ( + 88 )
----

query I rowsort
SELECT ALL 33 + + - col2 FROM tab1
----
-26
-35
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8937
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 WHERE - + ( + col2 ) * - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8937
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 WHERE - + ( + col2 ) * - col1 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT ALL CAST( NULL AS SIGNED ) - - - 39 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL CAST ( NULL AS INTEGER ) - - - 39 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT MIN( DISTINCT 90 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT MIN ( DISTINCT 90 ) FROM tab2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT ALL ( ( col2 ) ) * CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL ( ( col2 ) ) * CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - + 8 AS col0 FROM tab2 cor0 WHERE NOT NULL > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8942
SELECT DISTINCT + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT COUNT( ALL col0 ) - AVG ( + col1 ) AS col1 FROM tab2 cor0 WHERE NOT - 65 * 40 / + col0 * + 99 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT COUNT ( ALL col0 ) - AVG ( + col1 ) AS col1 FROM tab2 cor0 WHERE NOT - 65 * 40 / + col0 * + 99 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8944
SELECT ALL COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - col1 * 54 AS col1 FROM tab0 WHERE NOT ( + + col0 * + col1 ) IS NULL
----
-1134
-4374
-54

query I rowsort
SELECT 98 * - - col2 AS col1 FROM tab0
----
4606
9702
980

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8947
SELECT * FROM tab1 AS cor0 WHERE - + col2 + - - CAST( NULL AS DECIMAL ) IN ( + col1 ) AND ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8947
SELECT * FROM tab1 AS cor0 WHERE - + col2 + - - CAST ( NULL AS REAL ) IN ( + col1 ) AND ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8948
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL - - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0, col2 * - 38 FROM tab2 AS cor0
----
46
-874
64
-1520
75
-2204

query I rowsort
SELECT + + ( - 33 ) AS col0 FROM tab0 AS cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT + col2 * + + col1 AS col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT + + ( 89 ) AS col1 FROM tab2 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT DISTINCT + 33 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + col1 * - - col2 * col2 * col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT + 33 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + col1 * - - col2 * col2 * col1 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col0 + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
196
62
97

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + col2 * + col1 * + 30 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 98 + - 31 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT ALL + ( - COUNT( * ) ) + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL + ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT 10 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8958
SELECT 10 / + col0 FROM tab1
----
0
0
0

query II rowsort
SELECT - 92 * col1, col2 AS col2 FROM tab2
----
-4692
23
-6164
58
-7084
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8960
SELECT SUM( - 14 ) DIV - 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8960
SELECT SUM ( - 14 ) / - 99 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT ALL - 22 * + MIN( - col1 ) AS col2 FROM tab1
----
1034

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL - 22 * + MIN ( - col1 ) AS col2 FROM tab1
----
1034

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN - 83 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN - 83 AND col0
----
0

query I rowsort
SELECT - + col2 + - ( + col1 ) FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT DISTINCT - 26 + - + col0 * - col1 AS col2 FROM tab0 AS cor0
----
1189
1801
71

query III rowsort
SELECT ALL * FROM tab2 WHERE + 85 = + col0 - + - ( - + ( + col1 ) ) * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL SUM( + - ( col2 ) ) * 74 * - 73 FROM tab1 AS cor0
----
1204646

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL SUM ( + - ( col2 ) ) * 74 * - 73 FROM tab1 AS cor0
----
1204646

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8967
SELECT * FROM tab2 cor0 WHERE ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) < ( - - 89 + + 79 + 6 ) )
----

skipif mysql # not compatible
query III rowsort label-8967
SELECT * FROM tab2 cor0 WHERE ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) < ( - - 89 + + 79 + 6 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8968
SELECT DISTINCT + col0 DIV ( + 57 ) AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT + col0 / ( + 57 ) AS col1 FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT ALL + COUNT( * ) + - 13 - 10 AS col1 FROM tab2 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL + COUNT ( * ) + - 13 - 10 AS col1 FROM tab2 cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( ( - col1 ) <> - 49 )
----
0

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( ( - col1 ) <> - 49 )
----
0

query I rowsort
SELECT + col0 - col2 * 36 + + ( - 33 ) AS col1 FROM tab2 AS cor0
----
-1409
-2046
-815

query I rowsort
SELECT DISTINCT - + col1 + + 83 - - col2 - - + col0 AS col1 FROM tab1 AS cor0
----
195
216
222

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE ( col1 * - ( + col1 ) ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8974
SELECT ALL * FROM tab0 WHERE + col2 * + + CAST( - 90 AS SIGNED ) + + 33 + + col0 * + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8974
SELECT ALL * FROM tab0 WHERE + col2 * + + CAST ( - 90 AS INTEGER ) + + 33 + + col0 * + + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - - col2 ) NOT IN ( - 94 - + - col1 + 15 * + col2 )
----

query II rowsort
SELECT ALL + col2, + col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8977
SELECT CAST( - + col2 AS SIGNED ) * 0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8977
SELECT CAST ( - + col2 AS INTEGER ) * 0 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT + ( + MAX( DISTINCT + 35 ) ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-8978
SELECT + ( + MAX ( DISTINCT + 35 ) ) FROM tab2
----
35

query I rowsort
SELECT DISTINCT - ( - 25 ) FROM tab2
----
25

query I rowsort
SELECT DISTINCT col0 * - 19 AS col1 FROM tab1
----
-1615
-1729
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL - 28 * COUNT( * ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL - 28 * COUNT ( * ) FROM tab2
----
-84

query I rowsort
SELECT ( - col0 ) FROM tab1 WHERE NOT NULL BETWEEN - ( + 13 ) AND 24
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 76 ) IN ( - + 90, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT + + ( COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT + + ( COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 51 * 93 + - 6 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
4737

query I rowsort
SELECT + 69 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ( + 44 ) * col0 * - ( - col0 ) AS col2 FROM tab2
----
180224
247500
93104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE NOT - col1 + + 64 * ( - + col2 ) = col1 + - col0 / + 43
----
59
68
96

query I rowsort
SELECT ( ( - col1 ) ) FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-8990
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( - 39 )
----
0

query I rowsort
SELECT ( - col1 ) * - + col1 + - col2 FROM tab2 AS cor0
----
2578
4431
5889

query I rowsort
SELECT - + 93 + + + col1 FROM tab1 cor0
----
-46
-79
-88

query I rowsort
SELECT ALL 21 + + 56 FROM tab2
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL - COUNT( * ) * + 25 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL - COUNT ( * ) * + 25 FROM tab0
----
-75

query II rowsort
SELECT DISTINCT + + col2, + col1 * + - col1 FROM tab1 AS cor0
----
59
-25
68
-2209
96
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT - 47 DIV - 69 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8996
SELECT - 47 / - 69 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 18 * col1 * + col0 FROM tab0 AS cor0
----
1746
21870
32886

onlyif mysql # DIV for integer division: 
query I rowsort label-8998
SELECT ALL 63 DIV - 56 + + + col2 AS col2 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL 63 / - 56 + + + col2 AS col2 FROM tab1
----
58
67
95

query I rowsort
SELECT col1 + - col2 FROM tab1 WHERE NULL NOT BETWEEN + 33 * + + col1 AND 19 * - col1
----

query II rowsort
SELECT DISTINCT + - col1 - + 24 AS col1, col0 FROM tab2 AS cor0
----
-101
64
-75
46
-91
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - col1 ) < NULL
----

query I rowsort
SELECT + - col0 * + + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - col2 col1 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT + col1 * + - col1 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT + col1 * + - col1 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE NOT 43 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - - col0 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT + + ( - CAST( - - 82 AS SIGNED ) ) * + col0 + col0 * - - ( - col0 ) * + + col0 AS col0 FROM tab0 AS cor0
----
-4605
-665637
-920627

skipif mysql # not compatible
query I rowsort label-9008
SELECT + + ( - CAST ( - - 82 AS INTEGER ) ) * + col0 + col0 * - - ( - col0 ) * + + col0 AS col0 FROM tab0 AS cor0
----
-4605
-665637
-920627

query II rowsort
SELECT DISTINCT col2 AS col1, col0 * + + 30 AS col1 FROM tab2 AS cor0
----
23
1380
40
1920
58
2250

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 82 BETWEEN 54 * + - 23 * - col0 AND 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IN ( + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9011
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IN ( + + col2 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9012
SELECT DISTINCT + COUNT( * ) DIV - 1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT + COUNT ( * ) / - 1 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col0 ), col0 col0 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL + 93 * - col2 FROM tab1
----
-5487
-6324
-8928

query I rowsort
SELECT DISTINCT - + 17 * + col2 FROM tab1 AS cor0
----
-1003
-1156
-1632

onlyif mysql # DIV for integer division: 
query I rowsort label-9016
SELECT DISTINCT + + 23 DIV + - col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT + + 23 / + - col0 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL MIN( DISTINCT + 27 ) AS col0 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL MIN ( DISTINCT + 27 ) AS col0 FROM tab0
----
27

query I rowsort
SELECT ALL - 10 * - col2 AS col2 FROM tab2
----
230
400
580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9019
SELECT DISTINCT - COUNT( * ) DIV + + 2 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT - COUNT ( * ) / + + 2 AS col0 FROM tab1
----
-1

query I rowsort
SELECT 6 * - 81 FROM tab0
----
-486
-486
-486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9021
SELECT COUNT( * ) + + + 79 + + 23 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col2 IN ( - 46 + + col1 + + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9021
SELECT COUNT ( * ) + + + 79 + + 23 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col2 IN ( - 46 + + col1 + + 91 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT + + MIN( + + 37 ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-9022
SELECT + + MIN ( + + 37 ) FROM tab0 AS cor0
----
37

query II rowsort
SELECT + col2, - 16 FROM tab1 AS cor0
----
59
-16
68
-16
96
-16

query I rowsort
SELECT - - 48 AS col1 FROM tab1 cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL MAX( DISTINCT 8 ) AS col1 FROM tab1 cor0
----
8

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL MAX ( DISTINCT 8 ) AS col1 FROM tab1 cor0
----
8

query I rowsort
SELECT DISTINCT 73 + + + ( + col0 ) + - + col2 AS col0 FROM tab2 AS cor0
----
90
96
97

query I rowsort
SELECT ALL + + col2 + - + col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT - col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + ( 28 ) * - - 5 <= + + 20
----

skipif mysql # not compatible
query I rowsort label-9028
SELECT - col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + ( 28 ) * - - 5 <= + + 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9029
SELECT DISTINCT col2 * - ( + CAST( NULL AS SIGNED ) ) * 53 / + col0 + - 94 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT col2 * - ( + CAST ( NULL AS INTEGER ) ) * 53 / + col0 + - 94 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL 85 + + + 79 FROM tab1
----
164
164
164

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT + COUNT( ALL - 76 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9031
SELECT + COUNT ( ALL - 76 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT MIN( DISTINCT - - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9032
SELECT MIN ( DISTINCT - - col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT DISTINCT COUNT( * ) + 77 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT COUNT ( * ) + 77 FROM tab2
----
80

query I rowsort
SELECT DISTINCT 35 * + + col1 + 16 * - col2 FROM tab0
----
-1549
2083
575

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT - COUNT( * ) + - ( COUNT( * ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9035
SELECT - COUNT ( * ) + - ( COUNT ( * ) ) FROM tab0
----
-6

query I rowsort
SELECT + col1 + + + 74 AS col1 FROM tab2
----
125
141
151

query III rowsort
SELECT * FROM tab1 WHERE + ( 34 ) - 42 + col1 BETWEEN + col0 AND + - col2
----

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ALL - MAX( DISTINCT - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL - MAX ( DISTINCT - col2 ) FROM tab0
----
10

query I rowsort
SELECT 70 + + + col0 * ( - col1 ) FROM tab0 AS cor0
----
-1145
-1757
-27

query I rowsort
SELECT 86 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # DIV for integer division: 
query I rowsort label-9042
SELECT ALL + col1 + + col0 * - 71 + col1 DIV 2 FROM tab0
----
-6146
-6886
-944

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL + col1 + + col0 * - 71 + col1 / 2 FROM tab0
----
-6146
-6886
-944

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= + 44 + ( + 66 )
----

query I rowsort
SELECT col1 - - col2 + 70 AS col1 FROM tab1
----
134
180
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT ALL + CAST( 68 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL + CAST ( 68 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL MIN( - 14 ) AS col1 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL MIN ( - 14 ) AS col1 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT ALL ( - col1 ) FROM tab2 AS cor0 WHERE NOT col0 * col0 IN ( + 20 )
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - - col2 AND - col1 * - 73 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT - COUNT( * ) * + ( - + COUNT( * ) ) + 29 FROM tab0 cor0
----
38

skipif mysql # not compatible
query I rowsort label-9049
SELECT - COUNT ( * ) * + ( - + COUNT ( * ) ) + 29 FROM tab0 cor0
----
38

query II rowsort
SELECT DISTINCT + col1 AS col0, 16 + - - 45 AS col0 FROM tab1 AS cor0
----
14
61
47
61
5
61

query II rowsort
SELECT col2 AS col2, - col1 AS col2 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9052
SELECT ALL 58 * - + col2 * col2 + + CAST( + ( - + ( + 7 ) ) AS SIGNED ) - col2 + + col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL 58 * - + col2 * col2 + + CAST ( + ( - + ( + 7 ) ) AS INTEGER ) - col2 + + col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9053
SELECT ALL - 32 * COUNT( * ) DIV + - 73 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL - 32 * COUNT ( * ) / + - 73 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9054
SELECT DISTINCT + col2 * - + col1 DIV - - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT + col2 * - + col1 / - - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT DISTINCT col0 DIV 62 * + - col1 + - 8 FROM tab2 AS cor0
----
-75
-8
-85

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT col0 / 62 * + - col1 + - 8 FROM tab2 AS cor0
----
-75
-8
-85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - col1 + - 76, + 53 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT DISTINCT - + ( - 1 ) * - 43 * + col0 * + + col1 * - ( - col1 ) + 69 DIV + - col1 AS col1 FROM tab2 AS cor0
----
-14477026
-16316608
-5144779

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT - + ( - 1 ) * - 43 * + col0 * + + col1 * - ( - col1 ) + 69 / + - col1 AS col1 FROM tab2 AS cor0
----
-14477026
-16316608
-5144779

query II rowsort
SELECT + + col2 + + col2 AS col2, ( + 92 ) FROM tab1 AS cor0
----
118
92
136
92
192
92

query I rowsort
SELECT ALL 32 * 14 AS col0 FROM tab1 AS cor0
----
448
448
448

query I rowsort
SELECT col1 + + 62 FROM tab1 AS cor0
----
109
67
76

query I rowsort
SELECT + col2 + + - 57 AS col0 FROM tab2 AS cor0
----
-17
-34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT - + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9062
SELECT - + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT 73 + + MAX( col0 ) FROM tab2 cor0
----
148

skipif mysql # not compatible
query I rowsort label-9063
SELECT 73 + + MAX ( col0 ) FROM tab2 cor0
----
148

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 40 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9065
SELECT DISTINCT - MAX( - + ( - 71 ) ) + - + 38 DIV + MAX( DISTINCT + - col1 ) AS col2 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT - MAX ( - + ( - 71 ) ) + - + 38 / + MAX ( DISTINCT + - col1 ) AS col2 FROM tab1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9066
SELECT * FROM tab2 WHERE + - col2 IN ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-9066
SELECT * FROM tab2 WHERE + - col2 IN ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT ALL + 32 + + ( - 99 ) * - - COUNT( * ) * + + 18 AS col1 FROM tab1
----
-5314

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL + 32 + + ( - 99 ) * - - COUNT ( * ) * + + 18 AS col1 FROM tab1
----
-5314

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT - col0 BETWEEN - 77 AND col2 )
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 15 * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT DISTINCT - - COUNT( + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT - - COUNT ( + col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 59 FROM tab2 AS cor0 WHERE NOT - col1 + - - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT ALL - COUNT( * ) * + 92 col1 FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9072
SELECT ALL - COUNT ( * ) * + 92 col1 FROM tab2 AS cor0
----
-276

query I rowsort
SELECT DISTINCT - ( + ( col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col0 + + ( + + 54 ) AS col1 FROM tab0 AS cor0
----
-33
-43
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9075
SELECT + CAST( - COUNT( + + col2 ) AS SIGNED ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9075
SELECT + CAST ( - COUNT ( + + col2 ) AS INTEGER ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT COUNT( ALL - 12 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9076
SELECT COUNT ( ALL - 12 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 BETWEEN - col1 AND NULL
----

query II rowsort
SELECT + ( + + col1 ), - col0 AS col2 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT - 27 * COUNT( * ) FROM tab1 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9080
SELECT - 27 * COUNT ( * ) FROM tab1 cor0
----
-81

query I rowsort
SELECT ALL - + 83 * + col2 AS col2 FROM tab2 AS cor0
----
-1909
-3320
-4814

query I rowsort
SELECT - - col1 FROM tab2 WHERE NOT + 72 NOT BETWEEN + col2 AND 95
----
51
67
77

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT 27 IS NOT NULL
----

query I rowsort
SELECT - 59 FROM tab1 WHERE NOT + col2 IS NULL
----
-59
-59
-59

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 94 * - + 53 + - col2 ) IS NOT NULL
----

query I rowsort
SELECT - 25 * - 99 * + - col2 * - 16 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + 92 AS col0 FROM tab0 AS cor0
----
-1932
-7452
-92

query II rowsort
SELECT ALL + col2, - 99 + - - col0 AS col0 FROM tab1
----
59
-14
68
-8
96
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT - MIN( - 60 ) * - 2 AS col0 FROM tab2 WHERE + col2 * - col2 IS NOT NULL
----
-120

skipif mysql # not compatible
query I rowsort label-9089
SELECT - MIN ( - 60 ) * - 2 AS col0 FROM tab2 WHERE + col2 * - col2 IS NOT NULL
----
-120

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 78 * - - ( - 85 ) IS NOT NULL
----

query I rowsort
SELECT ALL 7 + col2 AS col0 FROM tab1
----
103
66
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + col1 * - + col2 AS col0 FROM tab2 cor0
----
-123200
-225388
-26979

query II rowsort
SELECT - - col2 * - col2 AS col2, - col1 FROM tab0 AS cor0
----
-100
-21
-2209
-81
-9801
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT DISTINCT - - 26 * - SUM( DISTINCT - - 68 ) * - COUNT( * ) + + 92 FROM tab0 AS cor0
----
5396

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT - - 26 * - SUM ( DISTINCT - - 68 ) * - COUNT ( * ) + + 92 FROM tab0 AS cor0
----
5396

onlyif mysql # DIV for integer division: 
query I rowsort label-9096
SELECT DISTINCT - - col0 DIV + ( + - 80 ) + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT - - col0 / + ( + - 80 ) + col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL < ( col1 )
----

query I rowsort
SELECT ALL + 66 * 41 FROM tab1
----
2706
2706
2706

query I rowsort
SELECT DISTINCT 62 * + col2 + + col2 + + col1 AS col0 FROM tab0
----
3042
6238
651

query I rowsort
SELECT - col1 * 33 + + + col0 * + col1 - + col2 * + 22 AS col2 FROM tab2
----
1507
1538
157

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT col2 DIV - 87 + + ( col2 ) FROM tab0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-9101
SELECT col2 / - 87 + + ( col2 ) FROM tab0
----
10
47
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT + MAX( 77 ) + - + COUNT( * ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-9102
SELECT + MAX ( 77 ) + - + COUNT ( * ) FROM tab2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT 95 DIV + col0 + col1 AS col2 FROM tab0
----
1
22
87

skipif mysql # not compatible
query I rowsort label-9103
SELECT 95 / + col0 + col1 AS col2 FROM tab0
----
1
22
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT - COUNT( * ) + + 73 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-9104
SELECT - COUNT ( * ) + + 73 FROM tab2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9105
SELECT DISTINCT col2 * - col1, + col0 / - CAST( NULL AS SIGNED ) / - col2 AS col2 FROM tab2
----
-1173
NULL
-3080
NULL
-3886
NULL

skipif mysql # not compatible
query II rowsort label-9105
SELECT DISTINCT col2 * - col1, + col0 / - CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab2
----
-1173
NULL
-3080
NULL
-3886
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT COUNT( * ) + + - 83 AS col2 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-9106
SELECT COUNT ( * ) + + - 83 AS col2 FROM tab2
----
-80

query I rowsort
SELECT ALL 25 - 90 AS col2 FROM tab0
----
-65
-65
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT DISTINCT - + col0 - + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT - + col0 - + col1 / col1 AS col2 FROM tab2 AS cor0
----
-47
-65
-76

query I rowsort
SELECT DISTINCT - + 62 * + col2 - + + 76 * col1 FROM tab2 cor0
----
-5302
-8332
-8688

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 93 * - col0 AS col2 FROM tab0 cor0
----
-1395
-8091
-9021

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT - MIN( DISTINCT 89 ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-9112
SELECT - MIN ( DISTINCT 89 ) FROM tab2
----
-89

query I rowsort
SELECT DISTINCT col0 * + + col2 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND 28
----

query I rowsort
SELECT ALL - 71 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + + col1, - col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL - MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL - MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, + col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col2 FROM tab1 AS cor0
----
71
71
71

query II rowsort
SELECT - 6 * col1 + + col2 AS col2, col0 FROM tab1 AS cor0
----
-214
91
12
51
29
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 + - ( - col0 ) * + 14 col1 FROM tab1 AS cor0
----
-1887
-6035
-7007

query II rowsort
SELECT - - col0, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT NULL <> col1 * + + col0 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT NULL <> col1 * + + col0 + + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT DISTINCT SUM( ALL - - col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT SUM ( ALL - - col0 ) AS col2 FROM tab0
----
199

query II rowsort
SELECT 6 * col0 * - ( - + col2 ), - col1 AS col1 FROM tab0
----
4230
-81
5220
-21
57618
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT DISTINCT - SUM( ALL - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT - SUM ( ALL - col0 ) FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT SUM( 45 ) FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9127
SELECT SUM ( 45 ) FROM tab0 AS cor0
----
135

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE - col2 + + col0 * + col0 <> NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE - col2 / + + col2 + + 87 NOT BETWEEN + + 65 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL + COUNT( * ) * 60 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
540

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL + COUNT ( * ) * 60 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + - col1 + + + 6 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + col1 * - - ( 97 ) * - - col0 * 62 + - col1 * - col2 AS col2 FROM tab1 cor0
----
-2555655
-25718682
-4292652

query I rowsort
SELECT + 63 + col1 + - col1 FROM tab0 AS cor0
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9135
SELECT DISTINCT 68 DIV + col0 - + col1 + col2 * - + 25 FROM tab0 AS cor0
----
-1252
-2476
-271

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT 68 / + col0 - + col1 + col2 * - + 25 FROM tab0 AS cor0
----
-1252
-2476
-271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9136
SELECT + CAST( NULL AS SIGNED ) + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT + CAST ( NULL AS INTEGER ) + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9137
SELECT - CAST( + MIN( - + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT - CAST ( + MIN ( - + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 1 + + + 2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9139
SELECT - 47, + COUNT( * ) AS col2 FROM tab1
----
-47
3

skipif mysql # not compatible
query II rowsort label-9139
SELECT - 47, + COUNT ( * ) AS col2 FROM tab1
----
-47
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL + SUM( - + col2 ) + + 94 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL + SUM ( - + col2 ) + + 94 FROM tab1
----
-129

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL <= ( - - col0 ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT - COUNT( DISTINCT - col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9142
SELECT - COUNT ( DISTINCT - col0 ) FROM tab2
----
-3

query II rowsort
SELECT ALL + 30 * - 54 + + + 22 * col1 + - col0 + - col1, col1 AS col1 FROM tab2
----
-288
67
-595
51
-67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9144
SELECT DISTINCT col2 - - CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT col2 - - CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9145
SELECT ALL COUNT( * ) DIV 64 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL COUNT ( * ) / 64 FROM tab0
----
0

query I rowsort
SELECT - col0 - - - 8 FROM tab0
----
-105
-23
-95

query I rowsort
SELECT + col2 - + 88 FROM tab0 AS cor0
----
-41
-78
11

query I rowsort
SELECT DISTINCT - 4 * - 30 + - col1 AS col0 FROM tab2 AS cor0
----
43
53
69

query II rowsort
SELECT - col1 AS col2, - 20 * + 76 * - - col1 FROM tab0 AS cor0
----
-1
-1520
-21
-31920
-81
-123120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9150
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, + MIN( 73 ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-9150
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + MIN ( 73 ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL - + MIN( + 44 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-44

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL - + MIN ( + 44 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col1 ), - col0 col2 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT ALL - - ( + 12 ) FROM tab1 AS cor0
----
12
12
12

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 43 BETWEEN col0 * + 95 * + col0 + - col0 AND + 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + MIN( ALL + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9155
SELECT + MIN ( ALL + col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT SUM( - 94 ) FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-9156
SELECT SUM ( - 94 ) FROM tab1 AS cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT DISTINCT + MIN( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE col1 * + + ( - 71 ) NOT BETWEEN NULL AND + ( - ( 64 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT + MIN ( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE col1 * + + ( - 71 ) NOT BETWEEN NULL AND + ( - ( 64 ) )
----
NULL

query II rowsort
SELECT ALL + col0 AS col0, 44 FROM tab2
----
46
44
64
44
75
44

query I rowsort
SELECT + col0 * col0 * + col1 FROM tab1
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT 27 * COUNT( * ) col1 FROM tab2
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9160
SELECT 27 * COUNT ( * ) col1 FROM tab2
----
81

query I rowsort
SELECT + col0 * + col1 + + - ( - - col2 ) FROM tab2 cor0
----
2323
4888
4967

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 91 IS NULL
----

query I rowsort
SELECT DISTINCT - 72 + - col2 FROM tab2 AS cor0
----
-112
-130
-95

query I rowsort
SELECT ALL + - 91 + 18 + col1 + - - col2 FROM tab1 cor0
----
-9
37
42

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = NULL
----

query I rowsort
SELECT + + 41 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT COUNT( DISTINCT 61 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9167
SELECT COUNT ( DISTINCT 61 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT col0 * + ( + - 69 ) AS col1 FROM tab2
----
-3174
-4416
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT ALL + + MAX( DISTINCT - col2 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL + + MAX ( DISTINCT - col2 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9170
SELECT - CAST( NULL AS SIGNED ) + 35 + col1 / - - 30 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT - CAST ( NULL AS INTEGER ) + 35 + col1 / - - 30 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9171
SELECT DISTINCT SUM( - - col1 ) + ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT SUM ( - - col1 ) + ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT ALL ( - ( - + SUM( 19 ) ) ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL ( - ( - + SUM ( 19 ) ) ) FROM tab1
----
57

query I rowsort
SELECT - - 78 * ( + col0 ) FROM tab1 AS cor0
----
3978
6630
7098

query I rowsort
SELECT ALL + col2 * + + col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT DISTINCT + MIN( DISTINCT - - 80 ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT + MIN ( DISTINCT - - 80 ) FROM tab0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-9176
SELECT DISTINCT 50 AS col0, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
50
3

skipif mysql # not compatible
query II rowsort label-9176
SELECT DISTINCT 50 AS col0, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
50
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - 38 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + col0 ) + + + col0 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 56 AS col1 FROM tab1 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL COUNT( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL COUNT ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT - + 63, col2 AS col1 FROM tab1 cor0
----
-63
59
-63
68
-63
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT ALL + COUNT( * ) * + + ( - COUNT( * ) ) * ( - + COUNT( * ) ) FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL + COUNT ( * ) * + + ( - COUNT ( * ) ) * ( - + COUNT ( * ) ) FROM tab2 cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT + + MAX( ALL - 65 ) AS col0 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9183
SELECT + + MAX ( ALL - 65 ) AS col0 FROM tab0 AS cor0
----
-65

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab0 cor0 WHERE col2 < NULL
----

query I rowsort
SELECT AVG ( ( 74 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT - + 14 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9186
SELECT - + 14 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-11

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + col1 * + - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT DISTINCT - 35 + COUNT( * ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT - 35 + COUNT ( * ) FROM tab1 AS cor0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9189
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9189
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - 21 * ( AVG ( + col1 ) ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 19 + + col0 AS col0 FROM tab0
----
-4
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT + 85 * - - COUNT( * ) FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-9192
SELECT + 85 * - - COUNT ( * ) FROM tab1
----
255

query I rowsort
SELECT DISTINCT - 61 + + col1 * 21 FROM tab0
----
-40
1640
380

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT - + SUM( DISTINCT - col1 ) col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9194
SELECT - + SUM ( DISTINCT - col1 ) col1 FROM tab1 AS cor0
----
66

query II rowsort
SELECT DISTINCT 46 AS col0, + col2 / col0 FROM tab0 AS cor0 WHERE NOT col1 + + ( - col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9196
SELECT 1 DIV + + 16 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9196
SELECT 1 / + + 16 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 94 * - col2 * + col0 + + 91 + + 87 * + col0 * + - 35 FROM tab0 AS cor0
----
-183044
20686
607408

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT + SUM( ALL + + 82 ) AS col0 FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-9198
SELECT + SUM ( ALL + + 82 ) AS col0 FROM tab1 AS cor0
----
246

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + + 65 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9200
SELECT - - 26 DIV - 51 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9200
SELECT - - 26 / - 51 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + 13 * - - col1, - col0 AS col2 FROM tab0
----
1053
-15
13
-97
273
-87

query I rowsort
SELECT ALL - 5 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL + MIN( ALL - - 59 ) AS col1 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL + MIN ( ALL - - 59 ) AS col1 FROM tab2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL + SUM( - 40 ) FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL + SUM ( - 40 ) FROM tab1
----
-120

query I rowsort
SELECT + ( ( + 62 ) ) FROM tab1
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> col1
----
0

skipif mysql # not compatible
query I rowsort label-9206
SELECT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> col1
----
0

query I rowsort
SELECT DISTINCT - col2 - col2 FROM tab0 AS cor0 WHERE ( NOT - 65 IS NOT NULL )
----

query I rowsort
SELECT - - col1 * + + col1 + - ( - + 78 ) + col1 - col1 FROM tab1 WHERE NOT + - col0 = + col2 / + - col1
----
103
2287
274

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT - col1 - - col1 * - 6 * + col0 IS NULL
----
-15
-87
-97

query II rowsort
SELECT ALL col1 AS col0, + 30 AS col1 FROM tab1
----
14
30
47
30
5
30

query I rowsort
SELECT DISTINCT + ( - - 11 ) FROM tab1 AS cor0
----
11

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 + + 26 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT MIN( ( - col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9213
SELECT MIN ( ( - col2 ) ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + 85 * - col0 + + - 90
----

query II rowsort
SELECT DISTINCT - col2 AS col2, col1 FROM tab1 AS cor0 WHERE ( col2 ) IN ( + - col0 - col2 )
----

query I rowsort
SELECT ALL - 86 + + 91 AS col2 FROM tab1 AS cor0
----
5
5
5

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 * - + col2 * + - col1 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT ( COUNT( DISTINCT - col2 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9219
SELECT ( COUNT ( DISTINCT - col2 ) ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT 60 * - COUNT( * ) * - 36 FROM tab1
----
6480

skipif mysql # not compatible
query I rowsort label-9220
SELECT 60 * - COUNT ( * ) * - 36 FROM tab1
----
6480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9221
SELECT + 25 DIV MIN( DISTINCT - col1 ) + - COUNT( * ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9221
SELECT + 25 / MIN ( DISTINCT - col1 ) + - COUNT ( * ) col0 FROM tab0
----
-3

query I rowsort
SELECT + col1 * - + ( + + col0 ) + col0 AS col1 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT ALL ( + col0 ) + - - col0 + - 35 AS col0 FROM tab0
----
-5
139
159

query II rowsort
SELECT DISTINCT 46, - 56 + + 16 AS col1 FROM tab0
----
46
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT DISTINCT COUNT( * ) * - + 99 * - 14 FROM tab1
----
4158

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT COUNT ( * ) * - + 99 * - 14 FROM tab1
----
4158

query I rowsort
SELECT - col2 + + 92 FROM tab2 AS cor0
----
34
52
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT + COUNT( * ) + - + 53 AS col2 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9227
SELECT + COUNT ( * ) + - + 53 AS col2 FROM tab0 AS cor0
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 AS col2, col0 col1 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - 78 ) * 35 FROM tab2
----
-2730

query I rowsort
SELECT - 69 * - col1 * + 31 - - col1 FROM tab2 cor0
----
109140
143380
164780

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND ( NULL ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * - + col0 * + + col2 BETWEEN + 67 AND - - 38
----

query I rowsort
SELECT 8 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col2 / col0 + 92 * - col1 ) IS NULL
----
8
8
8

query I rowsort
SELECT ALL - - ( 58 ) AS col0 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT ( - 64 ) FROM tab0 AS cor0
----
-64
-64
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT - col0 DIV + 48 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9238
SELECT - col0 / + 48 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT - 36 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT MAX( + + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT MAX ( + + col1 ) FROM tab2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT col0 DIV - col1 col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9241
SELECT col0 / - col1 col2 FROM tab2
----
-1
0
0

query II rowsort
SELECT - 30, - col2 * - - col1 - col1 * - - 12 AS col1 FROM tab1
----
-30
-1512
-30
-355
-30
-3760

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9243
SELECT * FROM tab0 WHERE NOT NULL <= col0 + - CAST( - ( + + 39 ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9243
SELECT * FROM tab0 WHERE NOT NULL <= col0 + - CAST ( - ( + + 39 ) AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 49 col2, - col2 AS col1 FROM tab0 AS cor0
----
49
-10
49
-47
49
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 48 * - 1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - 38 col2 FROM tab0 AS cor0
----
15
-38
87
-38
97
-38

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + ( + col2 ) ) / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col2 AS col0, + 53 FROM tab1 AS cor0
----
-59
53
-68
53
-96
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT + + 68 + - COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-9249
SELECT + + 68 + - COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col1 FROM tab1 cor0
----
65
65
65

query I rowsort
SELECT - 22 + - 19 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT + ( 54 ) + 46 FROM tab0 AS cor0
----
100
100
100

query I rowsort
SELECT ALL col1 * + - col0 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - col2 + - - col1 + col1 AS col0 FROM tab1 AS cor0
----
-49
-68
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT - 82 + + MAX( 66 ) AS col2 FROM tab2 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9255
SELECT - 82 + + MAX ( 66 ) AS col2 FROM tab2 cor0
----
-16

query I rowsort
SELECT col2 + col1 * - col0 AS col0 FROM tab0
----
-1168
-1817
2

query I rowsort
SELECT - 91 * - 30 + 73 AS col1 FROM tab2
----
2803
2803
2803

query I rowsort
SELECT DISTINCT - ( - col2 ) + + + col0 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT ALL - 18 * + 18 AS col1 FROM tab1
----
-324
-324
-324

query I rowsort
SELECT DISTINCT - col2 * ( col1 ) FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ( ( - ( - col2 ) ) ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - + 55 - - col0 FROM tab1 AS cor0
----
-4
30
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9263
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND ( - CAST( - - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9263
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND ( - CAST ( - - col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT DISTINCT 29 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT 29 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 47 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 - - + col2 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT - 88 + + 92 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
4

query III rowsort
SELECT ALL * FROM tab1 WHERE 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 64 * - col0 + 47 FROM tab1 AS cor0
----
3311
5487
5871

query I rowsort
SELECT + - col0 * - - 72 * + col2 * + ( + 18 ) FROM tab2 cor0
----
-1371168
-3317760
-5637600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9271
SELECT + CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9271
SELECT + CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + - col0 < col0 * + col2
----
15
81
47
87
21
10

query I rowsort
SELECT - 89 * + - col1 FROM tab0 AS cor0
----
1869
7209
89

query II rowsort
SELECT ALL + 47 AS col1, + ( col2 ) FROM tab0 AS cor0
----
47
10
47
47
47
99

query I rowsort
SELECT - ( - 96 ) FROM tab0 AS cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL - SUM( ALL + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - SUM ( ALL + col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT ALL + col0 DIV - 26 AS col2 FROM tab1 AS cor0
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL + col0 / - 26 AS col2 FROM tab1 AS cor0
----
-1
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9278
SELECT DISTINCT ( - - col0 ) DIV 20 * + ( col2 ) AS col2 FROM tab0
----
0
396
40

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT ( - - col0 ) / 20 * + ( col2 ) AS col2 FROM tab0
----
0
396
40

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN - 32 AND - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9280
SELECT col0 DIV - - col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-9280
SELECT col0 / - - col1 FROM tab0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL - SUM( ALL + 99 ) AS col2 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - SUM ( ALL + 99 ) AS col2 FROM tab0
----
-297

query II rowsort
SELECT + col2 * 3 * 67, + ( 68 ) AS col1 FROM tab0
----
19899
68
2010
68
9447
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - 32 ) <> + + ( + + 60 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9284
SELECT DISTINCT - MIN( DISTINCT - col0 ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
75
3

skipif mysql # not compatible
query II rowsort label-9284
SELECT DISTINCT - MIN ( DISTINCT - col0 ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
75
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 / - col0 + col1 / - - col1 * col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-9286
SELECT - ( - - col2 ) + + - col2 AS col1, + ( + col2 ) + + - col1, col2 DIV - + col2 + col0 AS col2 FROM tab2
----
9 values hashing to b3230105e9f9cddec383b1c8ff44a70f

skipif mysql # not compatible
query III rowsort label-9286
SELECT - ( - - col2 ) + + - col2 AS col1, + ( + col2 ) + + - col1, col2 / - + col2 + col0 AS col2 FROM tab2
----
9 values hashing to b3230105e9f9cddec383b1c8ff44a70f

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT + ( + + ( + COUNT( * ) ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9287
SELECT + ( + + ( + COUNT ( * ) ) ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT + - 48 + + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9288
SELECT + - 48 + + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( + + 13 ) * col1 col0 FROM tab2
----
-15249
-40040
-50518

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT + MAX( DISTINCT - 42 ) FROM tab2 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9291
SELECT + MAX ( DISTINCT - 42 ) FROM tab2 cor0
----
-42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 4 + + col0 * col0 ) IS NULL
----

query II rowsort
SELECT ALL + + col1 AS col2, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query II rowsort
SELECT - col2, col1 * col1 + - 36 AS col1 FROM tab2 AS cor0
----
-23
2565
-40
5893
-58
4453

query I rowsort
SELECT ALL - ( + 39 ) * col2 FROM tab1 cor0
----
-2301
-2652
-3744

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 72
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9297
SELECT DISTINCT + - ( - col1 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT + - ( - col1 ) / + col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - ( - + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - col2 / col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9299
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - col2 / col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * 84 + col1 FROM tab0 AS cor0
----
-1179
-7287
-8147

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT 96 DIV col0 + - + 42 FROM tab2
----
-40
-41
-41

skipif mysql # not compatible
query I rowsort label-9301
SELECT 96 / col0 + - + 42 FROM tab2
----
-40
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL COUNT( * ) + + 56 + - 45 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL COUNT ( * ) + + 56 + - 45 FROM tab1
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * + col0, col0 * 9 * + col1 col2 FROM tab2
----
1058
21114
2560
44352
4350
45225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9304
SELECT col0 + - col0 * + + CAST( - col1 AS SIGNED ) FROM tab2
----
2392
4992
5100

skipif mysql # not compatible
query I rowsort label-9304
SELECT col0 + - col0 * + + CAST ( - col1 AS INTEGER ) FROM tab2
----
2392
4992
5100

query I rowsort
SELECT 67 + col0 + col1 AS col0 FROM tab1
----
132
157
205

query I rowsort
SELECT + col2 FROM tab2 WHERE + 24 NOT BETWEEN - 1 * + col1 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * - col1 - + - col1 * col0 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9308
SELECT COUNT( * ) / + COUNT( * ) * + CAST( NULL AS SIGNED ) + - 97 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT COUNT ( * ) / + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - 97 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 * col1 col2 FROM tab0 AS cor0
----
308367
4410
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 + col0 + + col2 col2 FROM tab0 cor0
----
125
224
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT DISTINCT + MAX( + 92 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
92

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT + MAX ( + 92 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
92

query I rowsort
SELECT - col1 + - col0 - + + col1 AS col1 FROM tab0 WHERE NOT - 44 < + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9313
SELECT ALL - col0 DIV + 75 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - col0 / + 75 AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9314
SELECT DISTINCT + COUNT( * ) * + ( MIN( + CAST( NULL AS DECIMAL ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT + COUNT ( * ) * + ( MIN ( + CAST ( NULL AS REAL ) ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT DISTINCT MIN( + 92 ) FROM tab2 cor0
----
92

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT MIN ( + 92 ) FROM tab2 cor0
----
92

query I rowsort
SELECT ALL - col2 + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT 96 IS NULL
----
-117
-125
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9317
SELECT DISTINCT - COUNT( * ) col2, - 43 DIV - + 7 FROM tab2 AS cor0
----
-3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9317
SELECT DISTINCT - COUNT ( * ) col2, - 43 / - + 7 FROM tab2 AS cor0
----
-3
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9318
SELECT COUNT( * ) DIV + + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9318
SELECT COUNT ( * ) / + + COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT + 51 * + 72 FROM tab1
----
3672

query I rowsort
SELECT - col0 * ( col1 ) AS col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-9321
SELECT ALL 12 AS col1, ( COUNT( * ) ) AS col0 FROM tab1
----
12
3

skipif mysql # not compatible
query II rowsort label-9321
SELECT ALL 12 AS col1, ( COUNT ( * ) ) AS col0 FROM tab1
----
12
3

query II rowsort
SELECT DISTINCT col2, + 83 FROM tab1
----
59
83
68
83
96
83

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + + + col0 IS NOT NULL
----

query II rowsort
SELECT ALL + 15 AS col0, col1 FROM tab2
----
15
51
15
67
15
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - + 22 )
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT NULL > col0 + + - col1
----

query I rowsort
SELECT - col0 * 9 AS col1 FROM tab0
----
-135
-783
-873

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 > NULL
----

query I rowsort
SELECT DISTINCT 11 + + col1 AS col2 FROM tab1 AS cor0
----
16
25
58

query I rowsort
SELECT + 92 * - col1 AS col0 FROM tab2 AS cor0
----
-4692
-6164
-7084

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9331
SELECT - - CAST( col2 AS SIGNED ), + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

skipif mysql # not compatible
query II rowsort label-9331
SELECT - - CAST ( col2 AS INTEGER ), + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL - 73 * + col2 * 74 FROM tab1
----
-318718
-367336
-518592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9333
SELECT DISTINCT COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - 64 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9334
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - 64 IS NOT NULL
----
3

query I rowsort
SELECT ALL - ( + + ( col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT col2 + - 33 + col2 FROM tab0 AS cor0
----
-13
165
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9337
SELECT MIN( 59 ) DIV + MAX( + 28 ) + + 7 AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9337
SELECT MIN ( 59 ) / + MAX ( + 28 ) + + 7 AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT - ( - col2 ) + + + col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT 43 + COUNT( * ) FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT 43 + COUNT ( * ) FROM tab1 AS cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9341
SELECT ALL - + CAST( NULL AS DECIMAL ) - - col1 AS col1, - 69 * + ( col0 ) FROM tab1 WHERE - - col0 - + - col2 = + ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query II rowsort label-9341
SELECT ALL - + CAST ( NULL AS REAL ) - - col1 AS col1, - 69 * + ( col0 ) FROM tab1 WHERE - - col0 - + - col2 = + ( CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE + - col0 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL <= NULL )
----

query I rowsort
SELECT + col2 - - - col0 FROM tab0
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) - + col0 col1 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT + 92 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-9346
SELECT + 92 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-276

query I rowsort
SELECT DISTINCT + col0 + 68 FROM tab1
----
119
153
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT - CAST( - col0 AS SIGNED ) col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9348
SELECT - CAST ( - col0 AS INTEGER ) col1 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL 86 FROM tab1 WHERE NOT NULL NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - ( 8 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
6

query I rowsort
SELECT DISTINCT col0 + - col2 AS col2 FROM tab2 WHERE NOT - 28 IS NULL
----
17
23
24

query I rowsort
SELECT 61 - 66 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT 99 + col2 FROM tab2
----
122
139
157

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 NOT BETWEEN 98 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT SUM( - 33 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9356
SELECT SUM ( - 33 ) FROM tab0
----
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT 84 * ( + 74 ) BETWEEN ( + col0 + col2 ) AND ( 56 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND + 84 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + + 21 col0 FROM tab1
----
119
119
119

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( 99 - col0 )
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN ( 72 * col1 + col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 >= ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT - ( + COUNT( * ) ) FROM tab0 WHERE NOT + col1 >= col0
----
-2

skipif mysql # not compatible
query I rowsort label-9363
SELECT - ( + COUNT ( * ) ) FROM tab0 WHERE NOT + col1 >= col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9364
SELECT * FROM tab0 WHERE ( - col1 ) < CAST( col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9364
SELECT * FROM tab0 WHERE ( - col1 ) < CAST ( col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT SUM( DISTINCT - 12 ) col2 FROM tab0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9365
SELECT SUM ( DISTINCT - 12 ) col2 FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE 11 > col2 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE 11 > col2 + + col0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> ( col1 * col0 - 19 / - 94 )
----

query III rowsort
SELECT * FROM tab0 WHERE 34 IS NULL
----

query I rowsort
SELECT - ( + 4 ) FROM tab1 WHERE NOT ( - col2 ) IN ( - col0 * + col1 )
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 / + 37 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 / + 37 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT 39 - ( + 30 - COUNT( * ) ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9371
SELECT 39 - ( + 30 - COUNT ( * ) ) AS col1 FROM tab2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9372
SELECT col0 + col2 DIV - 16 FROM tab1 WHERE NOT - 49 * + col1 IS NULL
----
45
82
87

skipif mysql # not compatible
query I rowsort label-9372
SELECT col0 + col2 / - 16 FROM tab1 WHERE NOT - 49 * + col1 IS NULL
----
45
82
87

query I rowsort
SELECT ALL + 13 AS col0 FROM tab0
----
13
13
13

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 30 AND - col1
----

query I rowsort
SELECT ALL - 95 FROM tab1 WHERE NOT col1 * + ( col2 ) BETWEEN - col2 * - col1 AND + col0
----
-95
-95
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9376
SELECT ALL - CAST( NULL AS DECIMAL ) / 99 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9376
SELECT ALL - CAST ( NULL AS REAL ) / 99 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 68 + + col2 FROM tab0 cor0
----
115
167
78

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + col0 ) NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) = ( 22 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( - 57 + - 33 ) NOT BETWEEN 3 + ( col2 ) AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( - 57 + - 33 ) NOT BETWEEN 3 + ( col2 ) AND NULL
----
3

query I rowsort
SELECT + 15 * - col0 FROM tab0
----
-1305
-1455
-225

query III rowsort
SELECT * FROM tab0 WHERE - 99 + 36 * col2 BETWEEN 21 * + 65 + + col0 AND NULL
----

query I rowsort
SELECT - 82 * 3 AS col2 FROM tab1
----
-246
-246
-246

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab2 WHERE NOT NULL < ( col2 + col2 * col1 )
----

query I rowsort
SELECT DISTINCT + ( col0 ) - 52 FROM tab0
----
-37
35
45

query I rowsort
SELECT + - col0 * - 94 AS col2 FROM tab2 AS cor0
----
4324
6016
7050

query I rowsort
SELECT ALL + col2 * 68 + col1 * col2 FROM tab1 AS cor0 WHERE NOT ( + 77 ) <> col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = ( - col0 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col2 + 54 * col2 NOT IN ( 20 * ( - 53 / 6 ) + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col2 + 54 * col2 NOT IN ( 20 * ( - 53 / 6 ) + + col2 )
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 IN ( col1 + - 30 )
----

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT NULL < ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT - + COUNT( * ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9392
SELECT - + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND - col2
----

query I rowsort
SELECT + col1 + - + 72 - 78 * - 41 FROM tab2
----
3177
3193
3203

query I rowsort
SELECT ALL 29 + col2 AS col1 FROM tab1
----
125
88
97

query I rowsort
SELECT - 82 + - col1 FROM tab0
----
-103
-163
-83

query III rowsort
SELECT * FROM tab0 WHERE NULL > - col1
----

query I rowsort
SELECT DISTINCT + 39 + + - ( 99 ) AS col0 FROM tab0
----
-60

query III rowsort
SELECT * FROM tab0 WHERE 45 BETWEEN + 74 AND 13 - + 9 * + col0
----

query I rowsort
SELECT col1 + - 9 * 96 FROM tab1 WHERE - 49 * - col1 IS NOT NULL
----
-817
-850
-859

query I rowsort
SELECT col1 * + col2 + - 47 AS col0 FROM tab2
----
1126
3033
3839

query I rowsort
SELECT + col1 + - col2 * + 49 AS col2 FROM tab0
----
-2222
-469
-4850

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT + COUNT( 32 ) + + 10 AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-9403
SELECT + COUNT ( 32 ) + + 10 AS col1 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT DISTINCT - 13 + + MIN( ALL col2 ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT - 13 + + MIN ( ALL col2 ) FROM tab1
----
46

query I rowsort
SELECT - 83 * + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1743
-6723
-83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 <= 84
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + + col2 * + 18 + - col0 AS col0 FROM tab1 AS cor0
----
1133
1677
977

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 < + 77
----

query I rowsort
SELECT - - 26 AS col1 FROM tab1 AS cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT ALL - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query II rowsort
SELECT ALL 39 AS col0, - 75 AS col2 FROM tab1
----
39
-75
39
-75
39
-75

query II rowsort
SELECT + col1 AS col1, + col2 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT ( - 48 ) * - col1 * col1 FROM tab0
----
21168
314928
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + 79 NOT BETWEEN NULL AND col1
----
-2

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + 79 NOT BETWEEN NULL AND col1
----
-2

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND 21
----
46
64
75

query II rowsort
SELECT DISTINCT + col0 AS col0, 23 FROM tab1 AS cor0
----
51
23
85
23
91
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT DISTINCT + COUNT( DISTINCT 64 ) col0 FROM tab0 AS cor0 WHERE NULL <> col0 / col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9417
SELECT DISTINCT + COUNT ( DISTINCT 64 ) col0 FROM tab0 AS cor0 WHERE NULL <> col0 / col0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT col2 + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 * + col1 ) NOT BETWEEN + 56 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * - col1 * col0 + + 51 AS col0 FROM tab2 AS cor0
----
119697
336726
379507

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT DISTINCT - + ( - + 10 ) DIV + col0 * - ( 42 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT - + ( - + 10 ) / + col0 * - ( 42 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 + - 90 + - col1 + + col1 AS col2 FROM tab1
----
-141
-175
-181

onlyif mysql # DIV for integer division: 
query I rowsort label-9423
SELECT 82 + + col1 + - 63 DIV 67 FROM tab0
----
103
163
83

skipif mysql # not compatible
query I rowsort label-9423
SELECT 82 + + col1 + - 63 / 67 FROM tab0
----
103
163
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT + 86 + - COUNT( * ) col2 FROM tab1
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9424
SELECT + 86 + - COUNT ( * ) col2 FROM tab1
----
83

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 19 col0 FROM tab1 WHERE NOT ( - + col2 ) IS NULL
----
24
33
66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - + 76 ) AS col2 FROM tab0 AS cor0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT + + 46 DIV - 91 + + col2 + - + col1 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-9429
SELECT + + 46 / - 91 + + col2 + - + col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL col0 + + + 47 AS col1 FROM tab1 cor0
----
132
138
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 84 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * - col2 - 63 AS col0 FROM tab0 AS cor0
----
-768
-933
-9666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT - - CAST( - col1 AS SIGNED ) + + col0 + col2 FROM tab0 AS cor0
----
-19
195
76

skipif mysql # not compatible
query I rowsort label-9433
SELECT - - CAST ( - col1 AS INTEGER ) + + col0 + col2 FROM tab0 AS cor0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT - + COUNT( * ) + 66 AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9434
SELECT - + COUNT ( * ) + 66 AS col1 FROM tab1 AS cor0
----
63

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE ( + col1 ) * + col1 / 32 = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT ALL CAST( NULL AS SIGNED ) * - col2 - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col2 / + col0 ) NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col2 / + col0 ) NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT + - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9437
SELECT + - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9438
SELECT CAST( MIN( 55 ) AS SIGNED ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-9438
SELECT CAST ( MIN ( 55 ) AS INTEGER ) FROM tab2
----
55

query III rowsort
SELECT * FROM tab2 WHERE + + 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9441
SELECT ALL COUNT( * ) + + + 91 AS col0, 94 col2 FROM tab1
----
94
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9441
SELECT ALL COUNT ( * ) + + + 91 AS col0, 94 col2 FROM tab1
----
94
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9443
SELECT DISTINCT 77 AS col2, - ( + - 13 ) + 17 * - + COUNT( * ) AS col1 FROM tab0
----
77
-38

skipif mysql # not compatible
query II rowsort label-9443
SELECT DISTINCT 77 AS col2, - ( + - 13 ) + 17 * - + COUNT ( * ) AS col1 FROM tab0
----
77
-38

query II rowsort
SELECT ALL - col1, col2 + - col1 AS col2 FROM tab2
----
-51
-28
-67
-9
-77
-37

query I rowsort
SELECT ALL + ( + col0 ) + + 75 + + col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND + 73
----

query II rowsort
SELECT + ( col0 ) AS col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col1 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT ALL + 78 + + 53 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2a1963143aee0d56f95aea0f030bc48f

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9450
SELECT - col1 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT - col1 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT col0 + col2 FROM tab0 AS cor0 WHERE NOT - col1 + col1 + - CAST( NULL AS SIGNED ) / + col2 BETWEEN + - 26 AND + + 45
----

skipif mysql # not compatible
query I rowsort label-9451
SELECT col0 + col2 FROM tab0 AS cor0 WHERE NOT - col1 + col1 + - CAST ( NULL AS INTEGER ) / + col2 BETWEEN + - 26 AND + + 45
----

query I rowsort
SELECT ALL + 42 + + col0 * - col2 FROM tab0 AS cor0
----
-663
-828
-9561

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT DISTINCT - + COUNT( col2 ) * + 24 AS col1 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT - + COUNT ( col2 ) * + 24 AS col1 FROM tab0 AS cor0
----
-72

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - + 4
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 7 ) col1 FROM tab1 AS cor0
----
-7
-7
-7

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT 19 + - + col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT COUNT( * ) * - 19 + + MAX( + - col1 ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT COUNT ( * ) * - 19 + + MAX ( + - col1 ) FROM tab1
----
-62

query II rowsort
SELECT DISTINCT col2 AS col1, - 20 FROM tab0
----
10
-20
47
-20
99
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT DISTINCT - 19 + - - COUNT( * ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT - 19 + - - COUNT ( * ) FROM tab0
----
-16

query I rowsort
SELECT 58 * - 12 FROM tab1
----
-696
-696
-696

query II rowsort
SELECT ALL col2, 91 AS col2 FROM tab2
----
23
91
40
91
58
91

query III rowsort
SELECT * FROM tab2 WHERE col1 > + col1 - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 30 * - col1 FROM tab0
----
-2430
-30
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT - COUNT( * ) + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9465
SELECT - COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9466
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 16 * + col1 * - col0 * 91 / - col1 NOT BETWEEN ( CAST( col0 AS DECIMAL ) ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 16 * + col1 * - col0 * 91 / - col1 NOT BETWEEN ( CAST ( col0 AS REAL ) ) AND NULL
----
0

query I rowsort
SELECT - 34 + + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-57
-74
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT DISTINCT + 28 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT + 28 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
25

query I rowsort
SELECT ALL - 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9470
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col0 * - - col1 - + col1 AS col2 FROM tab2
----
-2397
-5005
-5092

query I rowsort
SELECT ALL col1 * + col0 - + 52 FROM tab2
----
2294
4876
4973

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT ALL - + 7 DIV col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL - + 7 / col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * col2 * + 9 - col0 FROM tab1 AS cor0
----
-12147
-2740
-28855

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT DISTINCT - col0 DIV + 79 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT - col0 / + 79 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 cor0 WHERE - 40 + + 12 + + col2 / col2 >= NULL
----

query I rowsort
SELECT + col1 - - ( + col2 ) FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 29 NOT IN ( + col2 * - 30 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9481
SELECT CAST( NULL AS SIGNED ) + - 48 + + - 75 * + 13 AS col0, 98 * - MAX( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
NULL
-9408

skipif mysql # not compatible
query II rowsort label-9481
SELECT CAST ( NULL AS INTEGER ) + - 48 + + - 75 * + 13 AS col0, 98 * - MAX ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
NULL
-9408

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 ) = col1 + - ( + col1 )
----

query II rowsort
SELECT + 0 AS col0, + 51 + col1 AS col0 FROM tab1
----
0
56
0
65
0
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 68 NOT IN ( col0 * col1 )
----

query I rowsort
SELECT + 78 AS col2 FROM tab1 WHERE NOT - + 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT COUNT( * ) * + 7 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9486
SELECT COUNT ( * ) * + 7 FROM tab2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9487
SELECT 49 DIV - 67 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9487
SELECT 49 / - 67 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * + 35 >= ( - ( + + col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT MIN( ALL - + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9490
SELECT MIN ( ALL - + col2 ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT + 41 * - SUM( + 5 ) * + 22 + - - 97 FROM tab2
----
-13433

skipif mysql # not compatible
query I rowsort label-9491
SELECT + 41 * - SUM ( + 5 ) * + 22 + - - 97 FROM tab2
----
-13433

onlyif mysql # DIV for integer division: 
query II rowsort label-9492
SELECT 71, - col0 DIV - ( - col0 ) AS col0 FROM tab2
----
71
-1
71
-1
71
-1

skipif mysql # not compatible
query II rowsort label-9492
SELECT 71, - col0 / - ( - col0 ) AS col0 FROM tab2
----
71
-1
71
-1
71
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9493
SELECT * FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) = + - col0 / col2 * + 12 * - - 45 + col2
----

skipif mysql # not compatible
query III rowsort label-9493
SELECT * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) = + - col0 / col2 * + 12 * - - 45 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT ALL ( + + CAST( + col0 AS SIGNED ) ) * + col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL ( + + CAST ( + col0 AS INTEGER ) ) * + col0 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 71 + + col2 / 51 + - col1 <= col1
----

query I rowsort
SELECT DISTINCT ( 59 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT - col0 + + 67 - + 28 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-25
-36
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 0 col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + ( col2 ) / + + col0 col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / col1 AND - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9500
SELECT - col2, + col2 DIV col2 DIV - 9 col2 FROM tab1
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9500
SELECT - col2, + col2 / col2 / - 9 col2 FROM tab1
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT col2 - - col1 FROM tab2 WHERE NOT - 75 BETWEEN - col0 AND col1 + + col1 + + 52 / - 75
----
117
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL + MIN( DISTINCT col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL + MIN ( DISTINCT col2 ) FROM tab1 cor0
----
59

query II rowsort
SELECT + 76, - col2 AS col2 FROM tab0 AS cor0
----
76
-10
76
-47
76
-99

query I rowsort
SELECT DISTINCT - - ( - col1 ) * col2 + - + col0 * 26 * 52 AS col2 FROM tab0 cor0
----
-117834
-131243
-24087

query I rowsort
SELECT + - ( + col1 ) * 88 * col1 + - - 72 * + 25 AS col0 FROM tab1 AS cor0
----
-15448
-192592
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ALL COUNT( * ) + - - SUM( DISTINCT + 52 ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL COUNT ( * ) + - - SUM ( DISTINCT + 52 ) FROM tab2
----
55

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT DISTINCT + COUNT( * ) * + - 56 AS col0 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT + COUNT ( * ) * + - 56 AS col0 FROM tab0
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-9510
SELECT DISTINCT - 94 * - 31 + col2 DIV col0 DIV + + col0 AS col2 FROM tab0
----
2914

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT - 94 * - 31 + col2 / col0 / + + col0 AS col2 FROM tab0
----
2914

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( - - col1 ) - + + 45 AS col0 FROM tab0 AS cor0
----
-24
-44
36

query I rowsort
SELECT 46 - + 26 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT + - 36 * - - col1 - col1 AS col0 FROM tab0 AS cor0
----
-2997
-37
-777

query I rowsort
SELECT ALL 93 + + col0 FROM tab1 AS cor0
----
144
178
184

query I rowsort
SELECT + 52 + + col0 FROM tab2
----
116
127
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT + 19 + COUNT( DISTINCT 86 ) + - MAX( - - col2 ) AS col1 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-9517
SELECT + 19 + COUNT ( DISTINCT 86 ) + - MAX ( - - col2 ) AS col1 FROM tab0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT MIN( ALL - 20 ) * + + 96 + 3 + + 76 FROM tab2 AS cor0
----
-1841

skipif mysql # not compatible
query I rowsort label-9518
SELECT MIN ( ALL - 20 ) * + + 96 + 3 + + 76 FROM tab2 AS cor0
----
-1841

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT SUM( + 51 ) AS col0 FROM tab1 AS cor0 WHERE col0 * + - 71 + - col0 NOT IN ( 43 )
----
153

skipif mysql # not compatible
query I rowsort label-9519
SELECT SUM ( + 51 ) AS col0 FROM tab1 AS cor0 WHERE col0 * + - 71 + - col0 NOT IN ( 43 )
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT ALL MIN( + 33 ) AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL MIN ( + 33 ) AS col1 FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL + SUM( DISTINCT + 59 ) AS col2 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + SUM ( DISTINCT + 59 ) AS col2 FROM tab0 AS cor0
----
59

query II rowsort
SELECT DISTINCT col1, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL 2 AS col0 FROM tab2 cor0
----
2
2
2

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 <= col0 / - col0 * + 40 + + 87 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9525
SELECT ALL - - col0 / col1 FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL - - col0 / col1 FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND + - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT ALL col0 FROM tab2 WHERE 72 * + - col1 + - col1 NOT IN ( - CAST( - + col2 AS SIGNED ), col1 + + - col0 / 72 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL col0 FROM tab2 WHERE 72 * + - col1 + - col1 NOT IN ( - CAST ( - + col2 AS INTEGER ), col1 + + - col0 / 72 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9527
SELECT ALL col0 * + - col1 * - CAST( NULL AS SIGNED ) * - col2 * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL col0 * + - col1 * - CAST ( NULL AS INTEGER ) * - col2 * - col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 51 * - col1, + 55 * + 95 col0 FROM tab2
----
2601
5225
3417
5225
3927
5225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9529
SELECT - col0 AS col2, + col2 / - + 38 col1 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) * + col0 + + col2 NOT BETWEEN + + col0 / - + col0 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9529
SELECT - col0 AS col2, + col2 / - + 38 col1 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) * + col0 + + col2 NOT BETWEEN + + col0 / - + col0 AND NULL
----

query I rowsort
SELECT ( + 9 ) AS col1 FROM tab2 AS cor0
----
9
9
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 79 + - - 38 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9532
SELECT DISTINCT + col1 DIV - - col0 FROM tab0 AS cor0 WHERE NOT col0 + + ( - + col0 ) IS NULL
----
0
5

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT + col1 / - - col0 FROM tab0 AS cor0 WHERE NOT col0 + + ( - + col0 ) IS NULL
----
0
5

query II rowsort
SELECT DISTINCT - - col2, - col1 AS col0 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query II rowsort
SELECT + + col0, - 32 * 30 + + col2 FROM tab2 AS cor0
----
46
-937
64
-920
75
-902

query II rowsort
SELECT DISTINCT + - col0, 16 AS col1 FROM tab2 AS cor0
----
-46
16
-64
16
-75
16

query I rowsort
SELECT - ( + - col0 ) * - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT ALL - SUM( DISTINCT - col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL - SUM ( DISTINCT - col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT DISTINCT + 14 AS col1 FROM tab1 AS cor0 WHERE col1 * - col1 NOT BETWEEN - + col2 AND NULL
----
14

query I rowsort
SELECT ALL - + 66 + + - col1 FROM tab1 AS cor0
----
-113
-71
-80

query I rowsort
SELECT - - 11 AS col1 FROM tab0 AS cor0
----
11
11
11

query III rowsort
SELECT * FROM tab1 WHERE - 6 + + 61 <= - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN 52 * + + col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT + COUNT( * ) + + 40 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-9544
SELECT + COUNT ( * ) + + 40 FROM tab2
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * + 10 * - col0 col2 FROM tab2
----
-10534
-25536
-43425

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 81 / - + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( + col1 IN ( 78 ) ) )
----

query II rowsort
SELECT DISTINCT 18, col0 AS col0 FROM tab0 AS cor0
----
18
15
18
87
18
97

query I rowsort
SELECT col0 - 18 - - col2 AS col1 FROM tab1
----
126
129
141

query I rowsort
SELECT + 30 - + col1 + col2 AS col2 FROM tab2
----
-7
2
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9551
SELECT ALL COUNT( * ) - + ( + - MIN( + - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL COUNT ( * ) - + ( + - MIN ( + - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( + 73, col2 )
----

query I rowsort
SELECT ALL + 85 AS col2 FROM tab2 cor0
----
85
85
85

query I rowsort
SELECT DISTINCT + + 27 AS col1 FROM tab2 cor0
----
27

query I rowsort
SELECT + 17 * col2 AS col2 FROM tab1 AS cor0
----
1003
1156
1632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 * - 80 col0 FROM tab0
----
-3440

query I rowsort
SELECT ALL - ( col2 ) * - col1 + + 18 FROM tab2
----
1191
3098
3904

query I rowsort
SELECT 42 * - 6 FROM tab2
----
-252
-252
-252

query I rowsort
SELECT + 62 * + col0 FROM tab0
----
5394
6014
930

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 32 * - col1 >= col0 + col0 - + col0 * + col1 * + - col0 * + - col0
----

query I rowsort
SELECT col0 * + + col2 * + col0 AS col2 FROM tab2
----
163840
326250
48668

query I rowsort
SELECT ALL - 91 * + 13 AS col0 FROM tab1
----
-1183
-1183
-1183

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT DISTINCT + 59 + COUNT( * ) FROM tab2, tab2 cor0
----
68

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT + 59 + COUNT ( * ) FROM tab2, tab2 cor0
----
68

query I rowsort
SELECT ALL + + 80 + 79 FROM tab1 AS cor0
----
159
159
159

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - 46 ) = + col1
----

query II rowsort
SELECT col0, - col1 * - col1 + - col2 FROM tab0 AS cor0
----
15
6514
87
431
97
-98

query I rowsort
SELECT 35 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 68 / + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + - col0 * - 61 FROM tab0 AS cor0
----
5220
5820
900

query I rowsort
SELECT + + col1 AS col1 FROM tab1 AS cor0 WHERE - col2 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9572
SELECT DISTINCT CAST( NULL AS SIGNED ) + - CAST( - + MIN( ALL + - 33 ) AS SIGNED ) * + - AVG ( DISTINCT - 12 ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9572
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - CAST ( - + MIN ( ALL + - 33 ) AS INTEGER ) * + - AVG ( DISTINCT - 12 ) col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL + COUNT( * ) + + MAX( + 6 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL + COUNT ( * ) + + MAX ( + 6 ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT col1 * + 86 - - - 14 AS col0 FROM tab0
----
1792
6952
72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE + ( + col1 ) * col1 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - col0 - + + col2 FROM tab0 AS cor0
----
-1262
-1837
-196

query I rowsort
SELECT + + col2 - col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT - col1 + - + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-141
-142
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col2 * + - col0 <= NULL )
----

query I rowsort
SELECT DISTINCT + ( col0 ) + 50 - - ( - 85 ) AS col0 FROM tab2
----
11
29
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col1 FROM tab0 cor0
----
8
8
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 87
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( + - col1 ) IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL COUNT( * ) * 23 AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL COUNT ( * ) * 23 AS col0 FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9588
SELECT ALL MAX( ALL + col2 ) col0, - 22 * - 64 - + + COUNT( * ) AS col0 FROM tab1
----
96
1405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9588
SELECT ALL MAX ( ALL + col2 ) col0, - 22 * - 64 - + + COUNT ( * ) AS col0 FROM tab1
----
96
1405

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 0 IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / 6 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + col1 - + + 84 AS col1 FROM tab2 WHERE - col2 IS NOT NULL
----
-47
-56
-75

query II rowsort
SELECT DISTINCT 97 + col2 - - - col2, - col1 AS col1 FROM tab0
----
97
-1
97
-21
97
-81

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( col0 ) > col1 * col0 + + 93
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9594
SELECT ALL CAST( NULL AS DECIMAL ) + - col0 + + CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL CAST ( NULL AS REAL ) + - col0 + + CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col1, 97 FROM tab0 AS cor0
----
10
97
47
97
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9596
SELECT ALL - 55 AS col2, - AVG ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-9596
SELECT ALL - 55 AS col2, - AVG ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
-55
NULL

query I rowsort
SELECT + 18 + + + col1 * + 13 AS col1 FROM tab0
----
1071
291
31

query I rowsort
SELECT - col0 + + + col0 + + ( + col2 ) AS col1 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + + col1 + - - 76 )
----

query I rowsort
SELECT ALL - col2 - + 34 * col2 + - - col0 FROM tab1
----
-1980
-2289
-3309

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT ALL + AVG ( col1 ) * + SUM( 10 ) + + COUNT( * ) AS col1 FROM tab0 WHERE + col2 + - 10 BETWEEN + - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL + AVG ( col1 ) * + SUM ( 10 ) + + COUNT ( * ) AS col1 FROM tab0 WHERE + col2 + - 10 BETWEEN + - col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9602
SELECT 85 AS col2, 84 - + COUNT( * ) col2 FROM tab0, tab1 AS cor0
----
85
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9602
SELECT 85 AS col2, 84 - + COUNT ( * ) col2 FROM tab0, tab1 AS cor0
----
85
75

query I rowsort
SELECT col0 + + 33 * col1 AS col2 FROM tab0
----
130
2688
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT DISTINCT 17 - + CAST( NULL AS SIGNED ) + + 9 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT 17 - + CAST ( NULL AS INTEGER ) + + 9 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 7 / + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 78 ) * - 36 col0 FROM tab1 AS cor0
----
2808
2808
2808

query I rowsort
SELECT ALL 31 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 47 ) + 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 41 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 + + 51 AND + col1
----

query II rowsort
SELECT DISTINCT col0 AS col1, 89 AS col0 FROM tab0 AS cor0
----
15
89
87
89
97
89

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab2 AS cor0 WHERE ( NOT + 81 <= + - 1 )
----
23
40
58

query II rowsort
SELECT ALL 29 AS col0, 74 AS col1 FROM tab1 cor0
----
29
74
29
74
29
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL - MAX( ALL + 10 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL - MAX ( ALL + 10 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ( + 19 ) FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT 21 + + col0 AS col0 FROM tab0 AS cor0 WHERE + 38 >= ( NULL )
----

query II rowsort
SELECT col2 AS col2, col0 / + - 48 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT - - col1 * + + col2 + 79 + - 16 * - 60, + col2 AS col1 FROM tab1 AS cor0
----
1334
59
2383
96
4235
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 23 + - col1 NOT IN ( col1, - col0, - col2, - col0 )
----

query I rowsort
SELECT - col0 * - + 17 AS col1 FROM tab0
----
1479
1649
255

query I rowsort
SELECT + 58 AS col0 FROM tab2 WHERE NOT - 86 + + col2 IS NULL
----
58
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9622
SELECT DISTINCT - 21 col1, + COUNT( * ) FROM tab0
----
-21
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9622
SELECT DISTINCT - 21 col1, + COUNT ( * ) FROM tab0
----
-21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT DISTINCT + 83 + - + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL >= ( 30 )
----
83

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT + 83 + - + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL >= ( 30 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9624
SELECT ALL - 62 AS col2, ( CAST( + + 93 AS SIGNED ) ) FROM tab2
----
-62
93
-62
93
-62
93

skipif mysql # not compatible
query II rowsort label-9624
SELECT ALL - 62 AS col2, ( CAST ( + + 93 AS INTEGER ) ) FROM tab2
----
-62
93
-62
93
-62
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9626
SELECT DISTINCT + COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) + - MIN( DISTINCT - col2 ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9626
SELECT DISTINCT + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT - col2 ) FROM tab2
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col2 FROM tab0 AS cor0
----
13
13
13

query II rowsort
SELECT + 17, col0 FROM tab2 AS cor0
----
17
46
17
64
17
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 58 * + + 7 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 497b3eb3bc4fdd23821fd235cca9ce37

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ALL 78 * COUNT( * ) FROM tab2 cor0
----
234

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL 78 * COUNT ( * ) FROM tab2 cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT - + COUNT( * ) + - 52 AS col0 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9632
SELECT - + COUNT ( * ) + - 52 AS col0 FROM tab2 AS cor0
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col0 FROM tab0 cor0 WHERE NOT + 74 / col0 IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 11 * 10 + col2 * col0 + col2 AS col1 FROM tab1 AS cor0
----
4882
4964
6146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9635
SELECT DISTINCT - + 78 + ( CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-124
-142
-153

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT - + 78 + ( CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-124
-142
-153

query I rowsort
SELECT - col0 * + ( + col2 ) + + col1 FROM tab0 AS cor0
----
-624
-849
-9602

query I rowsort
SELECT - - 10 AS col2 FROM tab2 cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL - COUNT( * ) + 92 * - + 57 col2 FROM tab1 AS cor0
----
-5247

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9638
SELECT ALL - COUNT ( * ) + 92 * - + 57 col2 FROM tab1 AS cor0
----
-5247

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT + COUNT( * ) * + COUNT( * ) + - - ( + 46 ) AS col0 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-9639
SELECT + COUNT ( * ) * + COUNT ( * ) + - - ( + 46 ) AS col0 FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT + 18 + COUNT( col0 ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT + 18 + COUNT ( col0 ) FROM tab1 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9641
SELECT DISTINCT + col0 - + col2 + + - CAST( + col1 AS SIGNED ) * ( col2 ) AS col1 FROM tab0
----
-101
-133
-3839

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT + col0 - + col2 + + - CAST ( + col1 AS INTEGER ) * ( col2 ) AS col1 FROM tab0
----
-101
-133
-3839

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9642
SELECT 86 DIV + MAX( 79 ) AS col0, - 99 FROM tab0
----
1
-99

skipif mysql # not compatible
query II rowsort label-9642
SELECT 86 / + MAX ( 79 ) AS col0, - 99 FROM tab0
----
1
-99

query I rowsort
SELECT ALL + ( - col1 ) - - col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT ALL - 20 + + col0 AS col0 FROM tab0
----
-5
67
77

query I rowsort
SELECT DISTINCT + col2 + - + 9 AS col1 FROM tab2
----
14
31
49

query III rowsort
SELECT * FROM tab0 WHERE + col0 >= col2
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT DISTINCT - col0 * + + 4 * ( ( - col0 ) ) / - CAST( NULL AS SIGNED ) * + 75 + - col1 * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT - col0 * + + 4 * ( ( - col0 ) ) / - CAST ( NULL AS INTEGER ) * + 75 + - col1 * col2 FROM tab0
----
NULL

query I rowsort
SELECT + + col0 * - col2 AS col0 FROM tab0 WHERE + col1 IS NULL AND NOT 70 BETWEEN col2 + + col1 AND NULL
----

query I rowsort
SELECT + col2 * 2 AS col0 FROM tab0 AS cor0
----
198
20
94

query II rowsort
SELECT DISTINCT col2, + 24 FROM tab2 cor0
----
23
24
40
24
58
24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query IIIIII rowsort label-9651
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST( NULL AS DECIMAL ) <= ( CAST( 50 AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-9651
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST ( NULL AS REAL ) <= ( CAST ( 50 AS INTEGER ) )
----

query I rowsort
SELECT col0 * - - col2 * + col1 + + 67 FROM tab2 WHERE NOT NULL <> - 60
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT DISTINCT - 18 + - col0 + + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT - 18 + - col0 + + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT - COUNT( * ) * 38 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-9655
SELECT - COUNT ( * ) * 38 FROM tab2 AS cor0
----
-114

query I rowsort
SELECT ALL - col0 * + + 5 AS col1 FROM tab1
----
-255
-425
-455

onlyif mysql # aggregate syntax: 
query II rowsort label-9657
SELECT MAX( + ( 40 ) ) AS col2, 8 * + - 6 FROM tab2
----
40
-48

skipif mysql # not compatible
query II rowsort label-9657
SELECT MAX ( + ( 40 ) ) AS col2, 8 * + - 6 FROM tab2
----
40
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ALL MAX( DISTINCT + 22 ) col2 FROM tab2
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9658
SELECT ALL MAX ( DISTINCT + 22 ) col2 FROM tab2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9659
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 38 + - 73 FROM tab0
----
NULL
-35
NULL
-35
NULL
-35

skipif mysql # not compatible
query II rowsort label-9659
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 38 + - 73 FROM tab0
----
NULL
-35
NULL
-35
NULL
-35

query I rowsort
SELECT DISTINCT + - col0 * col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 47, col0 / - + 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT DISTINCT + MAX( + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT + MAX ( + col2 ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT ALL - col0 DIV + - col1 + + col2 FROM tab0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL - col0 / + - col1 + + col2 FROM tab0
----
14
196
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT DISTINCT + 9 + - + CAST( NULL AS SIGNED ) * + - 74 - - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT + 9 + - + CAST ( NULL AS INTEGER ) * + - 74 - - col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9664
SELECT col0, col0 + col2 DIV col0 AS col1 FROM tab1
----
51
52
85
85
91
91

skipif mysql # not compatible
query II rowsort label-9664
SELECT col0, col0 + col2 / col0 AS col1 FROM tab1
----
51
52
85
85
91
91

query I rowsort
SELECT DISTINCT + - 35 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-35

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + 43 * + 25 * 95
----

query I rowsort
SELECT + - 29 - - 20 AS col0 FROM tab2 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + col1 + - 83 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col1 + - 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ALL - 98 - - MAX( - 81 ) AS col1 FROM tab1
----
-179

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL - 98 - - MAX ( - 81 ) AS col1 FROM tab1
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT 84 + - 66 * - + COUNT( ALL - col1 ) FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-9670
SELECT 84 + - 66 * - + COUNT ( ALL - col1 ) FROM tab1
----
282

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 79 BETWEEN - 38 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL 10 * - - MIN( ALL col2 ) FROM tab2
----
230

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL 10 * - - MIN ( ALL col2 ) FROM tab2
----
230

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 5 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + ( col0 ) ) * - 70 * 63 + col2 + 32 col2 FROM tab0 cor0
----
383712
427901
66229

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL - MAX( 1 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - MAX ( 1 ) FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + 68 * + - COUNT( * ) col2 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9677
SELECT + 68 * + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-204

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( NOT col0 < NULL )
----

query II rowsort
SELECT col2 AS col2, - col2 - - ( + col0 ) - + 19 + - ( + col0 ) + - col2 * + + 15 AS col1 FROM tab0
----
10
-179
47
-771
99
-1603

query I rowsort
SELECT DISTINCT - ( + + ( + col2 ) ) * - 46 * + - col2 - - col0 AS col0 FROM tab2
----
-154669
-24288
-73536

query II rowsort
SELECT DISTINCT - col0, - col0 FROM tab1 cor0
----
-51
-51
-85
-85
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9682
SELECT ALL 52 DIV 68 * + col2 * col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL 52 / 68 * + col2 * col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT COUNT( ALL 54 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT COUNT ( ALL 54 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT - + COUNT( ALL col1 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9684
SELECT - + COUNT ( ALL col1 ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9685
SELECT ( 76 ) AS col0, + MIN( ALL ( - CAST( - col1 AS SIGNED ) ) ) + - - COUNT( * ) * - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
76
-4

skipif mysql # not compatible
query II rowsort label-9685
SELECT ( 76 ) AS col0, + MIN ( ALL ( - CAST ( - col1 AS INTEGER ) ) ) + - - COUNT ( * ) * - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
76
-4

query I rowsort
SELECT ALL - col2 + + 59 AS col1 FROM tab0 cor0
----
-40
12
49

query I rowsort
SELECT - 4 + - col1 FROM tab0 AS cor0
----
-25
-5
-85

query I rowsort
SELECT ALL + col2 + - + 20 + col0 FROM tab1
----
124
127
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 97 col0 FROM tab0
----
-2037
-7857
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9690
SELECT ALL COUNT( * ) DIV 70 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL COUNT ( * ) / 70 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9691
SELECT DISTINCT col1 DIV - col2 * - - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT col1 / - col2 * - - col0 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 79 <= - + 72
----

query I rowsort
SELECT ALL - ( 19 ) FROM tab0 AS cor0
----
-19
-19
-19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 63 + col2 - - 16 * + 55 = + col1 / - + 59
----

query I rowsort
SELECT - + ( - ( + col1 ) ) * - col0 + + col1 + - 94 AS col0 FROM tab0 AS cor0
----
-1228
-190
-1900

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab1 AS cor0
----
16

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > ( col1 )
----

query II rowsort
SELECT ALL - col0 AS col2, col0 AS col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query II rowsort
SELECT 46 AS col2, - 73 AS col0 FROM tab1 AS cor0
----
46
-73
46
-73
46
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 WHERE NOT + ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( - - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * col1 - - col0 AS col2 FROM tab0 WHERE NOT ( col0 IS NULL )
----
196
297
3822

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9705
SELECT ALL + CAST( - 67 AS SIGNED ), - 20 * + COUNT( * ) AS col1 FROM tab2
----
-67
-60

skipif mysql # not compatible
query II rowsort label-9705
SELECT ALL + CAST ( - 67 AS INTEGER ), - 20 * + COUNT ( * ) AS col1 FROM tab2
----
-67
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT + + 12 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9706
SELECT + + 12 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
36

query II rowsort
SELECT DISTINCT + col0, ( - 93 ) FROM tab1 AS cor0
----
51
-93
85
-93
91
-93

query II rowsort
SELECT + - col0, + 27 AS col2 FROM tab0 AS cor0
----
-15
27
-87
27
-97
27

query I rowsort
SELECT ALL + 99 * + - ( 50 ) FROM tab1 AS cor0
----
-4950
-4950
-4950

query I rowsort
SELECT 3 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9711
SELECT ALL - col2 DIV - + col2 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL - col2 / - + col2 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT + 21 AS col2 FROM tab2 cor0
----
21
21
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9713
SELECT - ( - 29 ) DIV COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9713
SELECT - ( - 29 ) / COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT + - 19 + - + 74 FROM tab2 AS cor0 WHERE NOT NULL <= - 36 * + + col1 * - col0
----

query II rowsort
SELECT + 99 * - col0, ( - - col1 ) * - 81 - - - 21 AS col2 FROM tab2 AS cor0
----
-4554
-4152
-6336
-6258
-7425
-5448

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( 14 ) + - - col2 * + 94 NOT BETWEEN - - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 < - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9718
SELECT ALL + - MAX( ALL + + col2 ) AS col2, + ( 92 ) AS col1 FROM tab0 cor0
----
-99
92

skipif mysql # not compatible
query II rowsort label-9718
SELECT ALL + - MAX ( ALL + + col2 ) AS col2, + ( 92 ) AS col1 FROM tab0 cor0
----
-99
92

query I rowsort
SELECT + col1 * - - col2 AS col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE + col1 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT COUNT( * ) * + MAX( DISTINCT + col2 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-9721
SELECT COUNT ( * ) * + MAX ( DISTINCT + col2 ) FROM tab2
----
174

query III rowsort
SELECT * FROM tab0 WHERE 26 + - 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9723
SELECT DISTINCT - 42 + + + COUNT( * ) DIV COUNT( DISTINCT - col0 ) AS col0 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT - 42 + + + COUNT ( * ) / COUNT ( DISTINCT - col0 ) AS col0 FROM tab0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL MAX( ALL - 9 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL MAX ( ALL - 9 ) FROM tab2
----
-9

query I rowsort
SELECT col2 * + col2 + + col0 + - col1 FROM tab2
----
1587
3372
524

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9726
SELECT DISTINCT - 82 col0, - CAST( NULL AS SIGNED ) * + col2 - + - col1 + - - col2 * - - 63 AS col1 FROM tab2
----
-82
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9726
SELECT DISTINCT - 82 col0, - CAST ( NULL AS INTEGER ) * + col2 - + - col1 + - - col2 * - - 63 AS col1 FROM tab2
----
-82
NULL

query I rowsort
SELECT + + 58 + - 9 FROM tab0 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9728
SELECT DISTINCT 80 col2, SUM( + - 80 ) * + + ( 8 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
80
-5760

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9728
SELECT DISTINCT 80 col2, SUM ( + - 80 ) * + + ( 8 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
80
-5760

query I rowsort
SELECT + + col0 + + 70 FROM tab1 AS cor0
----
121
155
161

query I rowsort
SELECT ALL - 95 * 79 FROM tab2 cor0
----
-7505
-7505
-7505

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT 30 + - MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT 30 + - MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
29

query II rowsort
SELECT DISTINCT - col2 AS col1, + 46 + 70 + col1 - - 19 AS col1 FROM tab1 AS cor0
----
-59
140
-68
182
-96
149

query I rowsort
SELECT 59 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT 79 - col1 FROM tab0
----
-2
58
78

query I rowsort
SELECT ALL 23 * 74 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 3eb050d95b9140473c3d08878fa7ae27

query I rowsort
SELECT ALL - - 44 - + 38 + - + col0 FROM tab2 AS cor0
----
-40
-58
-69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 / - col2 * col0 * - col2 + + - ( + 71 ) > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9738
SELECT - col0 FROM tab0 cor0 WHERE NOT col1 * 93 * + + CAST( NULL AS SIGNED ) - - ( - 17 ) <= + col2
----

skipif mysql # not compatible
query I rowsort label-9738
SELECT - col0 FROM tab0 cor0 WHERE NOT col1 * 93 * + + CAST ( NULL AS INTEGER ) - - ( - 17 ) <= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9739
SELECT COUNT( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9739
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT - MIN( DISTINCT + - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9742
SELECT - MIN ( DISTINCT + - col1 ) FROM tab0
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( col0 / + col0 + col1, 59 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT DISTINCT MIN( DISTINCT - 49 ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT MIN ( DISTINCT - 49 ) FROM tab0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9745
SELECT ALL - 55 AS col2, MAX( col2 ) FROM tab2
----
-55
58

skipif mysql # not compatible
query II rowsort label-9745
SELECT ALL - 55 AS col2, MAX ( col2 ) FROM tab2
----
-55
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9746
SELECT + ( + CAST( - CAST( - 4 AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9746
SELECT + ( + CAST ( - CAST ( - 4 AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab2
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT - COUNT( DISTINCT - 62 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9747
SELECT - COUNT ( DISTINCT - 62 ) AS col1 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56 AS col0, + col0 col2 FROM tab1 WHERE col2 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL + ( - + MAX( DISTINCT + + col1 ) ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL + ( - + MAX ( DISTINCT + + col1 ) ) AS col2 FROM tab0
----
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL > NULL )
----

query I rowsort
SELECT ALL - 52 + col0 AS col2 FROM tab0 cor0
----
-37
35
45

query I rowsort
SELECT ( 21 ) FROM tab2 cor0
----
21
21
21

query I rowsort
SELECT + col1 * - + col2 * + col0 AS col1 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT col2 + + + 82 * - col2 FROM tab1 cor0
----
-4779
-5508
-7776

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE 10 > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL 92 * + COUNT( * ) FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL 92 * + COUNT ( * ) FROM tab1 AS cor0
----
276

query I rowsort
SELECT ALL - ( col1 ) * + 65 FROM tab0 AS cor0
----
-1365
-5265
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9758
SELECT CAST( NULL AS SIGNED ) + + + 75 * + col0 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-9758
SELECT CAST ( NULL AS INTEGER ) + + + 75 * + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9759
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col2 NOT IN ( + col2 * + - col2 * col0, col2 + ( col1 ), - - CAST( NULL AS SIGNED ), - - col0 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9759
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col2 NOT IN ( + col2 * + - col2 * col0, col2 + ( col1 ), - - CAST ( NULL AS INTEGER ), - - col0 * + col2 )
----
0

query I rowsort
SELECT DISTINCT ( - col2 ) + col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9761
SELECT DISTINCT col0 * - - col1 * - 26 + col2 DIV col1 DIV - 29 AS col1 FROM tab1
----
-11050
-111202
-18564

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT col0 * - - col1 * - 26 + col2 / col1 / - 29 AS col1 FROM tab1
----
-11050
-111202
-18564

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9762
SELECT DISTINCT col0 + - + ( - + col0 ), - CAST( - 78 AS SIGNED ) AS col1 FROM tab2
----
128
78
150
78
92
78

skipif mysql # not compatible
query II rowsort label-9762
SELECT DISTINCT col0 + - + ( - + col0 ), - CAST ( - 78 AS INTEGER ) AS col1 FROM tab2
----
128
78
150
78
92
78

query II rowsort
SELECT DISTINCT + col1 + 4 AS col0, col2 FROM tab2
----
55
23
71
58
81
40

query I rowsort
SELECT DISTINCT col1 * - 44 * + - 38 AS col2 FROM tab0
----
135432
1672
35112

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9766
SELECT DISTINCT - COUNT( * ) AS col2, ( - - 57 ) FROM tab0, tab1 AS cor0
----
-9
57

skipif mysql # not compatible
query II rowsort label-9766
SELECT DISTINCT - COUNT ( * ) AS col2, ( - - 57 ) FROM tab0, tab1 AS cor0
----
-9
57

query I rowsort
SELECT ALL - - 58 * - - col0 AS col2 FROM tab2 AS cor0
----
2668
3712
4350

query I rowsort
SELECT ALL ( - col2 ) * - 7 * - + 79 AS col2 FROM tab2 AS cor0
----
-12719
-22120
-32074

query I rowsort
SELECT DISTINCT - 77 * - - col1 AS col0 FROM tab1 AS cor0
----
-1078
-3619
-385

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col2 / + ( - - 71 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 18 - - 59 AS col0, col2 + - - col0 AS col0 FROM tab0 AS cor0
----
77
196
77
62
77
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9772
SELECT ALL + + 76 DIV COUNT( * ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL + + 76 / COUNT ( * ) FROM tab0 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT - MIN( + + col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT - MIN ( + + col1 ) AS col0 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab0 WHERE - + ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col1, 54 AS col2 FROM tab1 AS cor0
----
14
54
47
54
5
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9777
SELECT + CAST( - AVG ( ALL col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9777
SELECT + CAST ( - AVG ( ALL col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-34

query I rowsort
SELECT 25 * - col1 AS col0 FROM tab1 AS cor0
----
-1175
-125
-350

query II rowsort
SELECT col0 AS col1, + col1 + - + ( col1 ) AS col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

query I rowsort
SELECT col1 * - 5 * + col1 + - 81 * col2 FROM tab2 AS cor0
----
-14868
-27143
-32885

onlyif mysql # DIV for integer division: 
query II rowsort label-9781
SELECT ALL ( + 19 ) DIV - - col2 AS col0, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-9781
SELECT ALL ( + 19 ) / - - col2 AS col0, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9782
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9782
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT DISTINCT - ( - + COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT - ( - + COUNT ( * ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9784
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT col2 < - - 4 + - col0 * CAST( NULL AS DECIMAL ) * + + col2
----

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT col2 < - - 4 + - col0 * CAST ( NULL AS REAL ) * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL 93 * + 5 * - COUNT( * ) * - ( + ( - 68 ) ) FROM tab0
----
-94860

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL 93 * + 5 * - COUNT ( * ) * - ( + ( - 68 ) ) FROM tab0
----
-94860

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT - SUM( ALL - 38 ) FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-9786
SELECT - SUM ( ALL - 38 ) FROM tab1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT 17 * - + MAX( ALL + - col0 ) FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-9787
SELECT 17 * - + MAX ( ALL + - col0 ) FROM tab0
----
255

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 20 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9789
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 20 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - + 0 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT 99 * + - SUM( ALL + col0 ) + + + 29 + - COUNT( * ) + ( + MIN( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-18364

skipif mysql # not compatible
query I rowsort label-9792
SELECT 99 * + - SUM ( ALL + col0 ) + + + 29 + - COUNT ( * ) + ( + MIN ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-18364

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT ALL + + MIN( col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL + + MIN ( col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT - COUNT( * ) * - 15 AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9796
SELECT - COUNT ( * ) * - 15 AS col2 FROM tab0 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * - col1 * col0, - col2 col0 FROM tab2 AS cor0
----
-119646
-23
-336675
-58
-379456
-40

query I rowsort
SELECT - - ( - + col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 17 * + col2 / col1 * - 58 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 50 + - 48 + + col1 * 19 FROM tab2 cor0
----
1175
1365
871

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 91 + col1 IN ( - ( - - 35 ) )
----

query I rowsort
SELECT DISTINCT + 60 + 57 * + col0 AS col0 FROM tab0
----
5019
5589
915

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9803
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( CAST( + - 43 AS SIGNED ), 29 ) AND NOT + col0 >= - ( CAST( NULL AS DECIMAL ) ) + + 82
----

skipif mysql # not compatible
query III rowsort label-9803
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( CAST ( + - 43 AS INTEGER ), 29 ) AND NOT + col0 >= - ( CAST ( NULL AS REAL ) ) + + 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT ALL + CAST( NULL AS SIGNED ) - - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL + CAST ( NULL AS INTEGER ) - - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - + col1 + - + col0 FROM tab0
----
-96
354
6546

query I rowsort
SELECT DISTINCT - col0 * - - col0 + - col0 AS col0 FROM tab1
----
-2652
-7310
-8372

query I rowsort
SELECT DISTINCT 85 - 71 FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL COUNT( ALL col2 ) - 58 AS col0 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL COUNT ( ALL col2 ) - 58 AS col0 FROM tab1
----
-55

query I rowsort
SELECT + col1 + + col0 - col0 * ( - 81 ) + + - col1 AS col0 FROM tab1 AS cor0
----
4182
6970
7462

query I rowsort
SELECT DISTINCT + + col2 - - + 33 AS col2 FROM tab0 AS cor0
----
132
43
80

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-1
-21
-81

query I rowsort
SELECT + 59 * - col0 - - col2 AS col2 FROM tab1 cor0
----
-2913
-4956
-5301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT ALL - COUNT( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL - COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT DISTINCT 5 DIV + 40 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT 5 / + 40 FROM tab2
----
0

query I rowsort
SELECT + 66 * + col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9816
SELECT ALL - 35 * 41 AS col2, + col1 DIV - col0 FROM tab2 AS cor0
----
-1435
-1
-1435
-1
-1435
0

skipif mysql # not compatible
query II rowsort label-9816
SELECT ALL - 35 * 41 AS col2, + col1 / - col0 FROM tab2 AS cor0
----
-1435
-1
-1435
-1
-1435
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9817
SELECT ALL - + 49 DIV 35 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL - + 49 / 35 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - - 33 AS col2 FROM tab0 cor0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9819
SELECT SUM( + 66 ) DIV - - COUNT( * ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9819
SELECT SUM ( + 66 ) / - - COUNT ( * ) FROM tab2 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9820
SELECT col2 DIV - - 50 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9820
SELECT col2 / - - 50 FROM tab0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 25 + - + 34 * - - col0 + col2 <= + 71 * - - col0 + - col0
----

query I rowsort
SELECT DISTINCT col0 * + ( - col0 ) * col2 + col1 * - col2 FROM tab2
----
-166920
-330136
-49841

query I rowsort
SELECT ALL - 14 * 80 AS col0 FROM tab1
----
-1120
-1120
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT COUNT( * ) * 69 AS col2 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-9824
SELECT COUNT ( * ) * 69 AS col2 FROM tab1
----
207

query II rowsort
SELECT - 86 AS col0, col0 FROM tab0 AS cor0
----
-86
15
-86
87
-86
97

query I rowsort
SELECT + ( + 74 ) + - ( - col2 ) AS col0 FROM tab0
----
121
173
84

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT - col0 NOT BETWEEN ( ( col1 ) * col2 ) AND ( ( + 48 ) )
----

query I rowsort
SELECT ALL 41 * ( col1 ) AS col0 FROM tab0
----
3321
41
861

query I rowsort
SELECT 47 * - 47 AS col2 FROM tab1
----
-2209
-2209
-2209

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE ( col0 ) IN ( + col0 )
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9831
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * + 96 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9831
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 96 col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + + col1 AS col2 FROM tab0 WHERE 52 - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9834
SELECT - col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT - col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 * 26 col1 FROM tab2
----
2444
2444
2444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9836
SELECT + SUM( - 17 ) DIV + COUNT( * ) - - COUNT( * ) AS col0 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-9836
SELECT + SUM ( - 17 ) / + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT - COUNT( + 89 ) FROM tab1 WHERE ( NULL ) = - col1 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT - COUNT ( + 89 ) FROM tab1 WHERE ( NULL ) = - col1 + - col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9838
SELECT ALL - col2 DIV 51 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL - col2 / 51 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9839
SELECT ALL * FROM tab2 WHERE NOT 78 + - CAST( NULL AS SIGNED ) NOT BETWEEN ( col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9839
SELECT ALL * FROM tab2 WHERE NOT 78 + - CAST ( NULL AS INTEGER ) NOT BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - ( + col0 * - col1 ) FROM tab1
----
-25075
-290836
-68544

onlyif mysql # DIV for integer division: 
query I rowsort label-9841
SELECT DISTINCT - 38 DIV - col0 AS col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT - 38 / - col0 AS col0 FROM tab0
----
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9842
SELECT DISTINCT + COUNT( * ) * MAX( + 20 DIV + col1 ) col1 FROM tab1
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9842
SELECT DISTINCT + COUNT ( * ) * MAX ( + 20 / + col1 ) col1 FROM tab1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT + 3 DIV 45 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9843
SELECT + 3 / 45 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL + COUNT( DISTINCT - col0 ) * 41 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL + COUNT ( DISTINCT - col0 ) * 41 FROM tab0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-9845
SELECT col2 DIV + 78 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT col2 / + 78 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT ALL COUNT( col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL COUNT ( col0 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col0 + ( col1 + - col1 ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9848
SELECT ALL - 92 * - col0 - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL - 92 * - col0 - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT SUM( ALL - col1 ) * ( 54 * 30 ) AS col1 FROM tab0 WHERE NOT + 1 BETWEEN NULL AND ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT SUM ( ALL - col1 ) * ( 54 * 30 ) AS col1 FROM tab0 WHERE NOT + 1 BETWEEN NULL AND ( + col2 )
----
NULL

query I rowsort
SELECT - 97 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 38 IN ( col2 )
----

query I rowsort
SELECT DISTINCT + 49 * + col0 FROM tab2
----
2254
3136
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT - + SUM( - 22 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9854
SELECT - + SUM ( - 22 ) FROM tab0 AS cor0
----
66

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE col1 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + 47 NOT IN ( + col1 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT + + COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9857
SELECT + + COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT - - COUNT( ALL + col0 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9858
SELECT - - COUNT ( ALL + col0 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ( + col0 ) + + col0 FROM tab1 AS cor0 WHERE NOT - 44 IS NULL
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-9860
SELECT ALL - 58 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - 58 / + col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT + - MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT + - MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9862
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT 81 <> CAST( + 77 AS SIGNED ) + 77
----

skipif mysql # not compatible
query I rowsort label-9862
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT 81 <> CAST ( + 77 AS INTEGER ) + 77
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > 69 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( 43 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9864
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( 43 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT + MAX( ALL - 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT + MAX ( ALL - 0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT ALL + COUNT( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL + COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 * + col0 col2 FROM tab1
----
1105
1183
663

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + 2 NOT BETWEEN ( NULL ) AND - 72
----

query I rowsort
SELECT DISTINCT ( + 44 ) * - col2 AS col1 FROM tab1
----
-2596
-2992
-4224

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) * - 17 + - col2 * + col1 >= col0 + + col1 / + 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 * 33 ) NOT IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9873
SELECT CAST( - COUNT( * ) AS SIGNED ) DIV COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9873
SELECT CAST ( - COUNT ( * ) AS INTEGER ) / COUNT ( * ) AS col2 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT 55 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT CAST( NULL AS SIGNED ) * - col1 FROM tab2 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT CAST ( NULL AS INTEGER ) * - col1 FROM tab2 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 / - 13 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT col1 DIV - 57 * 81 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9877
SELECT col1 / - 57 * 81 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT 24 + COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-9878
SELECT 24 + COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
27

query I rowsort
SELECT - + col0 * - 57 + 18 * col2 FROM tab0 AS cor0
----
1701
5139
7311

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT - col1 DIV - col2 + col1 FROM tab0 AS cor0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-9880
SELECT - col1 / - col2 + col1 FROM tab0 AS cor0
----
1
23
82

query I rowsort
SELECT ALL - - 9 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT SUM( DISTINCT - + col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9882
SELECT SUM ( DISTINCT - + col0 ) AS col1 FROM tab2
----
-185

query I rowsort
SELECT + - 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT + COUNT( * ) + 98 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
107

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9884
SELECT + COUNT ( * ) + 98 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
107

query I rowsort
SELECT 13 * 9 FROM tab2
----
117
117
117

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - 68 ) OR NOT - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT 68 NOT BETWEEN NULL AND ( ( - 19 ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 69 - + 49 + + ( 16 ) ) BETWEEN col2 AND 36 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 30 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 18 + + + 75 ) >= col2 / ( col0 / col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 54 * col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + 55 * ( + col0 ) <> ( 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1, - 88 FROM tab2 AS cor0
----
51
-88
67
-88
77
-88

query I rowsort
SELECT DISTINCT + - 47 + - ( - col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-21
-24
-92

query I rowsort
SELECT col1 + col1 + - col1 AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT SUM( + 77 ) + 65 FROM tab1
----
296

skipif mysql # not compatible
query I rowsort label-9896
SELECT SUM ( + 77 ) + 65 FROM tab1
----
296

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 IS NOT NULL AND ( col2 * 98 ) <> ( + col0 ) * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 83 + col0 FROM tab2 WHERE + - 30 >= - 67 * col1 - 80
----
129
147
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9899
SELECT 49 + 65 DIV COUNT( * ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-9899
SELECT 49 + 65 / COUNT ( * ) FROM tab1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9900
SELECT 67 + - CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT 67 + - CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT col1 * + + col2 + col1 + + ( col2 ) * + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT col1 * + + col2 + col1 + + ( col2 ) * + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 19 + col0 FROM tab0
----
106
116
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9903
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - 58 + 4 col1 FROM tab2
----
113
129
139

query I rowsort
SELECT ALL 6 - - col0 FROM tab1
----
57
91
97

query I rowsort
SELECT DISTINCT col0 - 84 * - - 43 AS col1 FROM tab1
----
-3521
-3527
-3561

query III rowsort
SELECT * FROM tab0 WHERE ( + ( col2 ) ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT - COUNT( - - col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9908
SELECT - COUNT ( - - col2 ) AS col1 FROM tab1
----
-3

query II rowsort
SELECT ALL + 38 - - 69, 18 AS col1 FROM tab1
----
107
18
107
18
107
18

query I rowsort
SELECT DISTINCT 91 - ( col0 ) + - col2 * - col0 FROM tab0
----
781
874
9597

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9911
SELECT ALL * FROM tab0 WHERE + - CAST( - - 89 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9911
SELECT ALL * FROM tab0 WHERE + - CAST ( - - 89 AS INTEGER ) IS NULL
----

query I rowsort
SELECT 26 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
26
26
26

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE - 36 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= ( - 44 + - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( col0 ) AND ( NULL )
----

query I rowsort
SELECT col2 * 33 FROM tab2
----
1320
1914
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9917
SELECT DISTINCT + col2 * + col2 FROM tab2 AS cor0 WHERE 15 NOT IN ( - - 13 * - CAST( col0 AS SIGNED ) )
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT + col2 * + col2 FROM tab2 AS cor0 WHERE 15 NOT IN ( - - 13 * - CAST ( col0 AS INTEGER ) )
----
1600
3364
529

query I rowsort
SELECT col1 + - + ( + 93 ) AS col0 FROM tab1 AS cor0
----
-46
-79
-88

query I rowsort
SELECT + + 78 + 34 FROM tab0 AS cor0
----
112
112
112

query I rowsort
SELECT + col0 * + col2 * - + 0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 76 * + ( - col0 ) AS col0 FROM tab1
----
-3876
-6460
-6916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9922
SELECT DISTINCT - CAST( ( - 44 ) AS SIGNED ) AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT - CAST ( ( - 44 ) AS INTEGER ) AS col1 FROM tab1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9923
SELECT 96 DIV - COUNT( * ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-9923
SELECT 96 / - COUNT ( * ) FROM tab0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - 68 ), + 32 col1 FROM tab0
----
-68
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT DISTINCT col0 DIV + - col0 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT col0 / + - col0 AS col0 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - 80 FROM tab1 cor0
----
-80

query II rowsort
SELECT DISTINCT - 60, + col0 AS col2 FROM tab1 AS cor0
----
-60
51
-60
85
-60
91

onlyif mysql # DIV for integer division: 
query II rowsort label-9928
SELECT + col0 AS col0, 15 DIV + + col0 FROM tab0 AS cor0
----
15
1
87
0
97
0

skipif mysql # not compatible
query II rowsort label-9928
SELECT + col0 AS col0, 15 / + + col0 FROM tab0 AS cor0
----
15
1
87
0
97
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9929
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN + 94 + - - 81 + - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9929
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN + 94 + - - 81 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT - 33 + - - COUNT( * ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9930
SELECT - 33 + - - COUNT ( * ) FROM tab1 AS cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col0 ) * + 13 - col0 + + 14 col1 FROM tab1 AS cor0 WHERE NOT col2 * - + col2 > NULL
----

query I rowsort
SELECT 33 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * - + 72 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * - + 72 FROM tab2
----
219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9934
SELECT + COUNT( * ) DIV 96 + - - MAX( - - 5 ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-9934
SELECT + COUNT ( * ) / 96 + - - MAX ( - - 5 ) FROM tab0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 89 col0 FROM tab1 AS cor0
----
-89

query II rowsort
SELECT - + col1 * + col2 AS col0, col2 FROM tab2 AS cor0
----
-1173
23
-3080
40
-3886
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9937
SELECT + 65 / - CAST( NULL AS SIGNED ) + 48 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT + 65 / - CAST ( NULL AS INTEGER ) + 48 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * - 0 * + 91 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - col2 + 72 - + col0 FROM tab0 cor0 WHERE ( ( - col2 ) < ( NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 85 ) * - col1 col1 FROM tab1 AS cor0
----
-1190
-3995
-425

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 ) NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + - col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 ) IN ( + col1 )
----

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab0 WHERE NOT 39 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL COUNT( DISTINCT 60 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL COUNT ( DISTINCT 60 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT ( + 68 ) FROM tab0 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9947
SELECT COUNT( * ), + COUNT( * ) * - MIN( ALL - - col0 ) col2 FROM tab2 AS cor0
----
3
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9947
SELECT COUNT ( * ), + COUNT ( * ) * - MIN ( ALL - - col0 ) col2 FROM tab2 AS cor0
----
3
-138

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + col2 <> ( - + col2 )
----

query I rowsort
SELECT DISTINCT + 80 FROM tab2, tab0 cor0
----
80

query I rowsort
SELECT ALL + 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT - - ( - 46 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL + + COUNT( * ) * - 87 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL + + COUNT ( * ) * - 87 FROM tab1 AS cor0
----
-261

query I rowsort
SELECT ALL - - col0 * + 21 * - col2 + + 76 * + col0 FROM tab1 AS cor0
----
-123032
-98855
-98940

onlyif mysql # DIV for integer division: 
query I rowsort label-9954
SELECT - 60 DIV col0 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
0
188

skipif mysql # not compatible
query I rowsort label-9954
SELECT - 60 / col0 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
0
188

query I rowsort
SELECT ( 20 ) FROM tab2 AS cor0
----
20
20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9956
SELECT ALL + col1 + + + col0 + + 5 DIV 73 AS col2 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL + col1 + + + col0 + + 5 / 73 AS col2 FROM tab2 AS cor0
----
141
142
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 24 * - col2 * col1 NOT BETWEEN NULL AND ( + col1 - + + col1 + - 1 * col1 * + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT DISTINCT 18 FROM tab1 AS cor0 WHERE NULL NOT IN ( - CAST( 14 AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT 18 FROM tab1 AS cor0 WHERE NULL NOT IN ( - CAST ( 14 AS INTEGER ) * - col1 )
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9960
SELECT ALL + COUNT( * ) DIV + + 62 DIV COUNT( * ) + COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL + COUNT ( * ) / + + 62 / COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL - col2 * + - 84 * - ( - col0 ) FROM tab0 WHERE NULL NOT IN ( - col2, - ( + 78 ) * col2 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + + col0 - - - col1 col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT + col1 + 76 * - CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
-3862
-6455
-6869

skipif mysql # not compatible
query I rowsort label-9964
SELECT + col1 + 76 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
-3862
-6455
-6869

query II rowsort
SELECT + col0 * col2 * - col1 + col2 + - 46 * - + 37 - + ( + col0 ), col0 AS col1 FROM tab1 cor0
----
-23399
85
-289157
91
-66797
51

query I rowsort
SELECT DISTINCT + 17 * - 98 + - col0 * 96 FROM tab0 AS cor0
----
-10018
-10978
-3106

query I rowsort
SELECT DISTINCT - col0 + 53 FROM tab0 AS cor0 WHERE NOT ( col1 * + 97 NOT BETWEEN col1 + + + col1 * + - 16 AND + col1 )
----

query I rowsort
SELECT DISTINCT + 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
97

query I rowsort
SELECT 22 - - col0 * + - col0 AS col1 FROM tab2 cor0
----
-2094
-4074
-5603

query I rowsort
SELECT ALL - 76 * 46 FROM tab2 AS cor0
----
-3496
-3496
-3496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT + CAST( - - col2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-9971
SELECT + CAST ( - - col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 53 IS NOT NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT + 19 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL ( - + COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL ( - + COUNT ( * ) ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9976
SELECT - CAST( + col0 AS SIGNED ) AS col0, - col0 col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9976
SELECT - CAST ( + col0 AS INTEGER ) AS col0, - col0 col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT DISTINCT + 42 * col0 AS col2 FROM tab0
----
3654
4074
630

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 48 IS NULL
----

query I rowsort
SELECT - col2 * + - col1 + + - 18 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT + MAX( col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9980
SELECT + MAX ( col2 ) AS col2 FROM tab2
----
58

query I rowsort
SELECT col1 * + 76 * - 68 AS col1 FROM tab1
----
-242896
-25840
-72352

query I rowsort
SELECT 51 * - col1 FROM tab0 WHERE NOT - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT COUNT( * ) * - 11 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-9983
SELECT COUNT ( * ) * - 11 FROM tab2
----
-33

query I rowsort
SELECT ALL + ( - 47 ) AS col0 FROM tab1
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 53 col0 FROM tab0 AS cor0
----
53

query I rowsort
SELECT + col2 + + + col1 + col2 FROM tab2 AS cor0
----
157
183
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + + col1 * 51 NOT BETWEEN - 37 + ( 74 ) + - 6 - - col0 * + 81 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + col1 * + col0 + col0 * col1 FROM tab1 AS cor0
----
1428
850
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT DISTINCT - - ( + - 55 ) + MIN( ALL + + 95 ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT - - ( + - 55 ) + MIN ( ALL + + 95 ) FROM tab0 AS cor0
----
40

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( ( - 52 ) ) IS NULL
----

query I rowsort
SELECT ALL + col1 + + 24 * - + 53 AS col2 FROM tab2
----
-1195
-1205
-1221

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT DISTINCT 31 + MIN( + col0 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT 31 + MIN ( + col0 ) AS col1 FROM tab2
----
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + 89
----

query I rowsort
SELECT DISTINCT 29 * + ( - col1 ) + ( - 5 ) FROM tab1
----
-1368
-150
-411

query I rowsort
SELECT ALL + col1 * + col0 * + 39 AS col2 FROM tab0 AS cor0
----
3783
47385
71253

query I rowsort
SELECT ALL 23 + 36 AS col1 FROM tab2
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + col2 col1, - col2 * + + 68 + + col0 * + - 38 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - col0 * - + col1 FROM tab2 AS cor0
----
2346
4928
5025

