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 - 23 + - col0 AS col1 FROM tab0
----
-110
-120
-38

query I rowsort
SELECT ALL ( 8 ) AS col0 FROM tab0 AS cor0
----
8
8
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= + 62 + col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4
SELECT CAST( + ( 66 ) AS SIGNED ) - 43 FROM tab2 AS cor0 WHERE 46 IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-4
SELECT CAST ( + ( 66 ) AS INTEGER ) - 43 FROM tab2 AS cor0 WHERE 46 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT MAX( ( 33 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
33

skipif mysql # not compatible
query I rowsort label-5
SELECT MAX ( ( 33 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
33

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( 23 + col0 * + col2 )
----

query I rowsort
SELECT - col0 - + col0 AS col2 FROM tab0 cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8
SELECT ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT - col1 * 94 - - CAST( NULL AS SIGNED ) NOT BETWEEN ( col0 ) AND + 86
----
0

skipif mysql # not compatible
query I rowsort label-8
SELECT ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT - col1 * 94 - - CAST ( NULL AS INTEGER ) NOT BETWEEN ( col0 ) AND + 86
----
0

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-13
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 ) <= + col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-13
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 ) <= + col0 * CAST ( NULL AS INTEGER )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT ALL + + MIN( - 54 ) * + 17 AS col1 FROM tab2 AS cor0
----
-918

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL + + MIN ( - 54 ) * + 17 AS col1 FROM tab2 AS cor0
----
-918

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 99 = + ( - 9 ) + - ( - 3 ) / + col0
----

query I rowsort
SELECT - 28 AS col1 FROM tab0
----
-28
-28
-28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT + SUM( 10 ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-19
SELECT + SUM ( 10 ) FROM tab1
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col1 FROM tab0 WHERE NOT NULL <> NULL
----

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

query I rowsort
SELECT - col0 + - col2 AS col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN 42 AND ( col0 ) * + 23 + - 2 * - col2
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-25
SELECT + ( - COUNT( col0 ) ) DIV 99 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-25
SELECT + ( - COUNT ( col0 ) ) / 99 FROM tab1
----
0

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

query I rowsort
SELECT ALL - ( + 62 ) * col0 AS col2 FROM tab0 AS cor0
----
-5394
-6014
-930

query I rowsort
SELECT DISTINCT - - col1 * 62 FROM tab2 AS cor0
----
3162
4154
4774

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT + MIN( DISTINCT - 73 ) FROM tab1 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-29
SELECT + MIN ( DISTINCT - 73 ) FROM tab1 cor0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-30
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col1 + - 27 >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col1 + - 27 >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 93 + - 55 )
----

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

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

query I rowsort
SELECT ALL + 59 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-34
SELECT ALL 29 + ( CAST( NULL AS SIGNED ) ) * - 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - ( + 91 ) + - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL 29 + ( CAST ( NULL AS INTEGER ) ) * - 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - ( + 91 ) + - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT 17 + COUNT( * ) AS col1 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-35
SELECT 17 + COUNT ( * ) AS col1 FROM tab2
----
20

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 29 NOT BETWEEN col1 * 21 AND ( + col0 )
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE col1 * col2 IS NOT NULL
----
51
85
91

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

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT MAX ( + col0 ) * + ( COUNT ( * ) ) * 79 AS col1 FROM tab0 AS cor0
----
22989

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-39
SELECT ALL 93 AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
93
NULL
93
NULL
93
NULL

skipif mysql # not compatible
query II rowsort label-39
SELECT ALL 93 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
93
NULL
93
NULL
93
NULL

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

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

query I rowsort
SELECT + + col2 * ( - 56 ) - - col1 * + 88 FROM tab0 AS cor0
----
-5456
1288
4496

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

query I rowsort
SELECT DISTINCT ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-45
SELECT ALL 49 DIV + COUNT( * ) FROM tab2 AS cor0
----
16

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

query I rowsort
SELECT ALL - col1 * + col2 + - 59 + 45 FROM tab1 cor0
----
-1358
-309
-3210

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT + COUNT( DISTINCT + ( col1 ) ) + + 75 AS col2 FROM tab2 cor0 WHERE 46 + + + 91 IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-52
SELECT + COUNT ( DISTINCT + ( col1 ) ) + + 75 AS col2 FROM tab2 cor0 WHERE 46 + + + 91 IS NULL
----
75

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

query I rowsort
SELECT DISTINCT col0 + + - 85 * 15 * + 71 FROM tab0
----
-90428
-90438
-90510

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) <> col2 * - 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 col1 FROM tab1 WHERE - 34 + + - col1 NOT IN ( + col1 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT + MAX( DISTINCT - 13 ) + - - COUNT( * ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-57
SELECT + MAX ( DISTINCT - 13 ) + - - COUNT ( * ) FROM tab2
----
-10

query III rowsort
SELECT * FROM tab2 WHERE ( col1 * + 39 ) <> ( NULL )
----

query I rowsort
SELECT + col2 + + col0 + + 3 FROM tab1
----
147
150
162

query I rowsort
SELECT DISTINCT - + 6 - - + col1 FROM tab1 AS cor0
----
-1
41
8

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT + col0 + col2 FROM tab0 WHERE NOT NULL <> - 15 / + 81 * col0
----

query I rowsort
SELECT DISTINCT + col0 * - 7 FROM tab1 WHERE NOT ( + + 50 + col2 ) IS NOT NULL
----

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

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

query I rowsort
SELECT + - 98 AS col0 FROM tab0 AS cor0 WHERE NOT 78 / col1 IS NULL
----
-98
-98
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-70
SELECT - - CAST( + COUNT( ALL + col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-70
SELECT - - CAST ( + COUNT ( ALL + col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-73
SELECT ALL col0 * + CAST( 36 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL col0 * + CAST ( 36 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-75
SELECT DISTINCT + COUNT( * ) AS col2, AVG ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-75
SELECT DISTINCT + COUNT ( * ) AS col2, AVG ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 + - 66 col1 FROM tab1
----
-116
-116
-116

query I rowsort
SELECT col2 + - col2 * - + col2 + col2 FROM tab0
----
120
2303
9999

query II rowsort
SELECT ALL col2, col2 + + col0 - - col1 FROM tab1
----
59
149
68
206
96
161

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

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT col2 >= + - col0 + - col2
----

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

query I rowsort
SELECT + 57 AS col1 FROM tab0 cor0 WHERE NULL >= 75 / - + 74 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT ALL + ( + - MAX( col1 ) ) + COUNT( * ) AS col2 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL + ( + - MAX ( col1 ) ) + COUNT ( * ) AS col2 FROM tab2
----
-74

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

query I rowsort
SELECT col0 * + - 91 + - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-4232
-5888
-6900

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - - col0 col2 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT ALL - ( - COUNT( DISTINCT - - col2 ) ) * COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL - ( - COUNT ( DISTINCT - - col2 ) ) * COUNT ( * ) FROM tab2 cor0
----
9

query I rowsort
SELECT 75 * col2 FROM tab0
----
3525
7425
750

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT MIN( + 40 ) AS col2 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-90
SELECT MIN ( + 40 ) AS col2 FROM tab1
----
40

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 38 + + 8 >= + col1 - + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-93
SELECT + CAST( - + col2 AS SIGNED ) * + 74 + + + 98 col1, 66 AS col0 FROM tab2
----
-1604
66
-2862
66
-4194
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-93
SELECT + CAST ( - + col2 AS INTEGER ) * + 74 + + + 98 col1, 66 AS col0 FROM tab2
----
-1604
66
-2862
66
-4194
66

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

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

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

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL 99 * col0 + + + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-96
SELECT COUNT ( 5 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col2 * - + col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

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

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

query I rowsort
SELECT DISTINCT + + 53 FROM tab2 cor0
----
53

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-101
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-101
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----

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

query I rowsort
SELECT + 94 * col2 * - col1 AS col2 FROM tab2
----
-110262
-289520
-365284

query II rowsort
SELECT + 96 * - col1 AS col1, + 19 AS col2 FROM tab0 AS cor0
----
-2016
19
-7776
19
-96
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-105
SELECT - + ( + CAST( NULL AS SIGNED ) ) AS col0, 39 FROM tab1 AS cor0
----
NULL
39
NULL
39
NULL
39

skipif mysql # not compatible
query II rowsort label-105
SELECT - + ( + CAST ( NULL AS INTEGER ) ) AS col0, 39 FROM tab1 AS cor0
----
NULL
39
NULL
39
NULL
39

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

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

query I rowsort
SELECT ALL - col1 * + - 8 * + col1 AS col2 FROM tab1 AS cor0
----
1568
17672
200

query I rowsort
SELECT DISTINCT + + 58 + col1 FROM tab0 AS cor0
----
139
59
79

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

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

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

query II rowsort
SELECT ALL col2 * + col2 AS col0, + ( + - col0 ) FROM tab1 cor0
----
3481
-85
4624
-91
9216
-51

query II rowsort
SELECT - ( - 88 ) AS col0, col1 * - - col2 + + col2 + col1 + + ( - 75 ) * + 76 FROM tab2 cor0
----
88
-1689
88
-2503
88
-4453

onlyif mysql # DIV for integer division: 
query I rowsort label-113
SELECT DISTINCT + col1 DIV + 91 * - - col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT + col1 / + 91 * - - col2 FROM tab0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL SUM( DISTINCT - 47 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL SUM ( DISTINCT - 47 ) FROM tab1
----
-47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-118
SELECT 22 DIV - - 44 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-118
SELECT 22 / - - 44 FROM tab1
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT - - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT DISTINCT + 56 * + - MIN( - col1 ) FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN - + col1 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT + 56 * + - MIN ( - col1 ) FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN - + col1 AND ( NULL )
----
NULL

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

query I rowsort
SELECT DISTINCT + 47 AS col2 FROM tab0
----
47

query I rowsort
SELECT + 54 + - 5 FROM tab2
----
49
49
49

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

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL - col0 / - - col2 FROM tab0
----
-8
0
0

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

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

query II rowsort
SELECT 93 * col1 AS col2, col2 FROM tab2
----
4743
23
6231
58
7161
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-130
SELECT + COUNT( * ) DIV 39 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-130
SELECT + COUNT ( * ) / 39 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - - 83
----

query I rowsort
SELECT DISTINCT 32 * 5 FROM tab1 cor0
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT ALL - 4 DIV + col2 * + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL - 4 / + col2 * + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + 94 AS col1 FROM tab0
----
-1410
-8178
-9118

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-135
SELECT + MIN ( ALL - col2 ) col2 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-136
SELECT ALL - CAST( NULL AS SIGNED ) * - 13 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL - CAST ( NULL AS INTEGER ) * - 13 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-137
SELECT CAST( NULL AS SIGNED ) / - + ( + + col1 ) AS col2, + col1 * 60 FROM tab2
----
NULL
3060
NULL
4020
NULL
4620

skipif mysql # not compatible
query II rowsort label-137
SELECT CAST ( NULL AS INTEGER ) / - + ( + + col1 ) AS col2, + col1 * 60 FROM tab2
----
NULL
3060
NULL
4020
NULL
4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-138
SELECT - MIN( DISTINCT - 45 ) + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0, - 5 + + + 2 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-138
SELECT - MIN ( DISTINCT - 45 ) + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0, - 5 + + + 2 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-140
SELECT - ( + CAST( col0 AS SIGNED ) ) * + col1 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-140
SELECT - ( + CAST ( col0 AS INTEGER ) ) * + col1 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query II rowsort
SELECT ALL - col1 AS col0, 77 - + col0 * - + col1 AS col1 FROM tab1 AS cor0
----
-14
791
-47
4354
-5
502

onlyif mysql # aggregate syntax: 
query II rowsort label-142
SELECT ALL - COUNT( * ), + COUNT( * ) * - COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 cor0
----
-3
-6

skipif mysql # not compatible
query II rowsort label-142
SELECT ALL - COUNT ( * ), + COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 cor0
----
-3
-6

query I rowsort
SELECT DISTINCT + col0 * + - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + 59 * + - col2 FROM tab0 AS cor0
----
-2773
-5841
-590

query I rowsort
SELECT ALL + 29 * - - col1 AS col1 FROM tab2 AS cor0
----
1479
1943
2233

query I rowsort
SELECT - - 90 + - col1 + + - ( ( + + col0 ) ) AS col1 FROM tab2 AS cor0
----
-51
-52
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-147
SELECT ALL + CAST( NULL AS SIGNED ) / + 1 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL + CAST ( NULL AS INTEGER ) / + 1 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col1 * + 26 + col2 FROM tab2
----
128168
130708
61019

query I rowsort
SELECT DISTINCT - col0 + + col1 * - col2 FROM tab1
----
-1395
-3287
-380

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT 66 * - + COUNT( * ) + + 11 FROM tab0
----
-187

skipif mysql # not compatible
query I rowsort label-152
SELECT 66 * - + COUNT ( * ) + + 11 FROM tab0
----
-187

query I rowsort
SELECT DISTINCT 57 * 50 FROM tab0
----
2850

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT + SUM( DISTINCT + 27 ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-155
SELECT + SUM ( DISTINCT + 27 ) FROM tab1 AS cor0
----
27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT + 95 DIV col2 - + + col0 + col0 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-157
SELECT + 95 / col2 - + + col0 + col0 FROM tab2
----
1
2
4

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 * + col0 + + 31 BETWEEN ( - col0 ) AND ( 83 )
----

query I rowsort
SELECT ALL - 37 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-37
-37
-37

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

skipif mysql # not compatible
query III rowsort label-161
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IN ( - col1 / - col0 + col1 + col2, ( - 34 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 90 col0 FROM tab1 AS cor0
----
104
137
95

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * + + 19 * - col2 * + col1 <= - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - 87 col2 FROM tab0 AS cor0
----
1827
7047
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT - SUM( DISTINCT + ( + + col1 ) ) * - 56 FROM tab0
----
5768

skipif mysql # not compatible
query I rowsort label-167
SELECT - SUM ( DISTINCT + ( + + col1 ) ) * - 56 FROM tab0
----
5768

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT COUNT( * ) * - 28 AS col2 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-168
SELECT COUNT ( * ) * - 28 AS col2 FROM tab2
----
-84

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - + 38 ) AS col2 FROM tab1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT - COUNT( * ), - 20 col0 FROM tab0
----
-3
-20

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

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

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

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

query I rowsort
SELECT ALL + col2 * col1 * - col1 AS col0 FROM tab2
----
-237160
-260362
-59823

query II rowsort
SELECT - 2 + + + col0 AS col0, col1 AS col1 FROM tab1
----
49
14
83
5
89
47

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

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

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

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

query I rowsort
SELECT ALL + ( - col2 ) * - + 5 * + 76 FROM tab0 AS cor0
----
17860
37620
3800

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 32 + 7 NOT IN ( + - 69 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT + - COUNT( * ) * - - 55 + COUNT( DISTINCT 11 ) col1 FROM tab0 AS cor0
----
-164

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-185
SELECT + - COUNT ( * ) * - - 55 + COUNT ( DISTINCT 11 ) col1 FROM tab0 AS cor0
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT - 46 * - - COUNT( * ) * - - COUNT( * ) * - 76 AS col0 FROM tab2 AS cor0
----
31464

skipif mysql # not compatible
query I rowsort label-186
SELECT - 46 * - - COUNT ( * ) * - - COUNT ( * ) * - 76 AS col0 FROM tab2 AS cor0
----
31464

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT ALL MAX( + 43 ) * + SUM( ALL 45 ) + 20 + + + 33 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
5858

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL MAX ( + 43 ) * + SUM ( ALL 45 ) + 20 + + + 33 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
5858

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT ALL + col2 DIV col1 * + 42 + + 98 AS col1 FROM tab1 AS cor0
----
140
350
560

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL + col2 / col1 * + 42 + + 98 AS col1 FROM tab1 AS cor0
----
140
350
560

onlyif mysql # DIV for integer division: 
query I rowsort label-189
SELECT 74 DIV 55 * col0 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-189
SELECT 74 / 55 * col0 AS col2 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-190
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE - + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE - + col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE - col0 = - col2
----
0

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - col0 = - col2
----
0

query I rowsort
SELECT + col0 FROM tab1 WHERE - + 81 BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT + - ( + col1 ) + + col2 - + - col2 * + 76 + col0 AS col2 FROM tab2 AS cor0
----
1766
3067
4474

query I rowsort
SELECT ALL - col0 + + - col1 * - ( - col1 ) + - - ( - ( + + col0 ) ) + + - 31 AS col2 FROM tab1 AS cor0
----
-226
-2422
-329

query I rowsort
SELECT + + col0 + + 3 AS col0 FROM tab2 AS cor0
----
49
67
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + 20 col1 FROM tab1 cor0
----
-27
15
6

onlyif mysql # DIV for integer division: 
query I rowsort label-197
SELECT DISTINCT col0 DIV + col2 + - + 42 * col2 FROM tab1 cor0
----
-2477
-2855
-4032

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT col0 / + col2 + - + 42 * col2 FROM tab1 cor0
----
-2477
-2855
-4032

onlyif mysql # DIV for integer division: 
query I rowsort label-198
SELECT 68 DIV col1 AS col1 FROM tab0
----
0
3
68

skipif mysql # not compatible
query I rowsort label-198
SELECT 68 / col1 AS col1 FROM tab0
----
0
3
68

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT + 73 - + - COUNT( * ) + - 38 * - + COUNT( * ) FROM tab2
----
190

skipif mysql # not compatible
query I rowsort label-199
SELECT + 73 - + - COUNT ( * ) + - 38 * - + COUNT ( * ) FROM tab2
----
190

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT ALL - 63 + 30 DIV + - 90 * + + col1 * + - col1 FROM tab0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - 63 + 30 / + - 90 * + + col1 * + - col1 FROM tab0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT col2 - + - 50 AS col2 FROM tab2 AS cor0
----
108
73
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-202
SELECT - 5 * - - 71 * - + col1 - + col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
256
NULL
28708
NULL
7445
NULL

skipif mysql # not compatible
query II rowsort label-202
SELECT - 5 * - - 71 * - + col1 - + col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
256
NULL
28708
NULL
7445
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 42 BETWEEN NULL AND col2 + + + col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - 21 * 0 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ALL - MIN( ALL + + col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL - MIN ( ALL + + col0 ) AS col2 FROM tab1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 14 + + - col0 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-209
SELECT ( + + CAST( - 21 AS SIGNED ) ) * - MAX( DISTINCT + - col0 ) AS col2 FROM tab2
----
-966

skipif mysql # not compatible
query I rowsort label-209
SELECT ( + + CAST ( - 21 AS INTEGER ) ) * - MAX ( DISTINCT + - col0 ) AS col2 FROM tab2
----
-966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-210
SELECT ALL 63 + col0 AS col1 FROM tab2 WHERE NOT - CAST( - 74 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL 63 + col0 AS col1 FROM tab2 WHERE NOT - CAST ( - 74 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 12 FROM tab0
----
-1188
-120
-564

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

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

query I rowsort
SELECT DISTINCT col0 * 80 AS col2 FROM tab0 AS cor0
----
1200
6960
7760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT CAST( 16 AS SIGNED ) FROM tab0 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-214
SELECT CAST ( 16 AS INTEGER ) FROM tab0 AS cor0
----
16
16
16

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

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT - - MIN ( col2 ) FROM tab2 AS cor0
----
23

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

query I rowsort
SELECT ALL 90 + + + 8 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # DIV for integer division: 
query I rowsort label-218
SELECT ALL + col1 + - - col2 DIV + col0 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL + col1 + - - col2 / + col0 AS col0 FROM tab2
----
51
67
77

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE 62 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 * - - col0 col1 FROM tab1 AS cor0
----
1632
2720
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT - SUM( DISTINCT - 71 ) col2 FROM tab1 AS cor0 WHERE - 75 * 40 - col0 + + ( + 6 ) IS NOT NULL
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-223
SELECT - SUM ( DISTINCT - 71 ) col2 FROM tab1 AS cor0 WHERE - 75 * 40 - col0 + + ( + 6 ) IS NOT NULL
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT + 90 + + COUNT( * ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-224
SELECT + 90 + + COUNT ( * ) FROM tab2 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab0 WHERE - 85 + + + col1 > ( ( + + col1 ) * - col1 + - 47 - - col1 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT ALL COUNT( DISTINCT + 10 ) col1 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-226
SELECT ALL COUNT ( DISTINCT + 10 ) col1 FROM tab1
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-228
SELECT - col1 / - ( + CAST( NULL AS SIGNED ) ) + 44 + + col1 * + - ( + + col0 ) * col2 * 88 + + 28 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-228
SELECT - col1 / - ( + CAST ( NULL AS INTEGER ) ) + 44 + + col1 * + - ( + + col0 ) * col2 * 88 + + 28 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 - + ( - col2 ) * 64 + 46 col1 FROM tab1
----
-1193
-1790
1294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-230
SELECT ALL + 71 DIV + - COUNT( * ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL + 71 / + - COUNT ( * ) FROM tab0
----
-23

query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 * + + 26
----

query I rowsort
SELECT ALL col2 * col0 - - + col0 + + col0 - - col2 + + col0 * col1 - 4 + + 52 * col0 AS col2 FROM tab0
----
15033
2773
7401

query I rowsort
SELECT + ( - 18 ) / - ( + col0 ) + col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 16
----

query I rowsort
SELECT - 65 - col1 + - + col0 * + - 19 AS col2 FROM tab0 AS cor0
----
139
1567
1777

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-235
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col0 - + + col2 IN ( 22, - 78 * + col2 * - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ), - - 35 + + 86 * + ( - col2 ) / - col0 - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-235
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col0 - + + col2 IN ( 22, - 78 * + col2 * - CAST ( CAST ( NULL AS REAL ) AS INTEGER ), - - 35 + + 86 * + ( - col2 ) / - col0 - col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-236
SELECT + col2 DIV + 43 - + col0 col2 FROM tab0 AS cor0
----
-14
-87
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-236
SELECT + col2 / + 43 - + col0 col2 FROM tab0 AS cor0
----
-14
-87
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-237
SELECT ALL + 39 DIV + COUNT( * ) AS col2 FROM tab1 cor0
----
13

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL + 39 / + COUNT ( * ) AS col2 FROM tab1 cor0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-238
SELECT DISTINCT MAX( ALL 35 ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT MAX ( ALL 35 ) / - - COUNT ( * ) FROM tab0 AS cor0
----
11

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

query I rowsort
SELECT ALL - + 1 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT + - 34, col0 AS col2 FROM tab0 AS cor0
----
-34
15
-34
87
-34
97

query II rowsort
SELECT DISTINCT - 24, 85 * + 23 AS col0 FROM tab2 AS cor0
----
-24
1955

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + - 9 / - - col0 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT - 50 * - + 97 AS col1 FROM tab2
----
4850
4850
4850

onlyif mysql # DIV for integer division: 
query I rowsort label-248
SELECT 24 DIV - 4 FROM tab0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-248
SELECT 24 / - 4 FROM tab0
----
-6
-6
-6

query I rowsort
SELECT ALL + ( - col1 ) * + - col1 FROM tab2
----
2601
4489
5929

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

query II rowsort
SELECT - ( - + col1 ), col1 AS col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT + col1 * col1 DIV - - 8 FROM tab2 AS cor0
----
325
561
741

skipif mysql # not compatible
query I rowsort label-252
SELECT + col1 * col1 / - - 8 FROM tab2 AS cor0
----
325
561
741

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT 19 + - + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-253
SELECT 19 + - + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
16

query I rowsort
SELECT ALL + - 76 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

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

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE - 0 IS NOT NULL
----
59
68
96

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 - + 97 AS col2 FROM tab2
----
-120
-137
-155

query I rowsort
SELECT DISTINCT col2 * - col1 - 25 - col0 FROM tab1
----
-1420
-3312
-405

query I rowsort
SELECT + 91 * - col2 * + ( + col2 ) + + col0 FROM tab0 AS cor0
----
-201004
-891794
-9013

query I rowsort
SELECT ALL - - col0 * - + col0 * - 16 - 93 FROM tab0 AS cor0
----
121011
150451
3507

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

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

query I rowsort
SELECT + + 73 AS col0 FROM tab2 cor0
----
73
73
73

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-271
SELECT - - CAST( + MIN( DISTINCT - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-271
SELECT - - CAST ( + MIN ( DISTINCT - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-91

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

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

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

query I rowsort
SELECT + 43 * + col0 * + - 69 + col2 + + col2 FROM tab0 AS cor0 WHERE NOT col2 >= - col2 * col1
----

query I rowsort
SELECT ALL col0 * + + 0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT DISTINCT col1 DIV + 18 AS col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT col1 / + 18 AS col2 FROM tab0
----
0
1
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT - col0 * CAST( - col2 AS SIGNED ) FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-277
SELECT - col0 * CAST ( - col2 AS INTEGER ) FROM tab2
----
1058
2560
4350

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

query I rowsort
SELECT + 0 * + 37 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 * 34 AS col0 FROM tab1
----
1598
170
476

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 + 8 + + 97 + 78 * + col2 IS NOT NULL
----

query I rowsort
SELECT + 66 * - col1 FROM tab0
----
-1386
-5346
-66

query I rowsort
SELECT col1 + col0 + col0 * + 33 FROM tab2
----
1615
2253
2617

query II rowsort
SELECT + col0, 74 FROM tab1
----
51
74
85
74
91
74

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL < - 78 + + - 71 * col1 / + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * + 6 NOT BETWEEN - col1 / col1 - - - col0 + + + col2 * - 39 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 76 AS col1 FROM tab0
----
-76
-76
-76

query II rowsort
SELECT ALL - 81 + - - col0, 9 AS col0 FROM tab0
----
-66
9
16
9
6
9

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT DISTINCT 38 + - COUNT( ALL + - 65 ) + - COUNT( * ) AS col1 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT 38 + - COUNT ( ALL + - 65 ) + - COUNT ( * ) AS col1 FROM tab2
----
32

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

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

skipif mysql # not compatible
query I rowsort label-294
SELECT + 0 * + MAX ( DISTINCT + col0 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 col1 FROM tab0 AS cor0
----
38

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

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

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

query I rowsort
SELECT - - col2 + + ( - 97 ) AS col1 FROM tab0 AS cor0
----
-50
-87
2

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT - COUNT( * ) + - 53 AS col1 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-299
SELECT - COUNT ( * ) + - 53 AS col1 FROM tab1 AS cor0
----
-56

query I rowsort
SELECT + col2 + col2 + + col1 FROM tab2
----
157
183
97

query I rowsort
SELECT 32 * 44 + ( + - col2 ) AS col2 FROM tab0
----
1309
1361
1398

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT DISTINCT - SUM( ALL col1 ) * - - SUM( ALL 70 ) AS col1 FROM tab2
----
-40950

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT - SUM ( ALL col1 ) * - - SUM ( ALL 70 ) AS col1 FROM tab2
----
-40950

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT - COUNT( * ) AS col2 FROM tab0, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-304
SELECT - COUNT ( * ) AS col2 FROM tab0, tab1 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - col2 AS col2 FROM tab1
----
-14
-96
-47
-68
-5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-306
SELECT - CAST( NULL AS SIGNED ) - + col0 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-306
SELECT - CAST ( NULL AS INTEGER ) - + col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-307
SELECT ALL CAST( - 62 AS SIGNED ) + - SUM( - 69 ) AS col2 FROM tab1 cor0
----
145

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL CAST ( - 62 AS INTEGER ) + - SUM ( - 69 ) AS col2 FROM tab1 cor0
----
145

query I rowsort
SELECT DISTINCT - col0 - - 6 FROM tab0 AS cor0
----
-81
-9
-91

query I rowsort
SELECT + 5 * col0 AS col2 FROM tab0 AS cor0
----
435
485
75

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-311
SELECT ALL + 45, + COUNT( * ) AS col0 FROM tab2
----
45
3

skipif mysql # not compatible
query II rowsort label-311
SELECT ALL + 45, + COUNT ( * ) AS col0 FROM tab2
----
45
3

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * - - col0 * - 7 + + 92 + + - col0 FROM tab0 AS cor0
----
-1498
-52978
-65868

query I rowsort
SELECT ALL + col2 * + + 21 * 56 * + col2 * + - 29 AS col2 FROM tab1 AS cor0
----
-118716024
-157696896
-314302464

query I rowsort
SELECT DISTINCT + col1 * - + 95 FROM tab0 AS cor0
----
-1995
-7695
-95

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * col1 col2 FROM tab1
----
112
376
40

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ALL - 39 * - COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL - 39 * - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-321
SELECT DISTINCT + col1 + col2 + - col1 + + 27 * col2 DIV col2 * + - col1 FROM tab2
----
-1354
-1751
-2039

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT + col1 + col2 + - col1 + + 27 * col2 / col2 * + - col1 FROM tab2
----
-1354
-1751
-2039

query I rowsort
SELECT DISTINCT + 42 * - col2 AS col0 FROM tab1
----
-2478
-2856
-4032

query I rowsort
SELECT col2 * - 12 * - - col2 FROM tab1
----
-110592
-41772
-55488

query I rowsort
SELECT DISTINCT 29 * + col0 * - + col2 AS col2 FROM tab1
----
-141984
-145435
-179452

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-326
SELECT + - CAST( - col0 AS SIGNED ) + 85 FROM tab2 AS cor0
----
131
149
160

skipif mysql # not compatible
query I rowsort label-326
SELECT + - CAST ( - col0 AS INTEGER ) + 85 FROM tab2 AS cor0
----
131
149
160

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT + + MIN( ALL + + 94 ) + 64 FROM tab2 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-327
SELECT + + MIN ( ALL + + 94 ) + 64 FROM tab2 AS cor0
----
158

onlyif mysql # DIV for integer division: 
query II rowsort label-328
SELECT - col1 + + + col2 DIV col1 AS col2, 21 + + col2 + - + 83 AS col1 FROM tab2 cor0
----
-51
-39
-67
-4
-77
-22

skipif mysql # not compatible
query II rowsort label-328
SELECT - col1 + + + col2 / col1 AS col2, 21 + + col2 + - + 83 AS col1 FROM tab2 cor0
----
-51
-39
-67
-4
-77
-22

query I rowsort
SELECT ALL + col1 + + col1 AS col1 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT ALL + MIN( + col1 ) * 13 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL + MIN ( + col1 ) * 13 FROM tab1 AS cor0
----
65

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

query I rowsort
SELECT ALL + 1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT col2 + 46 * + col1 AS col0 FROM tab1
----
2230
289
740

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

skipif mysql # not compatible
query I rowsort label-334
SELECT - MAX ( ALL - + 88 ) FROM tab0
----
88

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE 33 IN ( 84, 99 )
----

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

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

query I rowsort
SELECT ALL col2 - col1 AS col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-338
SELECT + 33 * col0 DIV + ( + col2 ) AS col2 FROM tab1 cor0
----
17
44
47

skipif mysql # not compatible
query I rowsort label-338
SELECT + 33 * col0 / + ( + col2 ) AS col2 FROM tab1 cor0
----
17
44
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-340
SELECT + col1, CAST( 79 AS SIGNED ) * - 23 FROM tab2 AS cor0
----
51
-1817
67
-1817
77
-1817

skipif mysql # not compatible
query II rowsort label-340
SELECT + col1, CAST ( 79 AS INTEGER ) * - 23 FROM tab2 AS cor0
----
51
-1817
67
-1817
77
-1817

query I rowsort
SELECT + + col2 * + + 40 - - 88 + - 12 * - 25 AS col1 FROM tab2 AS cor0
----
1308
1988
2708

onlyif mysql # DIV for integer division: 
query II rowsort label-342
SELECT DISTINCT col0 AS col1, col2 DIV col2 FROM tab0 AS cor0
----
15
1
87
1
97
1

skipif mysql # not compatible
query II rowsort label-342
SELECT DISTINCT col0 AS col1, col2 / col2 FROM tab0 AS cor0
----
15
1
87
1
97
1

query II rowsort
SELECT ALL + + col1, 7 FROM tab2 AS cor0
----
51
7
67
7
77
7

query I rowsort
SELECT ALL - 59 + - col1 FROM tab1 cor0
----
-106
-64
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-345
SELECT DISTINCT - 83 + CAST( col2 AS SIGNED ) + - col0 + col0 * - + col1 AS col0 FROM tab0
----
-1266
-178
-1987

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT - 83 + CAST ( col2 AS INTEGER ) + - col0 + col0 * - + col1 AS col0 FROM tab0
----
-1266
-178
-1987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + col1 + - ( ( col2 ) ) + + 44 col0 FROM tab2
----
139
158
167

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-348
SELECT 76 * col0 DIV + col2 + col2 FROM tab0
----
173
671
71

skipif mysql # not compatible
query I rowsort label-348
SELECT 76 * col0 / + col2 + col2 FROM tab0
----
173
671
71

query II rowsort
SELECT col2 + col0, - 85 AS col2 FROM tab0
----
196
-85
62
-85
97
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT ALL COUNT( * ) - + - 41 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL COUNT ( * ) - + - 41 FROM tab0
----
44

query II rowsort
SELECT + col2 + + col2 AS col1, - col2 FROM tab1
----
118
-59
136
-68
192
-96

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT 91 FROM tab2 AS cor0 WHERE NOT 49 > NULL
----

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-356
SELECT - SUM ( DISTINCT - col1 ) col1 FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 = - - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-359
SELECT ALL + col0 FROM tab0 AS cor0 WHERE col2 = col1 * + - ( - - 96 ) - - 28 + CAST( NULL AS SIGNED ) - - 34 - - col2 * col2 * - col0 * col1
----

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL + col0 FROM tab0 AS cor0 WHERE col2 = col1 * + - ( - - 96 ) - - 28 + CAST ( NULL AS INTEGER ) - - 34 - - col2 * col2 * - col0 * col1
----

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

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

query I rowsort
SELECT ALL - 46 + - + col1 AS col1 FROM tab0 AS cor0
----
-127
-47
-67

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

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

skipif mysql # not compatible
query II rowsort label-363
SELECT + 61 + - 68 AS col0, + COUNT ( DISTINCT + + col1 ) AS col0 FROM tab0
----
-7
3

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-367
SELECT 26 + + 15 DIV - COUNT( * ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-367
SELECT 26 + + 15 / - COUNT ( * ) AS col2 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT DISTINCT - SUM( col1 ) * + + 38 FROM tab0
----
-3914

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT - SUM ( col1 ) * + + 38 FROM tab0
----
-3914

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

onlyif mysql # DIV for integer division: 
query I rowsort label-370
SELECT DISTINCT - col1 DIV + 4 FROM tab0 AS cor0
----
-20
-5
0

skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT - col1 / + 4 FROM tab0 AS cor0
----
-20
-5
0

query I rowsort
SELECT ALL + - 11 * + - 21 AS col1 FROM tab1 cor0
----
231
231
231

query I rowsort
SELECT ALL ( ( - - col1 ) ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + + 60 <= NULL )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 77 IS NOT NULL
----

query I rowsort
SELECT ALL + + ( + - ( + - col1 ) ) - - 4 FROM tab1 cor0
----
18
51
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-377
SELECT + - 11 + - CAST( - col2 AS SIGNED ) * + col2 * - col2 * - + 29 col0 FROM tab0 AS cor0
----
28138660
28989
3010856

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-377
SELECT + - 11 + - CAST ( - col2 AS INTEGER ) * + col2 * - col2 * - + 29 col0 FROM tab0 AS cor0
----
28138660
28989
3010856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-378
SELECT - col2 * - - col1 * + CAST( NULL AS SIGNED ) / - 0 + + col0 * 44 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT - col2 * - - col1 * + CAST ( NULL AS INTEGER ) / - 0 + + col0 * 44 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 16 * - col1 FROM tab2 AS cor0
----
-1072
-1232
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL + 92 - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL + 92 - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
89

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

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

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

query II rowsort
SELECT + col1, col2 * + - col1 + 66 FROM tab1
----
14
-1278
47
-3130
5
-229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-384
SELECT + COUNT( * ) DIV + SUM( DISTINCT col1 ) AS col0 FROM tab1
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, + col1 + - 93 col0 FROM tab0
----
15
-12
87
-72
97
-92

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

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

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

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

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

query I rowsort
SELECT - 41 FROM tab0 WHERE NOT - + col2 = + 96 * - ( + 0 ) - - col1
----
-41
-41
-41

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-392
SELECT COUNT( * ) DIV 82 + - 33 + MIN( col1 ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-392
SELECT COUNT ( * ) / 82 + - 33 + MIN ( col1 ) FROM tab1 AS cor0
----
-28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ALL - - COUNT( * ) + + 31 * + 95 FROM tab2 AS cor0
----
2948

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL - - COUNT ( * ) + + 31 * + 95 FROM tab2 AS cor0
----
2948

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-395
SELECT ALL + + MIN ( + col1 ) col1 FROM tab0 AS cor0
----
1

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 * - col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT ALL + SUM( DISTINCT - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL + SUM ( DISTINCT - col1 ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT - col0 + - - 86 AS col1 FROM tab0
----
-1
-11
71

onlyif mysql # aggregate syntax: 
query II rowsort label-401
SELECT ALL ( - COUNT( * ) ) + - + COUNT( * ), - 89 AS col0 FROM tab2
----
-6
-89

skipif mysql # not compatible
query II rowsort label-401
SELECT ALL ( - COUNT ( * ) ) + - + COUNT ( * ), - 89 AS col0 FROM tab2
----
-6
-89

query I rowsort
SELECT DISTINCT 51 * col2 AS col1 FROM tab1
----
3009
3468
4896

query II rowsort
SELECT ALL + 90 AS col0, + col2 FROM tab0
----
90
10
90
47
90
99

query I rowsort
SELECT col1 + + + col1 FROM tab1
----
10
28
94

query I rowsort
SELECT + 80 + - - 21 + - 19 * - col2 AS col2 FROM tab0 AS cor0
----
1982
291
994

query I rowsort
SELECT ALL col2 / - + col2 / + col0 AS col0 FROM tab2 AS cor0 WHERE NOT 39 BETWEEN - ( + + col2 ) AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 col1, + 29 FROM tab1 AS cor0
----
-51
29
-85
29
-91
29

query I rowsort
SELECT ALL col1 * + - col1 AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT + + 92 + - col2 FROM tab0 AS cor0
----
-7
45
82

query I rowsort
SELECT ALL col1 - col0 * - col2 AS col2 FROM tab2
----
1109
2637
4417

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-411
SELECT DISTINCT + COUNT ( * ) - - 47 col1 FROM tab1
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-412
SELECT + col0 - - col1 + - col1 DIV - + col1, - 80 AS col2 FROM tab1 AS cor0
----
139
-80
66
-80
91
-80

skipif mysql # not compatible
query II rowsort label-412
SELECT + col0 - - col1 + - col1 / - + col1, - 80 AS col2 FROM tab1 AS cor0
----
139
-80
66
-80
91
-80

query I rowsort
SELECT + - 68 - col1 AS col0 FROM tab0 AS cor0
----
-149
-69
-89

query I rowsort
SELECT DISTINCT - - 89 + + col1 FROM tab1 AS cor0
----
103
136
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + 5 col0 FROM tab2 AS cor0
----
-255
-335
-385

query I rowsort
SELECT DISTINCT - col0 - + + col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-417
SELECT ALL CAST( NULL AS DECIMAL ), ( - COUNT( - col2 ) ) AS col1 FROM tab1 cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-417
SELECT ALL CAST ( NULL AS REAL ), ( - COUNT ( - col2 ) ) AS col1 FROM tab1 cor0
----
NULL
-3

query I rowsort
SELECT ALL - 88 * - 76 AS col2 FROM tab2
----
6688
6688
6688

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

skipif mysql # not compatible
query I rowsort label-419
SELECT MAX ( + 73 ) AS col0 FROM tab1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT ALL - COUNT( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL - COUNT ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

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

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

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

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

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

query I rowsort
SELECT + col2 * - + col0 AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + 62 * 91 FROM tab0
----
5642
5642
5642

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-427
SELECT 26 / MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT 26 / MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 + col2 col1 FROM tab1
----
149
161
206

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-432
SELECT - col1 + + col2 AS col2, 24 - - CAST( NULL AS SIGNED ) FROM tab0
----
-11
NULL
-34
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-432
SELECT - col1 + + col2 AS col2, 24 - - CAST ( NULL AS INTEGER ) FROM tab0
----
-11
NULL
-34
NULL
98
NULL

query I rowsort
SELECT 77 + - - col2 + 82 AS col2 FROM tab0
----
169
206
258

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT DISTINCT - 95 DIV - 28 + - - 36 AS col0 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT - 95 / - 28 + - - 36 AS col0 FROM tab1
----
39

query I rowsort
SELECT DISTINCT - ( - - 3 ) + - 38 * 6 + + 10 FROM tab2
----
-221

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT DISTINCT + 37 + - COUNT( * ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT + 37 + - COUNT ( * ) FROM tab2
----
34

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + col1 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT ALL 29 * col0 + + col0 AS col1 FROM tab2
----
1380
1920
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT MAX( ALL - 99 ) + - 28 FROM tab2
----
-127

skipif mysql # not compatible
query I rowsort label-441
SELECT MAX ( ALL - 99 ) + - 28 FROM tab2
----
-127

query I rowsort
SELECT ALL - 75 - 87 AS col0 FROM tab2 AS cor0
----
-162
-162
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 * col2 AS col1, ( col0 ) + 90 + - + 33 col0 FROM tab0 AS cor0 WHERE NOT col2 = - + col0 * - - col2 * col2 + 84
----
210
144
3807
72
99
154

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

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

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

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

query I rowsort
SELECT ALL - + col2 * 55 FROM tab2 cor0
----
-1265
-2200
-3190

onlyif mysql # DIV for integer division: 
query I rowsort label-448
SELECT ALL 52 DIV + 32 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL 52 / + 32 AS col1 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-449
SELECT 68 * - CAST( - col2 AS SIGNED ) col1 FROM tab0
----
3196
6732
680

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-449
SELECT 68 * - CAST ( - col2 AS INTEGER ) col1 FROM tab0
----
3196
6732
680

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-451
SELECT + 85 DIV CAST( + - COUNT( * ) AS SIGNED ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-451
SELECT + 85 / CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0
----
-28

query I rowsort
SELECT ALL col0 * 22 AS col1 FROM tab2
----
1012
1408
1650

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

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

query I rowsort
SELECT DISTINCT + - ( - 69 ) AS col0 FROM tab0 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-455
SELECT - - 93 AS col0, COUNT( * ) FROM tab1 cor0
----
93
3

skipif mysql # not compatible
query II rowsort label-455
SELECT - - 93 AS col0, COUNT ( * ) FROM tab1 cor0
----
93
3

query I rowsort
SELECT DISTINCT 48 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
48

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT - ( - col1 ) DIV + 65 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-460
SELECT - ( - col1 ) / + 65 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + + col0 + 84 - + col2 - - col1 * - - col0 + + 94 AS col2 FROM tab2 cor0 WHERE NOT - 74 <= - col1
----
5130

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

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

query I rowsort
SELECT ALL + - 1 FROM tab0 AS cor0 WHERE col2 * + + 12 IS NOT NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-464
SELECT DISTINCT + ( - MAX( - + 21 ) ) + + 68 * + + 33 DIV + - COUNT( * ) FROM tab0 AS cor0
----
-727

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT + ( - MAX ( - + 21 ) ) + + 68 * + + 33 / + - COUNT ( * ) FROM tab0 AS cor0
----
-727

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT + COUNT( ALL - + col0 ) AS col0 FROM tab1 WHERE - 83 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-467
SELECT + COUNT ( ALL - + col0 ) AS col0 FROM tab1 WHERE - 83 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT ( - + ( + col0 ) ) + + 42 + + 12 * 51 FROM tab1
----
563
569
603

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT ALL 44 - - COUNT( * ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL 44 - - COUNT ( * ) FROM tab0
----
47

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 5 / - 28 <= col2
----
-3

skipif mysql # not compatible
query I rowsort label-472
SELECT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 5 / - 28 <= col2
----
-3

query I rowsort
SELECT - col1 + - 54 * 59 AS col1 FROM tab1 cor0 WHERE col0 * - 83 IS NOT NULL
----
-3191
-3200
-3233

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( 45 )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-476
SELECT - 47 DIV - ( - SUM( col0 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-476
SELECT - 47 / - ( - SUM ( col0 ) ) FROM tab0
----
0

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

query I rowsort
SELECT DISTINCT + col1 - - ( - col1 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT + MAX( - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-479
SELECT + MAX ( - col2 ) FROM tab1
----
-59

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

query I rowsort
SELECT ALL + 11 FROM tab1 WHERE NULL IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NULL = - 68
----

query I rowsort
SELECT DISTINCT - 1 * - 48 + + col0 / - 19 AS col0 FROM tab1 WHERE + col2 * col0 - ( col0 + col2 ) / 2 BETWEEN - 26 + col2 AND - 87 + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) * col2 - col1 BETWEEN - col1 * - col1 AND ( col1 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 - col0 FROM tab2 WHERE NOT NULL = - 74 * col2
----

query I rowsort
SELECT + 61 + + col0 FROM tab1
----
112
146
152

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 93 IN ( 63 )
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-491
SELECT DISTINCT + col0 * + CAST( - col0 AS SIGNED ) + - col1 AS col0 FROM tab1
----
-2615
-7230
-8328

skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT + col0 * + CAST ( - col0 AS INTEGER ) + - col1 AS col0 FROM tab1
----
-2615
-7230
-8328

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= 22
----

query III rowsort
SELECT * FROM tab1 WHERE - 10 * col2 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN ( 45 * + 54 ) AND - col0 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-496
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN ( 45 * + 54 ) AND - col0 * - col1
----
0

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

skipif mysql # not compatible
query I rowsort label-497
SELECT - MAX ( - col1 ) FROM tab0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT DISTINCT SUM( col1 ) AS col0 FROM tab0 WHERE NOT ( 44 ) * col1 NOT IN ( 90 - - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT SUM ( col1 ) AS col0 FROM tab0 WHERE NOT ( 44 ) * col1 NOT IN ( 90 - - col1 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT + MAX( - col2 ) + SUM( col1 ) FROM tab2
----
172

skipif mysql # not compatible
query I rowsort label-501
SELECT + MAX ( - col2 ) + SUM ( col1 ) FROM tab2
----
172

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
-10
-28
-94

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( col0 ) + - 76 ) = - 63 / ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-505
SELECT DISTINCT + CAST( col1 AS SIGNED ) DIV col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT + CAST ( col1 AS INTEGER ) / col2 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT ALL - col0 * - 20 AS col2 FROM tab2 cor0
----
1280
1500
920

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 55 + 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT ALL - COUNT( * ) * MIN( ALL + 89 ) AS col0 FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL - COUNT ( * ) * MIN ( ALL + 89 ) AS col0 FROM tab1 AS cor0
----
-267

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

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

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT 17 IS NOT NULL
----

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-513
SELECT - 61 * col0 FROM tab0 cor0 WHERE col0 + col0 IN ( 31 / - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-513
SELECT - 61 * col0 FROM tab0 cor0 WHERE col0 + col0 IN ( 31 / - CAST ( NULL AS INTEGER ) )
----

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

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

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT + 50 - - 46 >= NULL
----

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

query I rowsort
SELECT - col0 * + col0 + col1 AS col0 FROM tab0 AS cor0
----
-144
-7548
-9408

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT + 67 * - 46 + col1 DIV 74 AS col2 FROM tab2
----
-3081
-3082
-3082

skipif mysql # not compatible
query I rowsort label-522
SELECT + 67 * - 46 + col1 / 74 AS col2 FROM tab2
----
-3081
-3082
-3082

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

query I rowsort
SELECT 56 * + col2 + - col1 AS col0 FROM tab1
----
3299
3761
5362

query I rowsort
SELECT + 75 + + 56 FROM tab2
----
131
131
131

query I rowsort
SELECT ALL 33 AS col1 FROM tab0 WHERE col0 = ( NULL )
----

query I rowsort
SELECT 0 * - ( + col1 ) AS col1 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT col2 * 12 FROM tab2
----
276
480
696

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL NOT BETWEEN ( - col2 ) AND ( - col1 )
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE ( col2 / + 28 ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) * - COUNT ( ALL + col0 * - col0 ) FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL COUNT( - col0 ) FROM tab1 WHERE 91 * 30 BETWEEN NULL AND + 69
----
0

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL COUNT ( - col0 ) FROM tab1 WHERE 91 * 30 BETWEEN NULL AND + 69
----
0

query I rowsort
SELECT DISTINCT - - col1 + col0 + 45 * col0 FROM tab1 cor0
----
2360
3915
4233

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col0 col1 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT - + 69 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

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

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE + col2 < NULL
----

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

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

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

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

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

query I rowsort
SELECT + 24 FROM tab2 AS cor0 WHERE NULL = ( NULL ) OR ( - ( - 42 ) + 4 ) IS NOT NULL
----
24
24
24

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR + 10 BETWEEN ( NULL ) AND ( ( col1 ) + + col0 * + 62 )
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 15 )
----

query I rowsort
SELECT + col1 * - col1 * 97 AS col0 FROM tab0
----
-42777
-636417
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + MIN( + 13 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-552
SELECT + MIN ( + 13 ) FROM tab1
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

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

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

query I rowsort
SELECT - ( 21 ) FROM tab2 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 > NULL )
----
0

query I rowsort
SELECT DISTINCT col2 * col0 * col0 AS col1 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT + + COUNT( * ) * + 59 FROM tab2 cor0
----
177

skipif mysql # not compatible
query I rowsort label-558
SELECT + + COUNT ( * ) * + 59 FROM tab2 cor0
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-559
SELECT ALL + col0 * + - col2 + + 85 - + 11 * col2 DIV col1 FROM tab0 cor0
----
-10607
-626
-790

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL + col0 * + - col2 + + 85 - + 11 * col2 / col1 FROM tab0 cor0
----
-10607
-626
-790

query I rowsort
SELECT - 44 + - 0 AS col0 FROM tab1
----
-44
-44
-44

query I rowsort
SELECT ALL col1 + - 88 FROM tab2
----
-11
-21
-37

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

query I rowsort
SELECT + col0 * col0 + + 39 - + col0 AS col1 FROM tab1 AS cor0
----
2589
7179
8229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-564
SELECT - col1 * + col0 + 67 * - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-536
1071
231

skipif mysql # not compatible
query I rowsort label-564
SELECT - col1 * + col0 + 67 * - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-536
1071
231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 62 col2, col2 * - 52 - - 92 AS col0 FROM tab2 AS cor0
----
62
-1104
62
-1988
62
-2924

query I rowsort
SELECT ( + - 1 ) * + col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-567
SELECT DISTINCT - col0 DIV + - 11 AS col0 FROM tab2 AS cor0
----
4
5
6

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT - col0 / + - 11 AS col0 FROM tab2 AS cor0
----
4
5
6

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

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

query II rowsort
SELECT ALL - 45 * + - col2 + - + col1 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
2034
-47
429
-10
4454
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT col2 - + 26 DIV + 79 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-570
SELECT col2 - + 26 / + 79 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-571
SELECT DISTINCT col2 AS col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-571
SELECT DISTINCT col2 AS col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT ( col2 ) AS col2 FROM tab1 WHERE ( NULL ) > ( - col1 + + - 2 )
----

query I rowsort
SELECT DISTINCT col0 + + - col2 AS col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT 38 + - col2 * col0 * 37 * + col0 FROM tab0
----
-2800492
-34465129
-391237

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

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

query I rowsort
SELECT col1 FROM tab1 WHERE + 98 * - 9 * + col0 + - + col0 NOT BETWEEN ( ( col1 ) ) AND 50
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT DISTINCT 40 * + + 3 + + - 57 * COUNT( * ) + + + 27 * - + 20 FROM tab2
----
-591

skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT 40 * + + 3 + + - 57 * COUNT ( * ) + + + 27 * - + 20 FROM tab2
----
-591

query I rowsort
SELECT DISTINCT 82 + + - 1 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-579
SELECT DISTINCT - 81, COUNT( ALL - ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-81
3

skipif mysql # not compatible
query II rowsort label-579
SELECT DISTINCT - 81, COUNT ( ALL - ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-81
3

query I rowsort
SELECT + ( - + 71 ) FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL + 70 * ( - + COUNT( * ) ) AS col0 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL + 70 * ( - + COUNT ( * ) ) AS col0 FROM tab2
----
-210

query I rowsort
SELECT ALL 22 FROM tab1 AS cor0 WHERE 70 IS NOT NULL
----
22
22
22

query I rowsort
SELECT ALL - 80 * + 77 * - + 66 FROM tab1 AS cor0
----
406560
406560
406560

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

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT + + COUNT( * ) * 53 * - COUNT( * ) FROM tab1 AS cor0
----
-477

skipif mysql # not compatible
query I rowsort label-585
SELECT + + COUNT ( * ) * 53 * - COUNT ( * ) FROM tab1 AS cor0
----
-477

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

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

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

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

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

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

query I rowsort
SELECT ALL + + ( 24 ) * + + col0 + + col2 FROM tab1 WHERE NULL <= - 11
----

onlyif mysql # aggregate syntax: 
query II rowsort label-590
SELECT - 97 AS col2, - COUNT( * ) col0 FROM tab2
----
-97
-3

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

query I rowsort
SELECT - 95 + + - col0 AS col2 FROM tab1
----
-146
-180
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT DISTINCT + 34 DIV + col2 + - col2 AS col1 FROM tab0
----
-47
-7
-99

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT + 34 / + col2 + - col2 AS col1 FROM tab0
----
-47
-7
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-593
SELECT DISTINCT col1 / - + 66 + CAST( NULL AS SIGNED ) + + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT col1 / - + 66 + CAST ( NULL AS INTEGER ) + + - col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL 56 * col2 AS col0 FROM tab2
----
1288
2240
3248

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 58 / - 93 = NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 92 / + col2 + + 91 NOT IN ( + col0 + - - col2 + + 73 )
----

query I rowsort
SELECT - - col1 * + col0 - + 30 * - + 23 AS col2 FROM tab0 AS cor0
----
1905
2517
787

query I rowsort
SELECT ALL + ( col1 ) + + - col2 AS col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL - 75 + col1 + col0 AS col0 FROM tab2 AS cor0
----
22
66
67

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

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

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

query I rowsort
SELECT col2 + - 40 AS col1 FROM tab1 AS cor0
----
19
28
56

onlyif mysql # DIV for integer division: 
query II rowsort label-604
SELECT + ( + - col1 ) AS col2, 55 DIV col1 FROM tab1 cor0
----
-14
3
-47
1
-5
11

skipif mysql # not compatible
query II rowsort label-604
SELECT + ( + - col1 ) AS col2, 55 / col1 FROM tab1 cor0
----
-14
3
-47
1
-5
11

query I rowsort
SELECT 32 * + col2 + + ( ( + + col2 ) ) AS col0 FROM tab2 AS cor0
----
1320
1914
759

query I rowsort
SELECT 59 * - 63 AS col1 FROM tab0
----
-3717
-3717
-3717

query I rowsort
SELECT DISTINCT - 44 - col0 / - 84 FROM tab1 WHERE NOT col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT MAX( + - 83 ) FROM tab1 WHERE + col2 <= ( 48 * - col2 * - 39 )
----
-83

skipif mysql # not compatible
query I rowsort label-608
SELECT MAX ( + - 83 ) FROM tab1 WHERE + col2 <= ( 48 * - col2 * - 39 )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-609
SELECT col2 / - + CAST( NULL AS SIGNED ) * + 82 * 7 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-609
SELECT col2 / - + CAST ( NULL AS INTEGER ) * + 82 * 7 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - + + 27 FROM tab1
----
24
58
64

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

query III rowsort
SELECT * FROM tab0 WHERE 17 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + 32 + + + col1 * + - col2 * - col2 AS col1 FROM tab1
----
129070
17442
217407

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-615
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> + + CAST( + ( - CAST( NULL AS DECIMAL ) ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-615
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> + + CAST ( + ( - CAST ( NULL AS REAL ) ) AS INTEGER )
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-617
SELECT - COUNT ( + - 56 ) col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT + 7 * - 36 AS col2 FROM tab2 AS cor0
----
-252
-252
-252

query I rowsort
SELECT col2 * + col2 * 98 AS col0 FROM tab0
----
216482
960498
9800

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT DISTINCT COUNT( * ) + + + 86 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= NULL
----
86

skipif mysql # not compatible
query I rowsort label-620
SELECT DISTINCT COUNT ( * ) + + + 86 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= NULL
----
86

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

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

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

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

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

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

query II rowsort
SELECT ALL + + col0 * + col0 AS col1, - ( + 12 ) + - col1 AS col2 FROM tab1 AS cor0
----
2601
-26
7225
-17
8281
-59

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

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

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

query II rowsort
SELECT + col0 AS col2, 13 FROM tab1 AS cor0
----
51
13
85
13
91
13

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

onlyif mysql # aggregate syntax: 
query II rowsort label-630
SELECT ALL + COUNT( * ) AS col0, + 11 FROM tab1 AS cor0
----
3
11

skipif mysql # not compatible
query II rowsort label-630
SELECT ALL + COUNT ( * ) AS col0, + 11 FROM tab1 AS cor0
----
3
11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 31 <> col0
----

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

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

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

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

query I rowsort
SELECT - 8 FROM tab0 WHERE NOT NULL IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 <= 65
----
85
5
59
91
47
68

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

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

query I rowsort
SELECT ALL + ( - col0 ) AS col1 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - 20 * - + 47 AS col2 FROM tab1
----
940
940
940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 42 + - - col2, + col2 col2 FROM tab2 AS cor0
----
100
58
65
23
82
40

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-643
SELECT ALL - SUM( col0 ) AS col1, MIN( DISTINCT - + col2 ) - - CAST( + + COUNT( + col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-185
-55

skipif mysql # not compatible
query II rowsort label-643
SELECT ALL - SUM ( col0 ) AS col1, MIN ( DISTINCT - + col2 ) - - CAST ( + + COUNT ( + col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-185
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT ALL - 25 + 0 AS col1, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-25
3

skipif mysql # not compatible
query II rowsort label-644
SELECT ALL - 25 + 0 AS col1, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-25
3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT MAX( - 93 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-93

skipif mysql # not compatible
query I rowsort label-649
SELECT MAX ( - 93 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-93

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-652
SELECT col1 DIV - + col1 - + ( 40 ) FROM tab2 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-652
SELECT col1 / - + col1 - + ( 40 ) FROM tab2 AS cor0
----
-41
-41
-41

query II rowsort
SELECT + 72 - - ( - 58 ), + 88 AS col2 FROM tab0 AS cor0
----
14
88
14
88
14
88

query II rowsort
SELECT DISTINCT - col1, - col2 * + + col1 AS col1 FROM tab1 AS cor0
----
-14
-1344
-47
-3196
-5
-295

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT + COUNT( * ) - + 31 AS col0 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-655
SELECT + COUNT ( * ) - + 31 AS col0 FROM tab1 AS cor0
----
-28

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-657
SELECT * FROM tab1 WHERE NULL > - + col0 * + CAST( NULL AS DECIMAL ) * + col0
----

skipif mysql # not compatible
query III rowsort label-657
SELECT * FROM tab1 WHERE NULL > - + col0 * + CAST ( NULL AS REAL ) * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-658
SELECT - 12 + - + 19 AS col2, - CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
-31
51
-31
85
-31
91

skipif mysql # not compatible
query II rowsort label-658
SELECT - 12 + - + 19 AS col2, - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
-31
51
-31
85
-31
91

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT ALL - 96 DIV - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL - 96 / - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 * + + 95 FROM tab1
----
-4845
-8075
-8645

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-661
SELECT CAST( - 73 AS SIGNED ), ( - col0 ) AS col2 FROM tab0
----
-73
-15
-73
-87
-73
-97

skipif mysql # not compatible
query II rowsort label-661
SELECT CAST ( - 73 AS INTEGER ), ( - col0 ) AS col2 FROM tab0
----
-73
-15
-73
-87
-73
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-662
SELECT 69 DIV - col2 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-662
SELECT 69 / - col2 AS col2 FROM tab1
----
-1
-1
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-665
SELECT DISTINCT - MAX( - col1 ) DIV CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT - MAX ( - col1 ) / CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-17

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

skipif mysql # not compatible
query I rowsort label-666
SELECT MAX ( ALL + - ( + col0 ) ) FROM tab1 cor0
----
-51

query II rowsort
SELECT ALL col0 * - - col0 + - - 72, - 43 AS col1 FROM tab0 AS cor0
----
297
-43
7641
-43
9481
-43

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + + 71 IS NULL
----

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

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

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

query I rowsort
SELECT 59 * - 97 + + - 48 FROM tab2
----
-5771
-5771
-5771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, - 7 FROM tab2
----
-51
-7
-67
-7
-77
-7

query I rowsort
SELECT + 2 * col0 + col0 AS col0 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - + col1 ) + - + 21 AS col2 FROM tab0
----
-20
0
60

onlyif mysql # DIV for integer division: 
query I rowsort label-675
SELECT ALL col1 DIV col1 + - ( col2 ) * - 98 + - col1 AS col1 FROM tab2
----
2204
3844
5618

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL col1 / col1 + - ( col2 ) * - 98 + - col1 AS col1 FROM tab2
----
2204
3844
5618

query I rowsort
SELECT 42 + col0 FROM tab2
----
106
117
88

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-678
SELECT - COUNT ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL 16 + COUNT( * ) AS col1 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL 16 + COUNT ( * ) AS col1 FROM tab1
----
19

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-681
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) + + - col1 FROM tab0 cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT + CAST ( - + col2 AS INTEGER ) + + - col1 FROM tab0 cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT + MAX( DISTINCT - - col0 ) * + 90 FROM tab0 AS cor0
----
8730

skipif mysql # not compatible
query I rowsort label-682
SELECT + MAX ( DISTINCT - - col0 ) * + 90 FROM tab0 AS cor0
----
8730

query I rowsort
SELECT ALL - ( + - 40 ) FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT ALL + col2 * + 88 * + col2 * + col2 + col2 + 34 + + + col1 + - col2 AS col0 FROM tab1
----
18073391
27670097
77856816

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-686
SELECT ALL * FROM tab1 WHERE ( - - CAST( NULL AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-686
SELECT ALL * FROM tab1 WHERE ( - - CAST ( NULL AS INTEGER ) ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-687
SELECT * FROM tab2 AS cor0 WHERE col1 + CAST( + + col1 AS SIGNED ) + + col1 = - + 89
----

skipif mysql # not compatible
query III rowsort label-687
SELECT * FROM tab2 AS cor0 WHERE col1 + CAST ( + + col1 AS INTEGER ) + + col1 = - + 89
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 71 + - 49 IN ( 52 )
----

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT ALL - + ( - ( + COUNT( * ) ) ) * + - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL - + ( - ( + COUNT ( * ) ) ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT MAX( - ( - - 21 ) ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-692
SELECT MAX ( - ( - - 21 ) ) FROM tab2 AS cor0
----
-21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col0, - 30 * - ( ( - + 64 ) ) + + - 5 + col1, - 55, + 27 + + col0 )
----

query II rowsort
SELECT ALL + col0 * + col0, - col1 AS col2 FROM tab1 AS cor0
----
2601
-14
7225
-5
8281
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 66 + + 86 * - col2 / + + col1, ( col0 ), + + col2, 75, + 76 )
----

query I rowsort
SELECT DISTINCT 55 * - 38 AS col2 FROM tab0
----
-2090

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-698
SELECT - 21 DIV + col1 * col1, - col0 AS col2 FROM tab2
----
0
-46
0
-64
0
-75

skipif mysql # not compatible
query II rowsort label-698
SELECT - 21 / + col1 * col1, - col0 AS col2 FROM tab2
----
0
-46
0
-64
0
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-699
SELECT ALL col2 AS col0, - col1 - - col2 + ( col2 ) + CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-699
SELECT ALL col2 AS col0, - col1 - - col2 + ( col2 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

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

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

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

query I rowsort
SELECT - 67 * + ( + - col1 ) AS col0 FROM tab2
----
3417
4489
5159

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

query I rowsort
SELECT ( + - col1 ) AS col0 FROM tab2 cor0 WHERE NOT col2 + 54 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-705
SELECT - CAST( MIN( + + col1 ) AS SIGNED ) + + 95 AS col2, 49 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
94
49

skipif mysql # not compatible
query II rowsort label-705
SELECT - CAST ( MIN ( + + col1 ) AS INTEGER ) + + 95 AS col2, 49 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
94
49

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

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

query I rowsort
SELECT ALL - + 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 43 * - - 14 AS col2, col0 col2 FROM tab2 AS cor0
----
-602
46
-602
64
-602
75

query I rowsort
SELECT + col1 * + - col1 AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 30 + + 96 * - col0 * - - 19 < NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-712
SELECT DISTINCT 41 DIV + - MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT 41 / + - MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + col2 * - + col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT * FROM tab1 WHERE - - 19 * col0 * ( 26 ) * - col2 IS NULL
----

query I rowsort
SELECT ALL - col1 * 11 AS col2 FROM tab2
----
-561
-737
-847

query I rowsort
SELECT ALL - 61 * col2 * 16 + - + col0 FROM tab1
----
-57669
-66459
-93747

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

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT DISTINCT - 44 + - MAX( DISTINCT + - col0 ) col2 FROM tab0
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-718
SELECT DISTINCT - 44 + - MAX ( DISTINCT + - col0 ) col2 FROM tab0
----
-29

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

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

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

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

query I rowsort
SELECT ALL 46 + + 59 + - + 43 - 73 AS col0 FROM tab2
----
-11
-11
-11

query I rowsort
SELECT + col1 + + ( - col2 ) FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL - col0 - 66 FROM tab0 AS cor0
----
-153
-163
-81

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT - + COUNT( * ) - + + 74 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-727
SELECT - + COUNT ( * ) - + + 74 FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 34 - + + col0 * 15 * + col2 * + 33 col0 FROM tab1 AS cor0
----
-2423486
-2482391
-3063026

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 58 * + col0 >= + + col2 * + col2 * + 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query II rowsort
SELECT + 90 AS col2, ( col2 ) AS col0 FROM tab1 AS cor0
----
90
59
90
68
90
96

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 3 / - + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 col2 FROM tab0 AS cor0
----
1
441
6561

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

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL - - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-736
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 40 + ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT + CAST ( NULL AS REAL ) + 40 + ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * - col1 col1 FROM tab2
----
-119646
-336675
-379456

query I rowsort
SELECT DISTINCT + col1 * - 62 FROM tab0 AS cor0
----
-1302
-5022
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT + COUNT( + 28 ) * + MIN( - col0 ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT + COUNT ( + 28 ) * + MIN ( - col0 ) FROM tab1 AS cor0
----
-273

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

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT + MAX( ALL - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-741
SELECT + MAX ( ALL - col0 ) FROM tab2
----
-46

query I rowsort
SELECT + + col0 AS col2 FROM tab1 WHERE NOT - + col0 < + - 30
----

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

query I rowsort
SELECT + 83 * col2 AS col0 FROM tab0
----
3901
8217
830

query I rowsort
SELECT + col2 * - col0 + + col0 AS col1 FROM tab2 WHERE + col0 * - col2 = - - col0 * - + col2
----
-1012
-2496
-4275

query I rowsort
SELECT DISTINCT + 6 * - ( - 0 ) AS col0 FROM tab1
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT - 90 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-749
SELECT - 90 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-87

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-751
SELECT 93 + + col0 AS col0, - CAST( + + col2 AS SIGNED ) FROM tab2
----
139
-23
157
-40
168
-58

skipif mysql # not compatible
query II rowsort label-751
SELECT 93 + + col0 AS col0, - CAST ( + + col2 AS INTEGER ) FROM tab2
----
139
-23
157
-40
168
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 68 * - 16 + col0 + - ( + + col2 ) col0 FROM tab0
----
-107714
-10803
-51168

query I rowsort
SELECT + col2 + col0 * 82 FROM tab1
----
4278
7029
7530

query I rowsort
SELECT ( - 37 ) + + 38 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT col0 * 30 + + + 90 AS col0 FROM tab0
----
2700
3000
540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-756
SELECT DISTINCT + CAST( - ( - col1 ) AS SIGNED ) + - 32 AS col2 FROM tab2
----
19
35
45

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT + CAST ( - ( - col1 ) AS INTEGER ) + - 32 AS col2 FROM tab2
----
19
35
45

query I rowsort
SELECT ALL col2 - col1 + + col2 AS col2 FROM tab0
----
-1
13
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-758
SELECT DISTINCT + col0 + CAST( + ( + 30 ) AS SIGNED ) AS col2 FROM tab1
----
115
121
81

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT + col0 + CAST ( + ( + 30 ) AS INTEGER ) AS col2 FROM tab1
----
115
121
81

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT DISTINCT - 22 - - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT - 22 - - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT - 60 - 85 FROM tab2 AS cor0
----
-145
-145
-145

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * + 68 IS NULL OR NOT NULL > ( + + 52 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT * FROM tab0 WHERE NULL = - col1
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + + 13 FROM tab1 cor0
----
13
13
13

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

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT + MIN ( DISTINCT + + col1 ) FROM tab2
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 72 * col0 col0 FROM tab1
----
-187272
-520200
-596232

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT ALL - ( 80 ) * col2 DIV col1 * + - 70 AS col2 FROM tab2
----
2520
2870
4830

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL - ( 80 ) * col2 / col1 * + - 70 AS col2 FROM tab2
----
2520
2870
4830

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

skipif mysql # not compatible
query II rowsort label-769
SELECT ALL 90, + COUNT ( * ) AS col2 FROM tab0 cor0
----
90
3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT - 92 * - + 36 * COUNT( * ) FROM tab1 AS cor0
----
9936

skipif mysql # not compatible
query I rowsort label-774
SELECT - 92 * - + 36 * COUNT ( * ) FROM tab1 AS cor0
----
9936

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

query I rowsort
SELECT + - 0 * 36 * col2 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-778
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN ( col0 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT col0 * - col0 + + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-2139
-4136
-5683

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL + MAX( DISTINCT - 81 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL + MAX ( DISTINCT - 81 ) FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-781
SELECT ALL - + CAST( + 71 AS SIGNED ) + - col0 + + + col2 col1 FROM tab1 AS cor0
----
-26
-94
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-781
SELECT ALL - + CAST ( + 71 AS INTEGER ) + - col0 + + + col2 col1 FROM tab1 AS cor0
----
-26
-94
-97

query I rowsort
SELECT ALL col1 + - + 15 FROM tab1
----
-1
-10
32

onlyif mysql # DIV for integer division: 
query I rowsort label-783
SELECT DISTINCT - ( + col0 ) + - 84 + + + 83 DIV col0 + 82 + + + col1 AS col2 FROM tab2
----
-9
12
4

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT - ( + col0 ) + - 84 + + + 83 / col0 + 82 + + + col1 AS col2 FROM tab2
----
-9
12
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + - col1 col2 FROM tab1
----
-3
-36
6

query I rowsort
SELECT 29 + + 37 + + - col2 * - col2 + - col0 FROM tab2
----
1602
3355
549

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

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT COUNT( + ( - 20 ) ) + SUM( - + 66 ) FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-787
SELECT COUNT ( + ( - 20 ) ) + SUM ( - + 66 ) FROM tab1
----
-195

query I rowsort
SELECT DISTINCT + 94 + + - 17 AS col0 FROM tab0 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 40 NOT BETWEEN - col1 AND col1
----

query I rowsort
SELECT + 32 * - 30 AS col1 FROM tab1 AS cor0
----
-960
-960
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT ALL + 66 - col2 - - col2 DIV + - col2 AS col1 FROM tab1 AS cor0
----
-3
-31
6

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL + 66 - col2 - - col2 / + - col2 AS col1 FROM tab1 AS cor0
----
-3
-31
6

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 55 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL - 96 * + col2 * + col1 / + 27 * - col2 * - col2 FROM tab1 WHERE - ( 55 ) BETWEEN + col2 AND NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----
0

query II rowsort
SELECT + 47, + 77 * col2 * + col2 FROM tab1 AS cor0 WHERE NOT + col2 * + col2 <> - 38 * - - col0 * col0
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + + 61 ) IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT col1 * + - 84 AS col0 FROM tab1
----
-1176
-3948
-420

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

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

query I rowsort
SELECT ALL ( + - col1 ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-808
SELECT * FROM tab0 WHERE + + 57 NOT BETWEEN CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-808
SELECT * FROM tab0 WHERE + + 57 NOT BETWEEN CAST ( NULL AS INTEGER ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-809
SELECT DISTINCT - + CAST( - - 60 AS SIGNED ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT - + CAST ( - - 60 AS INTEGER ) FROM tab2 AS cor0
----
-60

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 <= + col2 * - - 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT ALL 48 - - COUNT( 92 ) - + COUNT( * ) * + COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL 48 - - COUNT ( 92 ) - + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT DISTINCT + - SUM( DISTINCT + 10 ) * - 94 AS col0 FROM tab2 AS cor0
----
940

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT + - SUM ( DISTINCT + 10 ) * - 94 AS col0 FROM tab2 AS cor0
----
940

query I rowsort
SELECT DISTINCT - col2 * + + 5 FROM tab2 AS cor0
----
-115
-200
-290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-819
SELECT + col2 * 73 * + 85 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 > + + CAST( col2 AS SIGNED )
----
366180
422031
595731

skipif mysql # not compatible
query I rowsort label-819
SELECT + col2 * 73 * + 85 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 > + + CAST ( col2 AS INTEGER )
----
366180
422031
595731

query II rowsort
SELECT + col0 * - + col1, col1 * + col0 AS col2 FROM tab2 AS cor0
----
-2346
2346
-4928
4928
-5025
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col0 col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT + col2 * - - 33 FROM tab0
----
1551
3267
330

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-823
SELECT ALL * FROM tab1 WHERE NOT NULL < + col0 * - CAST( - 67 AS SIGNED ) * - col0 + - - CAST( col2 AS SIGNED ) - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-823
SELECT ALL * FROM tab1 WHERE NOT NULL < + col0 * - CAST ( - 67 AS INTEGER ) * - col0 + - - CAST ( col2 AS INTEGER ) - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - col2 * - - col2 FROM tab1 cor0
----
-3481
-4624
-9216

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-827
SELECT DISTINCT + - col1 DIV 27 + col1 * 22 AS col2 FROM tab2 AS cor0
----
1121
1472
1692

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT + - col1 / 27 + col1 * 22 AS col2 FROM tab2 AS cor0
----
1121
1472
1692

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

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

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

query II rowsort
SELECT ALL - col2 + + col2, - col0 * - col1 * - col1 + 58 AS col0 FROM tab1
----
0
-200961
0
-2067
0
-9938

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

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

query I rowsort
SELECT DISTINCT - 6 + - - 55 FROM tab0
----
49

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT 94 * - col2 > - col1
----
-51
-67
-77

query I rowsort
SELECT DISTINCT ( - ( + ( + + 18 ) ) ) AS col2 FROM tab1
----
-18

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

query I rowsort
SELECT DISTINCT + ( - - col2 ) * + col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT + 72 + + + 90 FROM tab2 AS cor0
----
162
162
162

onlyif mysql # DIV for integer division: 
query I rowsort label-838
SELECT ALL + + col0 DIV - + col0 AS col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL + + col0 / - + col0 AS col0 FROM tab0 cor0
----
-1
-1
-1

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

query I rowsort
SELECT ALL - 60 * + + col1 + - col0 AS col1 FROM tab1
----
-2911
-385
-891

query I rowsort
SELECT ALL + col2 * col2 - + + 83 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-1670
-2344
-2579

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT - SUM( ALL + col2 ) AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-843
SELECT - SUM ( ALL + col2 ) AS col2 FROM tab2 cor0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 12 IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE + + ( 77 ) + - col1 - + 25 IS NULL
----

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

query I rowsort
SELECT + 46 + + + 58 FROM tab2
----
104
104
104

query I rowsort
SELECT - ( + col0 ) AS col1 FROM tab0 WHERE 75 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT DISTINCT col0 - - + 3 DIV 10 AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT col0 - - + 3 / 10 AS col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT ALL MAX( ALL - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL MAX ( ALL - col1 ) FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT + col1 DIV + - ( 18 ) FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-852
SELECT + col1 / + - ( 18 ) FROM tab0
----
-1
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT ALL - MIN( DISTINCT + - 74 ) AS col0 FROM tab0 cor0
----
74

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL - MIN ( DISTINCT + - 74 ) AS col0 FROM tab0 cor0
----
74

query I rowsort
SELECT ALL ( - - col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT DISTINCT + col1, + col0 * + - 37 * - + col0 + - ( + col1 ) FROM tab2 AS cor0
----
51
78241
67
208058
77
151475

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

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

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

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

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

query II rowsort
SELECT DISTINCT - 86 * - + col2, + col2 + + + 33 AS col0 FROM tab2 AS cor0
----
1978
56
3440
73
4988
91

query I rowsort
SELECT DISTINCT - - ( + 34 ) FROM tab2 AS cor0 WHERE ( - - 56 IS NULL )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL COUNT( ALL + 89 ) * + 73 AS col1 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL COUNT ( ALL + 89 ) * + 73 AS col1 FROM tab1 AS cor0
----
219

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

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

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

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

query I rowsort
SELECT DISTINCT - + 42 * - col0 AS col0 FROM tab0 AS cor0
----
3654
4074
630

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-868
SELECT DISTINCT - col2 * - col0 + - - col0 AS col2, - CAST( NULL AS SIGNED ) * + + col2 FROM tab2
----
1104
NULL
2624
NULL
4425
NULL

skipif mysql # not compatible
query II rowsort label-868
SELECT DISTINCT - col2 * - col0 + - - col0 AS col2, - CAST ( NULL AS INTEGER ) * + + col2 FROM tab2
----
1104
NULL
2624
NULL
4425
NULL

query I rowsort
SELECT ALL + 54 * + col1 + + col1 + - - col1 * + col1 AS col0 FROM tab1
----
300
4794
966

query I rowsort
SELECT 25 + + 24 AS col0 FROM tab2
----
49
49
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT + MIN( - col1 ) + - 54 AS col2 FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-872
SELECT + MIN ( - col1 ) + - 54 AS col2 FROM tab1
----
-101

query III rowsort
SELECT * FROM tab2 WHERE + col0 / + col2 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - + 91 FROM tab1
----
1274
4277
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-875
SELECT ALL COUNT( * ) + SUM( + 22 ) + - AVG ( ALL - col1 ) * - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL COUNT ( * ) + SUM ( + 22 ) + - AVG ( ALL - col1 ) * - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col0 FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-877
SELECT ALL col2 AS col1, + 29 DIV - col1 + + col1 - - 0 FROM tab1 AS cor0
----
59
0
68
47
96
12

skipif mysql # not compatible
query II rowsort label-877
SELECT ALL col2 AS col1, + 29 / - col1 + + col1 - - 0 FROM tab1 AS cor0
----
59
0
68
47
96
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-878
SELECT col1 DIV + - CAST( + col2 AS SIGNED ) * - - 69 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-878
SELECT col1 / + - CAST ( + col2 AS INTEGER ) * - - 69 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 14 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT - 12 - - col2 FROM tab0 cor0
----
-2
35
87

query I rowsort
SELECT DISTINCT ( + 96 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-882
SELECT + col2 + - + CAST( - 70 AS SIGNED ) FROM tab1 AS cor0
----
129
138
166

skipif mysql # not compatible
query I rowsort label-882
SELECT + col2 + - + CAST ( - 70 AS INTEGER ) FROM tab1 AS cor0
----
129
138
166

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

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

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

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

query I rowsort
SELECT + col0 * ( 49 ) FROM tab1 AS cor0
----
2499
4165
4459

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

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

query II rowsort
SELECT - - col0 * + col2 AS col2, col1 FROM tab2 AS cor0
----
1058
51
2560
77
4350
67

onlyif mysql # DIV for integer division: 
query I rowsort label-889
SELECT - - 0 DIV 76 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-889
SELECT - - 0 / 76 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT ALL MIN( ALL col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL MIN ( ALL col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT - col0 * + - col0 AS col0 FROM tab0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + - - 62 <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-893
SELECT + SUM ( ( + col0 ) ) FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT - 35 DIV ( + col1 ) AS col0 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-895
SELECT - 35 / ( + col1 ) AS col0 FROM tab0
----
-1
-35
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-897
SELECT ALL - col1 DIV + 67 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL - col1 / + 67 AS col2 FROM tab0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN - 16 AND + + col1
----
97
1
99

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

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

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

query II rowsort
SELECT + 20 AS col1, ( + - col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
20
1215
20
1827
20
97

onlyif mysql # aggregate syntax: 
query II rowsort label-902
SELECT - COUNT( * ) * + ( - COUNT( * ) ) AS col1, 37 FROM tab2 AS cor0
----
9
37

skipif mysql # not compatible
query II rowsort label-902
SELECT - COUNT ( * ) * + ( - COUNT ( * ) ) AS col1, 37 FROM tab2 AS cor0
----
9
37

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

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

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

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT CAST ( NULL AS REAL ) * + + MIN ( - col0 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 49 * + col1 AS col2 FROM tab0 cor0
----
1029
3969
49

query I rowsort
SELECT 22 FROM tab1 AS cor0 WHERE NOT col0 / - - 89 * - 42 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT - MIN ( col0 ) FROM tab2 AS cor0
----
-46

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-910
SELECT - + CAST( - + MIN( + + col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-910
SELECT - + CAST ( - + MIN ( + + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL MIN( DISTINCT ( - - col2 ) ) * + COUNT( * ) + COUNT( * ) + - COUNT( * ) AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL MIN ( DISTINCT ( - - col2 ) ) * + COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0
----
30

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT ALL MIN( 36 ) + + SUM( ALL col0 ) col1 FROM tab0
----
235

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-913
SELECT ALL MIN ( 36 ) + + SUM ( ALL col0 ) col1 FROM tab0
----
235

query II rowsort
SELECT ALL + col0 + - 95 AS col2, + col2 * + 61 FROM tab2
----
-20
3538
-31
2440
-49
1403

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT ALL MIN( 83 ) FROM tab2, tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-915
SELECT ALL MIN ( 83 ) FROM tab2, tab2 AS cor0
----
83

query I rowsort
SELECT + col0 FROM tab1 WHERE + col0 - 79 >= - col2
----
51
85
91

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

query I rowsort
SELECT - ( + col0 ) * + - col2 + - col1 FROM tab0
----
624
849
9602

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND + - 88 * + 66 / col2 / - col1
----

query II rowsort
SELECT col2 + - - 74 AS col0, - ( + ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
121
15
173
97
84
87

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT + col2 * - 38 * + col0 IS NULL
----
-51
-85
-91

query I rowsort
SELECT + col1 + col1 + col1 * col2 + + 34 AS col2 FROM tab0 AS cor0
----
135
286
4003

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT DISTINCT - SUM( ALL - col0 ) + 72 AS col1 FROM tab2 AS cor0
----
257

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT - SUM ( ALL - col0 ) + 72 AS col1 FROM tab2 AS cor0
----
257

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

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT 58 DIV + - col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-925
SELECT 58 / + - col2 FROM tab0
----
-1
-5
0

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

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

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

skipif mysql # not compatible
query I rowsort label-927
SELECT - MIN ( DISTINCT + + col2 ) FROM tab0
----
-10

query I rowsort
SELECT col0 * + - col0 * col2 + + col0 - + - col1 - - col2 * + - 75 FROM tab2 AS cor0
----
-166699
-330458
-50296

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

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

query I rowsort
SELECT ALL col0 - + 26 FROM tab2 AS cor0
----
20
38
49

query I rowsort
SELECT 62 AS col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT + + 21 - + col1 FROM tab1 AS cor0
----
-26
16
7

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 26 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * - + col2 * col1 - ( + col0 ) col2 FROM tab1 WHERE NOT NULL <> col1
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 69 + + - 90 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-938
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT + - 40 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # aggregate syntax: 
query II rowsort label-940
SELECT - COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-940
SELECT - COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab2
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT 31 DIV + 94 * + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-941
SELECT 31 / + 94 * + col2 AS col1 FROM tab1
----
0
0
0

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

query I rowsort
SELECT DISTINCT - ( + + 80 ) AS col2 FROM tab1 AS cor0
----
-80

query I rowsort
SELECT ALL 29 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
29
29
29

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

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

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

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL SUM ( - col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT col1 + - col2 + - col1 * + col2 * + col0 + - + ( 72 ) + col1 FROM tab2
----
-197078
-291446
-53951

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - - ( col1 ) col2 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-949
SELECT - + col2 AS col0 FROM tab0 WHERE - col0 / + - ( + col1 ) * - col0 <> - - CAST( - 53 AS SIGNED )
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-949
SELECT - + col2 AS col0 FROM tab0 WHERE - col0 / + - ( + col1 ) * - col0 <> - - CAST ( - 53 AS INTEGER )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT + SUM( + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-950
SELECT + SUM ( + col0 ) FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0, + col1 AS col1, + 55 col1 FROM tab0
----
9 values hashing to a7216f4ba846961da86835ba67f16fe6

query I rowsort
SELECT DISTINCT col0 + + 0 + - - col2 * + 60 FROM tab0
----
2835
6037
687

query I rowsort
SELECT DISTINCT col2 + - - col0 AS col0 FROM tab1
----
144
147
159

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

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

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

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

query II rowsort
SELECT + col1 - - col1 AS col1, - 75 FROM tab1 cor0
----
10
-75
28
-75
94
-75

query I rowsort
SELECT col0 + - + col0 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 IN ( - col2 - - 46, + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 48 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT ALL + 71 DIV + ( - 39 ) FROM tab2 AS cor0 WHERE 53 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL + 71 / + ( - 39 ) FROM tab2 AS cor0 WHERE 53 IS NOT NULL
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + + col1 * 74 * + col1 FROM tab1 AS cor0
----
14504
163466
1850

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - col1 AS col1 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT + 63 * - col0 * + col0 AS col1 FROM tab2
----
-133308
-258048
-354375

query II rowsort
SELECT + 88, col2 * + + col0 + + col2 + col2 AS col1 FROM tab1
----
88
5088
88
5133
88
6324

query I rowsort
SELECT ALL + 34 * + - col0 AS col0 FROM tab2
----
-1564
-2176
-2550

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

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

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

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

query I rowsort
SELECT col1 + 12 AS col2 FROM tab0 cor0 WHERE NOT 3 * + - col0 > col0 * col1 + col1 + - + col2
----
13
33
93

query I rowsort
SELECT - - col2 * - - col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT ALL - 0 * + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * 85 AS col1 FROM tab2 AS cor0
----
-3910
-5440
-6375

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( ( - col0 ) )
----

query I rowsort
SELECT 72 * - 40 AS col0 FROM tab1
----
-2880
-2880
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT 78 * MIN( ALL - col2 * - col2 ) AS col2 FROM tab2
----
41262

skipif mysql # not compatible
query I rowsort label-977
SELECT 78 * MIN ( ALL - col2 * - col2 ) AS col2 FROM tab2
----
41262

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

query I rowsort
SELECT ALL + col1 + ( 0 ) AS col0 FROM tab0
----
1
21
81

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

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

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

query I rowsort
SELECT ALL + 34 AS col2 FROM tab0 WHERE ( - ( col2 ) ) IS NOT NULL
----
34
34
34

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

query I rowsort
SELECT col1 * col0 FROM tab1 WHERE col0 IS NOT NULL
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 * + col2 ) NOT BETWEEN 91 AND - col2 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE col0 * + 92 NOT BETWEEN ( ( - col1 ) * - col2 ) AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + 55 FROM tab2
----
-1265
-2200
-3190

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT 59 DIV - col0 - - col1 AS col2 FROM tab1
----
13
47
5

skipif mysql # not compatible
query I rowsort label-993
SELECT 59 / - col0 - - col1 AS col2 FROM tab1
----
13
47
5

query I rowsort
SELECT ALL 38 * - 60 FROM tab0
----
-2280
-2280
-2280

query I rowsort
SELECT 58 FROM tab1 WHERE NOT 22 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) * 37 > NULL
----

query I rowsort
SELECT ALL 38 - + 79 FROM tab0 WHERE NOT NULL NOT IN ( 25 + + col0 )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT 86 DIV col2 AS col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-1000
SELECT 86 / col2 AS col2 FROM tab0
----
0
1
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 + - ( col1 ) * + 54 col2 FROM tab2
----
-2851
-3715
-4255

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

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

query I rowsort
SELECT DISTINCT ( 49 ) * - col1 AS col0 FROM tab1
----
-2303
-245
-686

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE + 84 BETWEEN - col1 AND col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT + MAX( DISTINCT + 92 ) * ( - ( 59 ) ) FROM tab0
----
-5428

skipif mysql # not compatible
query I rowsort label-1006
SELECT + MAX ( DISTINCT + 92 ) * ( - ( 59 ) ) FROM tab0
----
-5428

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT ALL MIN( ALL + col2 ) FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( + ( ( - ( col0 ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL MIN ( ALL + col2 ) FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( + ( ( - ( col0 ) ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1008
SELECT - CAST( - 23 AS SIGNED ) * col1 AS col0 FROM tab0
----
1863
23
483

skipif mysql # not compatible
query I rowsort label-1008
SELECT - CAST ( - 23 AS INTEGER ) * col1 AS col0 FROM tab0
----
1863
23
483

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1011
SELECT ALL + col2 FROM tab1 cor0 WHERE col2 * CAST( col1 AS SIGNED ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + col2 FROM tab1 cor0 WHERE col2 * CAST ( col1 AS INTEGER ) IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1012
SELECT + 90 DIV ( + col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-1012
SELECT + 90 / ( + col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
60
69
96

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

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

query I rowsort
SELECT + 12 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NULL > 90 * ( + 90 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1015
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2
----
NULL

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1022
SELECT DISTINCT + col1 DIV + ( + col1 * - col2 + + 25 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT + col1 / + ( + col1 * - col2 + + 25 ) FROM tab2 cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1024
SELECT DISTINCT col1 * - + col1 DIV col1 AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT col1 * - + col1 / col1 AS col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 0 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - 73 AS col0 FROM tab0
----
-1533
-5913
-73

query I rowsort
SELECT - 10 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-10
-10

query I rowsort
SELECT - 72 * + - 19 FROM tab2
----
1368
1368
1368

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT DISTINCT + 94 + + 50 DIV + 64 FROM tab0 cor0 WHERE ( ( 51 ) * + col2 - col1 ) <> ( - col2 )
----
94

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT + 94 + + 50 / + 64 FROM tab0 cor0 WHERE ( ( 51 ) * + col2 - col1 ) <> ( - col2 )
----
94

query II rowsort
SELECT col0 AS col0, 34 AS col0 FROM tab0
----
15
34
87
34
97
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1032
SELECT + 75 AS col2, - COUNT( * ) AS col0 FROM tab2
----
75
-3

skipif mysql # not compatible
query II rowsort label-1032
SELECT + 75 AS col2, - COUNT ( * ) AS col0 FROM tab2
----
75
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT - SUM( DISTINCT - 8 ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-1034
SELECT - SUM ( DISTINCT - 8 ) FROM tab2
----
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT - 25 + - 99 * + COUNT( * ) + + MIN( + 80 ) AS col1 FROM tab2 AS cor0
----
-242

skipif mysql # not compatible
query I rowsort label-1036
SELECT - 25 + - 99 * + COUNT ( * ) + + MIN ( + 80 ) AS col1 FROM tab2 AS cor0
----
-242

query I rowsort
SELECT AVG ( ALL col2 ) FROM tab0 AS cor0 WHERE ( 16 ) > NULL
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 / - 94 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( ( - + col1 ) )
----

query I rowsort
SELECT ALL 31 * + 71 AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 ) <= col0
----
2201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1042
SELECT + CAST( col1 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0 WHERE col1 * + 35 * col1 + - 47 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1042
SELECT + CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0 WHERE col1 * + 35 * col1 + - 47 IS NULL
----

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

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

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

query I rowsort
SELECT col2 + + + col1 FROM tab1 AS cor0
----
110
115
64

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( + col2 ) + + ( - + 95 ) + 9 AS col1 FROM tab2
----
-28
-46
-63

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 41 IN ( + + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 + 39 - + col2 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col1 - - + col2 FROM tab1 AS cor0
----
21
54
82

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

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

query I rowsort
SELECT - 61 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL 80 AS col0 FROM tab1 WHERE NOT ( + + 87 ) * - col1 > NULL
----

query I rowsort
SELECT col1 * - - col2 AS col2 FROM tab0
----
210
3807
99

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

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

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

query I rowsort
SELECT ALL + - col2 * + 82 FROM tab2 AS cor0
----
-1886
-3280
-4756

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( + col0 * + col0 ) BETWEEN + 35 AND + 80 * col0
----
1
21

query I rowsort
SELECT DISTINCT - - 53 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-3186
-3672
-5184

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT - COUNT( + - 65 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1065
SELECT - COUNT ( + - 65 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT - ( + - col1 ) FROM tab1
----
14
47
5

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1070
SELECT + 90 DIV 14 AS col1 FROM tab1
----
6
6
6

skipif mysql # not compatible
query I rowsort label-1070
SELECT + 90 / 14 AS col1 FROM tab1
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( - col1 * + col2 * - + CAST( - + col2 AS SIGNED ) ) < col1 / + col2
----

skipif mysql # not compatible
query I rowsort label-1071
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( - col1 * + col2 * - + CAST ( - + col2 AS INTEGER ) ) < col1 / + col2
----

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

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

query I rowsort
SELECT 68 * + + 53 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 + - col1 NOT IN ( + 9 + col0 * + + 21 * + 58 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1075
SELECT 42 * 93 * COUNT( * ) + COUNT( * ), 96 AS col1 FROM tab0 AS cor0
----
11721
96

skipif mysql # not compatible
query II rowsort label-1075
SELECT 42 * 93 * COUNT ( * ) + COUNT ( * ), 96 AS col1 FROM tab0 AS cor0
----
11721
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1077
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT ( NULL ) > + - 43
----

skipif mysql # not compatible
query I rowsort label-1077
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT ( NULL ) > + - 43
----

query I rowsort
SELECT 92 * - col0 FROM tab2
----
-4232
-5888
-6900

query I rowsort
SELECT + 98 * col0 AS col1 FROM tab2 AS cor0
----
4508
6272
7350

query II rowsort
SELECT + col0 * - col2 AS col2, + 47 FROM tab1 cor0
----
-4896
47
-5015
47
-6188
47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1082
SELECT DISTINCT - - col0 DIV col1 + + 45 FROM tab2 AS cor0
----
45
46

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT - - col0 / col1 + + 45 FROM tab2 AS cor0
----
45
46

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

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

query I rowsort
SELECT ALL + col1 - + 62 FROM tab2
----
-11
15
5

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

skipif mysql # not compatible
query I rowsort label-1085
SELECT - COUNT ( * ) + + + COUNT ( * ) FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1086
SELECT DISTINCT - col0 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT - col0 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT ALL - 96 - COUNT( * ) + - SUM( DISTINCT - + col1 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - 96 - COUNT ( * ) + - SUM ( DISTINCT - + col1 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT col1 + 71 * + col0 + - - col1, col2 FROM tab0
----
1227
47
6219
10
6889
99

query II rowsort
SELECT DISTINCT + - 83, col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-83
10
-83
47
-83
99

query II rowsort
SELECT DISTINCT + col1 AS col1, + 83 FROM tab2 AS cor0
----
51
83
67
83
77
83

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

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

query I rowsort
SELECT ALL + col2 + col1 FROM tab0 AS cor0 WHERE NOT - col1 + + col1 > ( + - 78 / - 44 + - 10 * col1 )
----

query II rowsort
SELECT ALL 30 AS col2, + 17 AS col2 FROM tab0, tab1 AS cor0
----
18 values hashing to 73456b3c584e9e67a25e6190d9d05d81

query II rowsort
SELECT - col0 * + col2 AS col1, 41 + - + col1 AS col1 FROM tab0
----
-705
-40
-870
20
-9603
40

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

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

query I rowsort
SELECT - + 97 AS col2 FROM tab0 cor0
----
-97
-97
-97

query I rowsort
SELECT col1 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT - 45 AS col0 FROM tab2 cor0 WHERE NOT + 47 + 16 + ( 4 ) * - - col1 + + col1 IS NOT NULL
----

query II rowsort
SELECT + col1 + + + 86, 94 * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT DISTINCT - - MIN( 24 ) * ( + COUNT( * ) ) + MAX( + 32 ) FROM tab1 AS cor0 WHERE NULL >= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT - - MIN ( 24 ) * ( + COUNT ( * ) ) + MAX ( + 32 ) FROM tab1 AS cor0 WHERE NULL >= - col0
----
NULL

query I rowsort
SELECT ( + 39 ) + 45 * - col1 FROM tab2
----
-2256
-2976
-3426

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

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

query I rowsort
SELECT DISTINCT 79 + ( col0 ) * ( col0 ) AS col1 FROM tab0
----
304
7648
9488

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT + 66 + SUM( + - 19 ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1106
SELECT + 66 + SUM ( + - 19 ) AS col2 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT 77 + - COUNT( * ) * - MAX( ALL + col2 ) FROM tab0
----
374

skipif mysql # not compatible
query I rowsort label-1107
SELECT 77 + - COUNT ( * ) * - MAX ( ALL + col2 ) FROM tab0
----
374

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

query I rowsort
SELECT DISTINCT + 5 + + - 33 - + - 84 AS col2 FROM tab2 cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT - COUNT( col2 ) + 80 AS col1 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-1110
SELECT - COUNT ( col2 ) + 80 AS col1 FROM tab0
----
77

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 44 * - 68 NOT IN ( 80 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 AS col0 FROM tab0 cor0 WHERE + col1 IS NULL
----

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

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

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

query I rowsort
SELECT 4 * + 20 FROM tab1 AS cor0 WHERE NULL IS NULL
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT + COUNT( * ) * COUNT( * ) + - 79 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-1117
SELECT + COUNT ( * ) * COUNT ( * ) + - 79 FROM tab1 AS cor0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1118
SELECT ALL + col2 + - col0 DIV + + 41 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL + col2 + - col0 / + + 41 FROM tab2
----
22
39
57

query II rowsort
SELECT ALL 52 * + col0 AS col1, - col2 * - 60 FROM tab0
----
4524
600
5044
5940
780
2820

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT 66 DIV + - 42 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1120
SELECT 66 / + - 42 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1121
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( NOT - 32 - - - col0 NOT BETWEEN + + 99 AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( NOT - 32 - - - col0 NOT BETWEEN + + 99 AND NULL )
----
NULL

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

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

query I rowsort
SELECT + 71 - - col1 AS col2 FROM tab2
----
122
138
148

query II rowsort
SELECT - col0 AS col0, 23 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + 61 * + - col2, + col0 AS col0 FROM tab1 AS cor0
----
-3599
85
-4148
91
-5856
51

query I rowsort
SELECT + 8 * + + 52 * col0 AS col0 FROM tab1 AS cor0
----
21216
35360
37856

query I rowsort
SELECT - col1 * + 82 * - col2 FROM tab2
----
252560
318652
96186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - col2 col0 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT + - ( 98 ) * COUNT( * ) col0 FROM tab0 AS cor0
----
-294

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

query I rowsort
SELECT + + ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT 87 IS NOT NULL
----

query I rowsort
SELECT 51 AS col1 FROM tab2 cor0
----
51
51
51

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col0 * col0 + + 65
----

query I rowsort
SELECT DISTINCT col2 * + 82 * - col1 + + col2 + col1 FROM tab2 AS cor0
----
-252443
-318527
-96112

onlyif mysql # aggregate syntax: 
query II rowsort label-1137
SELECT ALL - - 61 AS col0, + MIN( + - 13 ) AS col2 FROM tab0 AS cor0
----
61
-13

skipif mysql # not compatible
query II rowsort label-1137
SELECT ALL - - 61 AS col0, + MIN ( + - 13 ) AS col2 FROM tab0 AS cor0
----
61
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT DISTINCT 43 + + COUNT( * ) + - 44 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT 43 + + COUNT ( * ) + - 44 FROM tab2
----
2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - 15
----

query I rowsort
SELECT ALL - - 72 + - - col0 + - col0 AS col0 FROM tab0 WHERE - 42 + + col2 * - 99 IS NOT NULL
----
72
72
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) <= 76
----
87
21
10
97
1
99

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab2 cor1 ON NOT - 70 <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-1143
SELECT + COUNT ( * ) * + 3 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
27

query I rowsort
SELECT - 40 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1147
SELECT + ( - - 51 ) * - 8 - 59 + - CAST( col1 AS SIGNED ) * - - col1 * col2 * 6 AS col2 FROM tab0 AS cor0
----
-1061
-1850669
-26927

skipif mysql # not compatible
query I rowsort label-1147
SELECT + ( - - 51 ) * - 8 - 59 + - CAST ( col1 AS INTEGER ) * - - col1 * col2 * 6 AS col2 FROM tab0 AS cor0
----
-1061
-1850669
-26927

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

query I rowsort
SELECT + col1 * col2 - 95 AS col1 FROM tab1 AS cor0
----
1249
200
3101

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

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

query I rowsort
SELECT + + 43 - - 43 AS col2 FROM tab1 AS cor0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col1 FROM tab2 AS cor0 WHERE + 95 <> + col2 * - col1 * + col2
----
51
67
77

query I rowsort
SELECT DISTINCT + col2 - + + col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) * + 36 FROM tab1 cor0
----
-324

skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) * + 36 FROM tab1 cor0
----
-324

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1156
SELECT ALL + CAST( col0 AS SIGNED ) * col1 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL + CAST ( col0 AS INTEGER ) * col1 FROM tab2
----
2346
4928
5025

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 16 IN ( - 2 )
----

query II rowsort
SELECT + col2 AS col1, 87 AS col0 FROM tab2
----
23
87
40
87
58
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1160
SELECT + 87, MAX( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
87
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1160
SELECT + 87, MAX ( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
87
75

query I rowsort
SELECT - + col1 * + 76 FROM tab1 cor0
----
-1064
-3572
-380

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - col0 <> + 53 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 25 FROM tab1 cor0
----
-25
-25
-25

query I rowsort
SELECT ALL - col2 + - - 41 FROM tab0 AS cor0
----
-58
-6
31

query I rowsort
SELECT ALL 29 * + 34 * col2 + + 40 AS col0 FROM tab1 cor0
----
58214
67088
94696

query I rowsort
SELECT - + ( - col0 ) * + - 74 + + - 80 FROM tab0 AS cor0
----
-1190
-6518
-7258

query I rowsort
SELECT - 26 + - col2 AS col2 FROM tab2
----
-49
-66
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE + 70 BETWEEN col2 * + + col0 + - + col2 + + col2 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-1170
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE + 70 BETWEEN col2 * + + col0 + - + col2 + + col2 AND col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1171
SELECT ALL + col0 + + 73 DIV col1 + + col2 AS col2 FROM tab2
----
104
134
70

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL + col0 + + 73 / col1 + + col2 AS col2 FROM tab2
----
104
134
70

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

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

query I rowsort
SELECT ALL - 69 + + - col0 AS col1 FROM tab2
----
-115
-133
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT - MIN( + + 42 ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-1174
SELECT - MIN ( + + 42 ) FROM tab0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1175
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 12 + - + 84 AS col0, - 28 FROM tab2
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-1175
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 12 + - + 84 AS col0, - 28 FROM tab2
----
NULL
-28

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

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

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

query I rowsort
SELECT ALL 7 + - + col2 - + 19 AS col2 FROM tab1
----
-108
-71
-80

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

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

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

query I rowsort
SELECT + col2 * + - col2 + 8 AS col2 FROM tab2
----
-1592
-3356
-521

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT - - MIN( DISTINCT - - 63 ) * 80 + - ( - - 69 ) FROM tab1 cor0
----
4971

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT - - MIN ( DISTINCT - - 63 ) * 80 + - ( - - 69 ) FROM tab1 cor0
----
4971

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT ALL - ( SUM( col2 ) ) FROM tab1 AS cor0 WHERE NOT - 30 / + col1 > + 30 * + 65
----
-223

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL - ( SUM ( col2 ) ) FROM tab1 AS cor0 WHERE NOT - 30 / + col1 > + 30 * + 65
----
-223

query I rowsort
SELECT + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 <= - 57
----
-15
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT ALL - - COUNT( 50 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL - - COUNT ( 50 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1187
SELECT - col0 DIV + col1 + 85 AS col1 FROM tab0 AS cor0
----
-12
81
85

skipif mysql # not compatible
query I rowsort label-1187
SELECT - col0 / + col1 + 85 AS col1 FROM tab0 AS cor0
----
-12
81
85

query I rowsort
SELECT col2 * - + col2 * - + col0 AS col0 FROM tab1
----
295885
420784
470016

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

query I rowsort
SELECT DISTINCT 44 * + + col0 * - col1 AS col0 FROM tab2
----
-103224
-216832
-221100

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT DISTINCT ( ( MAX( ALL col0 ) ) ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT ( ( MAX ( ALL col0 ) ) ) AS col1 FROM tab1
----
91

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

query I rowsort
SELECT ALL + 63 AS col2 FROM tab0
----
63
63
63

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1196
SELECT DISTINCT + + 28 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT + + 28 * - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT DISTINCT 63 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT 63 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
189

query I rowsort
SELECT ALL 10 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
10
10
10

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

skipif mysql # not compatible
query I rowsort label-1200
SELECT - MIN ( + 50 ) FROM tab2 AS cor0
----
-50

query I rowsort
SELECT + col0 * - 1 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + + 42 ) BETWEEN - 31 * - 47 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1203
SELECT - col0 * - CAST( + + 83 AS SIGNED ) FROM tab1
----
4233
7055
7553

skipif mysql # not compatible
query I rowsort label-1203
SELECT - col0 * - CAST ( + + 83 AS INTEGER ) FROM tab1
----
4233
7055
7553

query I rowsort
SELECT + col1 * 82 FROM tab2 AS cor0
----
4182
5494
6314

query I rowsort
SELECT + col1 * - col2 * + - 60 FROM tab1 AS cor0
----
17700
191760
80640

query II rowsort
SELECT col1, 19 AS col1 FROM tab0 AS cor0
----
1
19
21
19
81
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 12 col2, col0 FROM tab1 cor0
----
12
51
12
85
12
91

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

skipif mysql # not compatible
query I rowsort label-1208
SELECT + MAX ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT ALL + 5 DIV + col0 * - - 23 * - + 74 + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL + 5 / + col0 * - - 23 * - + 74 + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1211
SELECT + CAST( col2 AS SIGNED ) col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1211
SELECT + CAST ( col2 AS INTEGER ) col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1213
SELECT DISTINCT + col2 DIV - - col1 + - 72, col0 col0 FROM tab0
----
-72
15
-72
87
27
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1213
SELECT DISTINCT + col2 / - - col1 + - 72, col0 col0 FROM tab0
----
-72
15
-72
87
27
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) < + 16 - + ( + col2 ) AND NOT + 94 > col1
----

query I rowsort
SELECT - 36 + + col1 FROM tab1
----
-22
-31
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1216
SELECT + COUNT( * ) + - + COUNT( * ) DIV + 55 DIV - COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1216
SELECT + COUNT ( * ) + - + COUNT ( * ) / + 55 / - COUNT ( * ) FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT ALL + 42 DIV - 3 - ( col2 ) FROM tab2 AS cor0
----
-37
-54
-72

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL + 42 / - 3 - ( col2 ) FROM tab2 AS cor0
----
-37
-54
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT ( + SUM( ALL - col0 ) ) + - + 48 AS col2 FROM tab2 AS cor0
----
-233

skipif mysql # not compatible
query I rowsort label-1218
SELECT ( + SUM ( ALL - col0 ) ) + - + 48 AS col2 FROM tab2 AS cor0
----
-233

query I rowsort
SELECT - 58 + col1 FROM tab0 AS cor0
----
-37
-57
23

query I rowsort
SELECT + col0 * - 66 * + 74 - + col2 FROM tab1 AS cor0
----
-249180
-415199
-444512

query I rowsort
SELECT + col2 - 57 AS col1 FROM tab1
----
11
2
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 78 AS col2, + col0 + + col1 * col1 col2 FROM tab1 AS cor0
----
78
110
78
2300
78
247

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col0 + + 9
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT + + COUNT( * ) - - AVG ( 79 ) AS col1 FROM tab1 AS cor0 WHERE NOT + 85 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1226
SELECT + + COUNT ( * ) - - AVG ( 79 ) AS col1 FROM tab1 AS cor0 WHERE NOT + 85 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT 79 * + - 85 AS col0 FROM tab1
----
-6715
-6715
-6715

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL MAX( - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL MAX ( - col1 ) AS col2 FROM tab1
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 74 + col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT - 53 DIV - - col2 * col2 * + col2 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1236
SELECT - 53 / - - col2 * col2 * + col2 col1 FROM tab1 AS cor0
----
0
0
0

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( + col0, - col2, - col1 / + 19 - + col2 + ( + - col1 ) + - 38 * - col0 * + - col1 + 26 - + 94 - + 20 * - 72 * col0, col1 )
----

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

query I rowsort
SELECT DISTINCT - col1 + - col0 - col1 FROM tab0
----
-129
-177
-99

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

query II rowsort
SELECT DISTINCT + col2 AS col0, - 36 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
-36
68
-36
96
-36

query I rowsort
SELECT ALL - col1 * 72 AS col1 FROM tab2 AS cor0
----
-3672
-4824
-5544

query I rowsort
SELECT - 82 + + col0 AS col2 FROM tab1 AS cor0
----
-31
3
9

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

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

skipif mysql # not compatible
query I rowsort label-1246
SELECT 11 + + - COUNT ( * ) FROM tab1
----
8

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col0 + - 32 * col0 FROM tab2
----
-1426
-1984
-2325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1253
SELECT ALL 42 DIV - COUNT( * ) - + COUNT( + ( + col2 ) ) AS col1 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL 42 / - COUNT ( * ) - + COUNT ( + ( + col2 ) ) AS col1 FROM tab2
----
-17

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

query I rowsort
SELECT ALL + ( + 7 ) - + + ( - 78 ) + + col0 FROM tab1 AS cor0
----
136
170
176

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <= - 51
----
46
51
23

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

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

query I rowsort
SELECT DISTINCT - ( + 77 ) AS col1 FROM tab1 cor0
----
-77

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1264
SELECT + 61 * CAST( + - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1403
-2440
-3538

skipif mysql # not compatible
query I rowsort label-1264
SELECT + 61 * CAST ( + - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1403
-2440
-3538

query II rowsort
SELECT + col0 * col0 * - + col1, + col0 FROM tab1
----
-36125
85
-36414
51
-389207
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT - COUNT( * ) * - 21 AS col1 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-1266
SELECT - COUNT ( * ) * - 21 AS col1 FROM tab2
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1267
SELECT DISTINCT + col1 FROM tab0 WHERE NOT col1 - + col0 * + CAST( + 30 AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT + col1 FROM tab0 WHERE NOT col1 - + col0 * + CAST ( + 30 AS REAL ) < NULL
----

query I rowsort
SELECT DISTINCT - 40 * + col1 * + 46 * + 38 FROM tab1
----
-3286240
-349600
-978880

query I rowsort
SELECT DISTINCT 14 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( - 5 ) FROM tab2
----
-5
-5
-5

query I rowsort
SELECT ALL + ( + 13 ) * + - 67 * col1 * + col1 + ( - col1 ) AS col1 FROM tab2 WHERE NOT - + 68 * + col0 IS NULL
----
-2265522
-3909986
-5164236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1272
SELECT + CAST( CAST( col2 AS SIGNED ) AS SIGNED ) col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1272
SELECT + CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) col0 FROM tab2
----
23
40
58

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

query I rowsort
SELECT - + col0 * + + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT + ( 41 ) AS col1 FROM tab1 AS cor0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1276
SELECT - - 64 DIV + col2 + col0 - + col1 DIV - - 47 col0 FROM tab0 cor0
----
15
93
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1276
SELECT - - 64 / + col2 + col0 - + col1 / - - 47 col0 FROM tab0 cor0
----
15
93
97

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

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

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL <= - col0
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NULL <= - 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT - 1 + COUNT( * ) + + ( + 71 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
73

skipif mysql # not compatible
query I rowsort label-1280
SELECT - 1 + COUNT ( * ) + + ( + 71 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
73

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - + + col2 col1 FROM tab2 cor0 WHERE - col1 / - col2 IS NOT NULL
----
-104
-133
-69

query I rowsort
SELECT - ( 56 ) * - + col0 AS col0 FROM tab0 AS cor0
----
4872
5432
840

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 * col2 col2 FROM tab2 AS cor0
----
161
280
406

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

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

query II rowsort
SELECT + 53 * - 26 AS col1, 49 FROM tab0 AS cor0
----
-1378
49
-1378
49
-1378
49

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

query I rowsort
SELECT DISTINCT 23 * - + 11 FROM tab1
----
-253

query I rowsort
SELECT DISTINCT - 93 + 85 AS col1 FROM tab2
----
-8

query I rowsort
SELECT + col2 + - col2 * 73 AS col2 FROM tab2
----
-1656
-2880
-4176

query I rowsort
SELECT ALL + col0 * - 86 + - 26 AS col2 FROM tab1
----
-4412
-7336
-7852

query I rowsort
SELECT ALL col0 - + + 43 FROM tab0
----
-28
44
54

query I rowsort
SELECT - 97 + ( - 32 ) AS col1 FROM tab2
----
-129
-129
-129

query I rowsort
SELECT ALL - col2 - 84 + - 24 FROM tab2 AS cor0
----
-131
-148
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT + COUNT( - col1 ) + + 75 AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1298
SELECT + COUNT ( - col1 ) + + 75 AS col1 FROM tab2 AS cor0
----
78

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

query I rowsort
SELECT ALL 27 * - - col1 * col2 AS col2 FROM tab0 AS cor0
----
102789
2673
5670

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 < - - 37 - - 77
----

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT + 96 + - - col2 NOT IN ( + col1 + col1, - col0 )
----

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

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

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

query I rowsort
SELECT + - 48 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * - 44 * + - col1 + + - col2 < - 12
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 90 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 67 * + + col0 col0, + col2 + - - col0 FROM tab2
----
3082
69
4288
104
5025
133

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT - col1 * col0 DIV - + 22 col2 FROM tab2
----
106
224
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1314
SELECT - col1 * col0 / - + 22 col2 FROM tab2
----
106
224
228

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE + + col0 / - col2 = - col2
----

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

query II rowsort
SELECT - col1 * - col1 AS col1, + col0 * + col2 + - 33 FROM tab0
----
1
9570
441
837
6561
672

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1319
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( 47 ) + + col1 FROM tab1 cor0
----
52
61
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT DISTINCT - - SUM( col0 ) * + MAX( ALL + 33 ) FROM tab2 AS cor0
----
6105

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT - - SUM ( col0 ) * + MAX ( ALL + 33 ) FROM tab2 AS cor0
----
6105

query II rowsort
SELECT - 75 AS col2, + 94 FROM tab0 AS cor0
----
-75
94
-75
94
-75
94

query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab1 WHERE NOT 82 IS NOT NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE + ( + 69 ) NOT BETWEEN NULL AND - col0
----
15
87
97

query I rowsort
SELECT + col1 * col0 * - col1 * - - col2 - - - 35 AS col0 FROM tab1
----
-125410
-13669327
-959651

query I rowsort
SELECT col1 - + 23 FROM tab2
----
28
44
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 + + col0 + - col2 + - - col2 col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL - 66 * + 71 * + 33 + + - COUNT( * ) AS col0 FROM tab1 cor0
----
-154641

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - 66 * + 71 * + 33 + + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-154641

onlyif mysql # DIV for integer division: 
query I rowsort label-1331
SELECT - + col2 DIV col1 + - + ( - col1 ) FROM tab1 AS cor0
----
-6
46
8

skipif mysql # not compatible
query I rowsort label-1331
SELECT - + col2 / col1 + - + ( - col1 ) FROM tab1 AS cor0
----
-6
46
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + COUNT( ALL + 92 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1333
SELECT + COUNT ( ALL + 92 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + + 18 AS col0 FROM tab2 AS cor0
----
18
18
18

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

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

query I rowsort
SELECT - col1 * + 3 FROM tab2 cor0
----
-153
-201
-231

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1337
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) * col1 col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 27, col0 + - col2 col0 FROM tab0
----
27
-2
27
-32
27
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT ( + 83 ) * MAX( - 1 ) AS col0 FROM tab1, tab1 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-1339
SELECT ( + 83 ) * MAX ( - 1 ) AS col0 FROM tab1, tab1 cor0
----
-83

query I rowsort
SELECT 8 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1341
SELECT 63 * CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
3717
4284
6048

skipif mysql # not compatible
query I rowsort label-1341
SELECT 63 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
3717
4284
6048

query I rowsort
SELECT DISTINCT + col0 + + 40 FROM tab2
----
104
115
86

query I rowsort
SELECT ALL 48 + + col0 FROM tab2 WHERE NULL > + col1
----

query I rowsort
SELECT col2 * + col2 * - 86 AS col0 FROM tab1
----
-299366
-397664
-792576

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

skipif mysql # not compatible
query II rowsort label-1345
SELECT DISTINCT - 70, COUNT ( * ) AS col1 FROM tab0
----
-70
3

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

query I rowsort
SELECT - col1 / - - col1 + - col1 FROM tab1 AS cor0 WHERE NULL >= + col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 * + col1 + + col0 * - 29 = NULL
----

query I rowsort
SELECT ALL - 67 FROM tab1 WHERE - col2 * + 1 / + col1 IS NOT NULL
----
-67
-67
-67

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

query I rowsort
SELECT col1 * - 86 AS col0 FROM tab2
----
-4386
-5762
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT - SUM( + - col1 ) + - ( COUNT( * ) ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT - SUM ( + - col1 ) + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT - MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1354
SELECT - MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ( + + COUNT( * ) ) - - 38 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-1355
SELECT ( + + COUNT ( * ) ) - - 38 FROM tab0 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT + COUNT( * ) - - 88 - 9 + + - 29 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-1356
SELECT + COUNT ( * ) - - 88 - 9 + + - 29 FROM tab1 AS cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1357
SELECT + + col2 - + - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-1357
SELECT + + col2 - + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
116
46
80

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

skipif mysql # not compatible
query I rowsort label-1358
SELECT col1 - - + col1 + - + col1 + CAST ( NULL AS INTEGER ) + + - 28 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT - - COUNT( * ) - - MAX( ALL - 50 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col0 + - - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT - - COUNT ( * ) - - MAX ( ALL - 50 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col0 + - - 42
----
NULL

query I rowsort
SELECT DISTINCT col1 * - - col0 AS col2 FROM tab2
----
2346
4928
5025

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

skipif mysql # not compatible
query I rowsort label-1361
SELECT col2 / col0 * col2 * - + col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 >= 18
----
15
81
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT - ( - - SUM( ALL - - col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1364
SELECT - ( - - SUM ( ALL - - col1 ) ) FROM tab1
----
-66

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

query I rowsort
SELECT ALL - 96 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT DISTINCT 66 * + COUNT( * ) FROM tab0, tab2 cor0
----
594

skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT 66 * + COUNT ( * ) FROM tab0, tab2 cor0
----
594

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 1 * + + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT DISTINCT - col1 + + + 96 FROM tab0 cor0
----
15
75
95

query I rowsort
SELECT ALL + + col0 * + col2 AS col2 FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT + 3 * 82 FROM tab0
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT ALL 7 DIV + + col2 * col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL 7 / + + col2 * col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 + + col2 + col1 AS col0 FROM tab0
----
10
47
99

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

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

query I rowsort
SELECT ALL col1 * + col0 + col1 FROM tab1
----
430
4324
728

query I rowsort
SELECT col0 * + 86 FROM tab2
----
3956
5504
6450

query I rowsort
SELECT ALL col2 * + 77 FROM tab2
----
1771
3080
4466

query I rowsort
SELECT 50 * col2 * - col2 FROM tab0
----
-110450
-490050
-5000

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL COUNT( * ) + COUNT( * ) col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
6

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

query I rowsort
SELECT DISTINCT col1 + + col2 + - + ( + col0 ) FROM tab2
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT COUNT( ALL + col0 ) FROM tab0 AS cor0 WHERE - 7 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1387
SELECT COUNT ( ALL + col0 ) FROM tab0 AS cor0 WHERE - 7 IS NOT NULL
----
3

query I rowsort
SELECT ALL + col1 - + - col1 * - ( + + 61 ) FROM tab2
----
-3060
-4020
-4620

query I rowsort
SELECT col1 FROM tab1 WHERE NULL > ( - - col0 / + col1 )
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT DISTINCT + SUM( 41 ) - + + COUNT( * ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT + SUM ( 41 ) - + + COUNT ( * ) FROM tab2 AS cor0
----
120

query I rowsort
SELECT DISTINCT ( + 91 ) AS col1 FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 89 col2, 54 + 43 FROM tab2 AS cor0
----
89
97
89
97
89
97

onlyif mysql # DIV for integer division: 
query II rowsort label-1397
SELECT - col1 DIV + 56, - col1 col2 FROM tab1
----
0
-14
0
-47
0
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1397
SELECT - col1 / + 56, - col1 col2 FROM tab1
----
0
-14
0
-47
0
-5

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

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

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

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab2 WHERE NOT - 95 NOT BETWEEN - - 63 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1401
SELECT col0 DIV col2 DIV - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1401
SELECT col0 / col2 / - col2 FROM tab0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT - MAX( ALL + 81 ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-1403
SELECT - MAX ( ALL + 81 ) FROM tab1
----
-81

query I rowsort
SELECT - - 17 * 70 AS col0 FROM tab0 cor0
----
1190
1190
1190

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 < + col2
----
15
81
47
97
1
99

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

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

query II rowsort
SELECT DISTINCT - + col0 AS col0, + col0 + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-15
30
-87
174
-97
194

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 6 * - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1411
SELECT DISTINCT - 66 DIV + COUNT( * ) + - COUNT( * ) col0 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1411
SELECT DISTINCT - 66 / + COUNT ( * ) + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-25

query II rowsort
SELECT - 61, 98 + + col2 AS col0 FROM tab1 cor0
----
-61
157
-61
166
-61
194

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1414
SELECT CAST( - 81 AS SIGNED ) * + COUNT( * ) AS col0, ( 75 ) AS col1 FROM tab2 AS cor0
----
-243
75

skipif mysql # not compatible
query II rowsort label-1414
SELECT CAST ( - 81 AS INTEGER ) * + COUNT ( * ) AS col0, ( 75 ) AS col1 FROM tab2 AS cor0
----
-243
75

query I rowsort
SELECT - col0 + + 98 AS col2 FROM tab2
----
23
34
52

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1417
SELECT ALL - - COUNT( * ) - - CAST( NULL AS SIGNED ) AS col1, 65 FROM tab2 AS cor0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-1417
SELECT ALL - - COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col1, 65 FROM tab2 AS cor0
----
NULL
65

query I rowsort
SELECT 85 + ( col1 ) FROM tab1 AS cor0
----
132
90
99

query I rowsort
SELECT + col1 + - - ( col0 ) AS col1 FROM tab1 AS cor0
----
138
65
90

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1421
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 55 * - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1421
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 55 * - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1422
SELECT ALL - 58 DIV col0 - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - 58 / col0 - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-68
-97

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

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

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

query I rowsort
SELECT ALL + ( - col1 ) + + col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1426
SELECT + - MIN( - col0 ) * - - COUNT( * ) AS col1, - 77 AS col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-1426
SELECT + - MIN ( - col0 ) * - - COUNT ( * ) AS col1, - 77 AS col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
NULL
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NULL ) ) OR - 17 / - + 44 - - + 75 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1428
SELECT SUM( CAST( NULL AS DECIMAL ) ) * + 10 - 72 - COUNT( * ) - - + 91 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT SUM ( CAST ( NULL AS REAL ) ) * + 10 - 72 - COUNT ( * ) - - + 91 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT - COUNT( * ) * + - 78 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-1429
SELECT - COUNT ( * ) * + - 78 FROM tab1 AS cor0
----
234

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

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

query I rowsort
SELECT + 86 FROM tab2 cor0 WHERE NOT 93 IS NULL
----
86
86
86

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 70 - 66 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1434
SELECT + MIN( ALL col1 ) DIV + + COUNT( * ) col2 FROM tab2
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1434
SELECT + MIN ( ALL col1 ) / + + COUNT ( * ) col2 FROM tab2
----
17

query I rowsort
SELECT DISTINCT + col1 * + + col1 * + 76 AS col1 FROM tab1
----
14896
167884
1900

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1436
SELECT DISTINCT 24 DIV 58 AS col1, + MAX( - ( + 58 ) ) FROM tab2
----
0
-58

skipif mysql # not compatible
query II rowsort label-1436
SELECT DISTINCT 24 / 58 AS col1, + MAX ( - ( + 58 ) ) FROM tab2
----
0
-58

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

skipif mysql # not compatible
query II rowsort label-1437
SELECT COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0
----
3
3

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

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

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

query I rowsort
SELECT ALL + ( - + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT DISTINCT COUNT( DISTINCT + 32 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT COUNT ( DISTINCT + 32 ) FROM tab1 AS cor0
----
1

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

query I rowsort
SELECT ALL 31 + col2 + + col2 + col1 * + - col2 AS col1 FROM tab1 cor0
----
-1121
-146
-3029

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1445
SELECT DISTINCT - 25 + - CAST( NULL AS DECIMAL ) * + SUM( DISTINCT + col2 ) + + 28 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT - 25 + - CAST ( NULL AS REAL ) * + SUM ( DISTINCT + col2 ) + + 28 FROM tab0
----
NULL

query I rowsort
SELECT ALL 20 AS col1 FROM tab1
----
20
20
20

query II rowsort
SELECT - col2 AS col1, - col0 + 41 AS col0 FROM tab0 WHERE NULL <> - 22 + + 51 * col2
----

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

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

query II rowsort
SELECT DISTINCT 10, - col1 AS col1 FROM tab0
----
10
-1
10
-21
10
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col2 - col1 col2 FROM tab1
----
14
82
47
21
5
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT 91 + + COUNT( ALL + col1 ) + COUNT( * ) * 7 AS col1 FROM tab0 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-1452
SELECT 91 + + COUNT ( ALL + col1 ) + COUNT ( * ) * 7 AS col1 FROM tab0 AS cor0
----
115

query I rowsort
SELECT 58 * - col1 AS col1 FROM tab1
----
-2726
-290
-812

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

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

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

query I rowsort
SELECT col1 - 59 FROM tab0
----
-38
-58
22

query I rowsort
SELECT 70 * - 68 AS col0 FROM tab2
----
-4760
-4760
-4760

query I rowsort
SELECT col2 * + 1 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT - col2 * + 58 FROM tab2
----
-1334
-2320
-3364

query I rowsort
SELECT - 21 * col2 AS col1 FROM tab1
----
-1239
-1428
-2016

query I rowsort
SELECT ALL 2 + col0 / col0 FROM tab2 WHERE NOT + col2 * 27 IS NOT NULL
----

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

skipif mysql # not compatible
query III rowsort label-1462
SELECT ALL * FROM tab1 WHERE NOT NULL < col1 - CAST ( NULL AS INTEGER )
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1467
SELECT + CAST( + col1 AS SIGNED ) col2 FROM tab0 WHERE NOT 90 * - col0 + - CAST( 39 AS SIGNED ) * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1467
SELECT + CAST ( + col1 AS INTEGER ) col2 FROM tab0 WHERE NOT 90 * - col0 + - CAST ( 39 AS INTEGER ) * CAST ( NULL AS INTEGER ) IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) * 11 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) * 11 FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT DISTINCT + 49 - + COUNT( * ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT + 49 - + COUNT ( * ) FROM tab1
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1472
SELECT ALL - 12 + + col2 FROM tab1 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
47
56
84

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL - 12 + + col2 FROM tab1 WHERE CAST ( NULL AS REAL ) IS NULL
----
47
56
84

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

query I rowsort
SELECT ALL + 90 + col1 FROM tab0
----
111
171
91

query I rowsort
SELECT DISTINCT - 64 - col0 * + col2 FROM tab2
----
-1122
-2624
-4414

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 + + 1 * - ( + col1 ) col2 FROM tab1
----
37
70
79

query I rowsort
SELECT - col2 * - col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT + COUNT( * ) * 98 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
882

skipif mysql # not compatible
query I rowsort label-1479
SELECT + COUNT ( * ) * 98 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
882

query I rowsort
SELECT ALL - col2 * col0 FROM tab0 WHERE - col1 * col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT 31 FROM tab2 WHERE NOT ( + 97 * col2 ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1482
SELECT 31 FROM tab2 WHERE NOT ( + 97 * col2 ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL 62 * 36 - SUM( DISTINCT 39 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 33 ) >= - 39 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL 62 * 36 - SUM ( DISTINCT 39 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 33 ) >= - 39 * 82
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT - 19 DIV 49 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1486
SELECT - 19 / 49 FROM tab1 AS cor0
----
0
0
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1488
SELECT ALL - + MAX ( - col1 ) col2 FROM tab1 AS cor0
----
5

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

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

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

skipif mysql # not compatible
query I rowsort label-1490
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE ( - 15 ) IN ( ( + col1 ) )
----
0

query I rowsort
SELECT ALL + ( col0 ) + 28 FROM tab1
----
113
119
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT ALL 45 + + SUM( col1 ) FROM tab0
----
148

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL 45 + + SUM ( col1 ) FROM tab0
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1493
SELECT DISTINCT + COUNT( * ) DIV + 8 - 15 AS col0 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT + COUNT ( * ) / + 8 - 15 AS col0 FROM tab2
----
-15

query III rowsort
SELECT * FROM tab0 WHERE 59 IN ( - col1 + ( 67 ) )
----

query I rowsort
SELECT col0 + + - col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1496
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 37 - - 63 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 37 - - 63 FROM tab2
----
NULL

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

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - col1 / + col2 >= + col1 * + col2 + + col0
----

query I rowsort
SELECT DISTINCT + + 80 AS col2 FROM tab0 AS cor0
----
80

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 41 FROM tab0 WHERE NOT ( NOT ( + col2 ) <= ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT 47 DIV - + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1505
SELECT 47 / - + col2 AS col1 FROM tab1
----
0
0
0

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + 65 < NULL
----

query I rowsort
SELECT ALL + 59 * 6 + - - 43 * col2 AS col2 FROM tab1 AS cor0
----
2891
3278
4482

query II rowsort
SELECT - + col1 AS col1, col1 * - col0 FROM tab2 AS cor0
----
-51
-2346
-67
-5025
-77
-4928

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

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

query I rowsort
SELECT ALL 6 * - - col1 FROM tab1 AS cor0
----
282
30
84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1514
SELECT + - 40 * + col0 + - col1 + col0 DIV col2 FROM tab1 cor0
----
-2054
-3404
-3686

skipif mysql # not compatible
query I rowsort label-1514
SELECT + - 40 * + col0 + - col1 + col0 / col2 FROM tab1 cor0
----
-2054
-3404
-3686

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * col0 = 10
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT + 61 * + + COUNT( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1520
SELECT + 61 * + + COUNT ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT DISTINCT + SUM( 22 ) * COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT + SUM ( 22 ) * COUNT ( * ) FROM tab1
----
198

onlyif mysql # aggregate syntax: 
query II rowsort label-1522
SELECT ALL 30 * - COUNT( * ), 96 * - COUNT( * ) AS col2 FROM tab2
----
-90
-288

skipif mysql # not compatible
query II rowsort label-1522
SELECT ALL 30 * - COUNT ( * ), 96 * - COUNT ( * ) AS col2 FROM tab2
----
-90
-288

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

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL + COUNT ( * ) + - 28 AS col0 FROM tab1 WHERE ( col1 ) IS NULL
----
-28

query I rowsort
SELECT col0 * 20 * + col0 FROM tab2
----
112500
42320
81920

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 36 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + 89 FROM tab1 WHERE NOT NULL IN ( 48 )
----

query III rowsort
SELECT * FROM tab0 WHERE - 99 + col1 NOT BETWEEN ( 76 * + 68 ) AND NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1528
SELECT ALL * FROM tab0 WHERE NOT ( + - col2 + - col1 * - CAST( - col0 AS SIGNED ) ) NOT IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-1528
SELECT ALL * FROM tab0 WHERE NOT ( + - col2 + - col1 * - CAST ( - col0 AS INTEGER ) ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT + MAX( - + col1 ) col2 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1529
SELECT + MAX ( - + col1 ) col2 FROM tab1
----
-5

query II rowsort
SELECT DISTINCT col2 * + + 58, col1 FROM tab2 cor0
----
1334
51
2320
77
3364
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL - COUNT( - 51 ) * + + ( + 14 ) AS col0 FROM tab1 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL - COUNT ( - 51 ) * + + ( + 14 ) AS col0 FROM tab1 cor0
----
-42

query I rowsort
SELECT - 90 + + 69 FROM tab2 WHERE - 32 IS NOT NULL
----
-21
-21
-21

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

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

query I rowsort
SELECT - col1 * + col2 + - - ( + 38 ) FROM tab1 AS cor0
----
-1306
-257
-3158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT DISTINCT - + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1539
SELECT + col1 + + + col0 DIV + col2 AS col1, col1 * CAST( NULL AS SIGNED ) + col2 * + 80 AS col1 FROM tab2 AS cor0
----
53
NULL
68
NULL
78
NULL

skipif mysql # not compatible
query II rowsort label-1539
SELECT + col1 + + + col0 / + col2 AS col1, col1 * CAST ( NULL AS INTEGER ) + col2 * + 80 AS col1 FROM tab2 AS cor0
----
53
NULL
68
NULL
78
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1540
SELECT ALL col2 * + 44 - - 80 DIV - col2 + - 89 AS col1 FROM tab1 AS cor0
----
2506
2902
4135

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL col2 * + 44 - - 80 / - col2 + - 89 AS col1 FROM tab1 AS cor0
----
2506
2902
4135

query II rowsort
SELECT DISTINCT - 76, + col2 + + + col2 AS col0 FROM tab0 cor0
----
-76
198
-76
20
-76
94

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

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

query I rowsort
SELECT DISTINCT + col2 * 27 - + col1 - + col1 AS col0 FROM tab0 AS cor0
----
1107
228
2671

query I rowsort
SELECT + - 41 + col2 AS col2 FROM tab2 AS cor0
----
-1
-18
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1545
SELECT DISTINCT - col1 DIV - 66 - - col0 + + - 27 DIV - - 90 * - col1 AS col2 FROM tab2 cor0
----
46
65
76

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT - col1 / - 66 - - col0 + + - 27 / - - 90 * - col1 AS col2 FROM tab2 cor0
----
46
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT - + MIN( ALL - col2 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
55

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

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

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

query I rowsort
SELECT - 97 * - 47 FROM tab0 cor0
----
4559
4559
4559

query II rowsort
SELECT ALL - col2, + col0 + col0 AS col0 FROM tab1
----
-59
170
-68
182
-96
102

query I rowsort
SELECT - 23 * + 18 AS col2 FROM tab0
----
-414
-414
-414

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 60 NOT IN ( + ( - col2 ) / - col1 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT ALL col1 + - - col2 AS col1, 87 + - + col0 FROM tab1
----
110
36
115
-4
64
2

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT DISTINCT + COUNT( + col2 ) AS col2, 49 FROM tab0 cor0
----
3
49

skipif mysql # not compatible
query II rowsort label-1558
SELECT DISTINCT + COUNT ( + col2 ) AS col2, 49 FROM tab0 cor0
----
3
49

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

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

query I rowsort
SELECT DISTINCT - col0 * + col2 + col0 AS col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT DISTINCT - 63 * + 13 FROM tab0 AS cor0
----
-819

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 + - + 44 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 + + + col0 - ( + col2 ) <> - 25
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT DISTINCT + SUM( ALL - ( + + col1 ) ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT + SUM ( ALL - ( + + col1 ) ) FROM tab0 cor0
----
-103

query I rowsort
SELECT ALL + + 84 AS col1 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT + - col0 * col2 + - ( - col0 ) * + - col2 * - col0 AS col0 FROM tab1 AS cor0
----
244800
421260
556920

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT + 61 * - COUNT( - - col1 ) AS col0 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-1573
SELECT + 61 * - COUNT ( - - col1 ) AS col0 FROM tab0
----
-183

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 * + ( - 68 ) col2 FROM tab0
----
3332

query II rowsort
SELECT DISTINCT 47 * 14 * + 88 AS col0, col2 FROM tab1 AS cor0
----
57904
59
57904
68
57904
96

query I rowsort
SELECT ALL - - 10 * + 56 * + - col2 FROM tab0 cor0
----
-26320
-55440
-5600

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

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

query I rowsort
SELECT + - 4 + - col1 FROM tab2 AS cor0
----
-55
-71
-81

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 * - + col0 >= + 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1581
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1581
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1582
SELECT DISTINCT - col2 + col0 DIV + col0 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT - col2 + col0 / + col0 FROM tab1 AS cor0
----
-58
-67
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * + col0 col2 FROM tab0 WHERE - 59 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 70 * + col2 col0, col1 FROM tab1 AS cor0
----
-4130
5
-4760
47
-6720
14

query I rowsort
SELECT + + col0 * - 82 FROM tab1 AS cor0
----
-4182
-6970
-7462

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

query I rowsort
SELECT col2 - + col2 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT ALL col2 / ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL col2 / ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1590
SELECT DISTINCT + - col2 DIV 83 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT + - col2 / 83 AS col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1591
SELECT ALL + ( COUNT( * ) ) - + 62 FROM tab2 AS cor0 WHERE NOT - col2 / - col2 NOT IN ( 90, ( CAST( - + 55 AS SIGNED ) ) )
----
-62

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + ( COUNT ( * ) ) - + 62 FROM tab2 AS cor0 WHERE NOT - col2 / - col2 NOT IN ( 90, ( CAST ( - + 55 AS INTEGER ) ) )
----
-62

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL < + 57
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT DISTINCT + col1 * col0 * + col0 * - - col1 - - 62 DIV ( + 54 ) * + + 27 + - col1 FROM tab0
----
1476171
3337935
9435

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT + col1 * col0 * + col0 * - - col1 - - 62 / ( + 54 ) * + + 27 + - col1 FROM tab0
----
1476171
3337935
9435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1598
SELECT MIN( ( col0 ) ) AS col0, + ( MAX( ALL - col1 ) ) * + COUNT( * ) + CAST( - 59 AS SIGNED ) col0 FROM tab0
----
15
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1598
SELECT MIN ( ( col0 ) ) AS col0, + ( MAX ( ALL - col1 ) ) * + COUNT ( * ) + CAST ( - 59 AS INTEGER ) col0 FROM tab0
----
15
-62

query II rowsort
SELECT col2, col0 * - col0 AS col0 FROM tab0
----
10
-7569
47
-225
99
-9409

query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab0 AS cor0
----
2

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

query I rowsort
SELECT 31 * + col2 FROM tab2
----
1240
1798
713

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

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

query I rowsort
SELECT 80 * - ( col2 ) AS col0 FROM tab0
----
-3760
-7920
-800

onlyif mysql # aggregate syntax: 
query II rowsort label-1605
SELECT ALL + COUNT( ALL - + 45 ) AS col1, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-1605
SELECT ALL + COUNT ( ALL - + 45 ) AS col1, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
-3

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

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab1 AS cor0 WHERE + 70 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1608
SELECT DISTINCT col0, CAST( col0 AS SIGNED ) col2 FROM tab0 cor0
----
15
15
87
87
97
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1608
SELECT DISTINCT col0, CAST ( col0 AS INTEGER ) col2 FROM tab0 cor0
----
15
15
87
87
97
97

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

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

query I rowsort
SELECT DISTINCT - ( + + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 45 col1 FROM tab2 AS cor0
----
1035
1800
2610

query I rowsort
SELECT 95 + col1 FROM tab2 cor0
----
146
162
172

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

skipif mysql # not compatible
query I rowsort label-1614
SELECT 36 + + MIN ( DISTINCT - col0 ) FROM tab2
----
-39

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

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

skipif mysql # not compatible
query I rowsort label-1616
SELECT COUNT ( DISTINCT - - col0 ) * + CAST ( NULL AS INTEGER ) + + COUNT ( col2 ) + - + 90 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1617
SELECT MIN( DISTINCT + col2 ) AS col1, + 6 AS col0 FROM tab1
----
59
6

skipif mysql # not compatible
query II rowsort label-1617
SELECT MIN ( DISTINCT + col2 ) AS col1, + 6 AS col0 FROM tab1
----
59
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL - COUNT( * ) + ( + 57 ) * - MIN( col2 ) AS col0 FROM tab2
----
-1314

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL - COUNT ( * ) + ( + 57 ) * - MIN ( col2 ) AS col0 FROM tab2
----
-1314

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1619
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 2, 50 DIV - col1 + - col1 AS col0, col1 AS col1 FROM tab1
----
9 values hashing to 41523d8f2f86f03141ca982d2e1b6df3

skipif mysql # not compatible
query III rowsort label-1619
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 2, 50 / - col1 + - col1 AS col0, col1 AS col1 FROM tab1
----
9 values hashing to 41523d8f2f86f03141ca982d2e1b6df3

query III rowsort
SELECT * FROM tab2 WHERE - 89 * - col0 + - - 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT SUM( - col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-1621
SELECT SUM ( - col0 ) AS col1 FROM tab2
----
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 13 NOT BETWEEN - col1 AND + ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL 92 FROM tab0 cor0
----
92
92
92

query I rowsort
SELECT - col0 + + 1 FROM tab0
----
-14
-86
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1626
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 * - col0, col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1626
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 * - col0, col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT - col0 + - 18 + - 26 AS col1 FROM tab1
----
-129
-135
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-1628
SELECT ALL COUNT( * ) AS col2, 98 AS col2 FROM tab0 cor0
----
3
98

skipif mysql # not compatible
query II rowsort label-1628
SELECT ALL COUNT ( * ) AS col2, 98 AS col2 FROM tab0 cor0
----
3
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT DISTINCT CAST( + + col1 AS SIGNED ) * col2 - + - 90 FROM tab0 AS cor0
----
189
300
3897

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) * col2 - + - 90 FROM tab0 AS cor0
----
189
300
3897

query II rowsort
SELECT col2, col0 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col1 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT + col0 + - - CAST( NULL AS SIGNED ) * - 35 - + 42 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1633
SELECT + col0 + - - CAST ( NULL AS INTEGER ) * - 35 - + 42 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT DISTINCT col1 - + + col1 DIV + - col2 AS col0 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT col1 - + + col1 / + - col2 AS col0 FROM tab2 AS cor0
----
53
68
78

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

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

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

query I rowsort
SELECT ALL + ( + - 72 ) + + col2 AS col2 FROM tab1
----
-13
-4
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT ALL + col0 DIV - + 41 + - col2 FROM tab1
----
-61
-70
-97

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL + col0 / - + 41 + - col2 FROM tab1
----
-61
-70
-97

query I rowsort
SELECT DISTINCT + col2 * + - col2 * col2 AS col1 FROM tab0
----
-1000
-103823
-970299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1641
SELECT DISTINCT CAST( NULL AS SIGNED ) * + MIN( ALL 20 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + MIN ( ALL 20 ) FROM tab0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT ALL 62 DIV - + 84 * - col2 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL 62 / - + 84 * - col2 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT DISTINCT CAST( - 46 AS SIGNED ) FROM tab1 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT CAST ( - 46 AS INTEGER ) FROM tab1 cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 60 AS col2 FROM tab1 AS cor0 WHERE NOT col0 + - col2 + - col0 * col2 * + 91 + - - 54 + - + 76 + 43 IS NULL
----
60
60
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT + 78 DIV + + 55 + + col0 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-1647
SELECT + 78 / + + 55 + + col0 FROM tab2 AS cor0
----
47
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT DISTINCT MIN( ALL - + 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT MIN ( ALL - + 88 ) FROM tab2
----
-88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= + ( + ( col0 ) )
----

query I rowsort
SELECT + ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT - col0 * - col2, + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
705
15
870
87
9603
97

query I rowsort
SELECT + ( + + col2 ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT + ( col1 ) DIV col1 * col1 AS col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1654
SELECT + ( col1 ) / col1 * col1 AS col1 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT + ( - - ( + 85 ) ) AS col2 FROM tab2
----
85
85
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1657
SELECT DISTINCT - 87 AS col1, 57 + - COUNT( * ) col1 FROM tab2
----
-87
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1657
SELECT DISTINCT - 87 AS col1, 57 + - COUNT ( * ) col1 FROM tab2
----
-87
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT MAX( - - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1658
SELECT MAX ( - - col2 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1659
SELECT ALL + COUNT( * ), 53 - + 34 AS col0 FROM tab1
----
3
19

skipif mysql # not compatible
query II rowsort label-1659
SELECT ALL + COUNT ( * ), 53 - + 34 AS col0 FROM tab1
----
3
19

query II rowsort
SELECT - col0 + - + col2, + 29 AS col1 FROM tab2
----
-104
29
-133
29
-69
29

query I rowsort
SELECT - 6 + - 38 AS col1 FROM tab2
----
-44
-44
-44

query I rowsort
SELECT + - col1 + + col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1
13
197

onlyif mysql # aggregate syntax: 
query II rowsort label-1663
SELECT DISTINCT 47 AS col0, COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
47
-9

skipif mysql # not compatible
query II rowsort label-1663
SELECT DISTINCT 47 AS col0, COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
47
-9

query II rowsort
SELECT ALL + col0 AS col0, + col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT col0 * col0 + - col2 * - 85 + + col1 AS col2 FROM tab2 AS cor0
----
10622
4122
7573

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT DISTINCT COUNT( * ) col0, 49 * - + COUNT( ALL - 82 ) AS col1 FROM tab1 AS cor0
----
3
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1666
SELECT DISTINCT COUNT ( * ) col0, 49 * - + COUNT ( ALL - 82 ) AS col1 FROM tab1 AS cor0
----
3
-147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - col1 col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT - col2 * - 10 * - col1 AS col2 FROM tab2 cor0
----
-11730
-30800
-38860

onlyif mysql # DIV for integer division: 
query II rowsort label-1669
SELECT ALL + col2, + col1 DIV col2 FROM tab0 AS cor0
----
10
2
47
1
99
0

skipif mysql # not compatible
query II rowsort label-1669
SELECT ALL + col2, + col1 / col2 FROM tab0 AS cor0
----
10
2
47
1
99
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1670
SELECT + col1 DIV + col0 - col0 AS col2 FROM tab0 cor0
----
-10
-87
-97

skipif mysql # not compatible
query I rowsort label-1670
SELECT + col1 / + col0 - col0 AS col2 FROM tab0 cor0
----
-10
-87
-97

query I rowsort
SELECT + col0 - + - 52 FROM tab1 AS cor0
----
103
137
143

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= 49
----

query I rowsort
SELECT - + 44 * - col1 + - 17 FROM tab2 AS cor0
----
2227
2931
3371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 - + col2 col1 FROM tab0 AS cor0
----
-27
-79
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT DISTINCT MAX( 55 ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT MAX ( 55 ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-165

query I rowsort
SELECT + - col1 + - - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT DISTINCT 56 - - COUNT( * ) - - 19 AS col1 FROM tab1 AS cor0 WHERE NOT - 26 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT 56 - - COUNT ( * ) - - 19 AS col1 FROM tab1 AS cor0 WHERE NOT - 26 IS NOT NULL
----
75

query I rowsort
SELECT DISTINCT ( + 69 ) * - - 92 + 83 AS col2 FROM tab2
----
6431

query I rowsort
SELECT - 11 * col1 AS col0 FROM tab1
----
-154
-517
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1680
SELECT ALL CAST( + 7 AS SIGNED ) FROM tab2
----
7
7
7

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL CAST ( + 7 AS INTEGER ) FROM tab2
----
7
7
7

query III rowsort
SELECT DISTINCT + col0 AS col2, - ( ( - col0 ) ) AS col2, - col1 AS col2 FROM tab1
----
9 values hashing to 275a9f1b17c6e968eba4dc5b75509056

onlyif mysql # DIV for integer division: 
query I rowsort label-1682
SELECT ALL 26 DIV + 64 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL 26 / + 64 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT + ( COUNT( * ) ) FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1683
SELECT + ( COUNT ( * ) ) FROM tab1, tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + 61 ) col0 FROM tab0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 AS col0, + col1 - + col0 col2 FROM tab1 AS cor0
----
59
-80
68
-44
96
-37

query II rowsort
SELECT - col2 AS col2, col1 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query II rowsort
SELECT col0, + 37 AS col2 FROM tab1 AS cor0
----
51
37
85
37
91
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL + - MIN( DISTINCT - - ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL + - MIN ( DISTINCT - - ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1689
SELECT DISTINCT + + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + ( - ( - col0 ) ) * + + 7 + + 0 AS col0 FROM tab2 AS cor0
----
322
448
525

query II rowsort
SELECT ALL - 87 AS col0, - col2 FROM tab2 AS cor0 WHERE 83 IS NOT NULL
----
-87
-23
-87
-40
-87
-58

query I rowsort
SELECT - ( + col1 ) * col2 * - col0 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT ALL SUM( - 98 ) * - COUNT( * ) AS col1 FROM tab0
----
882

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL SUM ( - 98 ) * - COUNT ( * ) AS col1 FROM tab0
----
882

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-1694
SELECT + ( + 31 ) * COUNT( * ) * CAST( NULL AS DECIMAL ) col0, COUNT( * ) AS col2, 42 AS col0 FROM tab2
----
NULL
3
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1694
SELECT + ( + 31 ) * COUNT ( * ) * CAST ( NULL AS REAL ) col0, COUNT ( * ) AS col2, 42 AS col0 FROM tab2
----
NULL
3
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT DISTINCT + ( + 83 ) + + - COUNT( * ) AS col2 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT + ( + 83 ) + + - COUNT ( * ) AS col2 FROM tab0
----
80

query I rowsort
SELECT - 2 + + 30 AS col1 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1697
SELECT ALL CAST( NULL AS SIGNED ) * - - col0 FROM tab0 AS cor0 WHERE NOT - ( col2 ) * col0 + + col0 > ( col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL CAST ( NULL AS INTEGER ) * - - col0 FROM tab0 AS cor0 WHERE NOT - ( col2 ) * col0 + + col0 > ( col0 )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1698
SELECT - - col1 + - col1 * CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-420
-4230
-700

skipif mysql # not compatible
query I rowsort label-1698
SELECT - - col1 + - col1 * CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ALL MIN( DISTINCT - 40 ) AS col1 FROM tab2 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL MIN ( DISTINCT - 40 ) AS col1 FROM tab2 cor0
----
-40

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT - 22 + - 50 + + 26 AS col0 FROM tab1 cor0
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT DISTINCT - + col1 + - col1 DIV 21 FROM tab0 AS cor0
----
-1
-22
-84

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT - + col1 + - col1 / 21 FROM tab0 AS cor0
----
-1
-22
-84

query III rowsort
SELECT * FROM tab0 WHERE + 49 * col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT DISTINCT MAX( ALL col2 ) + - 47 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT MAX ( ALL col2 ) + - 47 FROM tab0
----
52

query I rowsort
SELECT DISTINCT - col2 * + col0 + col1 + - col2 - - col0 + + - col2 * - 25 AS col0 FROM tab2
----
-1459
-2816
-409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1706
SELECT CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1706
SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT - SUM( + 78 ) FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-1708
SELECT - SUM ( + 78 ) FROM tab1
----
-234

query I rowsort
SELECT 15 * col1 AS col0 FROM tab2
----
1005
1155
765

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab1 AS cor0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT ( 49 ) + + col0 AS col2 FROM tab1
----
100
134
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL - ( - SUM( - + col2 ) ) + - + 89 FROM tab0
----
-245

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL - ( - SUM ( - + col2 ) ) + - + 89 FROM tab0
----
-245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1713
SELECT ALL - + MAX( ALL - ( + - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL - + MAX ( ALL - ( + - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT ALL + 21 + 77 + - - col2 AS col0 FROM tab1
----
157
166
194

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL MAX( - - ( + 2 ) ) - + COUNT( * ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL MAX ( - - ( + 2 ) ) - + COUNT ( * ) FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT + + 37 + + + 98 FROM tab0 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= - col0 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= - col0 * + col0
----
0

query I rowsort
SELECT DISTINCT - 33 * 87 FROM tab1 AS cor0
----
-2871

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT + MIN( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1720
SELECT + MIN ( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1721
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1721
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < CAST ( col2 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT - CAST( - MIN( - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-1722
SELECT - CAST ( - MIN ( - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - col0 * + + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query II rowsort
SELECT DISTINCT col0, + col1 * + col0 AS col0 FROM tab1 AS cor0
----
51
714
85
425
91
4277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * - col0 col0 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT 98 * - - 16 FROM tab1
----
1568
1568
1568

query I rowsort
SELECT DISTINCT col1 * 3 FROM tab1
----
141
15
42

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT 35 * 47 FROM tab2
----
1645

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + col0 >= - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + col2 + - 96 - col1 * + ( + - col0 ) + - - col0 AS col2 FROM tab2
----
2370
5013
5129

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT ALL 54 + - + COUNT( 23 ) col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1733
SELECT ALL 54 + - + COUNT ( 23 ) col0 FROM tab1
----
51

query II rowsort
SELECT DISTINCT + col0 AS col1, - col1 * - ( - ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
46
2601
64
5929
75
4489

query I rowsort
SELECT + ( 42 ) * - col1 + - 70 + 72 FROM tab0 cor0
----
-3400
-40
-880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 24 * + col2 col1 FROM tab1 AS cor0
----
1416
1632
2304

query I rowsort
SELECT DISTINCT col0 * + 62 AS col1 FROM tab0 AS cor0
----
5394
6014
930

onlyif mysql # DIV for integer division: 
query I rowsort label-1738
SELECT ALL + col1 DIV - col1 col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1738
SELECT ALL + col1 / - col1 col2 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT - col0, + col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT + + 0 * col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) + + col2 IS NULL
----

query I rowsort
SELECT col1 * + col0 + + - 56 FROM tab0
----
1159
1771
41

query I rowsort
SELECT DISTINCT 18 * + AVG ( DISTINCT - col2 ) FROM tab0 WHERE 67 + + ( + 83 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col1 / - 35 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + - 15 AS col0 FROM tab0
----
0
72
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1747
SELECT - 12 AS col0 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-1747
SELECT - 12 AS col0 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-12
-12
-12

query I rowsort
SELECT DISTINCT - ( col2 ) + - 48 AS col2 FROM tab1
----
-107
-116
-144

query I rowsort
SELECT ALL col2 * + 55 AS col0 FROM tab0
----
2585
5445
550

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT DISTINCT COUNT( * ) + - - 32 col0 FROM tab1
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1750
SELECT DISTINCT COUNT ( * ) + - - 32 col0 FROM tab1
----
35

query I rowsort
SELECT DISTINCT - 80 FROM tab0 WHERE NOT + 41 BETWEEN col0 AND col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL - 32 - + - COUNT( * ) FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL - 32 - + - COUNT ( * ) FROM tab0
----
-29

query I rowsort
SELECT 14 * - col2 + + col0 + + col0 AS col2 FROM tab0 AS cor0
----
-1192
-628
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1754
SELECT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT DISTINCT - + MAX( DISTINCT 10 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT - + MAX ( DISTINCT 10 ) AS col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - - 46 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
20

query I rowsort
SELECT ALL - - 78 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IS NULL AND NOT + col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - - + 6 * + - col1 + - col0 AS col1 FROM tab2
----
-306
-402
-462

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1761
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - 56 AND - col1 * + 57 + + CAST( NULL AS SIGNED ) * - + col0
----

skipif mysql # not compatible
query III rowsort label-1761
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - 56 AND - col1 * + 57 + + CAST ( NULL AS INTEGER ) * - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col0 FROM tab0
----
61
61
61

query I rowsort
SELECT + 92 * 49 FROM tab2 AS cor0
----
4508
4508
4508

onlyif mysql # DIV for integer division: 
query II rowsort label-1764
SELECT DISTINCT + col0 AS col0, + col2 DIV col1 + - col0 AS col0 FROM tab1 AS cor0
----
51
-45
85
-74
91
-90

skipif mysql # not compatible
query II rowsort label-1764
SELECT DISTINCT + col0 AS col0, + col2 / col1 + - col0 AS col0 FROM tab1 AS cor0
----
51
-45
85
-74
91
-90

query I rowsort
SELECT 14 AS col0 FROM tab0 cor0
----
14
14
14

onlyif mysql # DIV for integer division: 
query II rowsort label-1766
SELECT col2, col0 DIV + col0 col1 FROM tab0 AS cor0
----
10
1
47
1
99
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1766
SELECT col2, col0 / + col0 col1 FROM tab0 AS cor0
----
10
1
47
1
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL - SUM( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL - SUM ( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT col1 * - col2 - - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( 22 ) AND + 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT SUM( + + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1769
SELECT SUM ( + + col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT + col1, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1772
SELECT COUNT( * ), 4 AS col1 FROM tab0 AS cor0
----
3
4

skipif mysql # not compatible
query II rowsort label-1772
SELECT COUNT ( * ), 4 AS col1 FROM tab0 AS cor0
----
3
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( + col0 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT DISTINCT - MAX( DISTINCT - 81 ) * + MAX( ALL + + col2 ) AS col1 FROM tab1 cor0
----
7776

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT - MAX ( DISTINCT - 81 ) * + MAX ( ALL + + col2 ) AS col1 FROM tab1 cor0
----
7776

query I rowsort
SELECT ALL - col0 * 10 * + + 1 AS col1 FROM tab0
----
-150
-870
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT DISTINCT SUM( - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT SUM ( - col1 ) FROM tab0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 58 + - - col0 <= NULL
----

query I rowsort
SELECT + col2 * - 34 AS col0 FROM tab1
----
-2006
-2312
-3264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col0 FROM tab2
----
76
76
76

query II rowsort
SELECT ALL - col1, col1 AS col2 FROM tab1
----
-14
14
-47
47
-5
5

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col1 FROM tab1
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1783
SELECT - col0 DIV + + col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1783
SELECT - col0 / + + col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1784
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1784
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 60 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 41 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 81 BETWEEN ( + col2 + + - col0 ) AND 50
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 59 + - 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 67 * + col2 AS col1 FROM tab2 AS cor0
----
1541
2680
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1791
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( ( + col1 ), 97 + + 77, + col2 / - CAST( NULL AS DECIMAL ) + - - col2 + + col0 - + 11, + 30, + 23 )
----

skipif mysql # not compatible
query III rowsort label-1791
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( ( + col1 ), 97 + + 77, + col2 / - CAST ( NULL AS REAL ) + - - col2 + + col0 - + 11, + 30, + 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * - 60 + 89 col2 FROM tab2 AS cor0
----
629

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1792
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * - 60 + 89 col2 FROM tab2 AS cor0
----
629

query II rowsort
SELECT + col0 AS col0, 38 + - 47 FROM tab2
----
46
-9
64
-9
75
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT MAX( - + col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1794
SELECT MAX ( - + col0 ) AS col2 FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1795
SELECT DISTINCT CAST( 84 AS SIGNED ) * - CAST( 62 AS SIGNED ) AS col0 FROM tab0 WHERE NULL < - col0
----

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT CAST ( 84 AS INTEGER ) * - CAST ( 62 AS INTEGER ) AS col0 FROM tab0 WHERE NULL < - col0
----

query III rowsort
SELECT * FROM tab0 WHERE - - 17 <= + col2 * - 7
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1797
SELECT ALL - COUNT( + col2 ) + + 26 AS col1, 27 AS col1 FROM tab2
----
23
27

skipif mysql # not compatible
query II rowsort label-1797
SELECT ALL - COUNT ( + col2 ) + + 26 AS col1, 27 AS col1 FROM tab2
----
23
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT DISTINCT - col0 + + - col2 * col1 DIV col1 FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT - col0 + + - col2 * col1 / col1 FROM tab2
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1799
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 43 * - CAST( + - ( - + col2 ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1799
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 43 * - CAST ( + - ( - + col2 ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL + - MIN( col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + - MIN ( col1 ) FROM tab1 cor0
----
-5

query I rowsort
SELECT - 57 + + col1 - + + 73 FROM tab1
----
-116
-125
-83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1802
SELECT + + CAST( col2 AS SIGNED ) DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT + + CAST ( col2 AS INTEGER ) / + col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 75 col2 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT ALL + + ( + ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col1 * - - col2 AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT + col2 * + 42 * - + col0 AS col0 FROM tab1
----
-205632
-210630
-259896

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT MAX( DISTINCT ( 5 ) ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-1807
SELECT MAX ( DISTINCT ( 5 ) ) FROM tab2
----
5

query I rowsort
SELECT ALL - 44 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT 88 * + ( col2 ) FROM tab0
----
4136
8712
880

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 25 * - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - ( - + ( col1 ) ) AS col2 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1812
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1812
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL <= NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NOT col0 IS NULL ) )
----

query I rowsort
SELECT ALL + - col1 FROM tab0 WHERE + 99 IS NULL
----

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab1 WHERE NOT ( NOT col2 + - col1 BETWEEN - col0 * + + col2 + - 50 AND 57 )
----
-85
-91

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL + 34 * COUNT( * ) - - 94 FROM tab0 cor0
----
196

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL + 34 * COUNT ( * ) - - 94 FROM tab0 cor0
----
196

query I rowsort
SELECT ALL - 29 + + col1 FROM tab1 AS cor0
----
-15
-24
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT - COUNT( * ) FROM tab1 WHERE col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1820
SELECT - COUNT ( * ) FROM tab1 WHERE col2 > NULL
----
0

query I rowsort
SELECT - ( - col0 ) * col1 + - col0 AS col1 FROM tab2
----
2300
4864
4950

query I rowsort
SELECT - 78 * - + 18 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47fec8e6abb9da5d4da181dadcc9a3a3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1823
SELECT ( + CAST( - 15 AS SIGNED ) ) FROM tab2 AS cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-1823
SELECT ( + CAST ( - 15 AS INTEGER ) ) FROM tab2 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT + COUNT( * ) + AVG ( ALL + - col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT + COUNT ( * ) + AVG ( ALL + - col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - col2 AS col1, 69 * col0 FROM tab2 AS cor0
----
-23
3174
-40
4416
-58
5175

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + + col0 IS NULL
----

query I rowsort
SELECT + col1 * col0 - - ( - 57 ) + - - col2 + + col2 * col2 * + - col2 + col1 FROM tab0 AS cor0
----
-102537
-970159
801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 - + ( - 58 ) + col0 * col1 col0 FROM tab2 AS cor0
----
-197
-943
594

query I rowsort
SELECT - - col0 - - - col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + - ( col2 ) * + - col1 * + 18 + col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
26635
2703907
338739

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT ALL + 96 + + - MAX( + ( + ( 27 ) ) ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL + 96 + + - MAX ( + ( + ( 27 ) ) ) FROM tab0 AS cor0
----
69

query III rowsort
SELECT * FROM tab0 WHERE + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT COUNT( * ) + COUNT( * ) col1 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1833
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) col1 FROM tab2
----
6

query I rowsort
SELECT DISTINCT - col1 - + 45 FROM tab1
----
-50
-59
-92

query I rowsort
SELECT col1 + - - col0 FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + + ( - col1 ), - col1 col0 FROM tab1
----
0
-14
0
-47
0
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN NULL AND + col0
----

query II rowsort
SELECT ALL - + col1 - + col0 AS col1, col0 FROM tab1 AS cor0
----
-138
91
-65
51
-90
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL + SUM( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL + SUM ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ( - 24 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 25 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT col2 DIV - + 32 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1842
SELECT col2 / - + 32 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - 81 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-81

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - + 95 AS col1 FROM tab1 AS cor0
----
-95
-95
-95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + ( + ( - 22 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT + SUM( ALL col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1847
SELECT + SUM ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1848
SELECT DISTINCT + CAST( - + 57 AS SIGNED ) AS col2 FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT + CAST ( - + 57 AS INTEGER ) AS col2 FROM tab1 cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL + COUNT( * ) * + 97 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL + COUNT ( * ) * + 97 FROM tab0 AS cor0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1850
SELECT 57 * - + CAST( NULL AS SIGNED ) * - 96 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1850
SELECT 57 * - + CAST ( NULL AS INTEGER ) * - 96 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + col0 * + 47 FROM tab2
----
110262
231616
236175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1852
SELECT - - col2 * - - CAST( - + col0 AS SIGNED ) * + 56 + + CAST( - + 75 AS SIGNED ) FROM tab0 AS cor0
----
-39555
-48795
-537843

skipif mysql # not compatible
query I rowsort label-1852
SELECT - - col2 * - - CAST ( - + col0 AS INTEGER ) * + 56 + + CAST ( - + 75 AS INTEGER ) FROM tab0 AS cor0
----
-39555
-48795
-537843

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 49 <> 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE + 98 BETWEEN + col2 AND + + ( - + col1 ) - 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1855
SELECT CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1855
SELECT CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT - - COUNT( - 30 ) * 82 * - 47 + + + 13 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-34673

skipif mysql # not compatible
query I rowsort label-1856
SELECT - - COUNT ( - 30 ) * 82 * - 47 + + + 13 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-34673

query I rowsort
SELECT 10 FROM tab2 AS cor0 WHERE - 40 IS NOT NULL
----
10
10
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1858
SELECT DISTINCT CAST( + MAX( DISTINCT - - col2 ) AS SIGNED ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1858
SELECT DISTINCT CAST ( + MAX ( DISTINCT - - col2 ) AS INTEGER ) AS col0 FROM tab1
----
96

query I rowsort
SELECT 58 * - col1 AS col2 FROM tab0
----
-1218
-4698
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT COUNT( - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1860
SELECT COUNT ( - col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE ( NOT NULL = + col1 )
----

query I rowsort
SELECT DISTINCT 31 + - + 21 * - 12 * - col1 AS col1 FROM tab2
----
-12821
-16853
-19373

query I rowsort
SELECT + 69 AS col0 FROM tab2 WHERE ( ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT DISTINCT + 82 * - + 65 + COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-5327

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT + 82 * - + 65 + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-5327

query II rowsort
SELECT + col0 - - col0 AS col1, col2 AS col0 FROM tab0
----
174
10
194
99
30
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL - COUNT( * ) * MAX( - 98 ) col1 FROM tab0
----
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1866
SELECT ALL - COUNT ( * ) * MAX ( - 98 ) col1 FROM tab0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT - COUNT( * ) - + 55 + + + 84 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-1867
SELECT - COUNT ( * ) - + 55 + + + 84 FROM tab0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT DISTINCT + 95 + - - 89 + - col1 DIV + + col2 + + col2 - col0 * col0 FROM tab2
----
-1911
-3873
-5384

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT + 95 + - - 89 + - col1 / + + col2 + + col2 - col0 * col0 FROM tab2
----
-1911
-3873
-5384

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 WHERE NOT - + 29 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1870
SELECT ( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 50 * - - col1 * + 85 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + 90 + - col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT - ( COUNT( * ) ) * + - 18 - ( 82 ) AS col1 FROM tab1 WHERE NOT - 7 * + col0 IS NOT NULL
----
-82

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT - ( COUNT ( * ) ) * + - 18 - ( 82 ) AS col1 FROM tab1 WHERE NOT - 7 * + col0 IS NOT NULL
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1875
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 * ( - CAST( NULL AS SIGNED ) ) * col2 > col2 + - 89 * col1
----

skipif mysql # not compatible
query III rowsort label-1875
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 * ( - CAST ( NULL AS INTEGER ) ) * col2 > col2 + - 89 * col1
----

query I rowsort
SELECT DISTINCT - + 64 * ( col1 ) + + - col2 FROM tab0 AS cor0 WHERE - 80 * + 37 * - col0 * + col1 >= + col2 / 2
----
-1354
-163
-5231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL 22 * + COUNT( - col1 ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL 22 * + COUNT ( - col1 ) FROM tab2 AS cor0
----
66

query I rowsort
SELECT DISTINCT - 66 * - col1 FROM tab1 AS cor0
----
3102
330
924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1880
SELECT DISTINCT - MIN( ALL - col0 ) DIV + - 10 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT - MIN ( ALL - col0 ) / + - 10 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT ALL - - 58 DIV - + 71 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL - - 58 / - + 71 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT + COUNT( * ) * - 33 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-1882
SELECT + COUNT ( * ) * - 33 FROM tab1
----
-99

query I rowsort
SELECT DISTINCT + 62 + + + 28 FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT COUNT( * ) * + - 13 FROM tab1 WHERE - col2 + 24 + + 17 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1884
SELECT COUNT ( * ) * + - 13 FROM tab1 WHERE - col2 + 24 + + 17 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - - col2 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - - col2 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT + - COUNT( * ) + + + 65 AS col1 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1886
SELECT + - COUNT ( * ) + + + 65 AS col1 FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1887
SELECT DISTINCT - COUNT( * ) AS col2, MAX( ALL - ( - 16 ) ) AS col0 FROM tab0 AS cor0
----
-3
16

skipif mysql # not compatible
query II rowsort label-1887
SELECT DISTINCT - COUNT ( * ) AS col2, MAX ( ALL - ( - 16 ) ) AS col0 FROM tab0 AS cor0
----
-3
16

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ( + + COUNT( * ) ) + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1889
SELECT ( + + COUNT ( * ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT - col2 DIV - ( + ( - + 1 ) ) + + 93 AS col1 FROM tab1 AS cor0
----
-3
25
34

skipif mysql # not compatible
query I rowsort label-1890
SELECT - col2 / - ( + ( - + 1 ) ) + + 93 AS col1 FROM tab1 AS cor0
----
-3
25
34

query I rowsort
SELECT ALL + col1 + - 54 FROM tab1
----
-40
-49
-7

query I rowsort
SELECT 34 - + - col0 * + ( - 42 ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE col0 * - col2 + 99 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - + + col1 * - + col1 * + - 55 AS col2 FROM tab1
----
-10729
-121404
-1290

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL - - col1 FROM tab1 WHERE - col2 IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - - ( + col1 ) col2 FROM tab1 AS cor0
----
-10
-28
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + - col2 col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT - + 15 - - + ( COUNT( + col0 ) ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1899
SELECT - + 15 - - + ( COUNT ( + col0 ) ) FROM tab1 AS cor0
----
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL - MIN( 88 ) AS col1 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL - MIN ( 88 ) AS col1 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT + + 42 + col2 FROM tab0 AS cor0
----
141
52
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT ALL + col0 + + CAST( - - col1 AS SIGNED ) AS col2 FROM tab1 WHERE + col2 + - - 25 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL + col0 + + CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1 WHERE + col2 + - - 25 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col1 col0 FROM tab1
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT ALL col1 * - CAST( - 36 AS SIGNED ) FROM tab2
----
1836
2412
2772

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL col1 * - CAST ( - 36 AS INTEGER ) FROM tab2
----
1836
2412
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT ALL + MAX( - - col2 ) * 42 FROM tab1 WHERE NOT NULL NOT IN ( - col1, col2 * + col2 - + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL + MAX ( - - col2 ) * 42 FROM tab1 WHERE NOT NULL NOT IN ( - col1, col2 * + col2 - + - col1 )
----
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT - 5 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( 96 ) AS col2 FROM tab1
----
96
96
96

query I rowsort
SELECT ALL 86 FROM tab2 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col1 ) col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT DISTINCT + col0 * 18 DIV - col1 + - + col0 FROM tab2 AS cor0
----
-62
-78
-95

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT + col0 * 18 / - col1 + - + col0 FROM tab2 AS cor0
----
-62
-78
-95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - + 18 + + - col1 * - col0 + + col2 <= - + col1
----
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 48 + + col1 col1 FROM tab1
----
14
-34
47
-1
5
-43

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * + 23 IS NULL
----

query II rowsort
SELECT + + ( - 36 ) AS col2, col0 AS col0 FROM tab2 AS cor0
----
-36
46
-36
64
-36
75

query I rowsort
SELECT ALL - col2 * + + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-1918
SELECT DISTINCT - + COUNT( * ), + COUNT( * ) col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1918
SELECT DISTINCT - + COUNT ( * ), + COUNT ( * ) col2 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT + 41 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1920
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) DIV + 57 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) / + 57 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 58 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - col1 + + 47 + - col1 FROM tab0
----
145
236
3773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col1 FROM tab1 WHERE - + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1924
SELECT DISTINCT - AVG ( - col0 ) * CAST( NULL AS SIGNED ) + + - ( - 59 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT - AVG ( - col0 ) * CAST ( NULL AS INTEGER ) + + - ( - 59 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 + - col1 + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
15
168
2115

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1926
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < ( - col1 * + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1926
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < ( - col1 * + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL - 53 * + + 71 + col0 + 3 FROM tab2
----
-3685
-3696
-3714

query I rowsort
SELECT 95 + + + col0 FROM tab1
----
146
180
186

query I rowsort
SELECT DISTINCT + 85 * + 79 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
6715

query I rowsort
SELECT - col1 + - + col2 AS col2 FROM tab1
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 90 AND + col0
----

query I rowsort
SELECT + 38 AS col2 FROM tab1 AS cor0 WHERE 27 IS NOT NULL
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1934
SELECT - + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 99 )
----

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE + 3 IS NULL
----

query II rowsort
SELECT - col2 AS col1, - col1 AS col1 FROM tab0 cor0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1938
SELECT + col1 * - col1, + col2 DIV 38 DIV + col1 col2 FROM tab2
----
-2601
0
-4489
0
-5929
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1938
SELECT + col1 * - col1, + col2 / 38 / + col1 col2 FROM tab2
----
-2601
0
-4489
0
-5929
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 15 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1940
SELECT ALL - col1 - CAST( NULL AS SIGNED ) / + col1 * + - col1 * 7 * - ( 14 ) AS col2, 89 FROM tab2 WHERE NOT - + col2 - + + col0 * col1 IS NULL
----
NULL
89
NULL
89
NULL
89

skipif mysql # not compatible
query II rowsort label-1940
SELECT ALL - col1 - CAST ( NULL AS INTEGER ) / + col1 * + - col1 * 7 * - ( 14 ) AS col2, 89 FROM tab2 WHERE NOT - + col2 - + + col0 * col1 IS NULL
----
NULL
89
NULL
89
NULL
89

query I rowsort
SELECT DISTINCT + col2 + col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT DISTINCT COUNT( DISTINCT + 56 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT COUNT ( DISTINCT + 56 ) AS col2 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL <> + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1944
SELECT DISTINCT col0 AS col2, CAST( ( + col2 ) AS SIGNED ) FROM tab0 cor0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-1944
SELECT DISTINCT col0 AS col2, CAST ( ( + col2 ) AS INTEGER ) FROM tab0 cor0
----
15
47
87
10
97
99

query II rowsort
SELECT + col1 * + col0 + - + col2, + col1 FROM tab1 AS cor0
----
366
5
4209
47
618
14

query I rowsort
SELECT ALL + col2 * - - col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query II rowsort label-1947
SELECT - 84, + COUNT( * ) AS col1 FROM tab2 cor0
----
-84
3

skipif mysql # not compatible
query II rowsort label-1947
SELECT - 84, + COUNT ( * ) AS col1 FROM tab2 cor0
----
-84
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT + + ( ( - MIN( DISTINCT + 99 ) ) ) * + - COUNT( * ) * - + MIN( - 32 ) + 57 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT + + ( ( - MIN ( DISTINCT + 99 ) ) ) * + - COUNT ( * ) * - + MIN ( - 32 ) + 57 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT - + 25 AS col2 FROM tab2 cor0
----
-25
-25
-25

query II rowsort
SELECT - + col1 AS col1, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1951
SELECT ALL col1 DIV CAST( + ( + 14 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL col1 / CAST ( + ( + 14 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
1
3

query I rowsort
SELECT 29 + + + col1 FROM tab2 AS cor0
----
106
80
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - 74 * - 26 = + - 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1954
SELECT DISTINCT - CAST( MAX( - col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT - CAST ( MAX ( - col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1955
SELECT ALL + 9 AS col1, + COUNT( * ) + - COUNT( ALL + 19 ) * + + COUNT( * ) * + + COUNT( * ) - 85 FROM tab0 AS cor0
----
9
-109

skipif mysql # not compatible
query II rowsort label-1955
SELECT ALL + 9 AS col1, + COUNT ( * ) + - COUNT ( ALL + 19 ) * + + COUNT ( * ) * + + COUNT ( * ) - 85 FROM tab0 AS cor0
----
9
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL SUM( + + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL SUM ( + + col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-1957
SELECT - MIN( ALL - - col2 ) AS col1, COUNT( * ) FROM tab0
----
-10
3

skipif mysql # not compatible
query II rowsort label-1957
SELECT - MIN ( ALL - - col2 ) AS col1, COUNT ( * ) FROM tab0
----
-10
3

query I rowsort
SELECT col1 - - col0 * - col2 AS col0 FROM tab1 AS cor0
----
-4882
-5010
-6141

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 42 * 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col2 * - 25 AS col0, - 85 FROM tab1 AS cor0
----
-1475
-85
-1700
-85
-2400
-85

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 74 col1 FROM tab2
----
-3774
-4958
-5698

query I rowsort
SELECT DISTINCT - - 88 * - 10 * + col0 AS col2 FROM tab1 WHERE NOT ( NOT + 77 IS NULL )
----

query II rowsort
SELECT - - col2 * - - ( col2 ) AS col0, 85 FROM tab0 AS cor0
----
100
85
2209
85
9801
85

query I rowsort
SELECT ALL + col1 + + col2 + + col2 * - - col1 FROM tab0 AS cor0
----
199
241
3935

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT BETWEEN col1 AND ( NULL )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT col2 * - 34 AS col1 FROM tab2
----
-1360
-1972
-782

query III rowsort
SELECT * FROM tab2 WHERE NOT 94 + - 39 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 47 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 15 FROM tab2 WHERE NOT + col1 * 56 IS NOT NULL
----

query I rowsort
SELECT ALL - 85 * + col2 FROM tab0
----
-3995
-8415
-850

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1973
SELECT 17 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT 17 * + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1974
SELECT CAST( NULL AS SIGNED ) * - 12 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT CAST ( NULL AS INTEGER ) * - 12 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT 23 * SUM( - 81 * col1 ) AS col2 FROM tab2
----
-363285

skipif mysql # not compatible
query I rowsort label-1975
SELECT 23 * SUM ( - 81 * col1 ) AS col2 FROM tab2
----
-363285

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 61 + - col2 * col0 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
-2499
-4289
-997

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 WHERE col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + 56 * + MIN( - col1 ) col1 FROM tab2
----
-4312

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1979
SELECT + 56 * + MIN ( - col1 ) col1 FROM tab2
----
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL + MIN( DISTINCT col1 ) * COUNT( - col0 ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL + MIN ( DISTINCT col1 ) * COUNT ( - col0 ) AS col0 FROM tab1
----
15

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + col0 NOT BETWEEN col1 + 61 AND - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - col0 NOT IN ( 22 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1983
SELECT ALL 93 DIV 82 + col0 AS col2 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL 93 / 82 + col0 AS col2 FROM tab2
----
47
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT 90 + + COUNT( * ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-1984
SELECT 90 + + COUNT ( * ) AS col2 FROM tab1
----
93

query III rowsort
SELECT * FROM tab0 WHERE NULL = col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( col0 - - 69 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 16 * - col1 FROM tab1
----
-224
-752
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 * col2 col1 FROM tab0 WHERE NOT ( - col1 / 84 ) IS NULL
----
-2867
-6039
-610

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT - 71 + MIN( DISTINCT col2 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-1990
SELECT - 71 + MIN ( DISTINCT col2 ) FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL MIN( DISTINCT + col0 ) AS col0 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL MIN ( DISTINCT + col0 ) AS col0 FROM tab1 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT + CAST( 54 AS SIGNED ) - col2 FROM tab2 AS cor0
----
-4
14
31

skipif mysql # not compatible
query I rowsort label-1992
SELECT + CAST ( 54 AS INTEGER ) - col2 FROM tab2 AS cor0
----
-4
14
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * 78 > NULL
----

query I rowsort
SELECT + col2 + + col0 * 30 AS col0 FROM tab2
----
1403
1960
2308

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 * col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT DISTINCT + SUM( col0 ) * + 22 AS col1 FROM tab1 AS cor0 WHERE NULL <> + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT + SUM ( col0 ) * + 22 AS col1 FROM tab1 AS cor0 WHERE NULL <> + 25
----
NULL

query I rowsort
SELECT col2 + 17 * 10 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1998
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + ( col1 ) + 37 * + 69 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1998
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + ( col1 ) + 37 * + 69 IS NOT NULL
----

query I rowsort
SELECT - col0 / 2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> 23
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 / - 26 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - 26 IN ( col1 * + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 < ( - 48 * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT ALL - 76 DIV 82 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL - 76 / 82 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col0 * 1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - ( + 65 ) * - col1 FROM tab2
----
3315
4355
5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - + col1 col1 FROM tab0
----
1
441
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 21 col0 FROM tab2 WHERE NOT col1 IS NULL
----
-44
-61
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT - 58 DIV - ( col0 ) AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2009
SELECT - 58 / - ( col0 ) AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT ( - + col2 ) * col1 AS col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2011
SELECT 99 DIV + + col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2011
SELECT 99 / + + col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2012
SELECT DISTINCT 46 DIV + - SUM( DISTINCT + col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT 46 / + - SUM ( DISTINCT + col1 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 col0 FROM tab2
----
93
93
93

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * + 27 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT + 97 + 54 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT + 97 + 54 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT MAX( 25 ) + 67 AS col2 FROM tab2 WHERE NOT ( - 14 * col1 ) IS NULL
----
92

skipif mysql # not compatible
query I rowsort label-2016
SELECT MAX ( 25 ) + 67 AS col2 FROM tab2 WHERE NOT ( - 14 * col1 ) IS NULL
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 18 col2 FROM tab2 WHERE NOT + 97 < col1
----
1044
414
720

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2018
SELECT ALL - col1 DIV CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - col1 / CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
0
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT + 50 DIV - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2019
SELECT + 50 / - col0 FROM tab2
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 37 ) <= ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT ALL - 65 * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 * - col1 BETWEEN + 64 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL - 65 * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 * - col1 BETWEEN + 64 AND - col0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 2 * + col1 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 70 AS col1 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT + + col1 + 19 FROM tab1 AS cor0
----
24
33
66

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 + col1 * + col2 ) < col1 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + + - 8 - + + col1 FROM tab0
----
-8
-8
-8

query I rowsort
SELECT - 82 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col0 FROM tab2, tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query II rowsort
SELECT ALL col1, - 77 + - + 58 AS col0 FROM tab2 AS cor0
----
51
-135
67
-135
77
-135

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT - MAX( 22 ) * - SUM( DISTINCT - ( col2 ) ) FROM tab1 AS cor0
----
-4906

skipif mysql # not compatible
query I rowsort label-2033
SELECT - MAX ( 22 ) * - SUM ( DISTINCT - ( col2 ) ) FROM tab1 AS cor0
----
-4906

query II rowsort
SELECT ALL col2 AS col2, - 61 * 34 AS col2 FROM tab1 AS cor0
----
59
-2074
68
-2074
96
-2074

query I rowsort
SELECT - col0 - - + 20 FROM tab1 cor0
----
-31
-65
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2036
SELECT * FROM tab0 AS cor0 WHERE - col0 / - + col1 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2036
SELECT * FROM tab0 AS cor0 WHERE - col0 / - + col1 IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + ( + + col1 ) + + - col1 + + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT col2 + - + col0 * + col1 * ( - col0 ) FROM tab2
----
107939
315432
376933

query I rowsort
SELECT ALL 21 + + col0 AS col1 FROM tab2
----
67
85
96

query I rowsort
SELECT + col0 * 41 * - - col0 + ( + 27 ) + col1 FROM tab1
----
106682
296257
339595

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT DISTINCT - COUNT( ALL - - 40 ) + - 84 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT - COUNT ( ALL - - 40 ) + - 84 FROM tab2
----
-87

query I rowsort
SELECT ALL col1 * - col1 * 80 + 69 * 17 AS col0 FROM tab2
----
-206907
-357947
-473147

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2043
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 9 / - + MIN( DISTINCT col1 ) - 58 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 9 / - + MIN ( DISTINCT col1 ) - 58 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT CAST( col1 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-2044
SELECT CAST ( col1 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL 94 * - 29 - - - col0 FROM tab0 AS cor0
----
-2741
-2813
-2823

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT + COUNT( DISTINCT col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2046
SELECT + COUNT ( DISTINCT col0 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT SUM( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2047
SELECT SUM ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2048
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2049
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2050
SELECT 48 DIV - - COUNT( * ) AS col1 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-2050
SELECT 48 / - - COUNT ( * ) AS col1 FROM tab0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT 97 * - + COUNT( * ) FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-2051
SELECT 97 * - + COUNT ( * ) FROM tab1
----
-291

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT + col2 - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT MAX( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2053
SELECT MAX ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL + COUNT( * ) * - - 2 AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + COUNT ( * ) * - - 2 AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT - SUM( col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2055
SELECT - SUM ( col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL - + MAX( DISTINCT + + col2 ) * - - 11 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
1914

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL - + MAX ( DISTINCT + + col2 ) * - - 11 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1914

query I rowsort
SELECT ALL 39 + + 28 - 23 AS col1 FROM tab0 cor0 WHERE col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2058
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( 44 AS SIGNED ) + + col0 + - col1 IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-2058
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( 44 AS INTEGER ) + + col0 + - col1 IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * + 70 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT ALL + - col2 DIV col1 + - col1 FROM tab1 cor0
----
-16
-20
-48

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL + - col2 / col1 + - col1 FROM tab1 cor0
----
-16
-20
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2, tab2 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2063
SELECT CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2063
SELECT CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col1 * + 68 FROM tab2
----
3468
4556
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL ( - ( COUNT( * ) ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL ( - ( COUNT ( * ) ) ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2066
SELECT - CAST( NULL AS DECIMAL ) * - col0 * - - 60 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2066
SELECT - CAST ( NULL AS REAL ) * - col0 * - - 60 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 51 AS col1 FROM tab1 WHERE NOT - col1 + + col0 IS NULL
----
51
51
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 + - + col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 96 AS col1 FROM tab2
----
96
96
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2071
SELECT DISTINCT + - ( - 96 ) AS col0, + MAX( DISTINCT col1 ) * + 48 FROM tab2 AS cor0
----
96
3696

skipif mysql # not compatible
query II rowsort label-2071
SELECT DISTINCT + - ( - 96 ) AS col0, + MAX ( DISTINCT col1 ) * + 48 FROM tab2 AS cor0
----
96
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT + MAX( - + 32 ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT + MAX ( - + 32 ) FROM tab0 AS cor0
----
-32

query I rowsort
SELECT - 46 * col0 AS col0 FROM tab0
----
-4002
-4462
-690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - col1 * - - 27 col0, col1 col2 FROM tab2
----
-133056
77
-135675
67
-63342
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT ALL 61 - + + 35 / + col1 + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1 WHERE ( 29 * col0 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL 61 - + + 35 / + col1 + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1 WHERE ( 29 * col0 ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * col0 AS col0 FROM tab1 WHERE + col2 IS NOT NULL
----
425
4277
714

query I rowsort
SELECT - col0 * ( + - 8 ) * - + 26 - - col1 AS col0 FROM tab2
----
-13235
-15533
-9517

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 / - col1 + + 62 * - 49 NOT BETWEEN 22 + 46 AND ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL COUNT( * ) + - + MAX( + - 88 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL COUNT ( * ) + - + MAX ( + - 88 ) FROM tab0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT DISTINCT col2 DIV + + col0 - col1 * - col1 * col1 FROM tab2
----
132651
300763
456533

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT col2 / + + col0 - col1 * - col1 * col1 FROM tab2
----
132651
300763
456533

query I rowsort
SELECT DISTINCT - 95 + - - 73 AS col0 FROM tab0
----
-22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT IN ( - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT ALL ( - + 27 ) * + 51 * - COUNT( * ) FROM tab0 cor0
----
4131

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL ( - + 27 ) * + 51 * - COUNT ( * ) FROM tab0 cor0
----
4131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT DISTINCT - 20 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT - 20 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2085
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) / col2 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2085
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) / col2 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT DISTINCT - ( + - COUNT( * ) ) + - + COUNT( * ) + + 14 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
14

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT - ( + - COUNT ( * ) ) + - + COUNT ( * ) + + 14 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
14

query I rowsort
SELECT ALL 74 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2088
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - + ( - + 9 ) AND ( - 77 + + CAST( - col1 AS SIGNED ) - - 49 )
----

skipif mysql # not compatible
query III rowsort label-2088
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - + ( - + 9 ) AND ( - 77 + + CAST ( - col1 AS INTEGER ) - - 49 )
----

query I rowsort
SELECT ( 77 ) AS col2 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT + 90 * + col0 * + col2 AS col1 FROM tab0 AS cor0
----
63450
78300
864270

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2092
SELECT DISTINCT - COUNT( * ) * - 17 DIV + - 72 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT - COUNT ( * ) * - 17 / + - 72 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT + + 71 * + + MIN( + 80 ) AS col2 FROM tab2 AS cor0
----
5680

skipif mysql # not compatible
query I rowsort label-2093
SELECT + + 71 * + + MIN ( + 80 ) AS col2 FROM tab2 AS cor0
----
5680

query II rowsort
SELECT DISTINCT 42 AS col2, - col2 + - + 47 AS col0 FROM tab1
----
42
-106
42
-115
42
-143

query I rowsort
SELECT col0 - + + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2
-32
77

query I rowsort
SELECT ALL - col0 * - col1 AS col0 FROM tab0 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT SUM( ( - ( - - col2 ) ) ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2097
SELECT SUM ( ( - ( - - col2 ) ) ) AS col2 FROM tab2
----
-121

query I rowsort
SELECT + ( - 72 ) AS col2 FROM tab1
----
-72
-72
-72

query I rowsort
SELECT ALL 5 + + 77 AS col1 FROM tab0
----
82
82
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 11 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2101
SELECT ALL + COUNT( DISTINCT - + 80 ) * - + 83, 96 AS col1 FROM tab0 AS cor0
----
-83
96

skipif mysql # not compatible
query II rowsort label-2101
SELECT ALL + COUNT ( DISTINCT - + 80 ) * - + 83, 96 AS col1 FROM tab0 AS cor0
----
-83
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2102
SELECT col0 + + CAST( - 10 AS SIGNED ) FROM tab1 AS cor0
----
41
75
81

skipif mysql # not compatible
query I rowsort label-2102
SELECT col0 + + CAST ( - 10 AS INTEGER ) FROM tab1 AS cor0
----
41
75
81

query I rowsort
SELECT 8 + - 31 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT + 24 / - ( + 96 ) / - 21 FROM tab1 cor0 WHERE NOT ( - + ( col2 ) + + col0 IS NOT NULL )
----

query I rowsort
SELECT + 25 AS col1 FROM tab2 WHERE - 57 IS NOT NULL
----
25
25
25

query I rowsort
SELECT DISTINCT - 45 * + col1 * + col0 + - col0 + - + col2 FROM tab1
----
-192624
-19269
-32277

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT COUNT( DISTINCT + - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2107
SELECT COUNT ( DISTINCT + - col0 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 36 - 39 FROM tab1 AS cor0
----
-3
-3
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + 86 IS NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL COUNT( ALL - 96 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL COUNT ( ALL - 96 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT + COUNT( * ) + 30 AS col2 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2112
SELECT + COUNT ( * ) + 30 AS col2 FROM tab0 AS cor0
----
33

query I rowsort
SELECT - 91 * + col1 + + col1 + + col0 FROM tab1
----
-1209
-365
-4139

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2115
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 63, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2115
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 63, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT DISTINCT - 13 * col0 + - - col1 AS col2 FROM tab2
----
-547
-755
-908

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT + COUNT( * ) * - ( - + MAX( ALL col1 ) ) * - COUNT( * ) * COUNT( * ) + + MIN( + + col0 ) + 70 + + 81 AS col0 FROM tab0 WHERE NULL <> - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT + COUNT ( * ) * - ( - + MAX ( ALL col1 ) ) * - COUNT ( * ) * COUNT ( * ) + + MIN ( + + col0 ) + 70 + + 81 AS col0 FROM tab0 WHERE NULL <> - - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ( - MAX( DISTINCT - 87 ) ) AS col2 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-2118
SELECT ( - MAX ( DISTINCT - 87 ) ) AS col2 FROM tab1
----
87

query I rowsort
SELECT + col1 * - 95 AS col1 FROM tab0 WHERE NOT NULL > - 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT CAST( - CAST( - + 29 AS SIGNED ) AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

skipif mysql # not compatible
query I rowsort label-2120
SELECT CAST ( - CAST ( - + 29 AS INTEGER ) AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL + - 82 AS col0 FROM tab2 AS cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2122
SELECT DISTINCT CAST( NULL AS SIGNED ), 62 * - MAX( ALL 98 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
-6076

skipif mysql # not compatible
query II rowsort label-2122
SELECT DISTINCT CAST ( NULL AS INTEGER ), 62 * - MAX ( ALL 98 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
-6076

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 > ( - col2 + + - col2 / + - 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ALL SUM( + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL SUM ( + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT 48 * - 66 FROM tab2 cor0
----
-3168

query I rowsort
SELECT ALL + 94 * - col1 * - col0 AS col1 FROM tab2 AS cor0
----
220524
463232
472350

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + MAX( ALL 40 ) AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-2127
SELECT + MAX ( ALL 40 ) AS col2 FROM tab0
----
40

query II rowsort
SELECT DISTINCT + col2 * - ( + - col2 ) * - col1 + - ( - col0 ) - + col1 AS col0, col0 * - col0 + + col2 FROM tab2
----
-123213
-4056
-225380
-5567
-26984
-2093

onlyif mysql # aggregate syntax: 
query II rowsort label-2129
SELECT - SUM( DISTINCT 30 ) col0, - 96 AS col2 FROM tab1
----
-30
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2129
SELECT - SUM ( DISTINCT 30 ) col0, - 96 AS col2 FROM tab1
----
-30
-96

query I rowsort
SELECT DISTINCT col0 * + - col1 AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + 52 + col2 FROM tab0
----
151
62
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT 40 * ( col2 ) AS col1 FROM tab1
----
2360
2720
3840

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2134
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + col1 col1, - col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2134
SELECT DISTINCT + CAST ( NULL AS REAL ) * + col1 col1, - col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT 77 * + COUNT( * ) col0 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2135
SELECT 77 * + COUNT ( * ) col0 FROM tab1 AS cor0
----
231

query I rowsort
SELECT DISTINCT + - 61 * - col0 * - + col0 FROM tab0 AS cor0
----
-13725
-461709
-573949

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT - MAX( DISTINCT - + 50 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT - MAX ( DISTINCT - + 50 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + 79 + + col2 AS col0 FROM tab1 cor0
----
138
147
175

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT 44 * MIN( ALL + col1 ) + 16 AS col1 FROM tab2
----
2260

skipif mysql # not compatible
query I rowsort label-2139
SELECT 44 * MIN ( ALL + col1 ) + 16 AS col1 FROM tab2
----
2260

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT 37 + - MIN( col0 ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-2140
SELECT 37 + - MIN ( col0 ) FROM tab0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2141
SELECT ALL - + col1 DIV - col2 - + ( - 31 ) FROM tab0 AS cor0
----
31
32
33

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - + col1 / - col2 - + ( - 31 ) FROM tab0 AS cor0
----
31
32
33

query I rowsort
SELECT ALL - col2 - - - 16 FROM tab0 cor0
----
-115
-26
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2143
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + - ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2145
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 / - + CAST( NULL AS SIGNED ) BETWEEN NULL AND ( + + 73 * + col2 + - col2 * + col0 / + + col2 )
----

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 / - + CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( + + 73 * + col2 + - col2 * + col0 / + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2147
SELECT + CAST( + COUNT( DISTINCT + col2 ) AS SIGNED ) * 35 col0 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2147
SELECT + CAST ( + COUNT ( DISTINCT + col2 ) AS INTEGER ) * 35 col0 FROM tab1 AS cor0
----
105

query I rowsort
SELECT DISTINCT - 76 + + col2 AS col1 FROM tab2 AS cor0
----
-18
-36
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-2149
SELECT + col2 - 3 AS col0, col0 DIV 10 FROM tab1
----
56
8
65
9
93
5

skipif mysql # not compatible
query II rowsort label-2149
SELECT + col2 - 3 AS col0, col0 / 10 FROM tab1
----
56
8
65
9
93
5

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN col2 * + col2 + + - ( + col1 ) + + + 22 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 AS col0, 44 FROM tab1
----
14
44
47
44
5
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2152
SELECT ALL + 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-2152
SELECT ALL + CAST ( NULL AS INTEGER ) / - COUNT ( * ) col0 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT - 13, col2 AS col1 FROM tab1
----
-13
59
-13
68
-13
96

query II rowsort
SELECT col2 AS col0, col1 * + - 77 AS col0 FROM tab1
----
59
-385
68
-3619
96
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT ALL + COUNT( DISTINCT col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + COUNT ( DISTINCT col1 ) FROM tab2
----
3

query II rowsort
SELECT - col0 AS col2, + col1 AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( + ( - 60 ) * - col2 + - + col1 + ( col1 ) ) AND + ( - 74 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0, - col0 / + - col0 * + col2 * + + col1, + 43 )
----

query II rowsort
SELECT 9, + col1 AS col0 FROM tab0 AS cor0
----
9
1
9
21
9
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 77 * + 98 + - - col1 + + - ( - col0 ) ) <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + col2 col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL 24 * - + MIN( DISTINCT + 36 ) FROM tab2
----
-864

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL 24 * - + MIN ( DISTINCT + 36 ) FROM tab2
----
-864

onlyif mysql # DIV for integer division: 
query II rowsort label-2162
SELECT DISTINCT + col1 DIV - 13 AS col1, - col1 * - col0 AS col1 FROM tab1
----
-1
714
-3
4277
0
425

skipif mysql # not compatible
query II rowsort label-2162
SELECT DISTINCT + col1 / - 13 AS col1, - col1 * - col0 AS col1 FROM tab1
----
-1
714
-3
4277
0
425

query I rowsort
SELECT DISTINCT AVG ( - col0 ) FROM tab0 WHERE NOT NULL <= NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 39 )
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 62 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 16 AS col2 FROM tab1 AS cor0
----
-16

query I rowsort
SELECT ALL - col2 + col2 + - + col0 + - + ( - - 87 ) * - ( col2 ) FROM tab2 AS cor0
----
1955
3416
4971

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - COUNT( ALL - - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2169
SELECT - COUNT ( ALL - - col1 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - ( - 77 )
----

query II rowsort
SELECT ALL - - col1 AS col2, 11 AS col2 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + col2 * - - col1 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT DISTINCT col1 * + col2 + - col2, 59 AS col0 FROM tab0
----
0
59
200
59
3760
59

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN + 18 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * 72 AS col1 FROM tab2 WHERE NULL = - + col1 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT col0 + + CAST( NULL AS SIGNED ) * - - col1 * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT col0 + + CAST ( NULL AS INTEGER ) * - - col1 * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - AVG ( - ( + col2 ) ) FROM tab1 AS cor0 WHERE col0 + + + col0 * + col2 * + col0 * - col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( 68 ) AS col1 FROM tab2 AS cor0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col0 FROM tab1 AS cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT DISTINCT - - 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-2181
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 73 BETWEEN + - col1 - + 88 AND - col2 * col2
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2184
SELECT ALL - CAST( + 86 AS SIGNED ) AS col2, col1 FROM tab1 AS cor0
----
-86
14
-86
47
-86
5

skipif mysql # not compatible
query II rowsort label-2184
SELECT ALL - CAST ( + 86 AS INTEGER ) AS col2, col1 FROM tab1 AS cor0
----
-86
14
-86
47
-86
5

query I rowsort
SELECT DISTINCT - 85 * - col1 AS col1 FROM tab0
----
1785
6885
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2186
SELECT ALL - MAX( ALL - 72 ) DIV - ( 59 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL - MAX ( ALL - 72 ) / - ( 59 ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT ALL + col1 * + col1 AS col0 FROM tab0
----
1
441
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( DISTINCT + col2 ) / + - ( - 76 ) col0 FROM tab1 WHERE NOT + col2 * + 87 - - - 0 < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2189
SELECT DISTINCT col1 DIV + - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT col1 / + - col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL MAX( DISTINCT - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL MAX ( DISTINCT - col0 ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT ALL - 10 AS col1 FROM tab0
----
-10
-10
-10

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT NULL = col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 37 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT - MAX( + - 16 ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-2195
SELECT - MAX ( + - 16 ) FROM tab2 AS cor0
----
16

query I rowsort
SELECT + + ( - + 5 ) AS col2 FROM tab0 cor0
----
-5
-5
-5

query I rowsort
SELECT ALL - - col1 * + 11 AS col2 FROM tab0 AS cor0
----
11
231
891

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / col0 IS NOT NULL
----

query I rowsort
SELECT col2 * ( - - 87 ) AS col1 FROM tab1
----
5133
5916
8352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2200
SELECT 38 + COUNT( * ) DIV - - COUNT( * ) + + + 36 AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2200
SELECT 38 + COUNT ( * ) / - - COUNT ( * ) + + + 36 AS col2 FROM tab2
----
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 1, 93, + 97, + + ( col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2202
SELECT - col1 + - col1 + + col2 DIV - col1 FROM tab0 AS cor0
----
-101
-162
-42

skipif mysql # not compatible
query I rowsort label-2202
SELECT - col1 + - col1 + + col2 / - col1 FROM tab0 AS cor0
----
-101
-162
-42

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( - 12, + 92 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * col2 + + - col1 + 22 * - + col0 AS col1 FROM tab0 AS cor0
----
-1725
-2036
3396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 87 AS col0, - ( - 88 ) * 48 col0 FROM tab1 AS cor0
----
-87
4224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2207
SELECT DISTINCT + - col1 * - - col2 + - col2 * + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT + - col1 * - - col2 + - col2 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL COUNT( - 0 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL COUNT ( - 0 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - - col2 NOT BETWEEN NULL AND ( - 35 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + + col2 * + + col2 + + - 50 + - - col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 17 IS NULL
----

query I rowsort
SELECT ALL 9 + col0 * + 65 AS col1 FROM tab1
----
3324
5534
5924

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT COUNT( - - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2213
SELECT COUNT ( - - col1 ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col2 FROM tab2
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT MAX( + 50 ) col1 FROM tab1
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2215
SELECT MAX ( + 50 ) col1 FROM tab1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT + SUM( + + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2216
SELECT + SUM ( + + col0 ) AS col1 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT + 56 + - COUNT( * ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT + 56 + - COUNT ( * ) FROM tab2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2218
SELECT ALL * FROM tab1 WHERE NOT NULL > col1 / - CAST( + 71 AS SIGNED ) / - + 0 - - 68
----

skipif mysql # not compatible
query III rowsort label-2218
SELECT ALL * FROM tab1 WHERE NOT NULL > col1 / - CAST ( + 71 AS INTEGER ) / - + 0 - - 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2219
SELECT DISTINCT - col2 * - CAST( col1 AS SIGNED ) - - col2 FROM tab1 AS cor0
----
1440
3264
354

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT - col2 * - CAST ( col1 AS INTEGER ) - - col2 FROM tab1 AS cor0
----
1440
3264
354

query I rowsort
SELECT DISTINCT + - col0 * + + 65 FROM tab2 AS cor0
----
-2990
-4160
-4875

query I rowsort
SELECT + + col0 + - - col2 AS col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT col2 + - 15 AS col2 FROM tab0
----
-5
32
84

query I rowsort
SELECT - col0 + - 74 AS col1 FROM tab2
----
-120
-138
-149

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 53 IS NOT NULL
----

query I rowsort
SELECT + col2 + + 9 FROM tab2
----
32
49
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT DISTINCT - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT ALL + - ( COUNT( * ) ) + - MAX( DISTINCT + + col2 ) col0 FROM tab1 WHERE 97 IS NOT NULL
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2227
SELECT ALL + - ( COUNT ( * ) ) + - MAX ( DISTINCT + + col2 ) col0 FROM tab1 WHERE 97 IS NOT NULL
----
-99

query I rowsort
SELECT col1 + - 54 * - 10 * - - col1 FROM tab2
----
27591
36247
41657

query I rowsort
SELECT DISTINCT + + ( - col0 ) * - col2 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( + col1 ) AND + col1
----

query I rowsort
SELECT ALL + 27 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT + + MAX( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2232
SELECT + + MAX ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < - col1
----
0

skipif mysql # not compatible
query I rowsort label-2233
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < - col1
----
0

query I rowsort
SELECT - col1 * - + col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL col0 * + + ( + col1 ) FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT - 50 * 82 FROM tab0
----
-4100

query I rowsort
SELECT ALL + 19 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2238
SELECT * FROM tab0 WHERE NOT ( NOT + ( - CAST( col2 AS SIGNED ) ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2238
SELECT * FROM tab0 WHERE NOT ( NOT + ( - CAST ( col2 AS INTEGER ) ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 NOT BETWEEN + 30 * ( col0 ) AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT DISTINCT COUNT( DISTINCT + 83 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT COUNT ( DISTINCT + 83 ) AS col0 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2241
SELECT - + 41 * - ( - - col2 ) * + CAST( NULL AS SIGNED ) + - col1 + + col2 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-2241
SELECT - + 41 * - ( - - col2 ) * + CAST ( NULL AS INTEGER ) + - col1 + + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 = + col0
----

query I rowsort
SELECT DISTINCT + 86 * ( + 74 ) + - 79 AS col1 FROM tab0 AS cor0
----
6285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + - ( - + 77 ) AS col0 FROM tab1 cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2246
SELECT DISTINCT - COUNT( * ) AS col2, ( - ( + 89 ) ) FROM tab2 AS cor0 WHERE NOT + col2 * - ( + col1 ) <= - col1
----
0
-89

skipif mysql # not compatible
query II rowsort label-2246
SELECT DISTINCT - COUNT ( * ) AS col2, ( - ( + 89 ) ) FROM tab2 AS cor0 WHERE NOT + col2 * - ( + col1 ) <= - col1
----
0
-89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2247
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + CAST( NULL AS SIGNED ), col0 )
----

skipif mysql # not compatible
query III rowsort label-2247
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + CAST ( NULL AS INTEGER ), col0 )
----

query I rowsort
SELECT - - 37 AS col2 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT ALL col0 + + 82 FROM tab1 AS cor0
----
133
167
173

query I rowsort
SELECT ALL - 48 + - 99 FROM tab1 AS cor0
----
-147
-147
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2251
SELECT - CAST( 16 AS SIGNED ) FROM tab2 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-2251
SELECT - CAST ( 16 AS INTEGER ) FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL + + 17 FROM tab0 cor0 WHERE + col0 * 86 <= NULL
----

query I rowsort
SELECT - ( col1 ) + col2 AS col0 FROM tab0
----
-11
-34
98

query III rowsort
SELECT * FROM tab0 WHERE - - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 23 > - col0
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - col1 - col2 - col1 AS col0 FROM tab1
----
-124
-162
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT DISTINCT 37 + SUM( DISTINCT - col0 ) AS col1 FROM tab1
----
-190

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT 37 + SUM ( DISTINCT - col0 ) AS col1 FROM tab1
----
-190

query I rowsort
SELECT - col0 + - - col1 + 25 AS col0 FROM tab0
----
-41
-71
91

query I rowsort
SELECT ALL - col0 - + - ( - col0 ) AS col2 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT DISTINCT + - col2 DIV - col2 + - ( - 42 ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT + - col2 / - col2 + - ( - 42 ) FROM tab0 AS cor0
----
43

query I rowsort
SELECT + col2 - - + col0 AS col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT DISTINCT MIN( ( - col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT MIN ( ( - col0 ) ) FROM tab0 AS cor0
----
-97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 56 <= col2
----

query I rowsort
SELECT DISTINCT + 64 * - col1 + col1 FROM tab1 AS cor0
----
-2961
-315
-882

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 25 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2266
SELECT ALL CAST( NULL AS SIGNED ) AS col0, col1 + + + col1 * + col1 * + + col0 AS col2 FROM tab2
----
NULL
119697
NULL
336742
NULL
379533

skipif mysql # not compatible
query II rowsort label-2266
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, col1 + + + col1 * + col1 * + + col0 AS col2 FROM tab2
----
NULL
119697
NULL
336742
NULL
379533

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT + COUNT( ALL - + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT + COUNT ( ALL - + col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + + 35 FROM tab0 WHERE NOT - 45 + col0 BETWEEN NULL AND 81 * + + col2 + + ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT - SUM( col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2270
SELECT - SUM ( col2 ) AS col1 FROM tab1
----
-223

query I rowsort
SELECT + 77 * + - col2 FROM tab0
----
-3619
-7623
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT MAX( DISTINCT + col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2272
SELECT MAX ( DISTINCT + col0 ) AS col2 FROM tab2
----
75

query II rowsort
SELECT DISTINCT col1 AS col1, - col2 + col1 + ( + col2 ) AS col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + 74 * - col1 AS col0 FROM tab1
----
-1036
-3478
-370

query I rowsort
SELECT ALL + col0 * + - 99 * col0 + + 64 FROM tab0 AS cor0
----
-22211
-749267
-931427

query I rowsort
SELECT + ( - - 31 ) AS col2 FROM tab0 AS cor0
----
31
31
31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < - - col2 + + - col0
----

query I rowsort
SELECT DISTINCT + - col1 * + - col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - col1 + + ( + col2 ) FROM tab2
----
-28
-37
-9

query I rowsort
SELECT - 63 + + + col0 FROM tab0 AS cor0
----
-48
24
34

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE NOT 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT ALL CAST( - col0 AS SIGNED ) * 81 FROM tab2 cor0
----
-3726
-5184
-6075

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL CAST ( - col0 AS INTEGER ) * 81 FROM tab2 cor0
----
-3726
-5184
-6075

query I rowsort
SELECT ALL - 60 * + - 15 FROM tab1 AS cor0
----
900
900
900

onlyif mysql # DIV for integer division: 
query I rowsort label-2284
SELECT DISTINCT col2 DIV + 56 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT col2 / + 56 AS col0 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 57 IS NULL
----

query I rowsort
SELECT ALL 34 * + col0 FROM tab2 AS cor0
----
1564
2176
2550

query I rowsort
SELECT DISTINCT col1 + - 1 AS col1 FROM tab0
----
0
20
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT - MIN( - - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2288
SELECT - MIN ( - - col1 ) FROM tab0
----
-1

query I rowsort
SELECT - ( - + col1 ) FROM tab1
----
14
47
5

query I rowsort
SELECT col2 * + 17 AS col0 FROM tab2
----
391
680
986

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT col2 + - 82 - + + col1 FROM tab0
----
-116
-93
16

query I rowsort
SELECT col1 - + - col0 AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT - col1 - 7 FROM tab0
----
-28
-8
-88

query II rowsort
SELECT DISTINCT - col1 * + col1 - + 57, 79 * - - col1 AS col1 FROM tab1
----
-2266
3713
-253
1106
-82
395

query I rowsort
SELECT ALL col0 - - + 37 FROM tab0 AS cor0
----
124
134
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2297
SELECT COUNT( * ) + - 59 - - + 58 DIV + 9 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2297
SELECT COUNT ( * ) + - 59 - - + 58 / + 9 FROM tab0 AS cor0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT ALL - CAST( + col0 AS SIGNED ) + + 82 FROM tab0 AS cor0
----
-15
-5
67

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL - CAST ( + col0 AS INTEGER ) + + 82 FROM tab0 AS cor0
----
-15
-5
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT ALL + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT + ( + - 25 ) FROM tab1 cor0 WHERE NOT + col0 * - col2 IS NULL
----
-25
-25
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT + - col1 DIV - + 81 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2302
SELECT + - col1 / - + 81 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2303
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + + col2 + + CAST( + 9 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2303
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + + col2 + + CAST ( + 9 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2304
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT - + MAX( DISTINCT + 39 ) AS col0 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2305
SELECT - + MAX ( DISTINCT + 39 ) AS col0 FROM tab1 AS cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( + col2 ) col0 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + 0 * + 24 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 * - col2 * + 65 AS col0 FROM tab1
----
318240
325975
402220

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( col1, - 72, + col0 )
----

query I rowsort
SELECT - 67 * - - col1 * 59 AS col2 FROM tab2
----
-201603
-264851
-304381

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 14 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT COUNT( * ) * + + COUNT( * ) FROM tab1 WHERE NOT + col1 = - 68 * col0 + 98
----
9

skipif mysql # not compatible
query I rowsort label-2312
SELECT COUNT ( * ) * + + COUNT ( * ) FROM tab1 WHERE NOT + col1 = - 68 * col0 + 98
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL - - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL - - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT ALL col0 * col2 AS col1, col2 - + 30 AS col1 FROM tab0
----
705
17
870
-20
9603
69

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 42 * - 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 + + col0 col2 FROM tab0 AS cor0
----
144
154
72

query I rowsort
SELECT 58 + col2 AS col0 FROM tab2 AS cor0
----
116
81
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 82 IS NULL
----

query I rowsort
SELECT ALL - + col0 FROM tab0 cor0 WHERE NOT + 88 IS NULL
----
-15
-87
-97

query II rowsort
SELECT - col2 * col2 + col0 AS col0, col2 AS col2 FROM tab0 AS cor0
----
-13
10
-2194
47
-9704
99

query I rowsort
SELECT DISTINCT 81 + - - col0 * col1 FROM tab2 AS cor0
----
2427
5009
5106

query I rowsort
SELECT - col0 * + 57 AS col2 FROM tab2 AS cor0
----
-2622
-3648
-4275

query I rowsort
SELECT - + col1 * - - col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT 89 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT ALL + col2 DIV + + col0 + col2 FROM tab0 cor0
----
10
100
50

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + col2 / + + col0 + col2 FROM tab0 cor0
----
10
100
50

query I rowsort
SELECT - col1 - + - col2 AS col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT + - col2 - - - col1 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 31 / - - ( - - col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2330
SELECT - - CAST( NULL AS SIGNED ) + + 57 - + - 6 * 70 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2330
SELECT - - CAST ( NULL AS INTEGER ) + + 57 - + - 6 * 70 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT DISTINCT SUM( DISTINCT + + 76 ) AS col1 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT SUM ( DISTINCT + + 76 ) AS col1 FROM tab1 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT - MAX( - col0 ) AS col1 FROM tab2 AS cor0 WHERE - col1 + 35 IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-2332
SELECT - MAX ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE - col1 + 35 IS NOT NULL
----
46

query II rowsort
SELECT ALL - col1 AS col1, + 42 FROM tab1 AS cor0
----
-14
42
-47
42
-5
42

query I rowsort
SELECT - 35 * - 61 + - col0 + - col2 * + 14 FROM tab1 AS cor0
----
1092
1224
740

query I rowsort
SELECT + + 4 + - col1 AS col1 FROM tab1 AS cor0
----
-1
-10
-43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( 87, 62 * + col2 ) AND NOT ( col2 ) <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT ALL + MAX( - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL + MAX ( - col0 ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT ALL col0 + - col0 * + - 50 FROM tab1
----
2601
4335
4641

query I rowsort
SELECT ALL col2 - col2 + - 8 * + col0 AS col1 FROM tab0
----
-120
-696
-776

query I rowsort
SELECT ALL - col2 * - 25 * - col2 - + col2 + - col0 + - ( col2 ) * + col1 FROM tab2
----
-14467
-43184
-88119

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT ALL - CAST( NULL AS SIGNED ) - + 79 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL - CAST ( NULL AS INTEGER ) - + 79 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - + ( - col0 ) * + - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-10528
-75680
-931392

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 / - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2345
SELECT COUNT( * ) * - + 67 * 32 AS col1, 62 * - 68 * 18 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6432
-75888

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2345
SELECT COUNT ( * ) * - + 67 * 32 AS col1, 62 * - 68 * 18 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6432
-75888

query I rowsort
SELECT col0 * 2 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2347
SELECT ALL - CAST( col2 AS SIGNED ) * 38 AS col2 FROM tab2
----
-1520
-2204
-874

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL - CAST ( col2 AS INTEGER ) * 38 AS col2 FROM tab2
----
-1520
-2204
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT + MIN( ALL col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2348
SELECT + MIN ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - 57 * - - 46 + col1 AND col2 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL MAX( ALL - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL MAX ( ALL - col0 ) FROM tab2
----
-46

query I rowsort
SELECT 18 * + + 34 AS col2 FROM tab2
----
612
612
612

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2353
SELECT + CAST( 29 AS SIGNED ) * + col1 AS col1 FROM tab1
----
1363
145
406

skipif mysql # not compatible
query I rowsort label-2353
SELECT + CAST ( 29 AS INTEGER ) * + col1 AS col1 FROM tab1
----
1363
145
406

query I rowsort
SELECT ALL + col0 + - 37 + - - 28 FROM tab0 WHERE NOT ( NOT NULL > ( NULL ) )
----

query I rowsort
SELECT ALL - 86 + col0 FROM tab0
----
-71
1
11

query II rowsort
SELECT DISTINCT 54 AS col1, col1 + col2 AS col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
54
117
54
125
54
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT MAX( ( + col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2357
SELECT MAX ( ( + col1 ) ) FROM tab2
----
77

query I rowsort
SELECT 66 * + col0 FROM tab0
----
5742
6402
990

query I rowsort
SELECT ALL + + 40 FROM tab2 cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2360
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2361
SELECT CAST( NULL AS DECIMAL ) * + + COUNT( col2 ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2361
SELECT CAST ( NULL AS REAL ) * + + COUNT ( col2 ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL MIN( ALL 42 ) - + 73 AS col0 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL MIN ( ALL 42 ) - + 73 AS col0 FROM tab2 AS cor0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT + col0 DIV 62 DIV - + 9 AS col2 FROM tab1 AS cor0 WHERE ( 61 NOT BETWEEN - col2 AND + 42 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2363
SELECT + col0 / 62 / - + 9 AS col2 FROM tab1 AS cor0 WHERE ( 61 NOT BETWEEN - col2 AND + 42 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT - + MIN( + 62 ) AS col1 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-2364
SELECT - + MIN ( + 62 ) AS col1 FROM tab1 AS cor0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-2365
SELECT ALL + + 64 * col0 DIV col1 * - col0 FROM tab1 AS cor0
----
-11193
-11883
-92480

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL + + 64 * col0 / col1 * - col0 FROM tab1 AS cor0
----
-11193
-11883
-92480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 * col0 col1 FROM tab1
----
36125
36414
389207

query I rowsort
SELECT 57 - + + col1 AS col0 FROM tab0
----
-24
36
56

query I rowsort
SELECT col1 * col0 - - - col0 + 29 AS col2 FROM tab2
----
2329
4893
4979

query I rowsort
SELECT DISTINCT 21 + col1 + - col2 + + col0 FROM tab1
----
-10
52
91

query I rowsort
SELECT ALL col1 - - 32 AS col1 FROM tab1
----
37
46
79

query I rowsort
SELECT DISTINCT + 85 * 19 FROM tab1
----
1615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT DISTINCT + CAST( 24 AS SIGNED ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT + CAST ( 24 AS INTEGER ) FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL COUNT( * ) * + 29 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL COUNT ( * ) * + 29 FROM tab1
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 19, 88 col0 FROM tab2 AS cor0
----
19
88
19
88
19
88

query II rowsort
SELECT ALL - + col0, - col2 AS col0 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT COUNT( * ) * + + 76 FROM tab0 cor0
----
228

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT COUNT ( * ) * + + 76 FROM tab0 cor0
----
228

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= ( + + 10 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col0 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT ALL - 68 * col1 FROM tab1
----
-3196
-340
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT ( + COUNT( * ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2380
SELECT ( + COUNT ( * ) ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2381
SELECT ALL + 30 col1, MAX( + - 30 ) FROM tab0, tab2 AS cor0
----
30
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2381
SELECT ALL + 30 col1, MAX ( + - 30 ) FROM tab0, tab2 AS cor0
----
30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT DISTINCT - col2 DIV + - col1 AS col2 FROM tab0
----
0
99

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT - col2 / + - col1 AS col2 FROM tab0
----
0
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2383
SELECT ( + + COUNT( * ) ) DIV MIN( 6 ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2383
SELECT ( + + COUNT ( * ) ) / MIN ( 6 ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - 47 * - col2 * - 11 FROM tab2 AS cor0
----
-11891
-20680
-29986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2385
SELECT - 76 FROM tab1 AS cor0 WHERE NOT + 38 + + 22 * + 97 * - - CAST( NULL AS SIGNED ) + + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-2385
SELECT - 76 FROM tab1 AS cor0 WHERE NOT + 38 + + 22 * + 97 * - - CAST ( NULL AS INTEGER ) + + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT COUNT( ALL - - col1 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2386
SELECT COUNT ( ALL - - col1 ) col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - ( 69 ), col0 AS col0 FROM tab1 AS cor0
----
-69
51
-69
85
-69
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col2 FROM tab1
----
93
93
93

query III rowsort
SELECT ALL * FROM tab0 WHERE 90 IS NULL
----

query I rowsort
SELECT ALL + ( 96 ) + 71 - col1 * - col1 * - + col0 AS col0 FROM tab2
----
-119479
-336508
-379289

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT 11, + COUNT( * ) AS col2 FROM tab2
----
11
3

skipif mysql # not compatible
query II rowsort label-2391
SELECT 11, + COUNT ( * ) AS col2 FROM tab2
----
11
3

query I rowsort
SELECT DISTINCT + 2 AS col1 FROM tab0
----
2

query I rowsort
SELECT col2 + 96 - - col1 AS col0 FROM tab0 AS cor0
----
127
196
224

query I rowsort
SELECT ALL col2 + + + ( + - col1 ) AS col0 FROM tab1 AS cor0
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + 57 ) * - col0 - + + col0 + - - col1 + + col1 + + col1, col0 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4983
87
-5623
97
-627
15

query I rowsort
SELECT ALL - col2 - 25 * col0 AS col0 FROM tab0 AS cor0
----
-2185
-2524
-422

query I rowsort
SELECT col0 + + + col1 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + 77 + col2 AS col2 FROM tab1 cor0
----
136
145
173

onlyif mysql # aggregate syntax: 
query II rowsort label-2399
SELECT DISTINCT + - COUNT( * ), - 17 col2 FROM tab1 AS cor0
----
-3
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2399
SELECT DISTINCT + - COUNT ( * ), - 17 col2 FROM tab1 AS cor0
----
-3
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - COUNT( * ) + + + COUNT( * ) * + 43 - + 76 AS col0 FROM tab1 cor0
----
50

skipif mysql # not compatible
query I rowsort label-2400
SELECT - COUNT ( * ) + + + COUNT ( * ) * + 43 - + 76 AS col0 FROM tab1 cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL + MIN( - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL + MIN ( - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT col1 + + - ( - - 89 ) AS col1 FROM tab1 AS cor0
----
-42
-75
-84

query I rowsort
SELECT DISTINCT + - ( 97 ) - - col0 - + col2 - + + col0 FROM tab1 AS cor0
----
-156
-165
-193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2404
SELECT ALL 61 + + CAST( NULL AS SIGNED ) / - + 11 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL 61 + + CAST ( NULL AS INTEGER ) / - + 11 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2405
SELECT - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT 70 + col2 FROM tab2 AS cor0
----
110
128
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT DISTINCT SUM( 88 ) FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT SUM ( 88 ) FROM tab1
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT + col2 DIV col1 * + 42 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2408
SELECT + col2 / col1 * + 42 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col0 FROM tab1
----
12
12
12

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + ( ( - col1 ) ) FROM tab0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT col2, 98 FROM tab0
----
10
98
47
98
99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2416
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 98 + + 7 * col1 FROM tab0 cor0
----
105
245
665

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL - + COUNT( - col0 ) FROM tab1 AS cor0 WHERE NOT 91 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL - + COUNT ( - col0 ) FROM tab1 AS cor0 WHERE NOT 91 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT - col1 + + - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN col0 AND + CAST( - - col2 AS SIGNED ) + 13
----

skipif mysql # not compatible
query I rowsort label-2421
SELECT - col1 + + - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN col0 AND + CAST ( - - col2 AS INTEGER ) + 13
----

query I rowsort
SELECT ALL + col1 * 54 + - 89 FROM tab0 AS cor0
----
-35
1045
4285

query I rowsort
SELECT DISTINCT + col1 + - - 39 FROM tab2 AS cor0
----
106
116
90

query I rowsort
SELECT - + 53 FROM tab1 cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT ALL - 18 * COUNT( - col1 ) AS col2 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL - 18 * COUNT ( - col1 ) AS col2 FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT ALL - COUNT( * ) + 12 + COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL - COUNT ( * ) + 12 + COUNT ( * ) FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL 25 + + MAX( col0 ) FROM tab0
----
122

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL 25 + + MAX ( col0 ) FROM tab0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT - ( COUNT( DISTINCT - col0 ) ) FROM tab2 WHERE - 20 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2428
SELECT - ( COUNT ( DISTINCT - col0 ) ) FROM tab2 WHERE - 20 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL + COUNT( * ) * - + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) FROM tab1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT DISTINCT 36 + - ( + col0 ) FROM tab1
----
-15
-49
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT - ( - - SUM( 11 ) ) AS col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-2432
SELECT - ( - - SUM ( 11 ) ) AS col1 FROM tab2 AS cor0
----
-33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 89 < - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + - + col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2435
SELECT - CAST( NULL AS SIGNED ) + + COUNT( ALL col2 ) * + ( 90 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( ALL col2 ) * + ( 90 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 72 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT ALL MAX( - - col1 ) * 89 - - 73 FROM tab0 AS cor0
----
7282

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL MAX ( - - col1 ) * 89 - - 73 FROM tab0 AS cor0
----
7282

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2438
SELECT * FROM tab0 AS cor0 WHERE ( - ( + - CAST( NULL AS SIGNED ) ) ) + 64 * + - col0 < ( col0 )
----

skipif mysql # not compatible
query III rowsort label-2438
SELECT * FROM tab0 AS cor0 WHERE ( - ( + - CAST ( NULL AS INTEGER ) ) ) + 64 * + - col0 < ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2439
SELECT DISTINCT col0 - - + CAST( NULL AS SIGNED ) - - 66 * + col2 + col1 AS col0, + 95 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
-1330
NULL
-4465
NULL
-475

skipif mysql # not compatible
query II rowsort label-2439
SELECT DISTINCT col0 - - + CAST ( NULL AS INTEGER ) - - 66 * + col2 + col1 AS col0, + 95 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
-1330
NULL
-4465
NULL
-475

query I rowsort
SELECT DISTINCT + col2 - col1 + col0 AS col1 FROM tab2 AS cor0
----
18
27
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2441
SELECT DISTINCT 9 AS col2, COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + col0 * + col0
----
9
0

skipif mysql # not compatible
query II rowsort label-2441
SELECT DISTINCT 9 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + col0 * + col0
----
9
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT DISTINCT - ( + - MAX( DISTINCT - col2 ) ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT - ( + - MAX ( DISTINCT - col2 ) ) AS col2 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT + COUNT( ALL - 26 ) FROM tab0 WHERE NOT + col2 >= - 31 * - 39
----
3

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT + COUNT ( ALL - 26 ) FROM tab0 WHERE NOT + col2 >= - 31 * - 39
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - ( COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2445
SELECT - ( COUNT ( * ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT DISTINCT MAX( DISTINCT - + 80 ) FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT MAX ( DISTINCT - + 80 ) FROM tab2
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2447
SELECT - COUNT( * ) DIV + 62 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2447
SELECT - COUNT ( * ) / + 62 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 = + 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2449
SELECT COUNT( * ) AS col1, + COUNT( * ) + MAX( - col2 ) FROM tab2 AS cor0
----
3
-20

skipif mysql # not compatible
query II rowsort label-2449
SELECT COUNT ( * ) AS col1, + COUNT ( * ) + MAX ( - col2 ) FROM tab2 AS cor0
----
3
-20

query I rowsort
SELECT 27 * + col1 + - col1 + - - col0 * + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 - + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2451
SELECT + 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-2451
SELECT + col1 AS col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT NULL = NULL )
----

query II rowsort
SELECT ALL ( - col2 ) AS col1, col2 AS col2 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT col2 DIV - 56 + - 17 AS col0 FROM tab2 AS cor0
----
-17
-17
-18

skipif mysql # not compatible
query I rowsort label-2454
SELECT col2 / - 56 + - 17 AS col0 FROM tab2 AS cor0
----
-17
-17
-18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2456
SELECT DISTINCT + - 64 * - col0 DIV col0 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT + - 64 * - col0 / col0 FROM tab2 AS cor0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2457
SELECT - 51 DIV + + COUNT( * ) FROM tab1 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2457
SELECT - 51 / + + COUNT ( * ) FROM tab1 cor0
----
-17

query I rowsort
SELECT ALL + + col2 + col2 - - - ( - 62 ) FROM tab0 AS cor0
----
156
260
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2459
SELECT ALL - + CAST( NULL AS SIGNED ) + + col0 + col1 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL - + CAST ( NULL AS INTEGER ) + + col0 + col1 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT + COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2460
SELECT + COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT DISTINCT + col0 DIV + + col2 + - 78 + - - col1 DIV + col1 + col1 AS col2 FROM tab2 cor0
----
-24
-9
1

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT + col0 / + + col2 + - 78 + - - col1 / + col1 + col1 AS col2 FROM tab2 cor0
----
-24
-9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT - 33 + COUNT( * ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-2462
SELECT - 33 + COUNT ( * ) AS col1 FROM tab0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 < NULL
----

query I rowsort
SELECT + 88 + + 73 AS col1 FROM tab1
----
161
161
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT + MAX( DISTINCT + - col2 ) AS col2 FROM tab2 WHERE NULL <= + col2 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT + MAX ( DISTINCT + - col2 ) AS col2 FROM tab2 WHERE NULL <= + col2 + - col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 + - 13 col2 FROM tab0
----
54

query I rowsort
SELECT - 20 + + col2 - col0 FROM tab2
----
-37
-43
-44

query I rowsort
SELECT ALL - col0 * + 35 FROM tab0 AS cor0
----
-3045
-3395
-525

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - + 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT + + COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2470
SELECT + + COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 66 AS col1 FROM tab2 WHERE NOT + 87 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL - MIN( ALL col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL - MIN ( ALL col1 ) FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT - 50 DIV - 16 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2474
SELECT - 50 / - 16 FROM tab1
----
3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT 42 DIV - col2 AS col1 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2475
SELECT 42 / - col2 AS col1 FROM tab0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 WHERE NOT + col1 NOT BETWEEN ( + ( col2 ) + 84 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2477
SELECT + 50 DIV + col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2477
SELECT + 50 / + col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + AVG ( col1 ) FROM tab1 WHERE NULL NOT IN ( - 29 * + col1 + + col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2479
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) + + 32 * - 23 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 32 * - 23 FROM tab1
----
NULL

query I rowsort
SELECT col0 - - col2 AS col0 FROM tab1 WHERE NOT NULL < - col0 * 41
----

query I rowsort
SELECT ALL - col2 * + col0 - - 49 AS col2 FROM tab1
----
-4847
-4966
-6139

query I rowsort
SELECT + ( + col0 ) * + col2 FROM tab0 WHERE NOT - col1 * - ( - 68 ) + + col1 <= col2
----

query I rowsort
SELECT ALL 74 + + col1 * col0 AS col0 FROM tab2
----
2420
5002
5099

query I rowsort
SELECT ALL - col1 * + col1 + col2 FROM tab2
----
-2578
-4431
-5889

query I rowsort
SELECT DISTINCT - 34 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + 98 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT - col0 IN ( + ( col2 ) - - col1 * col2 )
----
23
40
58

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT ( col0 ) IN ( + 67 * col0 )
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT - ( + 33 ) + - col2 DIV + col0 FROM tab1
----
-33
-33
-34

skipif mysql # not compatible
query I rowsort label-2491
SELECT - ( + 33 ) + - col2 / + col0 FROM tab1
----
-33
-33
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT + COUNT( + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2492
SELECT + COUNT ( + col1 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 31 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 63 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT + ( SUM( ALL col0 ) ) col2 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2495
SELECT + ( SUM ( ALL col0 ) ) col2 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT + col1 AS col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2496
SELECT + col1 AS col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 ) <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT DISTINCT - MAX( DISTINCT - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT - MAX ( DISTINCT - col2 ) FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + col2 col1 FROM tab0 WHERE ( - col0 ) IS NOT NULL
----
113
165
76

query III rowsort
SELECT * FROM tab1 WHERE NOT 0 + - col1 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2501
SELECT DISTINCT CAST( MAX( col2 ) AS SIGNED ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT CAST ( MAX ( col2 ) AS INTEGER ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 + col2 = ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-2502
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 + col2 = ( col0 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT SUM( DISTINCT + ( + col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2503
SELECT SUM ( DISTINCT + ( + col1 ) ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab2 AS cor0
----
20

query I rowsort
SELECT ALL 39 / - col2 FROM tab1 AS cor0 WHERE + col1 + + col0 / + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT DISTINCT 36 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
36

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT 36 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT ALL MAX( ALL + col2 ) + 86 FROM tab0 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL MAX ( ALL + col2 ) + 86 FROM tab0 AS cor0
----
185

query I rowsort
SELECT + 86 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ( + col0 ) * col2 AS col2 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + 38 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2511
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 66 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2513
SELECT ALL + col1 * + ( - col0 * - CAST( NULL AS SIGNED ) - + col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL + col1 * + ( - col0 * - CAST ( NULL AS INTEGER ) - + col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 77 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE ( ( - col2 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( 83 )
----

query I rowsort
SELECT - 8 + + col2 AS col0 FROM tab0 AS cor0
----
2
39
91

query I rowsort
SELECT - - col0 * col1 + ( + col1 ) AS col1 FROM tab1 AS cor0
----
430
4324
728

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 84 * + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT ALL MAX( DISTINCT + 82 ) col2 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2520
SELECT ALL MAX ( DISTINCT + 82 ) col2 FROM tab1 AS cor0
----
82

query I rowsort
SELECT ALL + col0 + 38 FROM tab0 AS cor0
----
125
135
53

query I rowsort
SELECT - 98 * 23 * ( - ( + col0 ) * + col1 ) AS col2 FROM tab1
----
1609356
957950
9640358

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) NOT IN ( col0 / col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 41 ) AS col0 FROM tab2
----
41
41
41

query III rowsort
SELECT * FROM tab1 WHERE + 21 = + col0 / ( - col1 * 34 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT DISTINCT col0 DIV - - col2 FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT col0 / - - col2 FROM tab0
----
0
8

query I rowsort
SELECT + col2 * - + col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL + 48 + 29 AS col0 FROM tab1
----
77
77
77

query III rowsort
SELECT * FROM tab2 WHERE - 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 IN ( - 89 - - col1 )
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * + col0 IS NOT NULL AND col1 - - col2 BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 26 IN ( - col1 * + 29 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 + + col2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2536
SELECT col0, + CAST( NULL AS SIGNED ) + + col1 - col2 / + 3 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2536
SELECT col0, + CAST ( NULL AS INTEGER ) + + col1 - col2 / + 3 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT + 30 * ( + COUNT( * ) ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-2537
SELECT + 30 * ( + COUNT ( * ) ) FROM tab0
----
90

query I rowsort
SELECT ALL + col1 * + 26 AS col0 FROM tab2
----
1326
1742
2002

query I rowsort
SELECT ALL 59 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT - + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2540
SELECT - + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2541
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2541
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT 82 + - 92 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + + col2 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT ALL + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT + - 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-2547
SELECT + - MAX ( ALL col0 ) col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT AVG ( - col0 ) * - 96 AS col2 FROM tab0 AS cor0 WHERE NOT col0 = + col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2549
SELECT + col2 DIV - col2 + - col0 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-2549
SELECT + col2 / - col2 + - col0 col2 FROM tab0 AS cor0
----
-16
-88
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT DISTINCT SUM( ALL + 45 ) col2 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2550
SELECT DISTINCT SUM ( ALL + 45 ) col2 FROM tab2 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT - + MAX( - + 3 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2551
SELECT - + MAX ( - + 3 ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 39 AS col2 FROM tab2 WHERE NOT ( - col1 ) IS NULL
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2553
SELECT * FROM tab0 WHERE NOT ( + col0 ) BETWEEN col2 * - CAST( NULL AS SIGNED ) AND ( + col1 )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-2553
SELECT * FROM tab0 WHERE NOT ( + col0 ) BETWEEN col2 * - CAST ( NULL AS INTEGER ) AND ( + col1 )
----
87
21
10
97
1
99

query I rowsort
SELECT ( + - 42 ) FROM tab2
----
-42
-42
-42

query I rowsort
SELECT DISTINCT + col0 * - + col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT DISTINCT SUM( ALL - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT SUM ( ALL - - col1 ) FROM tab2
----
195

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + col2 + col1 * - col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT - col1 DIV + col0 + - + col1 * 67 + + 82 col0 FROM tab1 AS cor0
----
-253
-3067
-856

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2559
SELECT - col1 / + col0 + - + col1 * 67 + + 82 col0 FROM tab1 AS cor0
----
-253
-3067
-856

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col0 = - - col0 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2561
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2561
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL - SUM( 32 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL - SUM ( 32 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT DISTINCT 56 + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----
56

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT 56 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL + 84 + - - SUM( DISTINCT + 63 ) AS col1 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL + 84 + - - SUM ( DISTINCT + 63 ) AS col1 FROM tab0 AS cor0
----
147

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT - 82 - COUNT( * ) * + ( - MAX( ALL + col2 ) ) + + COUNT( * ) AS col0 FROM tab0 cor0
----
218

skipif mysql # not compatible
query I rowsort label-2566
SELECT - 82 - COUNT ( * ) * + ( - MAX ( ALL + col2 ) ) + + COUNT ( * ) AS col0 FROM tab0 cor0
----
218

query I rowsort
SELECT col0 + + 58 * - col2 FROM tab0 AS cor0
----
-2711
-493
-5645

query I rowsort
SELECT ALL + 75 + ( - 60 ) AS col0 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT + - AVG ( + 15 ) AS col2 FROM tab1 AS cor0 WHERE + col2 < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT + 0 + col0 DIV - - 17 + col1 FROM tab0 AS cor0
----
26
6
81

skipif mysql # not compatible
query I rowsort label-2570
SELECT + 0 + col0 / - - 17 + col1 FROM tab0 AS cor0
----
26
6
81

query I rowsort
SELECT 29 FROM tab1, tab1 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2572
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 66 ) + - - col0 + ( - col2 ) * - - col2 AS col1 FROM tab0
----
-2260
-79
-9770

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE - 56 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL 91 * col0 + + col0 FROM tab0
----
1380
8004
8924

query I rowsort
SELECT + col1 * + + 45 + + col2 FROM tab1 WHERE + 33 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NULL >= NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 66 OR col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT - COUNT( * ) * SUM( ALL - 76 ) AS col2 FROM tab1 AS cor0
----
684

skipif mysql # not compatible
query I rowsort label-2579
SELECT - COUNT ( * ) * SUM ( ALL - 76 ) AS col2 FROM tab1 AS cor0
----
684

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 = - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 3 * - col1 FROM tab0 AS cor0 WHERE - 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT + MIN( - ( - col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2583
SELECT + MIN ( - ( - col0 ) ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( NULL ) <> col2 * col1
----

query I rowsort
SELECT DISTINCT + - 36 * col0 AS col1 FROM tab1 cor0
----
-1836
-3060
-3276

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 71 + col0 + + + 69 * - col2 * col2 + + col0 * + 42 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL - MAX( ALL + - 80 ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL - MAX ( ALL + - 80 ) FROM tab0 AS cor0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2588
SELECT - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) FROM tab0 WHERE NOT - col2 IS NULL
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2588
SELECT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) FROM tab0 WHERE NOT - col2 IS NULL
----
NULL
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col0 - - + ( + col0 ), + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 16 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT 16 * COUNT( * ) * + MAX( + col2 ) col1 FROM tab2
----
2784

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2591
SELECT 16 * COUNT ( * ) * + MAX ( + col2 ) col1 FROM tab2
----
2784

onlyif mysql # DIV for integer division: 
query I rowsort label-2592
SELECT ALL + 86 DIV col1 FROM tab1
----
1
17
6

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL + 86 / col1 FROM tab1
----
1
17
6

query I rowsort
SELECT DISTINCT col0 * + 8 FROM tab0
----
120
696
776

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL 0 * 0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT - + COUNT( * ) * 64 FROM tab1 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-2596
SELECT - + COUNT ( * ) * 64 FROM tab1 cor0
----
-192

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 17 <= - 18
----

query I rowsort
SELECT ALL - - col2 * - - col2 + col1 AS col1 FROM tab0 WHERE - - 89 IS NULL
----

query I rowsort
SELECT - - ( + col2 ) + 19 + + + col1 + + - col2 * - + 31 + + + col0 * - + col2 + + col2 * 10 AS col1 FROM tab1 AS cor0
----
-2513
-3266
-831

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2600
SELECT DISTINCT - MAX( DISTINCT CAST( + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT - MAX ( DISTINCT CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + - col2 + + 29 + + + 26 FROM tab1 cor0
----
-13
-4
-41

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 = - col0 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL - COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL - COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2604
SELECT CAST( NULL AS SIGNED ) * MAX( ALL + CAST( NULL AS SIGNED ) ) + - 93 + - 59 - + COUNT( * ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT CAST ( NULL AS INTEGER ) * MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - 93 + - 59 - + COUNT ( * ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + 69 * SUM( - col2 ) FROM tab1 AS cor0
----
-15387

skipif mysql # not compatible
query I rowsort label-2605
SELECT + 69 * SUM ( - col2 ) FROM tab1 AS cor0
----
-15387

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2606
SELECT * FROM tab2 WHERE col2 + - 11 NOT IN ( CAST( col1 AS DECIMAL ) * 0 * + 32 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2606
SELECT * FROM tab2 WHERE col2 + - 11 NOT IN ( CAST ( col1 AS REAL ) * 0 * + 32 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2607
SELECT - col1 AS col0, CAST( NULL AS SIGNED ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-2607
SELECT - col1 AS col0, CAST ( NULL AS INTEGER ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + + ( 76 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + col1 + - 40 + + col2 + + col2 AS col0 FROM tab2
----
108
194
210

query I rowsort
SELECT ALL 57 * - + col0 * 4 + - - col2 FROM tab1
----
-11532
-19321
-20680

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2611
SELECT 23 DIV CAST( - col2 AS SIGNED ) + + col0 DIV + col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2611
SELECT 23 / CAST ( - col2 AS INTEGER ) + + col0 / + col1 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT COUNT( * ) + - 92 AS col0 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-2612
SELECT COUNT ( * ) + - 92 AS col0 FROM tab1 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT DISTINCT 23 * MIN( + + 44 ) AS col1 FROM tab0
----
1012

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT 23 * MIN ( + + 44 ) AS col1 FROM tab0
----
1012

query I rowsort
SELECT + col2 * - - col2 * + 44 AS col0 FROM tab1
----
153164
203456
405504

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2616
SELECT ALL * FROM tab1 AS cor0 WHERE col2 <> - 99 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2616
SELECT ALL * FROM tab1 AS cor0 WHERE col2 <> - 99 / + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT + MIN( DISTINCT col0 ) * + COUNT( * ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT + MIN ( DISTINCT col0 ) * + COUNT ( * ) FROM tab1 AS cor0
----
153

query I rowsort
SELECT + 25 FROM tab0 cor0 WHERE NOT + col2 NOT IN ( + col0 + - col0 )
----

query II rowsort
SELECT 53 AS col0, + 3 FROM tab0 AS cor0
----
53
3
53
3
53
3

query I rowsort
SELECT ALL + + ( col1 ) * - - col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT - 73 * + 28 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 60 + + + 30 * col0 FROM tab2 AS cor0
----
1440
1980
2310

query II rowsort
SELECT col0 * + - col2, col1 FROM tab1
----
-4896
14
-5015
5
-6188
47

query II rowsort
SELECT DISTINCT col0 + + col1, - col2 AS col1 FROM tab1
----
138
-68
65
-96
90
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT - MAX( - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2626
SELECT - MAX ( - col2 ) FROM tab1
----
59

query I rowsort
SELECT DISTINCT - 7 AS col1 FROM tab2, tab2 AS cor0
----
-7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + col2 ) >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + col0 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
18291
57186
9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT DISTINCT + col2 / - + col2 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT + col2 / - + col2 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2631
SELECT DISTINCT - - 14 DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT - - 14 / + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 15 + + col1 + - col2 - + 27 * + 12 * - col1 AS col1 FROM tab2
----
16567
21732
25000

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( col1 ) * + col0 + - + col2 ) NOT IN ( 16 * - col0 )
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL > col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col1 - + - col0 * col0 * - col2 ) BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT - - COUNT( * ) + - 99 * COUNT( + col2 ) - 87 AS col0 FROM tab2 cor0
----
-381

skipif mysql # not compatible
query I rowsort label-2636
SELECT - - COUNT ( * ) + - 99 * COUNT ( + col2 ) - 87 AS col0 FROM tab2 cor0
----
-381

query II rowsort
SELECT ALL 48 - col0 + - 93 * - col0 AS col2, - col2 FROM tab0 AS cor0
----
1428
-47
8052
-10
8972
-99

query I rowsort
SELECT - ( + - 68 ) + col0 FROM tab2 AS cor0
----
114
132
143

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2639
SELECT + - col2 + + + 96 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT + - col2 + + + 96 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT + col1 + + + col2 <= 19 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2641
SELECT DISTINCT + 19 DIV - CAST( + col2 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT + 19 / - CAST ( + col2 AS INTEGER ) FROM tab1
----
0

query I rowsort
SELECT ALL - col0 + - col1 + - - col2 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT col1 + 75 FROM tab2
----
126
142
152

query I rowsort
SELECT ALL ( + col1 ) + - + col0 * + col2 * col2 FROM tab1 WHERE NULL IS NULL
----
-295880
-420737
-470002

query I rowsort
SELECT + 79 FROM tab1 WHERE NOT + 6 <> 10 * + 35
----

query I rowsort
SELECT ALL ( 87 ) FROM tab1
----
87
87
87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 60 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT 86 * - MIN( ALL + - col1 ) FROM tab2
----
6622

skipif mysql # not compatible
query I rowsort label-2649
SELECT 86 * - MIN ( ALL + - col1 ) FROM tab2
----
6622

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - ( - - 66 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT + 42 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2652
SELECT + 42 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
39

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 9 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 99 + - 23 AS col2 FROM tab2 AS cor0
----
76
76
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 52 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT + ( + 83 ) * - COUNT( - col2 ) AS col2 FROM tab1 cor0
----
-249

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT + ( + 83 ) * - COUNT ( - col2 ) AS col2 FROM tab1 cor0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL - MIN( ALL col1 ) FROM tab2 AS cor0 WHERE NOT col1 > - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - MIN ( ALL col1 ) FROM tab2 AS cor0 WHERE NOT col1 > - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT - SUM( DISTINCT col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2658
SELECT - SUM ( DISTINCT col2 ) AS col2 FROM tab2
----
-121

query I rowsort
SELECT - 30 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT - MIN( DISTINCT col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2660
SELECT - MIN ( DISTINCT col2 ) FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2661
SELECT ALL col2 FROM tab0 WHERE NOT - + 72 / col1 * + col2 + CAST( NULL AS SIGNED ) NOT BETWEEN - + col1 AND - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL col2 FROM tab0 WHERE NOT - + 72 / col1 * + col2 + CAST ( NULL AS INTEGER ) NOT BETWEEN - + col1 AND - CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT + - col2 * + - col2 + + col1 AS col1 FROM tab2 AS cor0
----
1677
3431
580

query II rowsort
SELECT DISTINCT col1, ( - col0 ) FROM tab0 cor0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT COUNT( ALL - col0 ) * 28 col2 FROM tab2 AS cor0 WHERE 79 = - - 89
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2664
SELECT DISTINCT COUNT ( ALL - col0 ) * 28 col2 FROM tab2 AS cor0 WHERE 79 = - - 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT COUNT( * ) + ( 86 ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-2665
SELECT COUNT ( * ) + ( 86 ) FROM tab1
----
89

query I rowsort
SELECT ALL col0 - + 97 + 87 AS col0 FROM tab1
----
41
75
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 57 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col2 col0 FROM tab1 AS cor0 WHERE 94 * - + col0 IS NOT NULL
----
-23
-26
45

query II rowsort
SELECT col2, col2 + + 74 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 7 * + + 35 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 >= 71 )
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - COUNT( - 59 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2672
SELECT - COUNT ( - 59 ) FROM tab2
----
-3

query I rowsort
SELECT + col1 * - - 30 FROM tab1
----
1410
150
420

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ( + - COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2674
SELECT ( + - COUNT ( * ) ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL - SUM( DISTINCT col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL - SUM ( DISTINCT col0 ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT ALL 43 * ( - COUNT( * ) ) AS col1 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL 43 * ( - COUNT ( * ) ) AS col1 FROM tab2
----
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col1 FROM tab1 WHERE NULL IS NULL
----
24

query II rowsort
SELECT DISTINCT - 79 AS col2, col0 FROM tab0 AS cor0
----
-79
15
-79
87
-79
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 51 col1, - 77 FROM tab1 AS cor0
----
51
-77

query II rowsort
SELECT DISTINCT + col0, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + col2 * + - 18 FROM tab0 AS cor0
----
-1782
-180
-846

query I rowsort
SELECT DISTINCT - col1 * + 5 FROM tab2
----
-255
-335
-385

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + col2 ) NOT IN ( - col0, + 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 84 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 84 IS NULL
----
0

query I rowsort
SELECT + + col0 AS col1 FROM tab1 AS cor0 WHERE NULL < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT ALL + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - col1 + + 18 - + + col0 + - col1 * col0 + - + 82 * + col2 * col1 FROM tab0 AS cor0
----
-19137
-313467
-8295

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 19 IS NULL
----

query I rowsort
SELECT ( + 12 ) FROM tab2
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2690
SELECT ALL + 37 + - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL + 37 + - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + 3 * - 73 AS col0 FROM tab0
----
-120
-172
-209

query I rowsort
SELECT + 15 + + col1 FROM tab2
----
66
82
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT - COUNT( * ) + COUNT( * ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2693
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL - COUNT( col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL - COUNT ( col2 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT DISTINCT 34 + + COUNT( * ) AS col1 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT 34 + + COUNT ( * ) AS col1 FROM tab1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2696
SELECT ( - 45 ) * + col2 AS col2, 63, - - ( 91 ) * + col1 + - - CAST( NULL AS SIGNED ) + col2 * + 28 AS col0 FROM tab0 WHERE NULL IS NULL
----
9 values hashing to a2fce7d4d3da18900c51ae9ba484e261

skipif mysql # not compatible
query III rowsort label-2696
SELECT ( - 45 ) * + col2 AS col2, 63, - - ( 91 ) * + col1 + - - CAST ( NULL AS INTEGER ) + col2 * + 28 AS col0 FROM tab0 WHERE NULL IS NULL
----
9 values hashing to a2fce7d4d3da18900c51ae9ba484e261

query III rowsort
SELECT * FROM tab2 WHERE ( - + 46 ) IS NULL
----

query I rowsort
SELECT ALL - 1 FROM tab0 AS cor0 WHERE NOT + col0 + 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT 52 - - COUNT( * ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT 52 - - COUNT ( * ) FROM tab0 AS cor0
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-2700
SELECT - col2 AS col0, 53 DIV 79 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-2700
SELECT - col2 AS col0, 53 / 79 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE + ( - - col1 ) NOT BETWEEN - + col2 AND + col1 / col1 + + + col2 + + - 29 + - + 53
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT + MAX( + 42 ) AS col1 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2702
SELECT + MAX ( + 42 ) AS col1 FROM tab0 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + - - col1 col1 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT - - 84 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2705
SELECT DISTINCT COUNT( + 65 ) + - 82 DIV 44 AS col1, 28 col1 FROM tab1
----
2
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2705
SELECT DISTINCT COUNT ( + 65 ) + - 82 / 44 AS col1, 28 col1 FROM tab1
----
2
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2706
SELECT ALL COUNT( * ) / CAST( NULL AS SIGNED ) - + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL COUNT ( * ) / CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 46 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT + col2 - - - 89 FROM tab2
----
-31
-49
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2710
SELECT ALL CAST( NULL AS SIGNED ) + + 28 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL CAST ( NULL AS INTEGER ) + + 28 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 * - col2 * + 63 / - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 29 - + col0 AS col0 FROM tab1 AS cor0
----
-114
-120
-80

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE + ( + col1 ) * col0 * - col1 < - col2
----
15
87

query I rowsort
SELECT + 82 * + col0 FROM tab2 AS cor0
----
3772
5248
6150

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ALL - MIN( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL - MIN ( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT + - 71 * - COUNT( * ) AS col1 FROM tab2 cor0
----
213

skipif mysql # not compatible
query I rowsort label-2716
SELECT + - 71 * - COUNT ( * ) AS col1 FROM tab2 cor0
----
213

query I rowsort
SELECT ALL + 48 AS col2 FROM tab1 AS cor0
----
48
48
48

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN - 14 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT + COUNT( * ) * - 52 + - + 72 * - 80 AS col2 FROM tab2 AS cor0
----
5604

skipif mysql # not compatible
query I rowsort label-2719
SELECT + COUNT ( * ) * - 52 + - + 72 * - 80 AS col2 FROM tab2 AS cor0
----
5604

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab0 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col1 col0 FROM tab0 cor0
----
1215
1827
97

query I rowsort
SELECT - ( + col0 ) * - col1 + + col1 AS col1 FROM tab2
----
2397
5005
5092

query I rowsort
SELECT - 89 FROM tab1 WHERE NOT 63 NOT BETWEEN + col0 * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 94 * - 93 - + + col1 - ( 18 ) AND col0 / - 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 31 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 31 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * - 96 * - - col2 FROM tab1
----
470016
481440
594048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT DISTINCT + MAX( ALL + + 17 ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT + MAX ( ALL + + 17 ) FROM tab1 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 col0 FROM tab0 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT DISTINCT - col0 DIV + ( + 95 ) AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT - col0 / + ( + 95 ) AS col2 FROM tab0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - col0 + - col0 + + ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 86 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL - MIN( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL - MIN ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT DISTINCT - col2, col1 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 30 / - - 22 AND NULL
----

query I rowsort
SELECT DISTINCT 32 + - - col0 + col2 AS col1 FROM tab0
----
129
228
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT COUNT( - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2739
SELECT COUNT ( - col2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col0 - + - col1 * 5 FROM tab1
----
-60
144
19

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE ( NULL ) >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * - 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - - 18 + + - col0 AS col1 FROM tab0 AS cor0
----
-79
1443
291

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT - 54 + + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-57

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT - 54 + + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-57

query I rowsort
SELECT DISTINCT - 1 AS col0 FROM tab1 cor0
----
-1

query I rowsort
SELECT 36 + - - 30 * - - col0 AS col2 FROM tab0
----
2646
2946
486

onlyif mysql # DIV for integer division: 
query I rowsort label-2747
SELECT ALL col2 DIV - - col0 - + col0 AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL col2 / - - col0 - + col0 AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2748
SELECT + COUNT( * ) DIV - 58 AS col1 FROM tab2 WHERE NOT + col0 DIV - - col1 + col2 - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2748
SELECT + COUNT ( * ) / - 58 AS col1 FROM tab2 WHERE NOT + col0 / - - col1 + col2 - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2749
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2749
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2750
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * - - col1 + + + 43 AS col0 FROM tab0 AS cor0
----
44
484
6604

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * - - col1 + + + 43 AS col0 FROM tab0 AS cor0
----
44
484
6604

query I rowsort
SELECT DISTINCT + 14 * + 89 AS col2 FROM tab0 AS cor0
----
1246

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - 56 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-2752
SELECT - 56 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
168

query I rowsort
SELECT ALL + col2 * 10 AS col2 FROM tab2 AS cor0
----
230
400
580

query I rowsort
SELECT + col2 * 7 AS col2 FROM tab0 AS cor0
----
329
693
70

onlyif mysql # aggregate syntax: 
query II rowsort label-2755
SELECT + 70 * + + 82 AS col2, - COUNT( * ) FROM tab2
----
5740
-3

skipif mysql # not compatible
query II rowsort label-2755
SELECT + 70 * + + 82 AS col2, - COUNT ( * ) FROM tab2
----
5740
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT CAST( NULL AS SIGNED ) * - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT CAST ( NULL AS INTEGER ) * - - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT - COUNT( * ) * - 92 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT - COUNT ( * ) * - 92 FROM tab0
----
276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 11 col2 FROM tab1
----
-1056
-649
-748

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 49 >= NULL
----

query II rowsort
SELECT DISTINCT col1 AS col0, col2 AS col1 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT - 98 AS col0, ( 68 ) AS col2 FROM tab2
----
-98
68
-98
68
-98
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2762
SELECT DISTINCT * FROM tab1 WHERE NOT + - 94 - + + 58 - + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - ( col0 )
----

skipif mysql # not compatible
query III rowsort label-2762
SELECT DISTINCT * FROM tab1 WHERE NOT + - 94 - + + 58 - + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - ( col0 )
----

query II rowsort
SELECT + col0, col2 * - 24 FROM tab0
----
15
-1128
87
-240
97
-2376

query II rowsort
SELECT + 32 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
32
-23
32
-40
32
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= col1
----

query II rowsort
SELECT ALL - + col2 * + col0, + col1 FROM tab1 AS cor0
----
-4896
14
-5015
5
-6188
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT + 31 + - + COUNT( ALL + col1 ) * + ( - - 31 ) FROM tab0 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-2767
SELECT + 31 + - + COUNT ( ALL + col1 ) * + ( - - 31 ) FROM tab0 cor0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2768
SELECT - COUNT( * ), + CAST( NULL AS SIGNED ) + + + MIN( - - col2 ) / COUNT( + + col2 ) AS col2 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2768
SELECT - COUNT ( * ), + CAST ( NULL AS INTEGER ) + + + MIN ( - - col2 ) / COUNT ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT - ( - COUNT( * ) ) * + 1 - + 71 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-62

skipif mysql # not compatible
query I rowsort label-2769
SELECT - ( - COUNT ( * ) ) * + 1 - + 71 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT + 2 * MIN( ALL col1 ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-2770
SELECT + 2 * MIN ( ALL col1 ) FROM tab1
----
10

query I rowsort
SELECT ALL col1 + - 55 FROM tab2
----
-4
12
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2772
SELECT - ( - CAST( NULL AS SIGNED ) ) * - MIN( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT - ( - CAST ( NULL AS INTEGER ) ) * - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2773
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2773
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - col0 * - 73 FROM tab1 AS cor0
----
3723
6205
6643

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 / + 97 <> - - col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT - MAX( - 21 ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT - MAX ( - 21 ) FROM tab1 AS cor0
----
21

query II rowsort
SELECT col0 + - + col2, - col2 - - - col0 + - 15 AS col0 FROM tab2 cor0
----
17
-148
23
-84
24
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT ALL 60 * 25 + + + COUNT( * ) FROM tab0 AS cor0
----
1503

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL 60 * 25 + + + COUNT ( * ) FROM tab0 AS cor0
----
1503

query III rowsort
SELECT * FROM tab0 cor0 WHERE - ( - col1 ) BETWEEN col0 + col0 + col1 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT DISTINCT - ( + col1 ) * + - CAST( NULL AS SIGNED ) + col1 + + - CAST( NULL AS SIGNED ) * + 17 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT - ( + col1 ) * + - CAST ( NULL AS INTEGER ) + col1 + + - CAST ( NULL AS INTEGER ) * + 17 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + - col1 col0 FROM tab1
----
-3
30
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2782
SELECT ALL + CAST( NULL AS SIGNED ) / + ( + 74 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + CAST ( NULL AS INTEGER ) / + ( + 74 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 52 + col2 FROM tab2
----
110
75
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + col2 + - col0
----

query I rowsort
SELECT ALL - - 43 * 34 + - col2 FROM tab2 AS cor0
----
1404
1422
1439

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2786
SELECT + CAST( + - col1 AS SIGNED ), + 60 AS col2 FROM tab1
----
-14
60
-47
60
-5
60

skipif mysql # not compatible
query II rowsort label-2786
SELECT + CAST ( + - col1 AS INTEGER ), + 60 AS col2 FROM tab1
----
-14
60
-47
60
-5
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL - ( + MAX( - col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL - ( + MAX ( - col0 ) ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - 53
----

query I rowsort
SELECT ALL + col1 * + - col0 * + col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT + - 56 * 7 + + + 68 AS col2 FROM tab1 AS cor0
----
-324

query I rowsort
SELECT DISTINCT col2 * + col1 * + col0 AS col1 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT - + 80 DIV col1 col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-3
-80
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2792
SELECT - + 80 / col1 col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-3
-80
0

query I rowsort
SELECT ( - 65 ) AS col2 FROM tab1 AS cor0
----
-65
-65
-65

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col1 ) > + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * + + col2 AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT 43 * - - 29 FROM tab1
----
1247
1247
1247

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 * + - col2 + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT col0 * col0 DIV - 73 FROM tab1
----
-113
-35
-98

skipif mysql # not compatible
query I rowsort label-2798
SELECT col0 * col0 / - 73 FROM tab1
----
-113
-35
-98

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + + col2 + col0 * col1 * - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT + COUNT( DISTINCT + - 13 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2800
SELECT + COUNT ( DISTINCT + - 13 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT MAX( DISTINCT - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2802
SELECT MAX ( DISTINCT - col2 ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT col1 * + + col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT - COUNT( * ) * + - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2804
SELECT - COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT MIN( CAST( - 50 AS SIGNED ) ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2805
SELECT MIN ( CAST ( - 50 AS INTEGER ) ) FROM tab1 AS cor0
----
-50

query I rowsort
SELECT ALL col2 * + + col1 + + - 94 AS col0 FROM tab0
----
116
3713
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 WHERE col1 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2809
SELECT ALL + CAST( NULL AS SIGNED ) / - - COUNT( * ) / + + COUNT( DISTINCT - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL + CAST ( NULL AS INTEGER ) / - - COUNT ( * ) / + + COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2810
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT ALL col0 + + col2 + ( + 29 ) * ( - + col0 ) DIV + 54 col1 FROM tab0
----
144
51
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2811
SELECT ALL col0 + + col2 + ( + 29 ) * ( - + col0 ) / + 54 col1 FROM tab0
----
144
51
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT - SUM( + + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2812
SELECT - SUM ( + + col2 ) FROM tab1
----
-223

query I rowsort
SELECT col1 * + 12 - + 38 AS col2 FROM tab2
----
574
766
886

query I rowsort
SELECT - 53 - - - col0 * + + col2 AS col2 FROM tab1
----
-4949
-5068
-6241

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT ALL COUNT( * ) - + - COUNT( * ) * + - 90 FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL COUNT ( * ) - + - COUNT ( * ) * + - 90 FROM tab1
----
-267

query I rowsort
SELECT col1 * 86 - col0 - - - 12 FROM tab2
----
4328
5675
6546

query I rowsort
SELECT DISTINCT col0 - 54 * - + 82 FROM tab0 AS cor0
----
4443
4515
4525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2818
SELECT ALL + COUNT( * ) + + COUNT( * ) / - 78 + 44 * + SUM( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE NULL <> - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL + COUNT ( * ) + + COUNT ( * ) / - 78 + 44 * + SUM ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE NULL <> - col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( col2 ) col0, col2 col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT - + 69 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL SUM( ALL + col1 ) col0 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2821
SELECT ALL SUM ( ALL + col1 ) col0 FROM tab0
----
103

query II rowsort
SELECT DISTINCT col1, col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT + + 64 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <= NULL
----

query II rowsort
SELECT + + col1, col1 - col1 FROM tab0 AS cor0
----
1
0
21
0
81
0

query I rowsort
SELECT - col0 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 58 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT DISTINCT - COUNT( + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= 5
----
0

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT - COUNT ( + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT - - COUNT( ALL 24 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2829
SELECT - - COUNT ( ALL 24 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 NOT IN ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT + + SUM( + 29 ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + + SUM ( + 29 ) FROM tab1 AS cor0
----
87

query I rowsort
SELECT - 58 * + 71 FROM tab0
----
-4118
-4118
-4118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2833
SELECT + CAST( 44 AS SIGNED ) AS col1, - col1 FROM tab1
----
44
-14
44
-47
44
-5

skipif mysql # not compatible
query II rowsort label-2833
SELECT + CAST ( 44 AS INTEGER ) AS col1, - col1 FROM tab1
----
44
-14
44
-47
44
-5

query I rowsort
SELECT - ( 88 ) FROM tab1
----
-88
-88
-88

query I rowsort
SELECT DISTINCT col1 + - + 13 AS col2 FROM tab2
----
38
54
64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 <> - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2837
SELECT DISTINCT MIN( ALL col1 ) AS col1, MAX( 73 ) DIV - COUNT( * ) FROM tab0
----
1
-24

skipif mysql # not compatible
query II rowsort label-2837
SELECT DISTINCT MIN ( ALL col1 ) AS col1, MAX ( 73 ) / - COUNT ( * ) FROM tab0
----
1
-24

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + + - 58 BETWEEN - - 64 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT DISTINCT - 48 * - ( 84 ) * - MIN( ALL - col0 ) + ( + 22 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT - 48 * - ( 84 ) * - MIN ( ALL - col0 ) + ( + 22 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL 30 + + col1 FROM tab1
----
35
44
77

query III rowsort
SELECT * FROM tab2 WHERE - col0 + 7 < - 58
----
75
67
58

query I rowsort
SELECT DISTINCT - col0 - + - col0 AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL + + col2, + 35 AS col0 FROM tab1 AS cor0
----
59
35
68
35
96
35

query I rowsort
SELECT ALL + col0 * + col0 * col0 * - 31 AS col0 FROM tab2 AS cor0
----
-13078125
-3017416
-8126464

query II rowsort
SELECT 50 * + 44 + - col1 + - col2 + + - col1, - col2 AS col2 FROM tab1 AS cor0
----
2038
-68
2076
-96
2131
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT ALL CAST( NULL AS SIGNED ) + - + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL CAST ( NULL AS INTEGER ) + - + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 38 ) + - - col2 AS col2 FROM tab0
----
137
48
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 < - 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 / - 39 + + 60 / + col0 + - + 34 IN ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT MIN( + col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2851
SELECT MIN ( + col0 ) AS col0 FROM tab1
----
51

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - + col2 * + col2 - + 63, - col1, + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE + 29 / + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT MIN( DISTINCT 62 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-2854
SELECT MIN ( DISTINCT 62 ) FROM tab1
----
62

query I rowsort
SELECT - - 88 AS col1 FROM tab1 WHERE - col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT SUM( col1 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-2856
SELECT SUM ( col1 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT ALL 41 / CAST( NULL AS SIGNED ) + col2 / - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL 41 / CAST ( NULL AS INTEGER ) + col2 / - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 57 AS col2 FROM tab1 cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT + COUNT( DISTINCT - + 53 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2859
SELECT + COUNT ( DISTINCT - + 53 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + + 43 AS col0 FROM tab2 cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2861
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * ( - + 90 ) <> - 36
----

skipif mysql # not compatible
query III rowsort label-2861
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * ( - + 90 ) <> - 36
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 10 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * - + col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2866
SELECT + ( 8 ) DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2866
SELECT + ( 8 ) / - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2867
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2867
SELECT ALL CAST ( NULL AS REAL ) AS col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT DISTINCT - COUNT( * ) + + + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT - COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab1
----
0

query II rowsort
SELECT col2 AS col1, - col2 * col2 FROM tab0
----
10
-100
47
-2209
99
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT MIN( DISTINCT col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2870
SELECT MIN ( DISTINCT col2 ) AS col2 FROM tab1
----
59

query III rowsort
SELECT * FROM tab0 WHERE NOT - 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL ( + + COUNT( * ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2872
SELECT ALL ( + + COUNT ( * ) ) col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT CAST( NULL AS SIGNED ) * + - col0 * - - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT CAST ( NULL AS INTEGER ) * + - col0 * - - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE + col0 * + + col1 NOT BETWEEN 48 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - 67 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT 47 * - 21 + col0 FROM tab0
----
-890
-900
-972

query I rowsort
SELECT col2 + - 61 * + col2 FROM tab1
----
-3540
-4080
-5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2880
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * + col1 * - col1 * CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-2880
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * + col1 * - col1 * CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT DISTINCT COUNT( * ) - - - 70 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-67

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT COUNT ( * ) - - - 70 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-2882
SELECT + 66 - - 64 DIV + 88 - - - col1 + + + col0 AS col2 FROM tab1 cor0
----
103
110
146

skipif mysql # not compatible
query I rowsort label-2882
SELECT + 66 - - 64 / + 88 - - - col1 + + + col0 AS col2 FROM tab1 cor0
----
103
110
146

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( 22 ) * col2 + - 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL - COUNT( * ) * - - 98 * + - 34 FROM tab0
----
9996

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL - COUNT ( * ) * - - 98 * + - 34 FROM tab0
----
9996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT - 60 - 63 * CAST( + - col1 AS SIGNED ) FROM tab0
----
1263
3
5043

skipif mysql # not compatible
query I rowsort label-2885
SELECT - 60 - 63 * CAST ( + - col1 AS INTEGER ) FROM tab0
----
1263
3
5043

query I rowsort
SELECT - col1 - 27 + - + col2 AS col1 FROM tab0
----
-127
-155
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT 13 + - COUNT( * ) AS col0 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT 13 + - COUNT ( * ) AS col0 FROM tab2
----
10

query I rowsort
SELECT ( - ( + 45 ) ) - ( - col2 ) FROM tab1
----
14
23
51

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 55 = col0
----

query I rowsort
SELECT 31 * + 86 + col2 + - 64 FROM tab2 AS cor0
----
2625
2642
2660

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( ( NULL ) IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( 9 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2894
SELECT DISTINCT col1 col2 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND 23 * - CAST( + col0 AS DECIMAL ) + + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2894
SELECT DISTINCT col1 col2 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND 23 * - CAST ( + col0 AS REAL ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT + MAX( - 46 ) AS col0 FROM tab0 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT + MAX ( - 46 ) AS col0 FROM tab0 cor0
----
-46

query I rowsort
SELECT DISTINCT + col1 * + 31 + 65 FROM tab2 AS cor0
----
1646
2142
2452

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL - COUNT( ALL + + col1 ) * + + MAX( DISTINCT + + 49 ) + - 64 AS col0 FROM tab2 AS cor0
----
-211

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL - COUNT ( ALL + + col1 ) * + + MAX ( DISTINCT + + 49 ) + - 64 AS col0 FROM tab2 AS cor0
----
-211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2898
SELECT + ( - CAST( - AVG ( + col1 ) AS SIGNED ) ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2898
SELECT + ( - CAST ( - AVG ( + col1 ) AS INTEGER ) ) / - COUNT ( * ) FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT ALL - MIN( DISTINCT + - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - MIN ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT + - 30 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - 42 col2, + col2 + + 54 + + col0 AS col1, - col2 FROM tab0 AS cor0
----
9 values hashing to 8237a1f6e5d662cf56755fd94ff195b7

query I rowsort
SELECT - ( + 77 ) AS col0 FROM tab0 AS cor0
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 * + - 89 col0 FROM tab0
----
-18690
-338823
-8811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 * - 46 + col2 col2 FROM tab2
----
-3254
-3272
-3289

query I rowsort
SELECT - 71 FROM tab0 WHERE NOT + + col0 >= NULL
----

query II rowsort
SELECT ALL + 3 + 34 AS col2, col1 AS col0 FROM tab2
----
37
51
37
67
37
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + + col1 ) + - col2 - - col2 col1, - col2 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
-14
-96
-47
-68
-5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT + MIN( - col0 ) + ( + + 49 ) AS col1 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-2908
SELECT + MIN ( - col0 ) + ( + + 49 ) AS col1 FROM tab0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2909
SELECT + 31 * - + COUNT( * ) + + 32 * + COUNT( * ) - - COUNT( * ) / - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2909
SELECT + 31 * - + COUNT ( * ) + + 32 * + COUNT ( * ) - - COUNT ( * ) / - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT - + 35 + - 39 - + col2, + col2, + col0 FROM tab2 AS cor0
----
9 values hashing to cd21d7e2e29d49f23d25e9842317378a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2911
SELECT - COUNT( * ) + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2911
SELECT - COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + 28 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - col1 + + col0 FROM tab2 cor0
----
-13
-5
8

query I rowsort
SELECT + + col1 + - 44 + ( - 58 ) + - col1 FROM tab0 AS cor0
----
-102
-102
-102

query I rowsort
SELECT ( 15 ) FROM tab0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL COUNT( * ) * 66 AS col0 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL COUNT ( * ) * 66 AS col0 FROM tab0
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2917
SELECT CAST( + SUM( DISTINCT - ( + - col2 ) ) AS SIGNED ) AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-2917
SELECT CAST ( + SUM ( DISTINCT - ( + - col2 ) ) AS INTEGER ) AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
156

query I rowsort
SELECT + 17 * 35 + - + 3 FROM tab1 AS cor0
----
592
592
592

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT MIN( - 58 ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-58

skipif mysql # not compatible
query I rowsort label-2919
SELECT MIN ( - 58 ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT MIN( DISTINCT - - ( + 37 ) ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT MIN ( DISTINCT - - ( + 37 ) ) FROM tab2
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2922
SELECT ALL - + ( - col2 ) DIV - + CAST( - col2 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL - + ( - col2 ) / - + CAST ( - col2 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT + - COUNT( * ) + COUNT( * ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2923
SELECT + - COUNT ( * ) + COUNT ( * ) col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - 68 * - col0 AS col1 FROM tab2 AS cor0
----
3128
4352
5100

query I rowsort
SELECT DISTINCT col2 * 70 AS col0 FROM tab1 cor0
----
4130
4760
6720

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT ALL - col2 + - - ( - CAST( NULL AS SIGNED ) ) - + - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2927
SELECT ALL - col2 + - - ( - CAST ( NULL AS INTEGER ) ) - + - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NOT - col2 + - 59 + - + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, - col0 AS col1 FROM tab0
----
-1
-97
-21
-87
-81
-15

query I rowsort
SELECT + - col1 / ( + col2 ) * + - ( 70 ) - + - 35 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * 31 AS col2 FROM tab2
----
1426
1984
2325

query I rowsort
SELECT DISTINCT - 78 * - 69 AS col0 FROM tab1 AS cor0
----
5382

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( - col1 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + - + ( - - col2 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( - - ( + col2 ) + + col2 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL COUNT( * ) + + 49 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL COUNT ( * ) + + 49 FROM tab0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2938
SELECT DISTINCT * FROM tab1 WHERE - - col2 * CAST( 35 AS SIGNED ) + - - col1 - + col1 NOT BETWEEN - + col0 - + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2938
SELECT DISTINCT * FROM tab1 WHERE - - col2 * CAST ( 35 AS INTEGER ) + - - col1 - + col1 NOT BETWEEN - + col0 - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT DISTINCT 65 - - - COUNT( * ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT 65 - - - COUNT ( * ) FROM tab0 AS cor0
----
62

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT 80 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT col2 DIV - ( - + 53 ) AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2941
SELECT col2 / - ( - + 53 ) AS col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT DISTINCT ( - COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT ( - COUNT ( * ) ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2943
SELECT - CAST( NULL AS DECIMAL ) AS col2, - CAST( - - 30 AS SIGNED ) * - 64 FROM tab1
----
NULL
1920
NULL
1920
NULL
1920

skipif mysql # not compatible
query II rowsort label-2943
SELECT - CAST ( NULL AS REAL ) AS col2, - CAST ( - - 30 AS INTEGER ) * - 64 FROM tab1
----
NULL
1920
NULL
1920
NULL
1920

query II rowsort
SELECT - 81, 14 + + 58 AS col0 FROM tab0
----
-81
72
-81
72
-81
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 19 AS col0, 24 * 21 col0 FROM tab0 WHERE NULL IS NULL
----
-19
504
-19
504
-19
504

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

query I rowsort
SELECT DISTINCT - 67 * - col2 * - - ( 17 ) FROM tab2
----
26197
45560
66062

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - - MAX( - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2949
SELECT - - MAX ( - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - + 6 * col2 FROM tab2 cor0
----
-138
-240
-348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col2 col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT - 1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

query I rowsort
SELECT 9 - col1 FROM tab1 WHERE NOT 34 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + 30 ) FROM tab0
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2955
SELECT ALL - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - 48 * + col2 FROM tab2
----
-1104
-1920
-2784

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + col2 / ( col0 + + col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 + - ( - col0 ) ) >= NULL
----

query I rowsort
SELECT DISTINCT - 99 + - col1 AS col1 FROM tab0
----
-100
-120
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT 36 + COUNT( + col0 ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2960
SELECT 36 + COUNT ( + col0 ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
39

query I rowsort
SELECT col2 - 39 AS col2 FROM tab0
----
-29
60
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL MIN( ALL 79 ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL MIN ( ALL 79 ) FROM tab1
----
79

query I rowsort
SELECT DISTINCT - ( - AVG ( ALL - ( + col1 ) ) ) FROM tab1 WHERE NOT ( + ( + col0 ) / col0 ) NOT IN ( + col2 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <> ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT COUNT( DISTINCT col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2965
SELECT COUNT ( DISTINCT col2 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT ALL - col1 * col0 - + 15 DIV + col1 FROM tab0
----
-112
-1215
-1827

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL - col1 * col0 - + 15 / + col1 FROM tab0
----
-112
-1215
-1827

query I rowsort
SELECT + 86 * ( 32 ) FROM tab1
----
2752
2752
2752

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT DISTINCT 75 * - COUNT( * ) AS col1 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT 75 * - COUNT ( * ) AS col1 FROM tab1
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL + COUNT( * ) + + 54 AS col1 FROM tab1 WHERE NULL NOT BETWEEN ( col0 ) AND NULL
----
54

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL + COUNT ( * ) + + 54 AS col1 FROM tab1 WHERE NULL NOT BETWEEN ( col0 ) AND NULL
----
54

query I rowsort
SELECT ALL 31 + col0 * - col0 AS col1 FROM tab1
----
-2570
-7194
-8250

query III rowsort
SELECT * FROM tab2 WHERE - 37 * + col0 > ( + col1 * + col2 )
----

query I rowsort
SELECT 86 * col1 + + 18 * + 35 AS col2 FROM tab2
----
5016
6392
7252

query III rowsort
SELECT * FROM tab1 WHERE + 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT MIN( - 77 ) AS col2 FROM tab2 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT MIN ( - 77 ) AS col2 FROM tab2 WHERE col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT 79 * - SUM( + 81 * + 75 ) AS col2 FROM tab0
----
-1439775

skipif mysql # not compatible
query I rowsort label-2975
SELECT 79 * - SUM ( + 81 * + 75 ) AS col2 FROM tab0
----
-1439775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT ALL - col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL - col0 / + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT - COUNT( ALL 13 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2978
SELECT DISTINCT - COUNT ( ALL 13 ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT - MAX( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2979
SELECT - MAX ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2980
SELECT - SUM( 77 ) DIV - 9 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2980
SELECT - SUM ( 77 ) / - 9 FROM tab1 AS cor0
----
25

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab2 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT + col1 * + 59 - CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
2726
290
812

skipif mysql # not compatible
query I rowsort label-2982
SELECT + col1 * + 59 - CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
2726
290
812

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) = col2 + + col2
----

query I rowsort
SELECT DISTINCT + 86 FROM tab2 WHERE NOT - col2 + + col1 NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT MAX( - CAST( NULL AS SIGNED ) ) FROM tab1 cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 CROSS JOIN tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + 16 / ( - SUM( ALL + 14 ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT + 16 / ( - SUM ( ALL + 14 ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT - SUM( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2987
SELECT - SUM ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT ALL - 56 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - 56 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2990
SELECT ALL + 27 DIV MAX( - col0 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL + 27 / MAX ( - col0 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT 72 AS col1 FROM tab1 cor0
----
72
72
72

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 > NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 ) * + col2 IN ( - col2 + col2 * + col1 )
----
14
47
5

query I rowsort
SELECT ALL - col1 - - col0 * + 54 FROM tab2 cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL MIN( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 99 < - 63 + + col2 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL MIN ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 99 < - 63 + + col2 * col1
----
NULL

query I rowsort
SELECT DISTINCT + - 3 AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 - + ( 43 ) col0 FROM tab0 WHERE NOT 60 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2999
SELECT 33 DIV + - col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2999
SELECT 33 / + - col0 FROM tab0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT - col0 - - col2 * - CAST( col1 * - ( + col2 ) AS SIGNED ) FROM tab0 WHERE NOT 84 * - col1 NOT IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-3000
SELECT - col0 - - col2 * - CAST ( col1 * - ( + col2 ) AS INTEGER ) FROM tab0 WHERE NOT 84 * - col1 NOT IN ( + col2 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( + 56 * + col1 ) = - col2
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT DISTINCT 77 + + COUNT( * ) FROM tab0 AS cor0 WHERE col2 / + 99 IS NOT NULL
----
80

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT 77 + + COUNT ( * ) FROM tab0 AS cor0 WHERE col2 / + 99 IS NOT NULL
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3003
SELECT ALL - 25 DIV 99 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL - 25 / 99 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab0 WHERE NOT ( NOT ( + 25 + 71 * 11 ) NOT BETWEEN + col0 AND ( col0 ) )
----
95

query I rowsort
SELECT ALL - col2 * - - 84 FROM tab1
----
-4956
-5712
-8064

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3006
SELECT COUNT( col2 ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3006
SELECT COUNT ( col2 ) + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT + MIN( DISTINCT col0 ) + - COUNT( * ) AS col0 FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-3007
SELECT + MIN ( DISTINCT col0 ) + - COUNT ( * ) AS col0 FROM tab1 cor0
----
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 71 / + + ( col0 ) IS NULL
----

query I rowsort
SELECT ALL col0 * - 12 + + col2 + col0 AS col1 FROM tab1 AS cor0
----
-465
-876
-933

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 16 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 2 ) BETWEEN + col0 AND ( + 41 )
----

query I rowsort
SELECT AVG ( DISTINCT - 83 ) AS col2 FROM tab1 WHERE - + col2 >= ( + col2 + - 58 )
----
NULL

query II rowsort
SELECT DISTINCT col0 + + + col2 AS col1, col0 + + 62 AS col1 FROM tab2
----
104
126
133
137
69
108

query I rowsort
SELECT col0 FROM tab0 WHERE + - col1 * + + 25 + + 86 BETWEEN + 43 - col2 AND ( 29 ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT - MIN( - - ( col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3015
SELECT - MIN ( - - ( col0 ) ) FROM tab2
----
-46

query I rowsort
SELECT col2 FROM tab0 WHERE - col2 * 23 > ( col0 + col0 * + col1 )
----

query I rowsort
SELECT ( + ( - - col0 ) ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT - SUM( DISTINCT col1 ) - - - ( - + COUNT( * ) ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-3018
SELECT - SUM ( DISTINCT col1 ) - - - ( - + COUNT ( * ) ) FROM tab0
----
-100

query I rowsort
SELECT DISTINCT col0 + + col0 + + col0 * - col0 * - col2 - + col0 AS col1 FROM tab1
----
249747
426360
563199

query I rowsort
SELECT - col2 - + 87 FROM tab0
----
-134
-186
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT DISTINCT COUNT( * ) + - - MIN( ALL 36 ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT COUNT ( * ) + - - MIN ( ALL 36 ) FROM tab0
----
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3022
SELECT - CAST( NULL AS SIGNED ) - + col1 AS col0, col0 DIV - col1 FROM tab0
----
NULL
-4
NULL
-97
NULL
0

skipif mysql # not compatible
query II rowsort label-3022
SELECT - CAST ( NULL AS INTEGER ) - + col1 AS col0, col0 / - col1 FROM tab0
----
NULL
-4
NULL
-97
NULL
0

query I rowsort
SELECT DISTINCT - + col0 - + + ( + col2 ) * + 32 AS col0 FROM tab2 AS cor0
----
-1344
-1931
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT DISTINCT COUNT( * ) - SUM( DISTINCT + 89 ) AS col1 FROM tab1 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT COUNT ( * ) - SUM ( DISTINCT + 89 ) AS col1 FROM tab1 cor0
----
-86

query I rowsort
SELECT 24 - col1 FROM tab1 cor0 WHERE ( ( NULL NOT BETWEEN NULL AND col2 ) )
----

query I rowsort
SELECT ALL - 71 * - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 / + - col1 * - + col1 ) > - col2 + col1 * - col2
----

query I rowsort
SELECT DISTINCT + col0 * + - col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ALL + SUM( DISTINCT - 22 ) FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL + SUM ( DISTINCT - 22 ) FROM tab2 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3030
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + ( + + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-3030
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + ( + + CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE - 10 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT + + MAX( ALL + 1 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT + + MAX ( ALL + 1 ) FROM tab1 cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col1 / ( - - ( + + col2 ) ) * 17 ) BETWEEN NULL AND 45 + col1
----

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab1 AS cor0 WHERE + col1 + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 28 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT + 93 / MAX( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 * + - col1 AND 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT + 93 / MAX ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 * + - col1 AND 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3037
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 * - CAST( + - col2 AS SIGNED ) * - col1 * col1 + + 8 * - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 * - CAST ( + - col2 AS INTEGER ) * - col1 * col1 + + 8 * - col2 IS NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 62 / - 60 ) <> ( - 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT + COUNT( DISTINCT + 45 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3039
SELECT + COUNT ( DISTINCT + 45 ) FROM tab0
----
1

query I rowsort
SELECT col1 * 96 * + col0 FROM tab1
----
40800
410592
68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3041
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - 70 - - + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - 70 - - + col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3042
SELECT - 40 * + CAST( + - MAX( DISTINCT - col1 ) AS SIGNED ) AS col0 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-3042
SELECT - 40 * + CAST ( + - MAX ( DISTINCT - col1 ) AS INTEGER ) AS col0 FROM tab0
----
-40

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 < - ( - 79 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3044
SELECT DISTINCT - ( - col1 ) DIV col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT - ( - col1 ) / col0 FROM tab2
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 > - - col0 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL + MIN( 4 ) FROM tab2 WHERE NOT - ( + + col1 ) * - - col1 / col2 + col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL + MIN ( 4 ) FROM tab2 WHERE NOT - ( + + col1 ) * - - col1 / col2 + col2 = NULL
----
NULL

query II rowsort
SELECT col0 AS col1, - 84 + - col2 FROM tab2
----
46
-107
64
-124
75
-142

query I rowsort
SELECT + + col1 + - 7 AS col1 FROM tab0 AS cor0
----
-6
14
74

query I rowsort
SELECT - - col2 + col0 + 29 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL + col0, col2 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT DISTINCT - col1 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + col2 / + CAST( NULL AS SIGNED ) * + col2 + + col2 + 69 * - col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT - col1 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + col2 / + CAST ( NULL AS INTEGER ) * + col2 + + col2 + 69 * - col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 42 AS col0 FROM tab1 AS cor0
----
42

query I rowsort
SELECT ALL col0 + - 7 FROM tab0 AS cor0
----
8
80
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3054
SELECT COUNT( * ) col0, + SUM( col0 ) - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
230

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3054
SELECT COUNT ( * ) col0, + SUM ( col0 ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
230

query II rowsort
SELECT - 50 AS col2, col1 + - + 89 FROM tab0 AS cor0
----
-50
-68
-50
-8
-50
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT + 0 + - MIN( ALL + + col2 ) col0 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3056
SELECT DISTINCT + 0 + - MIN ( ALL + + col2 ) col0 FROM tab2
----
-23

query I rowsort
SELECT - + 53 AS col0 FROM tab1 AS cor0
----
-53
-53
-53

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + col0 * - + col2 * 30 + 91 )
----

query I rowsort
SELECT + - col0 * + + col2 FROM tab0 cor0
----
-705
-870
-9603

query I rowsort
SELECT + col2 * col2 - + 87 FROM tab2 AS cor0
----
1513
3277
442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT 24 + - + CAST( NULL AS SIGNED ) + + 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT 24 + - + CAST ( NULL AS INTEGER ) + + 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - 31 * 14 < + + col1 + + + ( - col2 )
----

query I rowsort
SELECT + col2 * - - col2 * 49 + + col0 + + col1 + + - col1 FROM tab2 AS cor0
----
164911
25967
78464

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3064
SELECT + - col0 + - + col2 AS col2, - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-144
NULL
-147
NULL
-159
NULL

skipif mysql # not compatible
query II rowsort label-3064
SELECT + - col0 + - + col2 AS col2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-144
NULL
-147
NULL
-159
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT + 66 + + col2 / col2 * + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT + 66 + + col2 / col2 * + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 62 col0 FROM tab2
----
22
39
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT DISTINCT - 24 AS col0 FROM tab2 WHERE - + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT - 24 AS col0 FROM tab2 WHERE - + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT DISTINCT - ( - + ( COUNT( * ) ) ) + + MAX( 29 ) AS col0 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT - ( - + ( COUNT ( * ) ) ) + + MAX ( 29 ) AS col0 FROM tab0
----
32

query III rowsort
SELECT * FROM tab1 WHERE + 34 / + col2 * - - col1 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 3 + 89 AS col0 FROM tab2
----
92
92
92

query I rowsort
SELECT - + col1 + - 82 + + col0 FROM tab0 WHERE NULL IS NULL
----
-148
-16
14

query II rowsort
SELECT - col1 AS col0, - 1 * - col2 AS col0 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT + - 25 - - - COUNT( * ) FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + - 25 - - - COUNT ( * ) FROM tab0 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3074
SELECT DISTINCT - CAST( - + 73 AS SIGNED ) - - - col0 AS col1 FROM tab2 AS cor0
----
-2
27
9

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT - CAST ( - + 73 AS INTEGER ) - - - col0 AS col1 FROM tab2 AS cor0
----
-2
27
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, - 42 + 35 FROM tab0 AS cor0
----
1
-7
21
-7
81
-7

query I rowsort
SELECT DISTINCT - col2 * - + 31 - - + 56 AS col0 FROM tab0 AS cor0
----
1513
3125
366

onlyif mysql # aggregate syntax: 
query II rowsort label-3077
SELECT COUNT( * ) * - + 31 col0, COUNT( * ) AS col1 FROM tab1
----
-93
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3077
SELECT COUNT ( * ) * - + 31 col0, COUNT ( * ) AS col1 FROM tab1
----
-93
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + 15 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 34 col2 FROM tab1 AS cor0
----
34
34
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3080
SELECT - col2 / + - 27 * + col2 - - col2 * + - 99 / - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT - col2 / + - 27 * + col2 - - col2 * + - 99 / - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL 96 * SUM( 82 ) FROM tab1 AS cor0 WHERE NOT col2 * - col0 * + ( + ( + 80 ) ) / - 58 + - col0 + + col2 + - ( - col0 ) * ( col1 * + ( col2 ) ) * - 41 - - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL 96 * SUM ( 82 ) FROM tab1 AS cor0 WHERE NOT col2 * - col0 * + ( + ( + 80 ) ) / - 58 + - col0 + + col2 + - ( - col0 ) * ( col1 * + ( col2 ) ) * - 41 - - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 78 + - col1 AS col0 FROM tab1 AS cor0 WHERE 20 NOT BETWEEN - - ( - - 49 ) * - col2 + 70 AND - col2 * + col1 + col0
----
31
64
73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 83 FROM tab0 WHERE NOT 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT COUNT( * ) * + + MIN( + + col0 ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-3086
SELECT COUNT ( * ) * + + MIN ( + + col0 ) AS col1 FROM tab1
----
153

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 27 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3088
SELECT DISTINCT 13, COUNT( * ) AS col2 FROM tab0
----
13
3

skipif mysql # not compatible
query II rowsort label-3088
SELECT DISTINCT 13, COUNT ( * ) AS col2 FROM tab0
----
13
3

query I rowsort
SELECT col0 * + 51 AS col2 FROM tab2
----
2346
3264
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + MAX( ALL + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3090
SELECT + MAX ( ALL + col2 ) FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3091
SELECT DISTINCT - col0 + 13 + 30 * - CAST( + col1 AS SIGNED ) * - - ( col0 ) * col0 * + - ( - col2 ) col1 FROM tab2
----
-378470451
-655762562
-74462073

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3091
SELECT DISTINCT - col0 + 13 + 30 * - CAST ( + col1 AS INTEGER ) * - - ( col0 ) * col0 * + - ( - col2 ) col1 FROM tab2
----
-378470451
-655762562
-74462073

query I rowsort
SELECT DISTINCT col1 + - 6 * col1 AS col1 FROM tab2
----
-255
-335
-385

query I rowsort
SELECT ALL col1 + - - 22 FROM tab1
----
27
36
69

query I rowsort
SELECT ALL - col2 + + col0 + col2 FROM tab0 AS cor0 WHERE 38 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col1 col2 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3096
SELECT DISTINCT + MIN( DISTINCT - 92 ), + COUNT( * ) AS col2 FROM tab2 cor0
----
-92
3

skipif mysql # not compatible
query II rowsort label-3096
SELECT DISTINCT + MIN ( DISTINCT - 92 ), + COUNT ( * ) AS col2 FROM tab2 cor0
----
-92
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT - col2 DIV - ( col1 ) col0 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3097
SELECT - col2 / - ( col1 ) col0 FROM tab1 cor0
----
1
11
6

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 58 BETWEEN + 34 AND ( - ( - 3 ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, col0, - col0 * col1 )
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < - 98
----

query I rowsort
SELECT + 72 * - col1 AS col0 FROM tab2 cor0 WHERE NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL - COUNT( ALL - 99 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - COUNT ( ALL - 99 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT ALL + COUNT( * ) + 59 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL + COUNT ( * ) + 59 FROM tab2 AS cor0
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-3104
SELECT DISTINCT + - col2 AS col1, col2 DIV - col0 FROM tab0 AS cor0
----
-10
0
-47
-3
-99
-1

skipif mysql # not compatible
query II rowsort label-3104
SELECT DISTINCT + - col2 AS col1, col2 / - col0 FROM tab0 AS cor0
----
-10
0
-47
-3
-99
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + + 46 * 61 + + col0 + 95 FROM tab2 AS cor0
----
-112081
-162578
-64397

onlyif mysql # aggregate syntax: 
query II rowsort label-3107
SELECT DISTINCT + 5 + - - MIN( 28 ) AS col0, - COUNT( * ) AS col0 FROM tab1
----
33
-3

skipif mysql # not compatible
query II rowsort label-3107
SELECT DISTINCT + 5 + - - MIN ( 28 ) AS col0, - COUNT ( * ) AS col0 FROM tab1
----
33
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3108
SELECT ALL - CAST( NULL AS DECIMAL ) - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL - CAST ( NULL AS REAL ) - - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - ( col1 ) * col0 * - col1 AS col0 FROM tab0
----
38388
98
98496

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT - COUNT( * ) - 50 AS col2 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-3110
SELECT - COUNT ( * ) - 50 AS col2 FROM tab0
----
-53

query I rowsort
SELECT 96 - - col0 FROM tab2
----
142
160
171

onlyif mysql # DIV for integer division: 
query I rowsort label-3112
SELECT + 95 - - - col0 - - col2 DIV + col0 FROM tab1
----
10
4
45

skipif mysql # not compatible
query I rowsort label-3112
SELECT + 95 - - - col0 - - col2 / + col0 FROM tab1
----
10
4
45

query I rowsort
SELECT ALL - col0 - + - col2 + - - 83 AS col0 FROM tab1
----
128
57
60

query I rowsort
SELECT DISTINCT - 25 * 49 * + 9 FROM tab1 AS cor0
----
-11025

query I rowsort
SELECT ALL 81 * 53 * + col0 AS col0 FROM tab1 AS cor0
----
218943
364905
390663

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3116
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 78 / col1 AS col2, + 7 AS col0 FROM tab0 AS cor0
----
NULL
7

skipif mysql # not compatible
query II rowsort label-3116
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 78 / col1 AS col2, + 7 AS col0 FROM tab0 AS cor0
----
NULL
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3117
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 61 * - ( - 3 ) * + 27 FROM tab1
----
-4941
-4941
-4941

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 * - col2 - col2 - 71 * - - 23 - + col2 + - - 14 * + col0 * - col1 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-18531
14398
947508

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT + 28 * COUNT( * ) col0 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3120
SELECT + 28 * COUNT ( * ) col0 FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + + + ( + 2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + + + ( + 2 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT - - COUNT( * ) FROM tab1 cor0 WHERE NOT - col2 BETWEEN + 72 AND + 8
----
3

skipif mysql # not compatible
query I rowsort label-3122
SELECT - - COUNT ( * ) FROM tab1 cor0 WHERE NOT - col2 BETWEEN + 72 AND + 8
----
3

query I rowsort
SELECT DISTINCT + 98 * - col1 AS col1 FROM tab0 AS cor0 WHERE ( NOT - col2 * + + ( col0 ) * + - col0 IN ( col0 ) )
----
-2058
-7938
-98

query I rowsort
SELECT DISTINCT - + 74 * ( + 15 ) * + 77 AS col2 FROM tab0 AS cor0
----
-85470

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3125
SELECT * FROM tab2 AS cor0 WHERE NOT 78 NOT BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3125
SELECT * FROM tab2 AS cor0 WHERE NOT 78 NOT BETWEEN NULL AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( + col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT DISTINCT col2 + + col2 DIV - col2 col2 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3127
SELECT DISTINCT col2 + + col2 / - col2 col2 FROM tab1 AS cor0
----
58
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT + + MIN( DISTINCT - ( col1 ) ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-3128
SELECT + + MIN ( DISTINCT - ( col1 ) ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL SUM( - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL SUM ( - col1 ) AS col2 FROM tab1
----
-66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3131
SELECT - ( + SUM( CAST( + 72 AS SIGNED ) ) ) AS col0, + COUNT( * ) + - + COUNT( * ) FROM tab2 cor0
----
-216
0

skipif mysql # not compatible
query II rowsort label-3131
SELECT - ( + SUM ( CAST ( + 72 AS INTEGER ) ) ) AS col0, + COUNT ( * ) + - + COUNT ( * ) FROM tab2 cor0
----
-216
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 5 * - 32 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3133
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / COUNT( * ) + AVG ( ALL + col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT - CAST ( NULL AS REAL ) / COUNT ( * ) + AVG ( ALL + col1 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT ALL col1 + 45 DIV ( 90 ) DIV col2 DIV ( - col2 ) + 54 + ( + col2 ) AS col2 FROM tab0
----
154
182
85

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL col1 + 45 / ( 90 ) / col2 / ( - col2 ) + 54 + ( + col2 ) AS col2 FROM tab0
----
154
182
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3135
SELECT ALL - 19 * CAST( NULL AS SIGNED ) - + - COUNT( * ) + 84 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL - 19 * CAST ( NULL AS INTEGER ) - + - COUNT ( * ) + 84 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT col0 + col0 + + col0 - - 25 + - - col0 AS col0 FROM tab2
----
209
281
325

query I rowsort
SELECT DISTINCT - + col2 - - 0 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL 8 - + 65 FROM tab0 cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT ALL + - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL + - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 + ( 23 ) AS col2 FROM tab2 AS cor0
----
100
74
90

query I rowsort
SELECT 18 + - col0 FROM tab0 AS cor0
----
-69
-79
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3142
SELECT DISTINCT - 98 DIV - col1 col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3142
SELECT DISTINCT - 98 / - col1 col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3143
SELECT ALL + 88 DIV ( - COUNT( * ) ) AS col1, 80 + 57 AS col2 FROM tab1 AS cor0
----
-29
137

skipif mysql # not compatible
query II rowsort label-3143
SELECT ALL + 88 / ( - COUNT ( * ) ) AS col1, 80 + 57 AS col2 FROM tab1 AS cor0
----
-29
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3144
SELECT + - CAST( 3 AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
20
37
55

skipif mysql # not compatible
query I rowsort label-3144
SELECT + - CAST ( 3 AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
20
37
55

query I rowsort
SELECT - col2 * - - col1 + - col2 FROM tab1 AS cor0
----
-1440
-3264
-354

query II rowsort
SELECT ALL 54 AS col1, col0 + ( - - col2 ) + - - 55 - col2 FROM tab0
----
54
142
54
152
54
70

query I rowsort
SELECT ALL 25 + 80 - + 97 FROM tab1
----
8
8
8

query I rowsort
SELECT DISTINCT + 52 AS col1 FROM tab2
----
52

query I rowsort
SELECT ALL - col2 * + - col0 FROM tab1
----
4896
5015
6188

query II rowsort
SELECT col0 AS col2, + 55 AS col0 FROM tab2
----
46
55
64
55
75
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL - 80 * + - MAX( ALL + - col0 ) FROM tab2 WHERE + ( 79 ) IS NOT NULL
----
-3680

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL - 80 * + - MAX ( ALL + - col0 ) FROM tab2 WHERE + ( 79 ) IS NOT NULL
----
-3680

onlyif mysql # aggregate syntax: 
query II rowsort label-3152
SELECT DISTINCT + 1 AS col0, + COUNT( * ) AS col2 FROM tab0
----
1
3

skipif mysql # not compatible
query II rowsort label-3152
SELECT DISTINCT + 1 AS col0, + COUNT ( * ) AS col2 FROM tab0
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3153
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT 99, col0 AS col0 FROM tab2 cor0
----
99
46
99
64
99
75

query I rowsort
SELECT DISTINCT col1 * 66 AS col0 FROM tab0 AS cor0
----
1386
5346
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL + COUNT( col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL + COUNT ( col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT - col0 * 55 AS col1 FROM tab1
----
-2805
-4675
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT 77 * - + ( - - SUM( ALL 89 ) ) FROM tab2 WHERE NOT - col1 * + ( col0 ) * - 21 < 67
----
-20559

skipif mysql # not compatible
query I rowsort label-3158
SELECT 77 * - + ( - - SUM ( ALL 89 ) ) FROM tab2 WHERE NOT - col1 * + ( col0 ) * - 21 < 67
----
-20559

query I rowsort
SELECT - col2 * - + col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT - + col1 * - ( - ( + 78 ) ) FROM tab0 AS cor0
----
-1638
-6318
-78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 42 )
----

query I rowsort
SELECT + col1 + + 30 + + 85 AS col0 FROM tab0 cor0
----
116
136
196

query I rowsort
SELECT DISTINCT ( - 99 ) FROM tab2 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL COUNT( * ) col2 FROM tab2 AS cor0 WHERE + ( col2 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3164
SELECT ALL COUNT ( * ) col2 FROM tab2 AS cor0 WHERE + ( col2 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + - 41 - + col0 AS col1 FROM tab1 AS cor0 WHERE col1 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT col1 + + 46 - - 62 * + 73 * + + col2 + CAST( NULL AS SIGNED ) + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT col1 + + 46 - - 62 * + 73 * + + col2 + CAST ( NULL AS INTEGER ) + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL 20 * COUNT( ALL - ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL 20 * COUNT ( ALL - ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT - - MIN( ALL - - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3168
SELECT - - MIN ( ALL - - col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + ( 27 ) AS col1 FROM tab0
----
27
27
27

query I rowsort
SELECT ALL - - 62 * col2 FROM tab1 WHERE NOT + 1 < - + col0 * - 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT DISTINCT - COUNT( * ) FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT - COUNT ( * ) FROM tab1, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - 89 FROM tab0, tab2 AS cor0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3173
SELECT ALL + 74 col0, CAST( - SUM( ( - - 3 ) ) AS SIGNED ) - + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
74
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3173
SELECT ALL + 74 col0, CAST ( - SUM ( ( - - 3 ) ) AS INTEGER ) - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
74
-12

query II rowsort
SELECT + col1, col0 + + + col1 FROM tab2
----
51
97
67
142
77
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 50 ) * - col2 * 84 col0 FROM tab1
----
247800
285600
403200

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT ALL COUNT( DISTINCT - 72 ) + COUNT( * ) AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL COUNT ( DISTINCT - 72 ) + COUNT ( * ) AS col1 FROM tab0
----
4

query II rowsort
SELECT DISTINCT - 15 AS col1, - 98 AS col0 FROM tab2
----
-15
-98

query I rowsort
SELECT - 28 * + col0 FROM tab2
----
-1288
-1792
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ALL - 21 + ( - - 88 ) * + 1 + MAX( + - col1 ) AS col2 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - 21 + ( - - 88 ) * + 1 + MAX ( + - col1 ) AS col2 FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3180
SELECT - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT - 94 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT SUM( - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3182
SELECT SUM ( - col0 ) AS col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT + + 45 - + + col1 FROM tab2 AS cor0
----
-22
-32
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3184
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( - + 6 AS SIGNED ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3184
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( - + 6 AS INTEGER ) * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + col1 - col1 FROM tab0 AS cor0
----
-2
-462
-6642

query I rowsort
SELECT ALL 8 * col2 * 11 + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 76
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 67 * col1, 38 * 61 col2 FROM tab2 AS cor0
----
-3417
2318
-4489
2318
-5159
2318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT ALL - ( + 41 ) * CAST( - + 59 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 81 = 5
----
2419
2419
2419

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL - ( + 41 ) * CAST ( - + 59 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 81 = 5
----
2419
2419
2419

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 < 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT - COUNT( * ) * - 23 AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-3192
SELECT - COUNT ( * ) * - 23 AS col0 FROM tab1
----
69

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN 92 AND + 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3194
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1
----
-1

query II rowsort
SELECT + + 24 AS col2, + col0 AS col2 FROM tab0 WHERE NOT - col1 + + 92 <> NULL
----

query I rowsort
SELECT col1 * - ( + 64 ) FROM tab0
----
-1344
-5184
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT DISTINCT + COUNT( - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT + COUNT ( - col1 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT col2 * + col2 FROM tab2 AS cor0 WHERE NOT col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT col0 * + 29 * - - ( col2 ) AS col1 FROM tab2
----
126150
30682
74240

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT COUNT( * ) + MAX( - ( + 72 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-3201
SELECT COUNT ( * ) + MAX ( - ( + 72 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-63

query I rowsort
SELECT ( - 51 ) * - 6 FROM tab0
----
306
306
306

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT - COUNT( ALL + - 40 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3203
SELECT - COUNT ( ALL + - 40 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT - + col0 AS col0, col1 - + - col1 FROM tab0 AS cor0
----
-15
162
-87
42
-97
2

query I rowsort
SELECT ALL + - ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - 17 FROM tab0 cor0
----
-17

query II rowsort
SELECT ALL 85 AS col0, ( - - col2 ) AS col2 FROM tab2 AS cor0
----
85
23
85
40
85
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * - col2 FROM tab0 cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * - col2 FROM tab0 cor0
----
-210
-3807
-99

query I rowsort
SELECT + + ( - 72 ) AS col2 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT + ( + + MAX( ALL + + col0 ) ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3210
SELECT + ( + + MAX ( ALL + + col0 ) ) col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT - col1 + col2 + + + 91 FROM tab0 AS cor0
----
189
57
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3212
SELECT COUNT( * ) DIV 75 + + 84 * 77 AS col1 FROM tab1
----
6468

skipif mysql # not compatible
query I rowsort label-3212
SELECT COUNT ( * ) / 75 + + 84 * 77 AS col1 FROM tab1
----
6468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col1 FROM tab1
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 0 * + - 78, 58 col0 FROM tab0
----
0
58
0
58
0
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT DISTINCT - col2 DIV - col0 + - col2 FROM tab1
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT - col2 / - col0 + - col2 FROM tab1
----
-59
-68
-95

query II rowsort
SELECT ALL col0 + + 13, 89 AS col0 FROM tab0
----
100
89
110
89
28
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - + col2 * - + col1 * + col0 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT - - col1 + - col1 AS col1 FROM tab0 WHERE ( col2 - + ( + col0 ) + + col0 ) > ( NULL )
----

query II rowsort
SELECT DISTINCT - ( + 25 ) - col0, + 21 AS col0 FROM tab0 AS cor0
----
-112
21
-122
21
-40
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL SUM( - 39 ) FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL SUM ( - 39 ) FROM tab2 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT + - ( + SUM( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3222
SELECT + - ( + SUM ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 91 ) <= ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3224
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT - col2 * - col0 * 20 AS col1 FROM tab0
----
14100
17400
192060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT ALL - COUNT( DISTINCT CAST( + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL - COUNT ( DISTINCT CAST ( + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 23 FROM tab1 cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL - + ( - COUNT( DISTINCT + + col2 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL - + ( - COUNT ( DISTINCT + + col2 ) ) AS col0 FROM tab0 AS cor0
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL = NULL
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + - col1 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3232
SELECT CAST( NULL AS DECIMAL ) + - COUNT( * ) * 44 + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT CAST ( NULL AS REAL ) + - COUNT ( * ) * 44 + COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col0 + - ( + col1 ) - + col2 FROM tab1
----
-24
-59
21

query I rowsort
SELECT ALL 84 AS col1 FROM tab2 cor0 WHERE NOT + col1 IN ( - + col1 )
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT CAST( + col1 AS SIGNED ) + col2 * + + 25 * + 96 FROM tab1 AS cor0
----
141605
163247
230414

skipif mysql # not compatible
query I rowsort label-3235
SELECT CAST ( + col1 AS INTEGER ) + col2 * + + 25 * + 96 FROM tab1 AS cor0
----
141605
163247
230414

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT + COUNT( * ) * - + 36 + COUNT( * ) col1 FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3236
SELECT + COUNT ( * ) * - + 36 + COUNT ( * ) col1 FROM tab0 AS cor0
----
-105

query I rowsort
SELECT - col1 + + + ( - + col0 ) * + col2 AS col0 FROM tab1 AS cor0
----
-4910
-5020
-6235

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= col0 * col0 * col1
----

query I rowsort
SELECT 1 + 24 AS col1 FROM tab0 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL COUNT( * ) + - 11 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-11

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL COUNT ( * ) + - 11 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3241
SELECT DISTINCT + COUNT( * ) AS col2, COUNT( * ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3241
SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 cor0
----
3
3

query II rowsort
SELECT DISTINCT col0 AS col1, + 66 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
46
66
64
66
75
66

onlyif mysql # DIV for integer division: 
query II rowsort label-3243
SELECT ALL + - col2 * + - 75 + - col2 + - col2 DIV - 80 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
1702
-51
2960
-77
4292
-67

skipif mysql # not compatible
query II rowsort label-3243
SELECT ALL + - col2 * + - 75 + - col2 + - col2 / - 80 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
1702
-51
2960
-77
4292
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 + + col2 * - col0 col1 FROM tab1
----
-4962
-5081
-6254

query III rowsort
SELECT * FROM tab1 WHERE - + ( - col1 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3246
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 + col0 * ( - + col1 ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3246
SELECT ALL - CAST ( NULL AS INTEGER ) + + col0 + col0 * ( - + col1 ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3247
SELECT CAST( - 14 AS SIGNED ) AS col2 FROM tab0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-3247
SELECT CAST ( - 14 AS INTEGER ) AS col2 FROM tab0
----
-14
-14
-14

query I rowsort
SELECT col0 - - + col1 AS col2 FROM tab1
----
138
65
90

query I rowsort
SELECT + col0 * col1 - + + 36 AS col0 FROM tab0
----
1179
1791
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT + COUNT( ALL - col0 ) FROM tab0 WHERE - 57 + - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3250
SELECT + COUNT ( ALL - col0 ) FROM tab0 WHERE - 57 + - col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + col0 * + col2 + - 25 FROM tab1
----
4871
4990
6163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3252
SELECT + + COUNT( - + 87 ) AS col0 FROM tab2 cor0 WHERE col2 + - 27 + + col1 < + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3252
SELECT + + COUNT ( - + 87 ) AS col0 FROM tab2 cor0 WHERE col2 + - 27 + + col1 < + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3253
SELECT 78 + - 91 DIV COUNT( * ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3253
SELECT 78 + - 91 / COUNT ( * ) FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL COUNT( * ) * 94 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL COUNT ( * ) * 94 FROM tab2
----
282

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3255
SELECT DISTINCT CAST( + 92 AS SIGNED ) col0, - col2 FROM tab2 AS cor0
----
92
-23
92
-40
92
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3255
SELECT DISTINCT CAST ( + 92 AS INTEGER ) col0, - col2 FROM tab2 AS cor0
----
92
-23
92
-40
92
-58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 BETWEEN col1 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT DISTINCT - - COUNT( DISTINCT 9 ) * + 2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT - - COUNT ( DISTINCT 9 ) * + 2 FROM tab0 AS cor0
----
2

query I rowsort
SELECT - col1 * 67 AS col0 FROM tab0
----
-1407
-5427
-67

query III rowsort
SELECT * FROM tab0 WHERE NOT 77 IS NOT NULL
----

query I rowsort
SELECT + + 58 + + col1 FROM tab0 WHERE NOT + 22 BETWEEN - col1 AND + col0 / + 39 + + col0
----
139

query I rowsort
SELECT + ( 11 ) FROM tab1
----
11
11
11

query I rowsort
SELECT + 6 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 * + col1 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL + COUNT( * ) * + + MIN( ( + col2 ) ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL + COUNT ( * ) * + + MIN ( ( + col2 ) ) FROM tab1 AS cor0
----
177

query I rowsort
SELECT ALL + col0 * - col1 * col1 - - col0 + + col1 * - col2 FROM tab1 AS cor0
----
-11289
-204124
-2335

query I rowsort
SELECT - - 67 AS col2 FROM tab2 cor0
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT - MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3267
SELECT - MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3268
SELECT COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3269
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL MIN( ALL - + 34 ) AS col0 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL MIN ( ALL - + 34 ) AS col0 FROM tab1
----
-34

query I rowsort
SELECT DISTINCT - ( col0 ) AS col0 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL - SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL - SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
121

query II rowsort
SELECT ALL - + ( col0 ), - col1 - col0 * + 12 AS col0 FROM tab2 cor0
----
-46
-603
-64
-845
-75
-967

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT - - 48 + 6 + - COUNT( * ) AS col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3274
SELECT - - 48 + 6 + - COUNT ( * ) AS col1 FROM tab1 cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT ALL + ( 61 ) DIV + 24 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL + ( 61 ) / + 24 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT + - 98 + + ( ( - col0 ) ) FROM tab2 AS cor0
----
-144
-162
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL - MAX( + + 19 ) FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL - MAX ( + + 19 ) FROM tab0 AS cor0
----
-19

query II rowsort
SELECT DISTINCT col2 AS col1, 73 AS col1 FROM tab0
----
10
73
47
73
99
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT DISTINCT - 85 * - COUNT( * ) + - 55 FROM tab2
----
200

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT - 85 * - COUNT ( * ) + - 55 FROM tab2
----
200

query III rowsort
SELECT ALL * FROM tab1 WHERE + 22 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT + 13 + - COUNT( * ) AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-3281
SELECT + 13 + - COUNT ( * ) AS col1 FROM tab1
----
10

query I rowsort
SELECT ALL col0 * + col2 * + 75 + 89 FROM tab1
----
367289
376214
464189

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT ALL + COUNT( * ) - + + SUM( ALL + + 45 ) FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + COUNT ( * ) - + + SUM ( ALL + + 45 ) FROM tab0
----
-132

query I rowsort
SELECT DISTINCT + 98 AS col0 FROM tab0, tab1 AS cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL COUNT( - - col1 ) - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL COUNT ( - - col1 ) - COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT + CAST( + - 43 AS SIGNED ) FROM tab0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-3287
SELECT + CAST ( + - 43 AS INTEGER ) FROM tab0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3288
SELECT ALL MIN( - col0 ) AS col2, 89 AS col2 FROM tab0
----
-97
89

skipif mysql # not compatible
query II rowsort label-3288
SELECT ALL MIN ( - col0 ) AS col2, 89 AS col2 FROM tab0
----
-97
89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 40 * - col2 IS NULL
----

query II rowsort
SELECT ALL + col1, - 14 FROM tab2
----
51
-14
67
-14
77
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, 93 FROM tab0 AS cor0
----
10
93
47
93
99
93

query I rowsort
SELECT ALL + - 38 AS col1 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT CAST( + ( - 77 ) AS SIGNED ) FROM tab0 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-3293
SELECT CAST ( + ( - 77 ) AS INTEGER ) FROM tab0 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT - MAX( DISTINCT - col2 ) * - COUNT( * ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT - MAX ( DISTINCT - col2 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-177

query I rowsort
SELECT ALL + ( - 40 ) FROM tab1 AS cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3296
SELECT + - col1 * - col0 AS col2, + CAST( + + ( 61 ) AS SIGNED ) FROM tab0 AS cor0
----
1215
61
1827
61
97
61

skipif mysql # not compatible
query II rowsort label-3296
SELECT + - col1 * - col0 AS col2, + CAST ( + + ( 61 ) AS INTEGER ) FROM tab0 AS cor0
----
1215
61
1827
61
97
61

query I rowsort
SELECT ALL - + ( - + 37 ) * + 94 AS col0 FROM tab0 cor0
----
3478
3478
3478

query III rowsort
SELECT * FROM tab0 WHERE NOT + 78 IS NOT NULL
----

query II rowsort
SELECT - col2 * + ( + 81 ), + col1 AS col2 FROM tab0
----
-3807
81
-8019
1
-810
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT - COUNT( * ) * + MIN( + 20 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-3300
SELECT - COUNT ( * ) * + MIN ( + 20 ) FROM tab1
----
-60

query I rowsort
SELECT ALL + + ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT SUM( + 78 ) FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-3302
SELECT SUM ( + 78 ) FROM tab1 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT DISTINCT + 86 * + + 67 + + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
5753

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT + 86 * + + 67 + + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
5753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - - col0 col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT - COUNT( * ) * - 23 FROM tab0 cor0 WHERE NULL <= col2 + 63
----
0

skipif mysql # not compatible
query I rowsort label-3305
SELECT - COUNT ( * ) * - 23 FROM tab0 cor0 WHERE NULL <= col2 + 63
----
0

query I rowsort
SELECT + ( + + 70 ) FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE col1 * + col0 + - - col1 + + col2 IN ( + - col0 / - - col2, + 60 * - col1, + col1, + - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3308
SELECT ALL col1 DIV 71 + + col0 col2, col1 * - col1 FROM tab2 AS cor0
----
46
-2601
65
-5929
75
-4489

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3308
SELECT ALL col1 / 71 + + col0 col2, col1 * - col1 FROM tab2 AS cor0
----
46
-2601
65
-5929
75
-4489

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT + MAX( - col1 ) - - - ( + + 82 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT + MAX ( - col1 ) - - - ( + + 82 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT - col2, + col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3311
SELECT ALL + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT - 37 <= + - CAST( - col0 AS DECIMAL ) + - - ( + CAST( - + col2 AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT - 37 <= + - CAST ( - col0 AS REAL ) + - - ( + CAST ( - + col2 AS REAL ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT - + MAX( - + 44 ) AS col2 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3312
SELECT - + MAX ( - + 44 ) AS col2 FROM tab0 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT + MAX( DISTINCT + + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3313
SELECT + MAX ( DISTINCT + + col0 ) FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3314
SELECT DISTINCT - col2 DIV + 82 * - + col1 + col1 * - 79 AS col2 FROM tab2
----
-4029
-5293
-6083

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT - col2 / + 82 * - + col1 + col1 * - 79 AS col2 FROM tab2
----
-4029
-5293
-6083

onlyif mysql # DIV for integer division: 
query II rowsort label-3315
SELECT DISTINCT ( - - col1 ) * + - col1 + + col2 AS col0, 87 DIV col2 FROM tab2
----
-2578
3
-4431
1
-5889
2

skipif mysql # not compatible
query II rowsort label-3315
SELECT DISTINCT ( - - col1 ) * + - col1 + + col2 AS col0, 87 / col2 FROM tab2
----
-2578
3
-4431
1
-5889
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col2 + + - 49 col2 FROM tab2
----
25
68
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3317
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) + - 95 AS col0 FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) + - 95 AS col0 FROM tab2
----
-98

query II rowsort
SELECT ALL 76 + - 39, - col1 AS col0 FROM tab1
----
37
-14
37
-47
37
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3319
SELECT ( 17 ) + - ( CAST( NULL AS SIGNED ) ) AS col0, + COUNT( * ) - - 59 AS col1 FROM tab0
----
NULL
62

skipif mysql # not compatible
query II rowsort label-3319
SELECT ( 17 ) + - ( CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) - - 59 AS col1 FROM tab0
----
NULL
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3320
SELECT MIN( ALL + col2 ) + + 59 DIV + - 93 AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3320
SELECT MIN ( ALL + col2 ) + + 59 / + - 93 AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col1 FROM tab2 AS cor0 WHERE 8 + ( + 98 ) IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3322
SELECT ALL - - CAST( - MIN( + 95 ) AS SIGNED ) col2 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3322
SELECT ALL - - CAST ( - MIN ( + 95 ) AS INTEGER ) col2 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT ALL + col0 * - + ( - col1 ) AS col0 FROM tab2 cor0 WHERE NOT + col0 < ( - 0 + col0 )
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT COUNT( ALL - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT COUNT ( ALL - col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT + 84 - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
75

skipif mysql # not compatible
query I rowsort label-3325
SELECT + 84 - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3326
SELECT - 62 DIV + MIN( DISTINCT + 79 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3326
SELECT - 62 / + MIN ( DISTINCT + 79 ) FROM tab2
----
0

query I rowsort
SELECT ALL - + 98 AS col0 FROM tab1 cor0
----
-98
-98
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 col2 FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3329
SELECT + 46 AS col1, 58 * COUNT( * ) * + - ( - COUNT( * ) ) * + MAX( + col2 ) AS col2 FROM tab2 cor0
----
46
30276

skipif mysql # not compatible
query II rowsort label-3329
SELECT + 46 AS col1, 58 * COUNT ( * ) * + - ( - COUNT ( * ) ) * + MAX ( + col2 ) AS col2 FROM tab2 cor0
----
46
30276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT - - ( - CAST( - - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3330
SELECT - - ( - CAST ( - - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3331
SELECT + CAST( - col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3331
SELECT + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 71 + + - ( + + 26 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT DISTINCT + MAX( - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT + MAX ( - col2 ) FROM tab0 AS cor0
----
-10

query II rowsort
SELECT + 18 AS col1, 73 FROM tab2
----
18
73
18
73
18
73

query II rowsort
SELECT + col1 AS col1, col2 AS col1 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT ALL ( - - col2 ) FROM tab2
----
23
40
58

query II rowsort
SELECT - col1 AS col2, + 20 AS col2 FROM tab0
----
-1
20
-21
20
-81
20

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= ( - + col0 )
----

query I rowsort
SELECT + ( - col1 ) * + col0 AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT NULL >= + col2
----

query II rowsort
SELECT ALL + col0 AS col1, + col1 * - 71 + + 52 + - + 41 FROM tab0
----
15
-5740
87
-1480
97
-60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + - + col0 / - col2 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 29 + - + col1 + + col2 FROM tab1 AS cor0
----
-8
25
53

query I rowsort
SELECT ALL + + col2 + - 2 + - col2 AS col0 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT + + col0 * - 4 AS col0 FROM tab1 AS cor0
----
-204
-340
-364

query I rowsort
SELECT ALL + - 61 * + 38 + col0 * + 49 + + col2 FROM tab0 AS cor0
----
-1536
1955
2534

query I rowsort
SELECT ( + 54 ) + - + ( - - 29 ) FROM tab2 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3348
SELECT + - ( - + 22 ) + - 33 + - 10 * COUNT( * ) DIV + 12 + + 65 AS col0 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3348
SELECT + - ( - + 22 ) + - 33 + - 10 * COUNT ( * ) / + 12 + + 65 AS col0 FROM tab1 AS cor0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3349
SELECT DISTINCT COUNT( * ) + - - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3349
SELECT DISTINCT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3350
SELECT col2 AS col1, col0 + CAST( + col0 AS SIGNED ) col0 FROM tab2
----
23
92
40
128
58
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3350
SELECT col2 AS col1, col0 + CAST ( + col0 AS INTEGER ) col0 FROM tab2
----
23
92
40
128
58
150

query I rowsort
SELECT col2 * 31 FROM tab2 cor0
----
1240
1798
713

query I rowsort
SELECT ( - + col1 ) * + ( ( + 4 ) ) FROM tab0 AS cor0
----
-324
-4
-84

query I rowsort
SELECT DISTINCT col0 * col0 * + 17 * - 26 AS col0 FROM tab0 AS cor0
----
-3345498
-4158778
-99450

query II rowsort
SELECT ALL + col2 AS col0, + col2 * + - col2 + + ( + 36 ) AS col2 FROM tab0 AS cor0
----
10
-64
47
-2173
99
-9765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col1 ) col2 FROM tab1 WHERE NOT ( - + 39 ) NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT MIN( DISTINCT + col2 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3356
SELECT MIN ( DISTINCT + col2 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL + MAX( 63 ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL + MAX ( 63 ) FROM tab1 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3358
SELECT - + CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3358
SELECT - + CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL MIN( - 2 ) AS col1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL MIN ( - 2 ) AS col1 FROM tab2 AS cor0
----
-2

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3361
SELECT DISTINCT 40 * - col1 + - CAST( + + ( - - 82 ) AS SIGNED ) + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT 40 * - col1 + - CAST ( + + ( - - 82 ) AS INTEGER ) + - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT DISTINCT + 1 + + ( - MAX( + 71 ) ) AS col0 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT + 1 + + ( - MAX ( + 71 ) ) AS col0 FROM tab2
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, 76 * - 85 FROM tab1
----
59
-6460
68
-6460
96
-6460

query I rowsort
SELECT col2 * + 0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT COUNT( col0 ) * + ( + - 78 ) AS col1 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-3365
SELECT COUNT ( col0 ) * + ( + - 78 ) AS col1 FROM tab1
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3366
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE col0 / + + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE col0 / + + col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT + COUNT( * ) + 79 col2 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3367
SELECT + COUNT ( * ) + 79 col2 FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3368
SELECT + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + 84 + - + col2 AS col0 FROM tab0
----
-15
37
74

onlyif mysql # DIV for integer division: 
query II rowsort label-3370
SELECT col2, col2 + + col1 DIV + col0 AS col2 FROM tab2
----
23
24
40
41
58
58

skipif mysql # not compatible
query II rowsort label-3370
SELECT col2, col2 + + col1 / + col0 AS col2 FROM tab2
----
23
24
40
41
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col1 AS col1, 9 col2 FROM tab0
----
210
9
3807
9
99
9

query I rowsort
SELECT - 70 * 33 + col2 FROM tab2 AS cor0
----
-2252
-2270
-2287

onlyif mysql # aggregate syntax: 
query II rowsort label-3373
SELECT ALL - MIN( - col1 ) AS col1, 27 AS col1 FROM tab0 AS cor0
----
81
27

skipif mysql # not compatible
query II rowsort label-3373
SELECT ALL - MIN ( - col1 ) AS col1, 27 AS col1 FROM tab0 AS cor0
----
81
27

query II rowsort
SELECT DISTINCT - - col1, + ( col2 ) FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT - COUNT( * ) - - + ( ( 42 ) ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-3375
SELECT - COUNT ( * ) - - + ( ( 42 ) ) FROM tab1
----
39

query III rowsort
SELECT * FROM tab2 WHERE - - 47 - + 87 >= NULL
----

query I rowsort
SELECT + col0 - + col1 + + col1 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT DISTINCT 50 DIV + + ( + col1 ) FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT 50 / + + ( + col1 ) FROM tab1
----
1
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT + MIN( ALL - col0 ) * 17 AS col1 FROM tab1
----
-1547

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT + MIN ( ALL - col0 ) * 17 AS col1 FROM tab1
----
-1547

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT - MAX( 86 ) AS col2 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3380
SELECT - MAX ( 86 ) AS col2 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT - 16 FROM tab1 AS cor0 WHERE NOT 45 IS NULL
----
-16
-16
-16

query I rowsort
SELECT ALL - - 44 FROM tab2 cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT - MIN( - 6 ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT - MIN ( - 6 ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT col2 DIV + col2 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3384
SELECT col2 / + col2 AS col1 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT + MAX( + col2 ) * COUNT( * ) + - 97 * + 59 col1 FROM tab1 AS cor0
----
-5435

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3385
SELECT + MAX ( + col2 ) * COUNT ( * ) + - 97 * + 59 col1 FROM tab1 AS cor0
----
-5435

query I rowsort
SELECT DISTINCT + 58 + + 91 FROM tab0 AS cor0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL - + 15 + + MIN( ( + + 18 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - + 15 + + MIN ( ( + + 18 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT 80 + - COUNT( col0 ) col2 FROM tab1
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3388
SELECT 80 + - COUNT ( col0 ) col2 FROM tab1
----
77

query II rowsort
SELECT ALL col1 + + - col1 AS col2, + col0 AS col0 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT 59 + + - col1 + + col1 FROM tab1
----
59
59
59

query II rowsort
SELECT DISTINCT col0 * + col2, - col0 * - - col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( + col1 ) + - + 91 AS col2 FROM tab0
----
-112
-172
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ( - MIN( col0 ) ) AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-3393
SELECT ( - MIN ( col0 ) ) AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
-46

query I rowsort
SELECT - col0 + + + 64 AS col2 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
-21
-27
13

query I rowsort
SELECT DISTINCT + ( 24 ) + - 89 FROM tab2 cor0 WHERE NULL <= - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3396
SELECT col1 * + col2 + - 24 + + 85 + + col1 col0, 28 DIV + 39 AS col0 FROM tab2 AS cor0
----
1285
0
3218
0
4014
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3396
SELECT col1 * + col2 + - 24 + + 85 + + col1 col0, 28 / + 39 AS col0 FROM tab2 AS cor0
----
1285
0
3218
0
4014
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3397
SELECT - col0 * + + col0 + col1 + - col0 DIV - + 98 * col1 FROM tab0 AS cor0
----
-144
-7548
-9408

skipif mysql # not compatible
query I rowsort label-3397
SELECT - col0 * + + col0 + col1 + - col0 / - + 98 * col1 FROM tab0 AS cor0
----
-144
-7548
-9408

onlyif mysql # DIV for integer division: 
query I rowsort label-3398
SELECT DISTINCT col2 DIV - + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT col2 / - + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 >= - col1
----
15
81
47

query I rowsort
SELECT + col0 * 26 AS col0 FROM tab1 AS cor0
----
1326
2210
2366

query II rowsort
SELECT DISTINCT - - col0 + + col0 + - 72 - + col2 AS col1, 6 FROM tab0 AS cor0
----
-89
6
23
6
92
6

query I rowsort
SELECT DISTINCT - 61 + - col1 + col1 FROM tab2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT COUNT( * ) FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3403
SELECT COUNT ( * ) FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - col0 - + - col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
-66
66
96

query I rowsort
SELECT DISTINCT col2 * + 80 AS col1 FROM tab0 AS cor0
----
3760
7920
800

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT COUNT( * ) + + 9 col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3407
SELECT COUNT ( * ) + + 9 col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT DISTINCT 33 * + 58 FROM tab1 AS cor0
----
1914

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3409
SELECT DISTINCT + col1 AS col2, - ( CAST( NULL AS SIGNED ) ) / - 36 + + - col0 / col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3409
SELECT DISTINCT + col1 AS col2, - ( CAST ( NULL AS INTEGER ) ) / - 36 + + - col0 / col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT ALL col1 * + + 66 AS col2 FROM tab1
----
3102
330
924

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT DISTINCT COUNT( * ) * - - MIN( ALL + ( + col1 ) ) AS col2 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT COUNT ( * ) * - - MIN ( ALL + ( + col1 ) ) AS col2 FROM tab1
----
15

query I rowsort
SELECT ALL col1 * 27 * - col0 AS col1 FROM tab0
----
-2619
-32805
-49329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col1 FROM tab2
----
4

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + - col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3415
SELECT DISTINCT 47 DIV SUM( + col1 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT 47 / SUM ( + col1 ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT ( - col0 ) / col1 - + CAST( NULL AS SIGNED ) * - 2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT ( - col0 ) / col1 - + CAST ( NULL AS INTEGER ) * - 2 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 12, col1 FROM tab0
----
12
1
12
21
12
81

query II rowsort
SELECT DISTINCT col1, + col2 AS col2 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT + - col2, + col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT - - 64 AS col0 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT ALL 51 DIV - 29 col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3421
SELECT ALL 51 / - 29 col0 FROM tab2 cor0
----
-1
-1
-1

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT ALL + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * - 27 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 27 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL + - COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL + - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT - 24 * - COUNT( * ) + + + COUNT( - + 97 ) AS col0 FROM tab1 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3426
SELECT - 24 * - COUNT ( * ) + + + COUNT ( - + 97 ) AS col0 FROM tab1 cor0
----
75

query I rowsort
SELECT col0 + - 99 FROM tab0 AS cor0
----
-12
-2
-84

query I rowsort
SELECT ALL - 34 * col2 FROM tab0 AS cor0 WHERE NOT 92 IS NULL
----
-1598
-3366
-340

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT + col1 DIV + 7 AS col1 FROM tab1 AS cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-3429
SELECT + col1 / + 7 AS col1 FROM tab1 AS cor0
----
0
2
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT DISTINCT - 41 * 5 * CAST( - + col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
13120
15375
9430

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT - 41 * 5 * CAST ( - + col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
13120
15375
9430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0 AS cor0 WHERE 98 / - 4 NOT BETWEEN + col2 + + - col0 + + 69 + col2 AND NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT ALL - SUM( col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL - SUM ( col1 ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-3433
SELECT ALL 53 + + + SUM( + 71 ) AS col0, + 12 FROM tab2
----
266
12

skipif mysql # not compatible
query II rowsort label-3433
SELECT ALL 53 + + + SUM ( + 71 ) AS col0, + 12 FROM tab2
----
266
12

query I rowsort
SELECT 98 * - + 99 * + ( col1 ) AS col1 FROM tab0
----
-203742
-785862
-9702

query I rowsort
SELECT 9 - + - col1 + ( - - 33 ) + + - col1 AS col0 FROM tab2 cor0
----
42
42
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3436
SELECT + col2 - + col0 - + + 35 + col0 + ( col1 ) DIV - - col0 FROM tab1 AS cor0
----
24
33
61

skipif mysql # not compatible
query I rowsort label-3436
SELECT + col2 - + col0 - + + 35 + col0 + ( col1 ) / - - col0 FROM tab1 AS cor0
----
24
33
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3437
SELECT DISTINCT - - COUNT( - - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT - - COUNT ( - - CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE + col0 * 10 NOT IN ( + col0 * - - 31 + col2, col1 + col1 - 38 )
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 + - 56 ) >= - ( - col0 ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col1 * + col2 col1 FROM tab1
----
-1358
-300
-3243

query I rowsort
SELECT DISTINCT + col1 * - ( 9 ) FROM tab2
----
-459
-603
-693

onlyif mysql # DIV for integer division: 
query I rowsort label-3443
SELECT DISTINCT col1 DIV ( 7 ) AS col0 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT col1 / ( 7 ) AS col0 FROM tab1
----
0
2
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3444
SELECT DISTINCT + ( CAST( + col2 AS SIGNED ) ) DIV ( 3 - - col2 * + col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT + ( CAST ( + col2 AS INTEGER ) ) / ( 3 - - col2 * + col1 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 27 + 10 = + 36 * col2 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 61 IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE ( + col2 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT ALL + 70 / ( CAST( NULL AS SIGNED ) ) + 70 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3448
SELECT ALL + 70 / ( CAST ( NULL AS INTEGER ) ) + 70 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + col2 - - col2 * + col0 FROM tab0 WHERE col1 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT 94 + - ( - col2 ) * col2 AS col2 FROM tab0
----
194
2303
9895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col1 FROM tab2
----
92
92
92

query III rowsort
SELECT * FROM tab0 WHERE + col2 / 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT + ( SUM( 11 ) ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-3453
SELECT + ( SUM ( 11 ) ) FROM tab2
----
33

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT 52 * 82 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT - COUNT( col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3455
SELECT - COUNT ( col1 ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col2 FROM tab1
----
30
30
30

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT col1 NOT BETWEEN - 84 / ( - col2 * + col1 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3458
SELECT ALL * FROM tab1 WHERE NOT ( CAST( + 20 AS SIGNED ) + + 12 ) IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3458
SELECT ALL * FROM tab1 WHERE NOT ( CAST ( + 20 AS INTEGER ) + + 12 ) IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 4 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 29 * - 58 FROM tab0 AS cor0
----
-1682

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3461
SELECT ALL COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL COUNT ( * ) * CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT SUM( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3462
SELECT SUM ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN - ( - col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT ALL + 80 + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1
----
89

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL + 80 + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT DISTINCT 98 * - COUNT( * ) FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT 98 * - COUNT ( * ) FROM tab1 AS cor0
----
-294

query I rowsort
SELECT DISTINCT - 6 * col0 + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 - 75 AND + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT + + ( - MIN( col2 ) ) col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3467
SELECT + + ( - MIN ( col2 ) ) col1 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT ALL - - CAST( - col2 AS SIGNED ) * + ( 54 ) FROM tab0 AS cor0
----
-2538
-5346
-540

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL - - CAST ( - col2 AS INTEGER ) * + ( 54 ) FROM tab0 AS cor0
----
-2538
-5346
-540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3469
SELECT ALL + - COUNT( * ) * COUNT( * ) + + CAST( - 83 AS SIGNED ) FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL + - COUNT ( * ) * COUNT ( * ) + + CAST ( - 83 AS INTEGER ) FROM tab2 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT COUNT( * ) + - MAX( ALL + col1 ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3470
SELECT COUNT ( * ) + - MAX ( ALL + col1 ) FROM tab1 AS cor0
----
-44

query I rowsort
SELECT - + col1 + 19 AS col1 FROM tab0 AS cor0
----
-2
-62
18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col1 * col0 + col0 ) > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT + COUNT( DISTINCT col2 ) + - 7 col1 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3473
SELECT + COUNT ( DISTINCT col2 ) + - 7 col1 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT col0 * - col0 + + col0 AS col0 FROM tab1 AS cor0
----
-2550
-7140
-8190

onlyif mysql # DIV for integer division: 
query I rowsort label-3475
SELECT - col2 DIV + - 83 + - col1 FROM tab1
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-3475
SELECT - col2 / + - 83 + - col1 FROM tab1
----
-13
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT ALL + CAST( NULL AS SIGNED ) * col0 + - 47 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 + - 47 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE 45 * col2 IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + col1 * + 28 FROM tab2
----
1479
1943
2233

query I rowsort
SELECT DISTINCT 2 + + + 82 AS col2 FROM tab0
----
84

query I rowsort
SELECT ALL col1 + - + 66 FROM tab0
----
-45
-65
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3481
SELECT ALL * FROM tab2 WHERE ( CAST( NULL AS SIGNED ) * + col0 ) BETWEEN + 19 AND col2
----

skipif mysql # not compatible
query III rowsort label-3481
SELECT ALL * FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) * + col0 ) BETWEEN + 19 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3482
SELECT + col1 DIV ( - col1 ) DIV col2 + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3482
SELECT + col1 / ( - col1 ) / col2 + col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL - SUM( - ( + ( + col1 ) ) ) FROM tab2 WHERE - ( + 83 ) > - col2 * col2
----
195

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL - SUM ( - ( + ( + col1 ) ) ) FROM tab2 WHERE - ( + 83 ) > - col2 * col2
----
195

query I rowsort
SELECT DISTINCT + col1 * + col1 * + col1 + + 70 * col2 AS col1 FROM tab2
----
134261
304823
459333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT ALL + col2 + - col2 / CAST( - col2 + + 17 * - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL + col2 + - col2 / CAST ( - col2 + + 17 * - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - 66 * col2 AS col1 FROM tab0
----
-13860
-251262
-6534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) + - col2 col2 FROM tab1
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT DISTINCT + col2 DIV 86 col1 FROM tab0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3488
SELECT DISTINCT + col2 / 86 col1 FROM tab0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 IS NULL OR NOT NULL <> NULL
----

query I rowsort
SELECT ALL - + col1 - ( col0 ) + - ( + ( col1 ) ) * + col1 AS col0 FROM tab0 AS cor0
----
-549
-6657
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT DISTINCT - 54 + MIN( col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT - 54 + MIN ( col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT + ( 85 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( + col0 ) NOT BETWEEN + 71 - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3492
SELECT + ( 85 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( + col0 ) NOT BETWEEN + 71 - col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( col2 ) ) IS NULL
----

query II rowsort
SELECT ALL col2 AS col2, col0 AS col0 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT ALL - 23 AS col0 FROM tab1 WHERE NOT ( + col0 ) >= + 48 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL + + MIN( DISTINCT - 55 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-55

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL + + MIN ( DISTINCT - 55 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-55

query I rowsort
SELECT - ( - 65 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3498
SELECT DISTINCT MIN( + - ( + col0 ) ) DIV 94 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT MIN ( + - ( + col0 ) ) / 94 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3499
SELECT col1 * ( - + CAST( 1 AS SIGNED ) ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3499
SELECT col1 * ( - + CAST ( 1 AS INTEGER ) ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3500
SELECT - - CAST( - 56 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-3500
SELECT - - CAST ( - 56 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-56
-56
-56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * + col1 + - 80 ) BETWEEN ( col2 ) AND NULL
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT - ( - COUNT( * ) ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3502
SELECT - ( - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 85 * 51 FROM tab0 AS cor0
----
-4335
-4335
-4335

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT DISTINCT + - MAX( - - 53 ) FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT + - MAX ( - - 53 ) FROM tab2 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT COUNT( * ) * + - MAX( ( col1 ) ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-3506
SELECT COUNT ( * ) * + - MAX ( ( col1 ) ) FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT SUM( ALL - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3507
SELECT SUM ( ALL - col2 ) AS col2 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL + SUM( DISTINCT + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL + SUM ( DISTINCT + col0 ) AS col1 FROM tab0
----
199

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( col2 ) AS col2 FROM tab1 cor0 WHERE ( NULL ) <> - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= ( - col1 / - 51 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3512
SELECT DISTINCT + ( - CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( + col0 / - 74 * - ( col0 ) ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT + ( - CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( + col0 / - 74 * - ( col0 ) ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT - 47 / 62 + col1 * + col1 AS col0 FROM tab1 AS cor0 WHERE NOT 34 - ( + 86 ) IS NOT NULL
----

query I rowsort
SELECT col2 * + + col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT ALL ( - - col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col2 + - + col2 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT ALL + col1 + - + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 + col2 + + - col1 FROM tab2
----
18
27
66

query II rowsort
SELECT ALL 88, - ( ( 57 ) ) AS col0 FROM tab0 AS cor0
----
88
-57
88
-57
88
-57

query I rowsort
SELECT ALL + col0 FROM tab2 cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT DISTINCT - SUM( DISTINCT 46 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT - SUM ( DISTINCT 46 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL col2 + + col2 + - 23 * - + col0 FROM tab1 AS cor0
----
1365
2073
2229

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT - COUNT( DISTINCT + ( + col1 ) ) FROM tab2 AS cor0 WHERE - ( ( - 15 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT - COUNT ( DISTINCT + ( + col1 ) ) FROM tab2 AS cor0 WHERE - ( ( - 15 ) ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3524
SELECT DISTINCT 57 DIV 52 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT 57 / 52 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL COUNT( DISTINCT + 77 ) AS col2 FROM tab2 AS cor0 WHERE col0 NOT IN ( + 73 + col0 )
----
1

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL COUNT ( DISTINCT + 77 ) AS col2 FROM tab2 AS cor0 WHERE col0 NOT IN ( + 73 + col0 )
----
1

query I rowsort
SELECT - 98 * - col1 AS col2 FROM tab1
----
1372
4606
490

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3528
SELECT ALL + col0, col0 * + col1 FROM tab2 WHERE + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query II rowsort label-3528
SELECT ALL + col0, col0 * + col1 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 + col1 + + 93 col2 FROM tab1
----
144
153
186

query II rowsort
SELECT - 56 AS col0, - col0 FROM tab1
----
-56
-51
-56
-85
-56
-91

query I rowsort
SELECT DISTINCT 12 + + 76 AS col1 FROM tab1
----
88

query I rowsort
SELECT col1 - + col2 + + - ( 54 ) * - col0 FROM tab1
----
2672
4536
4893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3533
SELECT ALL COUNT( * ) + 33 DIV + - 11 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL COUNT ( * ) + 33 / + - 11 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3534
SELECT CAST( NULL AS DECIMAL ) - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT CAST ( NULL AS REAL ) - - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT 21 - + COUNT( * ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-3535
SELECT 21 - + COUNT ( * ) FROM tab1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col1 col0 FROM tab2
----
117
125
74

query I rowsort
SELECT col2 + + 80 FROM tab1
----
139
148
176

query I rowsort
SELECT DISTINCT col0 + - col0 + + 85 + col1 * + 78 * - - 11 + col2 FROM tab2
----
43866
57629
66191

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3539
SELECT ALL CAST( NULL AS DECIMAL ) + - - AVG ( + - 52 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL CAST ( NULL AS REAL ) + - - AVG ( + - 52 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT ( 70 ) BETWEEN + 63 AND - 65 * col0 + + - col0 + + 52
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3541
SELECT * FROM tab2 cor0 WHERE + CAST( col0 AS SIGNED ) / - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3541
SELECT * FROM tab2 cor0 WHERE + CAST ( col0 AS INTEGER ) / - col1 IS NULL
----

query I rowsort
SELECT ALL - col2 * - 34 * - col1 - - col0 - + col1 + - + col2 * col2 AS col1 FROM tab0 cor0
----
-13071
-131713
-7174

query I rowsort
SELECT DISTINCT - - col2 - + - col1 * 4 AS col1 FROM tab1 AS cor0 WHERE NOT col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3545
SELECT + 98 * CAST( NULL AS SIGNED ) / + + col0, col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3545
SELECT + 98 * CAST ( NULL AS INTEGER ) / + + col0, col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3546
SELECT col2 * 41 FROM tab2 AS cor0 WHERE NOT - 57 NOT IN ( + ( - 92 ) / - 57 * + + col1 + + - CAST( NULL AS SIGNED ) - - col2 )
----

skipif mysql # not compatible
query I rowsort label-3546
SELECT col2 * 41 FROM tab2 AS cor0 WHERE NOT - 57 NOT IN ( + ( - 92 ) / - 57 * + + col1 + + - CAST ( NULL AS INTEGER ) - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 / 41 * - 95 AND - - 61
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 * + - 81 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3549
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3550
SELECT ALL 37 DIV - COUNT( * ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL 37 / - COUNT ( * ) AS col0 FROM tab0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3551
SELECT col1 AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3551
SELECT col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT - col0 * - + 83 FROM tab1
----
4233
7055
7553

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3553
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) < 42
----

skipif mysql # not compatible
query III rowsort label-3553
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) < 42
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 27 BETWEEN col1 AND ( NULL )
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT + COUNT( col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT + COUNT ( col2 ) FROM tab2
----
3

query I rowsort
SELECT col2 + + ( + ( - + 60 ) ) + - ( 53 ) AS col0 FROM tab2 AS cor0
----
-55
-73
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3557
SELECT ALL 21 + + COUNT( * ) DIV + 26 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL 21 + + COUNT ( * ) / + 26 FROM tab2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + - col2 + col1 AS col1, - 0 AS col0 FROM tab1 AS cor0
----
-21
0
-54
0
-82
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3560
SELECT DISTINCT + COUNT( CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3560
SELECT DISTINCT + COUNT ( CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT 50 + + COUNT( * ) - - 22 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3561
SELECT 50 + + COUNT ( * ) - - 22 FROM tab1 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3562
SELECT + CAST( + - 55 AS SIGNED ) + + + ( + - col2 ) col0 FROM tab1 cor0
----
-114
-123
-151

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3562
SELECT + CAST ( + - 55 AS INTEGER ) + + + ( + - col2 ) col0 FROM tab1 cor0
----
-114
-123
-151

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + 88 * - ( - + col1 ) AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT + COUNT( * ) + COUNT( + + ( col1 ) ) + - - MAX( ALL - + 86 ) + COUNT( * ) * - - 92 FROM tab2
----
196

skipif mysql # not compatible
query I rowsort label-3564
SELECT + COUNT ( * ) + COUNT ( + + ( col1 ) ) + - - MAX ( ALL - + 86 ) + COUNT ( * ) * - - 92 FROM tab2
----
196

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col0 + - - 94 FROM tab0
----
156
191
290

query I rowsort
SELECT + col1 FROM tab1 WHERE 18 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL + 2 + 15 - col1 + - col0 * col0 - + ( - 62 ) - + ( col0 ) AS col2 FROM tab2
----
-2134
-4158
-5688

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT MAX( DISTINCT + + 91 ) AS col1 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-3568
SELECT MAX ( DISTINCT + + 91 ) AS col1 FROM tab2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3569
SELECT ALL - ( COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3569
SELECT ALL - ( COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) ) col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 0 * + 76 + - col2 + - col1 * + + col2 FROM tab1 AS cor0
----
-1440
-3264
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col2 < NULL
----
0

query I rowsort
SELECT ALL - col0 * + ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT ALL col2 AS col0, - col1 AS col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT MAX( + col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT MAX ( + col0 ) AS col2 FROM tab1
----
91

query II rowsort
SELECT + col0 AS col1, ( - ( - 40 ) ) FROM tab2 AS cor0
----
46
40
64
40
75
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3576
SELECT DISTINCT + + COUNT( * ) col2, 84 FROM tab1 AS cor0
----
3
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3576
SELECT DISTINCT + + COUNT ( * ) col2, 84 FROM tab1 AS cor0
----
3
84

query II rowsort
SELECT ALL + col0, - col1 * - col1 + - 21 FROM tab0 AS cor0
----
15
6540
87
420
97
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3578
SELECT - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col0 FROM tab2 AS cor0 WHERE col0 <= - - 12 / - - 10
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + + + 79 IS NOT NULL
----

query II rowsort
SELECT + - 93, 84 AS col1 FROM tab2 AS cor0
----
-93
84
-93
84
-93
84

onlyif mysql # DIV for integer division: 
query II rowsort label-3582
SELECT DISTINCT col1, + col1 DIV + 76 AS col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-3582
SELECT DISTINCT col1, + col1 / + 76 AS col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT - ( + MAX( ALL + - col1 ) ) col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3583
SELECT - ( + MAX ( ALL + - col1 ) ) col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + - 18 AS col1 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT ALL + col2 + col2 * CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab0 AS cor0 WHERE 90 * - 43 + + 56 <= + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL + col2 + col2 * CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab0 AS cor0 WHERE 90 * - 43 + + 56 <= + col0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3586
SELECT - COUNT( * ) AS col0, 76 AS col1 FROM tab0 cor0
----
-3
76

skipif mysql # not compatible
query II rowsort label-3586
SELECT - COUNT ( * ) AS col0, 76 AS col1 FROM tab0 cor0
----
-3
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT ALL MIN( ALL + - 81 ) FROM tab1 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL MIN ( ALL + - 81 ) FROM tab1 cor0
----
-81

query I rowsort
SELECT ALL + 51 * col1 AS col2 FROM tab0 AS cor0
----
1071
4131
51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > - col1
----

query I rowsort
SELECT ALL col0 * 26 FROM tab2
----
1196
1664
1950

query I rowsort
SELECT DISTINCT col1 + 38 FROM tab2
----
105
115
89

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 5 * + col2 col0 FROM tab1 AS cor0
----
-295
-340
-480

query I rowsort
SELECT DISTINCT col1 + + 19 AS col2 FROM tab2 AS cor0
----
70
86
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3596
SELECT ALL 81 + - CAST( NULL AS SIGNED ), + 6 AS col0 FROM tab1 AS cor0
----
NULL
6
NULL
6
NULL
6

skipif mysql # not compatible
query II rowsort label-3596
SELECT ALL 81 + - CAST ( NULL AS INTEGER ), + 6 AS col0 FROM tab1 AS cor0
----
NULL
6
NULL
6
NULL
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3598
SELECT DISTINCT + 40 * - - ( - - COUNT( * ) ) - 19 AS col2, + 30 * - + 33 AS col2 FROM tab1
----
101
-990

skipif mysql # not compatible
query II rowsort label-3598
SELECT DISTINCT + 40 * - - ( - - COUNT ( * ) ) - 19 AS col2, + 30 * - + 33 AS col2 FROM tab1
----
101
-990

query I rowsort
SELECT + 87 * 60 AS col2 FROM tab2
----
5220
5220
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - + col2 col1 FROM tab0 AS cor0 WHERE - col2 * col0 <= - 87 / - 1
----
210
3807
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3602
SELECT DISTINCT - - 13, 19 DIV col0 * + + col2 AS col2 FROM tab0 AS cor0
----
13
0
13
47

skipif mysql # not compatible
query II rowsort label-3602
SELECT DISTINCT - - 13, 19 / col0 * + + col2 AS col2 FROM tab0 AS cor0
----
13
0
13
47

query II rowsort
SELECT ALL - col2, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3604
SELECT col2 - - + CAST( NULL AS SIGNED ) col1, col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3604
SELECT col2 - - + CAST ( NULL AS INTEGER ) col1, col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 - - 4 col2 FROM tab1
----
76
76
76

query III rowsort
SELECT ALL * FROM tab0 WHERE 44 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL - 67 + col2 AS col0 FROM tab2
----
-27
-44
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT + MIN( DISTINCT - ( - col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3609
SELECT + MIN ( DISTINCT - ( - col2 ) ) FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 82 col0 FROM tab0 AS cor0
----
82

query I rowsort
SELECT col2 * - + col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT + MIN( ALL col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3612
SELECT + MIN ( ALL col2 ) AS col2 FROM tab2
----
23

query I rowsort
SELECT 48 * - 83 FROM tab2
----
-3984
-3984
-3984

query I rowsort
SELECT DISTINCT col0 * + 97 * + 42 * - col1 FROM tab1
----
-1731450
-17424498
-2908836

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT - 90 IS NULL
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT - MAX( DISTINCT - - 91 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-91

skipif mysql # not compatible
query I rowsort label-3617
SELECT - MAX ( DISTINCT - - 91 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-91

query II rowsort
SELECT - 53 AS col0, - 11 AS col0 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
18 values hashing to 16d61ee06b7e896fde1f040b2be82578

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + col0 * + + col1 FROM tab2 cor0
----
-107916
-315392
-376875

query II rowsort
SELECT 76 AS col1, + ( - - 56 ) AS col1 FROM tab1
----
76
56
76
56
76
56

query I rowsort
SELECT - 56 * + col1 AS col0 FROM tab0
----
-1176
-4536
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT DISTINCT 25 + - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT 25 + - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3625
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3625
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 64 * + col1 * - - col2 + col0 FROM tab1
----
18965
204635
86067

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT + 59 + COUNT( * ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT + 59 + COUNT ( * ) FROM tab2
----
62

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 30 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * + + 81 + - 84 FROM tab0
----
-165
-1785
-6645

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + 29 + + 40 / - + 15 / + 36
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3632
SELECT - MIN( + + 80 ), + 98 col0 FROM tab0 cor0
----
-80
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3632
SELECT - MIN ( + + 80 ), + 98 col0 FROM tab0 cor0
----
-80
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT MIN( + 73 ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-3633
SELECT MIN ( + 73 ) FROM tab0 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-3634
SELECT DISTINCT + 63 DIV - col1 AS col0, + col0 AS col0 FROM tab1
----
-1
91
-12
85
-4
51

skipif mysql # not compatible
query II rowsort label-3634
SELECT DISTINCT + 63 / - col1 AS col0, + col0 AS col0 FROM tab1
----
-1
91
-12
85
-4
51

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT MIN( col1 ) + 22 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3636
SELECT MIN ( col1 ) + 22 FROM tab0 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT MIN( ALL + - col2 ) + + COUNT( * ) FROM tab0 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3637
SELECT MIN ( ALL + - col2 ) + + COUNT ( * ) FROM tab0 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT MAX( ALL + col0 ) AS col0 FROM tab0 AS cor0 WHERE + col0 = - 4 - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT MAX ( ALL + col0 ) AS col0 FROM tab0 AS cor0 WHERE + col0 = - 4 - - 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT col2 + + 34 * CAST( + 65 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2233
2250
2268

skipif mysql # not compatible
query I rowsort label-3639
SELECT col2 + + 34 * CAST ( + 65 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2233
2250
2268

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> 15
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT 56 * - CAST( NULL AS SIGNED ) + - 73 + + ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT 56 * - CAST ( NULL AS INTEGER ) + - 73 + + ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT + 95 * + CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
4465
9405
950

skipif mysql # not compatible
query I rowsort label-3643
SELECT + 95 * + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
4465
9405
950

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT DISTINCT 34 + + COUNT( * ) AS col0 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT 34 + + COUNT ( * ) AS col0 FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT - COUNT( + - col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT - COUNT ( + - col1 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ALL COUNT( * ) * + 35 col0 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3646
SELECT ALL COUNT ( * ) * + 35 col0 FROM tab0 AS cor0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-3647
SELECT ALL 53 * 62 DIV + + col2 FROM tab0
----
328
33
69

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL 53 * 62 / + + col2 FROM tab0
----
328
33
69

query I rowsort
SELECT + col0 - 79 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT DISTINCT + - MAX( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT + - MAX ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT DISTINCT + - MAX( ALL ( + 90 ) ) AS col2 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT + - MAX ( ALL ( + 90 ) ) AS col2 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - + 62 + col1 + - - col0 AS col0 FROM tab0 AS cor0
----
34
36
46

query I rowsort
SELECT DISTINCT - + 91 AS col0 FROM tab0 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT - + COUNT( * ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3653
SELECT - + COUNT ( * ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL COUNT( * ) + + + COUNT( * ) * - - COUNT( * ) FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL COUNT ( * ) + + + COUNT ( * ) * - - COUNT ( * ) FROM tab2 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT DISTINCT + COUNT( * ) + + 54 AS col2 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT + COUNT ( * ) + + 54 AS col2 FROM tab1
----
57

query I rowsort
SELECT DISTINCT - + 85 AS col1 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL 54 + 44 AS col0 FROM tab0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT DISTINCT + 24 + + - SUM( - + 94 ) FROM tab2
----
306

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT + 24 + + - SUM ( - + 94 ) FROM tab2
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT 55 * COUNT( * ) FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-3659
SELECT 55 * COUNT ( * ) FROM tab0
----
165

query I rowsort
SELECT col2 * + 8 * col1 * - 38 FROM tab1
----
-408576
-89680
-971584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3661
SELECT DISTINCT 8 * + - CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT 8 * + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3662
SELECT - ( - col0 ) DIV - 41 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3662
SELECT - ( - col0 ) / - 41 AS col0 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + SUM( + + col0 ) + - 15 AS col1 FROM tab1 AS cor0
----
212

skipif mysql # not compatible
query I rowsort label-3664
SELECT + SUM ( + + col0 ) + - 15 AS col1 FROM tab1 AS cor0
----
212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col2 FROM tab0 WHERE NULL <> + + col1 + - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 34 = + + 80
----

query II rowsort
SELECT col0, - 50 AS col0 FROM tab1 AS cor0
----
51
-50
85
-50
91
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT SUM( col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3668
SELECT SUM ( col2 ) FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab0 cor0 WHERE 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT DISTINCT + MIN( + col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT + MIN ( + col1 ) FROM tab2 cor0
----
51

query II rowsort
SELECT ALL + 16 AS col0, - col1 FROM tab0 cor0
----
16
-1
16
-21
16
-81

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT - COUNT( * ) * 55 AS col2 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-3673
SELECT - COUNT ( * ) * 55 AS col2 FROM tab1
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT col1 DIV - 41 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3674
SELECT col1 / - 41 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + col0 * - - col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT - - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL - MAX( ALL - ( + col0 ) ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL - MAX ( ALL - ( + col0 ) ) AS col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3678
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL COUNT( * ) * + 66 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL COUNT ( * ) * + 66 FROM tab0 AS cor0
----
198

query I rowsort
SELECT ALL + col0 * - - col2 / + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL - COUNT( * ) * - - 81 AS col1 FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL - COUNT ( * ) * - - 81 AS col1 FROM tab2 AS cor0
----
-243

query I rowsort
SELECT ALL - ( + col1 ) * + - 4 * col2 + + col1 AS col1 FROM tab1 AS cor0
----
1185
12831
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT - SUM( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3684
SELECT - SUM ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
-223

query II rowsort
SELECT ALL 37 AS col2, col2 AS col2 FROM tab1 AS cor0
----
37
59
37
68
37
96

query I rowsort
SELECT - - col2 * + col0 * + col1 + - col2 FROM tab2 AS cor0
----
197080
291392
53935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT - 17 + CAST( - col2 AS SIGNED ) + - col1 * - col2 FROM tab1
----
1231
219
3111

skipif mysql # not compatible
query I rowsort label-3687
SELECT - 17 + CAST ( - col2 AS INTEGER ) + - col1 * - col2 FROM tab1
----
1231
219
3111

query I rowsort
SELECT DISTINCT + col1 + - ( 9 ) FROM tab0
----
-8
12
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT - COUNT( * ) + - - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3689
SELECT - COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL 18 + + SUM( DISTINCT 46 ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL 18 + + SUM ( DISTINCT 46 ) FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT + COUNT( * ) + - 23 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-3691
SELECT + COUNT ( * ) + - 23 FROM tab2
----
-20

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = col0 / col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + + col1 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + + 79 + 77 FROM tab0
----
171
243
253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( - col0 ) - + + 97 FROM tab1
----
-148
-182
-188

query I rowsort
SELECT - 7 + - col0 * + + col1 AS col2 FROM tab0 WHERE + col1 <> NULL
----

query I rowsort
SELECT + 58 + col1 + col2 AS col2 FROM tab1
----
122
168
173

query I rowsort
SELECT DISTINCT - - ( + - 11 ) + + col1 * - 53 FROM tab0 AS cor0
----
-1124
-4304
-64

query I rowsort
SELECT DISTINCT 75 * - - 1 AS col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT + 45 * - - col0 + 36 AS col0 FROM tab1 AS cor0
----
2331
3861
4131

query II rowsort
SELECT - - 54, 32 AS col2 FROM tab1 cor0
----
54
32
54
32
54
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT - CAST( + 13 AS SIGNED ) FROM tab2 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-3703
SELECT - CAST ( + 13 AS INTEGER ) FROM tab2 AS cor0
----
-13
-13
-13

query II rowsort
SELECT - col0 AS col1, col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT - 70 * - col0 AS col1 FROM tab2
----
3220
4480
5250

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT DISTINCT col0 DIV + col1 col0 FROM tab0
----
0
4
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3706
SELECT DISTINCT col0 / + col1 col0 FROM tab0
----
0
4
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT ALL 36 DIV 56 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL 36 / 56 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT 8 * - SUM( 1 ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-3708
SELECT 8 * - SUM ( 1 ) FROM tab2
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, 94 AS col1 FROM tab0
----
15
94
87
94
97
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT DISTINCT + COUNT( ALL - - 97 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT + COUNT ( ALL - - 97 ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL + CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT DISTINCT - - COUNT( + col2 ) + - 39 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND + - col1
----
-39

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT - - COUNT ( + col2 ) + - 39 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND + - col1
----
-39

query I rowsort
SELECT DISTINCT ( + 92 ) AS col2 FROM tab2, tab0 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT 98 + - - COUNT( * ) FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-3714
SELECT 98 + - - COUNT ( * ) FROM tab1 AS cor0
----
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 + - 89 col0 FROM tab2 AS cor0
----
52
53
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT - - col1 + col2 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3716
SELECT - - col1 + col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT COUNT( DISTINCT + 34 ) col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3717
SELECT DISTINCT COUNT ( DISTINCT + 34 ) col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL 66 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + + 16 AS col2 FROM tab2 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT DISTINCT MIN( + 26 ) col1 FROM tab2 cor0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3720
SELECT DISTINCT MIN ( + 26 ) col1 FROM tab2 cor0
----
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE ( ( + + col2 ) ) BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL + - col2 + + col0 - - col2 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT col2, 40 FROM tab2
----
23
40
40
40
58
40

query I rowsort
SELECT DISTINCT col0 * + col2 - col2 + ( col1 ) FROM tab1
----
4814
4961
6167

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT COUNT( * ) * + - 84 - - 14 FROM tab0
----
-238

skipif mysql # not compatible
query I rowsort label-3726
SELECT COUNT ( * ) * + - 84 - - 14 FROM tab0
----
-238

query II rowsort
SELECT ALL 60 + 37 * + - col2, col2 AS col0 FROM tab2
----
-1420
40
-2086
58
-791
23

query I rowsort
SELECT ALL 1 - 11 AS col1 FROM tab0
----
-10
-10
-10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 61 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + + ( - col2 ) FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE col2 = NULL
----

query I rowsort
SELECT ALL + col0 * + 27 - - - 28 AS col2 FROM tab2 AS cor0
----
1214
1700
1997

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT ALL + COUNT( * ) * + 64 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL + COUNT ( * ) * + 64 FROM tab1 AS cor0
----
192

query I rowsort
SELECT col0 * - - 65 + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 <> - 51 * - - col0 * 56
----

query I rowsort
SELECT ALL + col1 * col0 + - col0 * - + col2 * col2 FROM tab1 AS cor0
----
296310
425061
470730

onlyif mysql # DIV for integer division: 
query I rowsort label-3736
SELECT DISTINCT - col1 DIV 57 AS col2 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT - col1 / 57 AS col2 FROM tab0 cor0
----
-1
0

query I rowsort
SELECT ( col1 ) * + col0 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT 77 * col1 AS col1 FROM tab1
----
1078
3619
385

onlyif mysql # DIV for integer division: 
query I rowsort label-3739
SELECT col1 * col0 DIV + + ( - col1 ) AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3739
SELECT col1 * col0 / + + ( - col1 ) AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3740
SELECT DISTINCT - col0 DIV + + ( + CAST( + col0 AS SIGNED ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT - col0 / + + ( + CAST ( + col0 AS INTEGER ) ) FROM tab2
----
-1

query I rowsort
SELECT 46 * - - col0 FROM tab1
----
2346
3910
4186

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL MIN( ALL 97 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL MIN ( ALL 97 ) FROM tab0
----
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT DISTINCT ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3745
SELECT col1 AS col2, col1 + - col1 - - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3745
SELECT col1 AS col2, col1 + - col1 - - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, col1 col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT - col2 DIV - 91 + - col2 AS col1 FROM tab2 WHERE - - col0 NOT IN ( col1, + col1 )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3747
SELECT - col2 / - 91 + - col2 AS col1 FROM tab2 WHERE - - col0 NOT IN ( col1, + col1 )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT ALL + + col2 * + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL + + col2 * + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + + 54 FROM tab1 AS cor0
----
2538
270
756

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL + COUNT( + 89 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL + COUNT ( + 89 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3751
SELECT DISTINCT - 61 + + col0 / col2 + CAST( NULL AS SIGNED ), + col2 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3751
SELECT DISTINCT - 61 + + col0 / col2 + CAST ( NULL AS INTEGER ), + col2 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3752
SELECT + + col2 + 65 + col2 DIV - col1 AS col1, 50 DIV - col1 AS col0 FROM tab2 AS cor0
----
105
0
123
0
88
0

skipif mysql # not compatible
query II rowsort label-3752
SELECT + + col2 + 65 + col2 / - col1 AS col1, 50 / - col1 AS col0 FROM tab2 AS cor0
----
105
0
123
0
88
0

query I rowsort
SELECT ALL + ( - 43 ) FROM tab0 AS cor0
----
-43
-43
-43

query II rowsort
SELECT DISTINCT col2, - 68 + + 68 AS col1 FROM tab0 AS cor0
----
10
0
47
0
99
0

query II rowsort
SELECT 5 + - - col1 AS col1, col0 FROM tab0 cor0
----
26
87
6
97
86
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT - COUNT( - 2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3756
SELECT - COUNT ( - 2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL 38 + + ( + col2 ) AS col2 FROM tab0
----
137
48
85

query I rowsort
SELECT - + col0 * 59 + - + 89 * + 35 * - 10 AS col1 FROM tab1 AS cor0
----
25781
26135
28141

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT DISTINCT - SUM( + col2 ) FROM tab0 AS cor0 WHERE NOT + 84 IS NOT NULL AND 75 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT - SUM ( + col2 ) FROM tab0 AS cor0 WHERE NOT + 84 IS NOT NULL AND 75 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT DISTINCT COUNT( * ) * + 26 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT COUNT ( * ) * + 26 FROM tab2 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL - COUNT( * ) + 53 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - COUNT ( * ) + 53 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT - COUNT( col0 ) * ( + + MIN( ALL 58 ) ) * + 28 FROM tab2 AS cor0
----
-4872

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT - COUNT ( col0 ) * ( + + MIN ( ALL 58 ) ) * + 28 FROM tab2 AS cor0
----
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - MAX( DISTINCT + col1 ) + - COUNT( * ) FROM tab1 WHERE NOT ( NOT NULL < NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT - MAX ( DISTINCT + col1 ) + - COUNT ( * ) FROM tab1 WHERE NOT ( NOT NULL < NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 col0 FROM tab1 WHERE - ( + col0 ) * + + ( + - col0 ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3766
SELECT DISTINCT - - 93 AS col0, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
93
9

skipif mysql # not compatible
query II rowsort label-3766
SELECT DISTINCT - - 93 AS col0, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
93
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT + SUM( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3767
SELECT + SUM ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= + col2 / + col0 + + - col0 + + - 6
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 75 col2, col1 + - col1 FROM tab2 AS cor0
----
75
0
75
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT ALL SUM( DISTINCT - 60 ) * - - SUM( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
-6180

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL SUM ( DISTINCT - 60 ) * - - SUM ( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
-6180

query I rowsort
SELECT DISTINCT + 47 * - + ( - col1 ) FROM tab2 AS cor0
----
2397
3149
3619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT DISTINCT - + 60 / + CAST( NULL AS SIGNED ) + + ( + + col0 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - + 60 / + CAST ( NULL AS INTEGER ) + + ( + + col0 ) FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT + col2 * - ( - col0 ), col1 FROM tab2 AS cor0
----
1058
51
2560
77
4350
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3774
SELECT DISTINCT + ( + col1 ) DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT + ( + col1 ) / - col2 FROM tab1
----
0

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE NOT 60 * - col2 IS NOT NULL
----

query I rowsort
SELECT col2 * + - col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT col2 + + - col2 + - + col2 FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT col0 * col0 DIV + col1 AS col2 FROM tab2
----
41
53
83

skipif mysql # not compatible
query I rowsort label-3779
SELECT col0 * col0 / + col1 AS col2 FROM tab2
----
41
53
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT + MIN( col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3780
SELECT + MIN ( col2 ) AS col1 FROM tab1
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col1 FROM tab2
----
62
62
62

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT NULL BETWEEN - ( - - ( + 73 ) ) AND ( col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3783
SELECT - col1 DIV - 2 AS col2 FROM tab2 AS cor0
----
25
33
38

skipif mysql # not compatible
query I rowsort label-3783
SELECT - col1 / - 2 AS col2 FROM tab2 AS cor0
----
25
33
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT ALL 47 + - COUNT( * ) AS col2 FROM tab0 cor0
----
44

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL 47 + - COUNT ( * ) AS col2 FROM tab0 cor0
----
44

query I rowsort
SELECT ALL ( ( + - col0 ) ) * - col1 FROM tab0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + + + col0 * col2 col0 FROM tab2
----
-139
-1543
-3369

query I rowsort
SELECT DISTINCT + col1 + + 67 + - 42 * col1 AS col1 FROM tab2
----
-2024
-2680
-3090

query I rowsort
SELECT - col1 + - 61 + + col2 - - col1 AS col0 FROM tab1
----
-2
35
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT COUNT( * ) * - + 62 * 93 AS col1 FROM tab1
----
-17298

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT COUNT ( * ) * - + 62 * 93 AS col1 FROM tab1
----
-17298

query I rowsort
SELECT ALL + 42 AS col1 FROM tab1 cor0 WHERE NOT ( + col0 * - 48 ) <= 37
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 BETWEEN - 26 * - - col1 AND - 99
----

query I rowsort
SELECT DISTINCT 3 - - - 13 + - + col2 FROM tab1 AS cor0
----
-106
-69
-78

query II rowsort
SELECT - 85, + col1 AS col1 FROM tab2 AS cor0
----
-85
51
-85
67
-85
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + 22 * - col1 IN ( - ( + + 77 ) + - - 67 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3796
SELECT * FROM tab2 AS cor0 WHERE + CAST( - col2 AS SIGNED ) / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3796
SELECT * FROM tab2 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + - col2 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
100
2209
9801

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 - ( - col0 ) IS NULL
----

query I rowsort
SELECT col2 * + col2 - - + 54 AS col2 FROM tab1
----
3535
4678
9270

query I rowsort
SELECT DISTINCT col1 + 48 FROM tab2
----
115
125
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT ALL 40 - - - 38 FROM tab2
----
2
2
2

query I rowsort
SELECT + col0 + + + col1 FROM tab2
----
141
142
97

query I rowsort
SELECT 8 FROM tab0 AS cor0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col1 FROM tab2 AS cor0 WHERE NOT NULL <= - 95
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 18 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + + col2 * col2, col1 AS col0 FROM tab1 AS cor0
----
3481
5
4624
47
9216
14

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT + 55 IS NULL
----
15
87
97

query I rowsort
SELECT ALL + + 87 + + 85 AS col1 FROM tab2 AS cor0
----
172
172
172

query II rowsort
SELECT + col0 AS col1, col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL + MAX( 97 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + MAX ( 97 ) FROM tab2
----
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 - + col1 <= 6 * 35 - - 9
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - col0 + - col1 * + - col0 + - 83 col2 FROM tab2
----
2268
4858
4934

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - MAX( col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3814
SELECT - MAX ( col0 ) FROM tab1
----
-91

query II rowsort
SELECT DISTINCT col1, - col2 + - 42 AS col0 FROM tab0
----
1
-141
21
-52
81
-89

query I rowsort
SELECT ALL - 85 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
1785
6885
85

query I rowsort
SELECT ALL - ( - col1 ) - - col2 FROM tab0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - 1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3819
SELECT ALL + 75 DIV col2 * - 68 + col2, + 1 AS col2 FROM tab1 cor0
----
-9
1
0
1
96
1

skipif mysql # not compatible
query II rowsort label-3819
SELECT ALL + 75 / col2 * - 68 + col2, + 1 AS col2 FROM tab1 cor0
----
-9
1
0
1
96
1

query I rowsort
SELECT - col0 + + + col2 + - col1 FROM tab0 AS cor0
----
-49
-98
1

query I rowsort
SELECT DISTINCT col2 - + - col0 AS col0 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT ALL - - 34 + + col1 - - 34 FROM tab0 AS cor0
----
149
69
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT DISTINCT + ( - col2 ) DIV - col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT + ( - col2 ) / - col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - - col1 + - - col2 AS col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT + COUNT( * ) * + - 10 * - + 55 FROM tab2 WHERE - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3825
SELECT + COUNT ( * ) * + - 10 * - + 55 FROM tab2 WHERE - col1 = NULL
----
0

query I rowsort
SELECT DISTINCT col1 + - + 63 FROM tab0
----
-42
-62
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3827
SELECT + COUNT( * ) DIV + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3827
SELECT + COUNT ( * ) / + COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT 17 + + col0 + + 38 FROM tab0
----
142
152
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT DISTINCT - 53 - + + COUNT( * ) FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT - 53 - + + COUNT ( * ) FROM tab2
----
-56

query I rowsort
SELECT ALL + ( - col2 ) - - col1 AS col1 FROM tab1
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 57 IS NULL
----

query II rowsort
SELECT + - col0, ( col2 ) AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 17 - - col2 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ALL + MIN( DISTINCT + 32 ) AS col1 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL + MIN ( DISTINCT + 32 ) AS col1 FROM tab0 AS cor0
----
32

query I rowsort
SELECT - col0 * + + col0 * - - col1 + + 7 + col0 FROM tab1 AS cor0
----
-36033
-36356
-389109

query II rowsort
SELECT + col2 AS col1, col0 * - col0 FROM tab1 AS cor0
----
59
-7225
68
-8281
96
-2601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT + - CAST( SUM( DISTINCT + 5 ) AS SIGNED ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3838
SELECT + - CAST ( SUM ( DISTINCT + 5 ) AS INTEGER ) FROM tab0 AS cor0
----
-5

query II rowsort
SELECT DISTINCT + 76 AS col2, + 13 AS col2 FROM tab2 AS cor0
----
76
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT DISTINCT - COUNT( DISTINCT - 39 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3840
SELECT DISTINCT - COUNT ( DISTINCT - 39 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 61 + - col1 * 72 + + col1 FROM tab1 AS cor0
----
-294
-3276
-933

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + + 53 NOT IN ( + - 63 ) AND - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 + - - 58 FROM tab0 AS cor0
----
-23
37
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT DISTINCT CAST( AVG ( + - col2 ) AS SIGNED ) AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT CAST ( AVG ( + - col2 ) AS INTEGER ) AS col0 FROM tab2
----
-40

query III rowsort
SELECT * FROM tab0 WHERE NOT 91 = + - 23 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + + + col1 AS col1 FROM tab2
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col2, + col2 FROM tab2 WHERE ( col2 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3848
SELECT + CAST( CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) * + COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3848
SELECT + CAST ( CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab1
----
9

query III rowsort
SELECT * FROM tab1 WHERE + col0 IN ( col2 * + - 82 / - col1 + - - col2 + + col2 + + 76 + - 27 + 90 * - 65 / - col1 + 83 * 25 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 / - - col2 NOT BETWEEN NULL AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + ( - col0 ) col2 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT COUNT( * ) + 27 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-3852
SELECT COUNT ( * ) + 27 FROM tab2
----
30

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT + 4 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > + 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col1 FROM tab0 cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT DISTINCT - MIN( 55 ) AS col0 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT - MIN ( 55 ) AS col0 FROM tab2 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT ALL + MIN( 24 ) AS col0 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL + MIN ( 24 ) AS col0 FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3858
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT 90 * - COUNT( * ) - - 67 - + - CAST( 83 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3860
SELECT 90 * - COUNT ( * ) - - 67 - + - CAST ( 83 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3862
SELECT DISTINCT - col2 DIV col0, col1 AS col2 FROM tab1
----
-1
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-3862
SELECT DISTINCT - col2 / col0, col1 AS col2 FROM tab1
----
-1
14
0
47
0
5

query I rowsort
SELECT col1 * + + col1 * - col2 AS col0 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT + col2 DIV - ( - col2 ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3864
SELECT + col2 / - ( - col2 ) AS col2 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - - 58 ) * + + col0 + ( + col2 ) * + ( + col0 ), - col0 col1 FROM tab1
----
1938
-51
85
-85
910
-91

query I rowsort
SELECT col2 * - col0 * + col1 * + + 30 FROM tab1
----
-2056320
-752250
-8725080

query I rowsort
SELECT ALL + ( + - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT + col0 DIV - + 84 AS col1 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3868
SELECT + col0 / - + 84 AS col1 FROM tab0
----
-1
-1
0

query II rowsort
SELECT 75 * - + ( col0 ) AS col0, - col1 * col1 + 80 + - col2 FROM tab0
----
-1125
-6528
-6525
-371
-7275
-20

query I rowsort
SELECT DISTINCT - 83 + col1 AS col1 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-16
-32
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3871
SELECT + 93 DIV - - ( + + COUNT( * ) ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-3871
SELECT + 93 / - - ( + + COUNT ( * ) ) FROM tab0
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-3872
SELECT DISTINCT col1, col1 DIV - 64 - - col0 + - col0 col2 FROM tab2 AS cor0
----
51
0
67
-1
77
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3872
SELECT DISTINCT col1, col1 / - 64 - - col0 + - col0 col2 FROM tab2 AS cor0
----
51
0
67
-1
77
-1

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 IN ( - col1, + col0 )
----

query I rowsort
SELECT ALL - col2 * - 74 * - + col1 FROM tab0 AS cor0
----
-15540
-281718
-7326

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL + + ( + SUM( - col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + + ( + SUM ( - col1 ) ) FROM tab0 AS cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 * - col0 col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query II rowsort label-3878
SELECT + COUNT( * ) + COUNT( * ) * - 35 col0, - 1 AS col0 FROM tab2 AS cor0
----
-102
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3878
SELECT + COUNT ( * ) + COUNT ( * ) * - 35 col0, - 1 AS col0 FROM tab2 AS cor0
----
-102
-1

query I rowsort
SELECT 28 + 11 FROM tab1
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT + ( col1 ) + - 30 + + - CAST( NULL AS SIGNED ) + + col2 + + 29 / + col1 * ( + col2 ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT + ( col1 ) + - 30 + + - CAST ( NULL AS INTEGER ) + + col2 + + 29 / + col1 * ( + col2 ) * - col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 < col1 / col2 / + col2 * + + 89
----

query I rowsort
SELECT DISTINCT ( 79 ) AS col1 FROM tab0
----
79

query II rowsort
SELECT + col2 + + 52 AS col2, col0 - + 49 AS col2 FROM tab0
----
151
48
62
38
99
-34

query I rowsort
SELECT - col1 + col2 + col2 AS col2 FROM tab1
----
113
178
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3885
SELECT - 22 - - col0 * CAST( NULL AS SIGNED ) FROM tab0 WHERE - col2 * - - CAST( NULL AS SIGNED ) + - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3885
SELECT - 22 - - col0 * CAST ( NULL AS INTEGER ) FROM tab0 WHERE - col2 * - - CAST ( NULL AS INTEGER ) + - col1 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 27 ) FROM tab1
----
27

query I rowsort
SELECT - col2 * - col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3888
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) + col1 * - 56 + + 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3888
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + col1 * - 56 + + 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + + col1 AS col2, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT + ( 39 ) FROM tab2 cor0
----
39

query I rowsort
SELECT ALL 80 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 95 + col0 FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT + col0 * + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query II rowsort label-3894
SELECT COUNT( * ) col0, - 72 FROM tab1 AS cor0
----
3
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3894
SELECT COUNT ( * ) col0, - 72 FROM tab1 AS cor0
----
3
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3895
SELECT ALL col1 + + CAST( col1 AS SIGNED ) FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL col1 + + CAST ( col1 AS INTEGER ) FROM tab1
----
10
28
94

query I rowsort
SELECT ALL + col1 - + ( - col0 ) AS col1 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ALL - MAX( DISTINCT + col1 ) - + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - MAX ( DISTINCT + col1 ) - + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 11 + - col2 col2, - ( + + ( - 8 ) ) col1 FROM tab1 AS cor0
----
-107
8
-70
8
-79
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT - SUM( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3899
SELECT - SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL + col0 * - ( + 21 ) FROM tab1 AS cor0
----
-1071
-1785
-1911

query I rowsort
SELECT DISTINCT - col0 * - + col0 AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT SUM( + - 38 ) FROM tab1, tab0 AS cor0
----
-342

skipif mysql # not compatible
query I rowsort label-3902
SELECT SUM ( + - 38 ) FROM tab1, tab0 AS cor0
----
-342

query I rowsort
SELECT DISTINCT 36 * col0 FROM tab1
----
1836
3060
3276

query I rowsort
SELECT DISTINCT + ( - ( col1 ) ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3905
SELECT 69 AS col0, + CAST( COUNT( DISTINCT + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
69
3

skipif mysql # not compatible
query II rowsort label-3905
SELECT 69 AS col0, + CAST ( COUNT ( DISTINCT + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
69
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT - - MAX( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3906
SELECT - - MAX ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT DISTINCT COUNT( * ) * - 45 * - - 7 FROM tab2 cor0
----
-945

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT COUNT ( * ) * - 45 * - - 7 FROM tab2 cor0
----
-945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( + col1 * - 71 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( + col1 * - 71 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT DISTINCT - COUNT( * ) * 41 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT - COUNT ( * ) * 41 FROM tab1
----
-123

query I rowsort
SELECT - 81 FROM tab2 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 * 74 + col0 * + col0 FROM tab0 WHERE 52 - - ( + col1 ) IN ( col0 )
----

query I rowsort
SELECT DISTINCT col0 + 12 AS col0 FROM tab2
----
58
76
87

query I rowsort
SELECT - col0 * 17 FROM tab1
----
-1445
-1547
-867

query III rowsort
SELECT ALL * FROM tab2 WHERE + 26 >= 21 * - 54
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT DISTINCT + 62 + + COUNT( * ) AS col1 FROM tab1 WHERE NULL >= NULL
----
62

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT + 62 + + COUNT ( * ) AS col1 FROM tab1 WHERE NULL >= NULL
----
62

query III rowsort
SELECT ALL * FROM tab1 WHERE 42 + col1 * col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT - MIN( DISTINCT + col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT - MIN ( DISTINCT + col2 ) AS col2 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE 52 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE 52 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT ALL + col1 + col2 DIV + col1 AS col1 FROM tab0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL + col1 + col2 / + col1 AS col1 FROM tab0
----
100
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col2 FROM tab0
----
174
194
30

query I rowsort
SELECT DISTINCT + 67 + - col0 FROM tab2
----
-8
21
3

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT ( + 74 ) BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3923
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3923
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT COUNT( * ) * COUNT( * ) FROM tab0 WHERE NOT - col2 * col0 IN ( + col1 )
----
9

skipif mysql # not compatible
query I rowsort label-3924
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE NOT - col2 * col0 IN ( + col1 )
----
9

query I rowsort
SELECT DISTINCT - col1 + 6 * + 85 FROM tab1
----
463
496
505

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3926
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) >= ( ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-3926
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) >= ( ( col0 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / - 55 <> ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT COUNT( * ) FROM tab2 WHERE NOT col0 * + col1 + 64 * + col2 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3928
SELECT COUNT ( * ) FROM tab2 WHERE NOT col0 * + col1 + 64 * + col2 < ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT ALL col2 * - col1 AS col0 FROM tab1 WHERE NOT 34 = - CAST( NULL AS SIGNED ) + - 16
----

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL col2 * - col1 AS col0 FROM tab1 WHERE NOT 34 = - CAST ( NULL AS INTEGER ) + - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL MIN( col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL MIN ( col0 ) FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 + col0 col1 FROM tab1 WHERE NOT - 45 - - col1 NOT IN ( 30 + 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT DISTINCT - SUM( DISTINCT 30 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-3932
SELECT DISTINCT - SUM ( DISTINCT 30 ) FROM tab0
----
-30

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN ( - 78 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3934
SELECT + COUNT( * ) DIV COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3934
SELECT + COUNT ( * ) / COUNT ( * ) FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab2 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col1 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 + - 48 col2 FROM tab2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3937
SELECT ALL CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 / + 21 FROM tab1 AS cor0 WHERE NOT + 87 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 - - col0 * ( ( - col2 ) ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT DISTINCT - 80 DIV - 89 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT - 80 / - 89 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 80 + + 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
-77

query I rowsort
SELECT ALL 97 FROM tab1 WHERE NULL IS NULL
----
97
97
97

query I rowsort
SELECT + 46 * + 44 - - 92 * 47 AS col0 FROM tab2
----
6348
6348
6348

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( 68 ) * + col2 <= NULL
----

query I rowsort
SELECT + + 84 * 67 AS col1 FROM tab0 AS cor0
----
5628
5628
5628

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT SUM( - 18 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT SUM ( - 18 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

query I rowsort
SELECT ALL + col1 - + col1 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT ALL MAX( col1 ) FROM tab2 AS cor0 WHERE NOT - ( 95 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL MAX ( col1 ) FROM tab2 AS cor0 WHERE NOT - ( 95 ) >= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3951
SELECT ALL - CAST( MIN( ALL 76 ) AS SIGNED ) * 15 FROM tab0 cor0
----
-1140

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - CAST ( MIN ( ALL 76 ) AS INTEGER ) * 15 FROM tab0 cor0
----
-1140

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 72 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col2 * - 14 FROM tab2 AS cor0
----
322
560
812

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT - 65 + col0 * col2 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT + 99 * + CAST( - col0 AS SIGNED ) * col1 FROM tab0
----
-120285
-180873
-9603

skipif mysql # not compatible
query I rowsort label-3955
SELECT + 99 * + CAST ( - col0 AS INTEGER ) * col1 FROM tab0
----
-120285
-180873
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT 19 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT 19 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3957
SELECT 37 DIV - + COUNT( * ) AS col1 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-3957
SELECT 37 / - + COUNT ( * ) AS col1 FROM tab0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3958
SELECT ALL - COUNT( DISTINCT + + CAST( 63 AS SIGNED ) ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - COUNT ( DISTINCT + + CAST ( 63 AS INTEGER ) ) AS col1 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT DISTINCT 60 DIV - col2 + - 57 FROM tab1 WHERE NOT col1 - col2 IS NULL
----
-57
-58

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT 60 / - col2 + - 57 FROM tab1 WHERE NOT col1 - col2 IS NULL
----
-57
-58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + ( 12 ) AS col2 FROM tab2 AS cor0
----
-276
-480
-696

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT COUNT( 78 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3963
SELECT COUNT ( 78 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col2 * - 88 + - 8 * - col0 ) NOT IN ( 15 * + col1 + - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 / col0 + - col2 * 13 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT + 93 * + COUNT( * ) FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT + 93 * + COUNT ( * ) FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON ( NULL ) IS NULL WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT + + col0 * + + 16 + - ( + 63 ) * col0 FROM tab1 cor0
----
-2397
-3995
-4277

query I rowsort
SELECT - 81 + col2 + - + 24 + col1 FROM tab2 AS cor0
----
-31
12
20

query I rowsort
SELECT DISTINCT - col2 * ( + col1 ) * col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT + - col0 + + + col2 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT col1 + + 59 AS col1 FROM tab0 AS cor0
----
140
60
80

query I rowsort
SELECT + + col0 + col2 + - col1 AS col0 FROM tab2 AS cor0
----
18
27
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT DISTINCT - COUNT( * ) + + 40 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT - COUNT ( * ) + + 40 FROM tab2 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 60 * + - col1 - + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3975
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 60 * + - col1 - + col1 IS NOT NULL
----
3

query I rowsort
SELECT + - 2 * + 74 + + - col2 + col0 AS col2 FROM tab0 AS cor0
----
-150
-180
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT DISTINCT - CAST( - + 69 AS SIGNED ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT - CAST ( - + 69 AS INTEGER ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT col2 + col0 - 6 AS col2 FROM tab1
----
138
141
153

query I rowsort
SELECT - col1 * + + col2 + - col1 FROM tab0
----
-100
-231
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL + COUNT( * ) + - 0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL + COUNT ( * ) + - 0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - COUNT( DISTINCT col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3981
SELECT - COUNT ( DISTINCT col1 ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3982
SELECT ALL CAST( NULL AS SIGNED ) * - - ( - 13 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL CAST ( NULL AS INTEGER ) * - - ( - 13 ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 47 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3984
SELECT ALL + col1 / - 11 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL + col1 / - 11 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 / - 72 + 81 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 12 - 52 + + + ( col2 ) * col2 AS col0 FROM tab0
----
2169
60
9761

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3987
SELECT DISTINCT + COUNT( * ) DIV - 13 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT + COUNT ( * ) / - 13 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT col1 + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + col2 * 41 - - col0 AS col2 FROM tab2 AS cor0
----
137999
21735
65664

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT ALL + 32 DIV - 23 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL + 32 / - 23 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-100
-11
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT DISTINCT - ( + MIN( + 58 ) ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( + ( + col0 ) * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT - ( + MIN ( + 58 ) ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( + ( + col0 ) * + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3992
SELECT - + col0 - - + 50 + + col0 * 72 + + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT - + col0 - - + 50 + + col0 * 72 + + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3993
SELECT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3994
SELECT DISTINCT - COUNT( * ) * + COUNT( * ), - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-3994
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
0

query I rowsort
SELECT 67 / + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 4 + + col1 ) <= ( + 52 * 70 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col0 FROM tab2 AS cor0
----
5
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT + 65 + - + col2 + - + col0 / ( + CAST( NULL AS SIGNED ) ) * - 19 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3997
SELECT + 65 + - + col2 + - + col0 / ( + CAST ( NULL AS INTEGER ) ) * - 19 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 79 col1 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL ( + COUNT( * ) ) * + - 72 AS col0 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL ( + COUNT ( * ) ) * + - 72 AS col0 FROM tab2 AS cor0
----
-216

query I rowsort
SELECT col1 * - + col0 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL - - COUNT( + col2 ) * + + 8 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL - - COUNT ( + col2 ) * + + 8 FROM tab1 AS cor0
----
24

query I rowsort
SELECT ( + ( - col2 ) ) AS col1 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ( 6 ) - + COUNT( * ) FROM tab2 WHERE NOT NULL <= ( + + 57 * - 7 * + - col0 )
----
6

skipif mysql # not compatible
query I rowsort label-4003
SELECT ( 6 ) - + COUNT ( * ) FROM tab2 WHERE NOT NULL <= ( + + 57 * - 7 * + - col0 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT ALL + COUNT( * ) col0 FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4004
SELECT ALL + COUNT ( * ) col0 FROM tab1, tab0 cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 3 IN ( - col2 + + - 45 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * - ( + 82 ) FROM tab2
----
1886
3280
4756

query I rowsort
SELECT - 64 * - + col1 AS col0 FROM tab2
----
3264
4288
4928

query II rowsort
SELECT DISTINCT col1 AS col0, - col2 AS col1 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT col0 * col0 AS col0 FROM tab0 WHERE NOT NULL <= ( + col0 * - + ( - 45 ) )
----

query I rowsort
SELECT + col2 * + 6 FROM tab2
----
138
240
348

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT + MAX( - col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4011
SELECT + MAX ( - col2 ) AS col2 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL 11 + - col1 AS col2 FROM tab1 AS cor0
----
-3
-36
6

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT - SUM( + 52 ) FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4015
SELECT - SUM ( + 52 ) FROM tab2 AS cor0
----
-156

query I rowsort
SELECT ALL + - col1 * + 66 * + 98 + col2 * - col2 * col0 FROM tab2 AS cor0
----
-354202
-600436
-685656

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

query I rowsort
SELECT ALL + col1 * 64 AS col0 FROM tab2 AS cor0
----
3264
4288
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT ALL + col0 DIV col0 * - + 19 AS col2 FROM tab1 cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + col0 / col0 * - + 19 AS col2 FROM tab1 cor0
----
-19
-19
-19

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 16 + + + 3 BETWEEN 10 + + col1 AND NULL
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NOT + 23 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4022
SELECT DISTINCT * FROM tab1 WHERE NULL < col0 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4022
SELECT DISTINCT * FROM tab1 WHERE NULL < col0 * - - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 81 ) col2 FROM tab2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL + 15 + - + COUNT( * ) col2 FROM tab1
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4024
SELECT ALL + 15 + - + COUNT ( * ) col2 FROM tab1
----
12

query I rowsort
SELECT DISTINCT col2 * ( - - col1 ) + + + col1 FROM tab1
----
1358
300
3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4026
SELECT DISTINCT - ( ( - CAST( + - col2 AS SIGNED ) ) ) + + 77 FROM tab0
----
-22
30
67

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT - ( ( - CAST ( + - col2 AS INTEGER ) ) ) + + 77 FROM tab0
----
-22
30
67

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 = col1
----

query I rowsort
SELECT ALL col0 * 70 + + col2 FROM tab1
----
3666
6009
6438

query III rowsort
SELECT * FROM tab1 WHERE 72 + 83 * col2 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT + 71 - COUNT( * ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-4030
SELECT + 71 - COUNT ( * ) FROM tab1
----
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4031
SELECT ( - - col1 ) DIV CAST( col0 AS SIGNED ) - - col1 AS col1 FROM tab2 WHERE - col0 NOT BETWEEN + col1 AND - col0
----
52
67
78

skipif mysql # not compatible
query I rowsort label-4031
SELECT ( - - col1 ) / CAST ( col0 AS INTEGER ) - - col1 AS col1 FROM tab2 WHERE - col0 NOT BETWEEN + col1 AND - col0
----
52
67
78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 49 * + + 98 IN ( 54 * + + col2 - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT + 89 - - + COUNT( * ) AS col0 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-4033
SELECT + 89 - - + COUNT ( * ) AS col0 FROM tab1
----
92

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab2 WHERE - col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE ( + col2 ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4036
SELECT DISTINCT COUNT( * ) + COUNT( * ) * COUNT( * ) col2, ( - + 43 ) FROM tab0
----
12
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4036
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * COUNT ( * ) col2, ( - + 43 ) FROM tab0
----
12
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT DISTINCT - 38 - ( + - MIN( - + ( + + 24 ) ) ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT - 38 - ( + - MIN ( - + ( + + 24 ) ) ) FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-4038
SELECT - MAX( + - col0 ) + + COUNT( * ) AS col1, + 20 * - 4 + + - MIN( + 15 ) AS col0 FROM tab1
----
54
-95

skipif mysql # not compatible
query II rowsort label-4038
SELECT - MAX ( + - col0 ) + + COUNT ( * ) AS col1, + 20 * - 4 + + - MIN ( + 15 ) AS col0 FROM tab1
----
54
-95

query I rowsort
SELECT ALL col0 + + - 87 AS col0 FROM tab2
----
-12
-23
-41

query I rowsort
SELECT ALL + col0 + - - col0 AS col0 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT + MAX( + 16 ) + + CAST( NULL AS SIGNED ) + - AVG ( ALL - col2 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT + MAX ( + 16 ) + + CAST ( NULL AS INTEGER ) + - AVG ( ALL - col2 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + + ( col0 ) + + - col0 + 17 + - + 46 * + - 13 FROM tab2 AS cor0
----
615
615
615

onlyif mysql # aggregate syntax: 
query II rowsort label-4043
SELECT DISTINCT 78 AS col2, COUNT( - 95 ) AS col2 FROM tab2 AS cor0
----
78
3

skipif mysql # not compatible
query II rowsort label-4043
SELECT DISTINCT 78 AS col2, COUNT ( - 95 ) AS col2 FROM tab2 AS cor0
----
78
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 54 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 54 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - - col1 * + 58 + + col0 + - ( + - col2 ) + + col2 FROM tab1 cor0
----
1055
2953
493

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4046
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 + - col0 >= + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 + - col0 >= + + col1
----
NULL

query II rowsort
SELECT col1 * - + col0 AS col0, - col0 FROM tab0
----
-1215
-15
-1827
-87
-97
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT + 52 <> + - 68
----

query I rowsort
SELECT DISTINCT + + 35 AS col1 FROM tab1 cor0
----
35

query I rowsort
SELECT DISTINCT + col0 / - - 3 AS col1 FROM tab1 AS cor0 WHERE NULL >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4051
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) AS col2, + col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4051
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) AS col2, + col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT 38 * - col0 FROM tab2 cor0
----
-1748
-2432
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT MAX( ALL 70 ) * - COUNT( * ) AS col1 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-4053
SELECT MAX ( ALL 70 ) * - COUNT ( * ) AS col1 FROM tab0
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT DISTINCT - MIN( DISTINCT - + col0 ) FROM tab0 WHERE NOT ( col2 + col0 ) NOT IN ( col1 * col2 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT - MIN ( DISTINCT - + col0 ) FROM tab0 WHERE NOT ( col2 + col0 ) NOT IN ( col1 * col2 * col2 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT DISTINCT MAX( + CAST( + col0 AS SIGNED ) ) * - 41 AS col1 FROM tab1
----
-3731

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT MAX ( + CAST ( + col0 AS INTEGER ) ) * - 41 AS col1 FROM tab1
----
-3731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4056
SELECT - 42 + + MIN( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT - 42 + + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IS NULL AND - col1 IN ( col1 * 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT + ( - 17 ) + - COUNT( * ) AS col0 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-4058
SELECT + ( - 17 ) + - COUNT ( * ) AS col0 FROM tab0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4059
SELECT + 8 + + + CAST( + - 24 AS SIGNED ) col2, + COUNT( * ) AS col1 FROM tab0
----
-16
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4059
SELECT + 8 + + + CAST ( + - 24 AS INTEGER ) col2, + COUNT ( * ) AS col1 FROM tab0
----
-16
3

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT + col0 BETWEEN col1 AND + - col1 + col2
----
-10
-47

query I rowsort
SELECT - - 6 * - col0 AS col1 FROM tab0 AS cor0
----
-522
-582
-90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL + SUM( DISTINCT + 26 ) FROM tab1 cor0
----
26

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL + SUM ( DISTINCT + 26 ) FROM tab1 cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4064
SELECT col2, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4064
SELECT col2, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + + 5 FROM tab0
----
-16
-76
4

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + + 5 FROM tab0
----
-16
-76
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL 36 * + COUNT( * ) FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL 36 * + COUNT ( * ) FROM tab1 AS cor0
----
108

query I rowsort
SELECT DISTINCT - + 41 AS col1 FROM tab0 AS cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4068
SELECT + col2 DIV 52 + - ( CAST( + 6 AS SIGNED ) ) + - - col0 FROM tab2 AS cor0
----
40
58
70

skipif mysql # not compatible
query I rowsort label-4068
SELECT + col2 / 52 + - ( CAST ( + 6 AS INTEGER ) ) + - - col0 FROM tab2 AS cor0
----
40
58
70

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 84 BETWEEN - col2 AND - + 58
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 + - col0 col1 FROM tab2 AS cor0
----
-100
-71
-89

query I rowsort
SELECT + - 8 + - - 17 FROM tab1 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT DISTINCT - + MAX( + 77 ) col2 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4072
SELECT DISTINCT - + MAX ( + 77 ) col2 FROM tab1 AS cor0
----
-77

query I rowsort
SELECT + col1 + - col1 + - + col2 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 54 * - + 26 - - 51
----

query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab1 WHERE 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT COUNT( DISTINCT + col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4077
SELECT COUNT ( DISTINCT + col1 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT + - COUNT( * ) col2 FROM tab1 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4078
SELECT + - COUNT ( * ) col2 FROM tab1 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT + 5 + - COUNT( * ) FROM tab1, tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4079
SELECT + 5 + - COUNT ( * ) FROM tab1, tab2 AS cor0
----
-4

query I rowsort
SELECT ALL + col1 + - + ( + + col0 ) AS col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT - - col1 + + col2 AS col1 FROM tab2 WHERE NOT - + ( - col2 ) IS NULL
----
117
125
74

query I rowsort
SELECT - + col2 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col2, + 4 FROM tab0 AS cor0 WHERE - 64 IN ( - col0, - col2 + + + 43 * + 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT - ( - + ( + - 68 ) ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT - ( - + ( + - 68 ) ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4085
SELECT CAST( NULL AS SIGNED ) * - 64 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4085
SELECT CAST ( NULL AS INTEGER ) * - 64 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4086
SELECT DISTINCT 35, 36 * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
35
-108

skipif mysql # not compatible
query II rowsort label-4086
SELECT DISTINCT 35, 36 * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
35
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT + COUNT( ALL - 5 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4087
SELECT + COUNT ( ALL - 5 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4088
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2, col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4088
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2, col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT + col2 * - 94 FROM tab1 AS cor0
----
-5546
-6392
-9024

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-51
-85
-91

query II rowsort
SELECT - + 73, - col1 AS col1 FROM tab2 AS cor0
----
-73
-51
-73
-67
-73
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT + SUM( DISTINCT col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-4092
SELECT + SUM ( DISTINCT col2 ) FROM tab0 cor0
----
156

query II rowsort
SELECT DISTINCT + col2 AS col2, - col1 + col1 + + col2 FROM tab2 WHERE + 78 IS NULL
----

query I rowsort
SELECT DISTINCT ( + 68 ) * + 51 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3468

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL OR ( 10 ) >= - col0
----
3

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL OR ( 10 ) >= - col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT 72 DIV - ( + + 57 ) col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4096
SELECT 72 / - ( + + 57 ) col1 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4097
SELECT ( - COUNT( - 36 ) ) * - CAST( SUM( - - col2 ) AS SIGNED ) col1 FROM tab2
----
363

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4097
SELECT ( - COUNT ( - 36 ) ) * - CAST ( SUM ( - - col2 ) AS INTEGER ) col1 FROM tab2
----
363

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT - col0 DIV + + 58 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4098
SELECT - col0 / + + 58 FROM tab0
----
-1
-1
0

query I rowsort
SELECT 80 * 26 AS col2 FROM tab2
----
2080
2080
2080

query I rowsort
SELECT col2 * + col2 * + 87 FROM tab0
----
192183
852687
8700

query I rowsort
SELECT col0 * - 67 + + 91 AS col0 FROM tab1 AS cor0
----
-3326
-5604
-6006

query III rowsort
SELECT * FROM tab2 WHERE ( + - col1 ) NOT BETWEEN - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 96 * + col2 + + col1 FROM tab0
----
4593
9505
981

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL MIN( DISTINCT col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL MIN ( DISTINCT col2 ) FROM tab1 cor0
----
59

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT - col0 + 1 <= + 43
----

query I rowsort
SELECT + + 52 AS col2 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT ALL + - 14 AS col2 FROM tab1 AS cor0
----
-14
-14
-14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( - 43 )
----

query I rowsort
SELECT + + col0 - + + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT - COUNT( * ) - + 11 + + COUNT( * ) * + COUNT( * ) + + COUNT( * ) col2 FROM tab2
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4110
SELECT - COUNT ( * ) - + 11 + + COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) col2 FROM tab2
----
-2

query I rowsort
SELECT ALL - 50 * - col1 FROM tab1
----
2350
250
700

query I rowsort
SELECT - col0 + - + col0 AS col2 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT col0 + 74 * col0 * - ( + + col2 ) FROM tab2
----
-189376
-321825
-78246

query I rowsort
SELECT ALL col1 + 76 FROM tab2
----
127
143
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT - COUNT( * ) * - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4115
SELECT - COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
27

query I rowsort
SELECT DISTINCT ( + - col0 ) * + 77 * - col1 + col1 AS col0 FROM tab1 cor0
----
32730
329376
54992

query I rowsort
SELECT ALL + ( + - col0 ) AS col2 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT - + 64 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 80 col0, 20 FROM tab0 AS cor0
----
80
20
80
20
80
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4120
SELECT DISTINCT 2 DIV - ( - COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT 2 / - ( - COUNT ( * ) ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL MAX( DISTINCT - + 17 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-17

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL MAX ( DISTINCT - + 17 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 34 * - col1 * col1 * col1 * + - 38 col2 FROM tab2 cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col2 col2 FROM tab2 cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 - + col2
----

query I rowsort
SELECT - col1 * + 19 AS col0 FROM tab1 cor0
----
-266
-893
-95

query I rowsort
SELECT + 58 + + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 + + + col1 AS col0 FROM tab2
----
141
142
97

query II rowsort
SELECT col1 * - - 89 + - col2, + 72 * - 83 + col0 AS col0 FROM tab0
----
-10
-5879
1859
-5889
7162
-5961

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT col1 DIV + + col2 + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4129
SELECT col1 / + + col2 + + col2 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - col2 + col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col0 AS col0, col0 / + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 33 AS col0 FROM tab2 cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - 82 + - col1 * col2 * + col2 * col0 FROM tab2 AS cor0
----
-1241116
-16904182
-7884882

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 36 + - col2 > 10
----

query I rowsort
SELECT - ( - 84 ) * - ( col2 ) * - 5 FROM tab1 AS cor0
----
24780
28560
40320

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL + 61 + - COUNT( * ) FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL + 61 + - COUNT ( * ) FROM tab0
----
58

query I rowsort
SELECT ALL col2 * - col2 - - + col0 AS col0 FROM tab1
----
-3396
-4533
-9165

query I rowsort
SELECT DISTINCT - ( - 84 ) - + 97 * - - col0 FROM tab2 cor0
----
-4378
-6124
-7191

query I rowsort
SELECT - + 68 + - col2 FROM tab2 AS cor0
----
-108
-126
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT ALL - CAST( 93 AS SIGNED ) * + 6 * + col1 + - - col0 FROM tab0 AS cor0
----
-11631
-45183
-461

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL - CAST ( 93 AS INTEGER ) * + 6 * + col1 + - - col0 FROM tab0 AS cor0
----
-11631
-45183
-461

query I rowsort
SELECT col2 * + - col1 - + col1 FROM tab1 AS cor0
----
-1358
-300
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT 33 * + COUNT( * ) col0 FROM tab2
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4142
SELECT 33 * + COUNT ( * ) col0 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4143
SELECT DISTINCT - 84 AS col2, - COUNT( * ) + - MAX( - - col1 ) AS col1 FROM tab1
----
-84
-50

skipif mysql # not compatible
query II rowsort label-4143
SELECT DISTINCT - 84 AS col2, - COUNT ( * ) + - MAX ( - - col1 ) AS col1 FROM tab1
----
-84
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4144
SELECT ALL * FROM tab0 WHERE - + col0 BETWEEN - CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query III rowsort label-4144
SELECT ALL * FROM tab0 WHERE - + col0 BETWEEN - CAST ( NULL AS INTEGER ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL + SUM( ALL + 16 ) AS col2 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL + SUM ( ALL + 16 ) AS col2 FROM tab2 AS cor0
----
48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + + col0 BETWEEN NULL AND 50 / col2 + + 10 + + - 10 + - - 74 * - 83 + + 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 38 * col0 AS col1 FROM tab1 AS cor0
----
1938
3230
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL MAX( ALL + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL MAX ( ALL + col0 ) FROM tab2
----
75

query I rowsort
SELECT ALL - ( - 35 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT + 16 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT DISTINCT SUM( ALL + ( - col1 ) ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT SUM ( ALL + ( - col1 ) ) AS col0 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT + + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4154
SELECT + + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT MAX( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4156
SELECT MAX ( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

query II rowsort
SELECT - col1 AS col2, + col1 AS col2 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ALL + + col0 * + col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT + 6 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4159
SELECT + 6 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
18

query I rowsort
SELECT ALL col1 * - col0 * - - col1 AS col0 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT DISTINCT + + COUNT( * ) * + 45 + - 23 AS col2 FROM tab0 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT + + COUNT ( * ) * + 45 + - 23 AS col2 FROM tab0 AS cor0
----
112

query I rowsort
SELECT ALL - - col1 * 3 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-94
228

query I rowsort
SELECT - - ( + + 96 ) AS col2 FROM tab1 AS cor0
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT ALL - CAST( NULL AS SIGNED ) + + CAST( + - col1 AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL - CAST ( NULL AS INTEGER ) + + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 49 + + col1 FROM tab2
----
18
2
28

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - col1 * - col0 - col2 - - col2
----

query I rowsort
SELECT 39 * col2 FROM tab0
----
1833
3861
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + 78 * - COUNT( * ) FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-4169
SELECT + 78 * - COUNT ( * ) FROM tab1
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-4170
SELECT ALL + 66 DIV + + col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL + 66 / + + col2 FROM tab0
----
0
1
6

query I rowsort
SELECT col1 + + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4172
SELECT DISTINCT - 15 * + + col2 DIV CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT - 15 * + + col2 / CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
15

query I rowsort
SELECT + - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4174
SELECT ALL - CAST( NULL AS DECIMAL ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL - CAST ( NULL AS REAL ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT - MIN( DISTINCT 95 ) FROM tab1 AS cor0 WHERE - 56 + - 34 * + col2 IS NOT NULL
----
-95

skipif mysql # not compatible
query I rowsort label-4175
SELECT - MIN ( DISTINCT 95 ) FROM tab1 AS cor0 WHERE - 56 + - 34 * + col2 IS NOT NULL
----
-95

query I rowsort
SELECT - col0 * - + ( + 22 ) * - col1 AS col2 FROM tab0
----
-2134
-26730
-40194

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT SUM( + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4177
SELECT SUM ( + col1 ) FROM tab1
----
66

query I rowsort
SELECT ALL 64 + + col1 AS col1 FROM tab2
----
115
131
141

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 / + col1 IS NULL
----

query I rowsort
SELECT - + col0 - + - 24 + - col2 FROM tab0 AS cor0
----
-172
-38
-73

query I rowsort
SELECT 10 - + 72 FROM tab0 AS cor0
----
-62
-62
-62

query II rowsort
SELECT ALL col1 AS col2, col2 - 27 FROM tab0 cor0
----
1
72
21
-17
81
20

query I rowsort
SELECT DISTINCT + - col2 - + col0 + + col2 * col1 FROM tab1 AS cor0
----
1197
151
3037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4184
SELECT ALL - CAST( NULL AS SIGNED ) * - - col1 - - 27 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col1 - - 27 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 18 FROM tab2 AS cor0 WHERE ( + - col2 ) BETWEEN + col1 AND NULL AND ( NULL ) BETWEEN 65 AND + + col2 * + + 36
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4186
SELECT DISTINCT - - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT - - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT - - col1 * - col0 AS col2 FROM tab0 WHERE NOT + 81 IS NULL
----
-1215
-1827
-97

query I rowsort
SELECT 22 * + col2 FROM tab2
----
1276
506
880

query I rowsort
SELECT ( col0 ) * - + col1 * - - col0 AS col0 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT MIN( + - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4190
SELECT MIN ( + - col0 ) AS col2 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT - MIN( + - col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT - MIN ( + - col1 ) AS col1 FROM tab2
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-4192
SELECT ALL ( + 9 ), ( col1 ) DIV + col1 + + col2 + col1 col2 FROM tab1
----
9
111
9
116
9
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4192
SELECT ALL ( + 9 ), ( col1 ) / + col1 + + col2 + col1 col2 FROM tab1
----
9
111
9
116
9
65

query I rowsort
SELECT - - 51 AS col0 FROM tab2 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL - + MIN( DISTINCT col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL - + MIN ( DISTINCT col0 ) FROM tab2 cor0
----
-46

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 69 ) >= NULL
----

query I rowsort
SELECT + col0 * col0 * + + ( - col2 ) * - + col1 FROM tab0
----
1589490
856575
931491

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE ( NOT - col2 <= col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4198
SELECT ALL ( CAST( col1 AS SIGNED ) ) FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL ( CAST ( col1 AS INTEGER ) ) FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 9 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4200
SELECT - + col1 col0 FROM tab0 AS cor0 WHERE ( - col2 * 20 * + col0 * col2 + - CAST( + 0 AS SIGNED ) + + col1 * + + col1 IS NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4200
SELECT - + col1 col0 FROM tab0 AS cor0 WHERE ( - col2 * 20 * + col0 * col2 + - CAST ( + 0 AS INTEGER ) + + col1 * + + col1 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - 96 ) BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE 20 * + - col0 IS NOT NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 40 + - 3 NOT BETWEEN NULL AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL COUNT( * ) AS col1 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL COUNT ( * ) AS col1 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT - + col1 + + CAST( + - col2 AS SIGNED ) + - - col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4205
SELECT - + col1 + + CAST ( + - col2 AS INTEGER ) + - - col1 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT + 88 + - + col1, col1 FROM tab1
----
41
47
74
14
83
5

query I rowsort
SELECT ALL col0 * col2 + + + col0 * 48 + + col0 AS col2 FROM tab2
----
3312
5696
8025

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL 55 + - SUM( + - col1 ) AS col1 FROM tab1
----
121

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL 55 + - SUM ( + - col1 ) AS col1 FROM tab1
----
121

query III rowsort
SELECT * FROM tab1 WHERE ( 75 ) <= - col1
----

query I rowsort
SELECT ALL - 94 * - + col0 + - col1 AS col1 FROM tab0
----
1329
8157
9117

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL col0 + - + col1 - + col2 * + col2 * + col1 + - col1 * col2 * col2 FROM tab2
----
-246413
-450768
-53963

query I rowsort
SELECT - col1 * 4 AS col0 FROM tab1 AS cor0
----
-188
-20
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 77 col0 FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT - ( + + 39 ) - + - 24 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT - - AVG ( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT - - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT DISTINCT - + COUNT( * ) + ( + ( - COUNT( * ) ) ) col0 FROM tab0 AS cor0 WHERE NOT - 87 * - 93 - 32 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4217
SELECT DISTINCT - + COUNT ( * ) + ( + ( - COUNT ( * ) ) ) col0 FROM tab0 AS cor0 WHERE NOT - 87 * - 93 - 32 IS NOT NULL
----
0

query I rowsort
SELECT - col1 * + + col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT 35 * + 11 * + - MIN( - + col0 ) AS col0 FROM tab0 AS cor0
----
37345

skipif mysql # not compatible
query I rowsort label-4219
SELECT 35 * + 11 * + - MIN ( - + col0 ) AS col0 FROM tab0 AS cor0
----
37345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 32 col1 FROM tab2 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL + COUNT( - - ( 31 ) ) * + 78 FROM tab1 cor0
----
234

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + COUNT ( - - ( 31 ) ) * + 78 FROM tab1 cor0
----
234

query I rowsort
SELECT ALL - 45 * - 65 * + 18 + + - col2 AS col0 FROM tab1 AS cor0
----
52554
52582
52591

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT NULL <> + col2 * col2 + - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4224
SELECT ALL + 58 col1, - col1 DIV - col2 FROM tab1
----
58
0
58
0
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4224
SELECT ALL + 58 col1, - col1 / - col2 FROM tab1
----
58
0
58
0
58
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * col0 col2 FROM tab1 WHERE NOT - - 53 NOT BETWEEN - 58 AND col0 * + + col1
----
-4743
-7905
-8463

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4227
SELECT CAST( NULL AS SIGNED ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4227
SELECT CAST ( NULL AS INTEGER ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4228
SELECT ALL - col2 * - 12 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL - col2 * - 12 * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT - 31 DIV - + 86 col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4229
SELECT - 31 / - + 86 col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT DISTINCT col0 DIV - - col0 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT col0 / - - col0 AS col2 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 11 NOT BETWEEN + + 34 AND col1 * - + 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + SUM( - - col1 ) * - - COUNT( * ) * - 24 AS col1 FROM tab2
----
-14040

skipif mysql # not compatible
query I rowsort label-4232
SELECT + SUM ( - - col1 ) * - - COUNT ( * ) * - 24 AS col1 FROM tab2
----
-14040

onlyif mysql # DIV for integer division: 
query I rowsort label-4233
SELECT ALL - 4 DIV + + ( - col1 ) AS col1 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL - 4 / + + ( - col1 ) AS col1 FROM tab0
----
0
0
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4234
SELECT CAST( + col0 AS SIGNED ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4234
SELECT CAST ( + col0 AS INTEGER ) AS col2 FROM tab0
----
15
87
97

query II rowsort
SELECT - 85, + col0 / + 26 AS col2 FROM tab2 AS cor0 WHERE NOT col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 21 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT ALL + col1 + - + col2 DIV - col0 FROM tab0 AS cor0
----
2
21
84

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL + col1 + - + col2 / - col0 FROM tab0 AS cor0
----
2
21
84

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 44 IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE + - col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ( - 77 ) + col2 AS col0 FROM tab2
----
-19
-37
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE + - col0 * + + 3 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE + - col0 * + + 3 IS NULL
----
0

query I rowsort
SELECT ALL 3 * + + 80 FROM tab2
----
240
240
240

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT - + SUM( + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4243
SELECT - + SUM ( + col1 ) FROM tab1 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 cor0 WHERE - 43 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 + - ( 91 ) * + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4246
SELECT ALL - COUNT( ALL - col1 ) AS col2, - 56 AS col1 FROM tab0 AS cor0
----
-3
-56

skipif mysql # not compatible
query II rowsort label-4246
SELECT ALL - COUNT ( ALL - col1 ) AS col2, - 56 AS col1 FROM tab0 AS cor0
----
-3
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL + ( + ( - COUNT( * ) ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL + ( + ( - COUNT ( * ) ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL + - col2 * - col2 + + 78 + + col1 FROM tab1 AS cor0
----
3564
4749
9308

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + + 93 FROM tab0
----
103
140
192

query I rowsort
SELECT DISTINCT - 80 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT - col1 * + col1 * CAST( NULL AS SIGNED ) * + col0 col1 FROM tab1 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4252
SELECT - col1 * + col1 * CAST ( NULL AS INTEGER ) * + col0 col1 FROM tab1 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col0 * + - col1 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT - col1 + ( 39 ) AS col0 FROM tab0
----
-42
18
38

query I rowsort
SELECT DISTINCT + ( + ( col0 ) ) FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 80 - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - - 77 AS col2 FROM tab0
----
1617
6237
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 66 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT DISTINCT 43 DIV - col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT 43 / - col1 AS col2 FROM tab2
----
0

query II rowsort
SELECT - - col0, + col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4261
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4262
SELECT ALL ( - col1 ) * + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL ( - col1 ) * + - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT + CAST( NULL AS SIGNED ) * col1 * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT + CAST ( NULL AS INTEGER ) * col1 * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 3 * 67 AS col1 FROM tab0 cor0
----
201
201
201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT COUNT( * ) DIV + 83 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4265
SELECT COUNT ( * ) / + 83 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT DISTINCT COUNT( - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT COUNT ( - col1 ) FROM tab2
----
3

query I rowsort
SELECT + 78 * + 90 * col2 FROM tab2
----
161460
280800
407160

query I rowsort
SELECT ALL col1 * - 30 * col2 AS col2 FROM tab1
----
-40320
-8850
-95880

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT - MAX( + 14 ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-4270
SELECT - MAX ( + 14 ) FROM tab0
----
-14

query I rowsort
SELECT 40 * col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1840
2560
3000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 32 col2 FROM tab2 WHERE NOT col1 IS NULL
----
-32
-32
-32

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - + col0 ) + + - col1 > NULL
----

query I rowsort
SELECT DISTINCT - 73 + - - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-107
-84
25

query II rowsort
SELECT col0, - col1 * 5 AS col2 FROM tab1
----
51
-70
85
-25
91
-235

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL - col2 * + - 58 + - 69 FROM tab1
----
3353
3875
5499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 AS cor0 WHERE NOT NULL = - col0
----

query II rowsort
SELECT ALL + - col1 AS col2, - ( ( + 53 ) ) AS col1 FROM tab2 AS cor0
----
-51
-53
-67
-53
-77
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4280
SELECT - + 83 + - COUNT( * ) * - CAST( NULL AS DECIMAL ) + + 87 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT - + 83 + - COUNT ( * ) * - CAST ( NULL AS REAL ) + + 87 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 92 + + + col0 + 74 * col0 FROM tab0 AS cor0
----
1033
6433
7183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT + + col2 + - col1 + - 88 - - 0 / + col2 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT + + col2 + - col1 + - 88 - - 0 / + col2 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4284
SELECT COUNT( * ) + + 46 AS col0, MIN( ALL - col2 ) AS col2 FROM tab1
----
49
-96

skipif mysql # not compatible
query II rowsort label-4284
SELECT COUNT ( * ) + + 46 AS col0, MIN ( ALL - col2 ) AS col2 FROM tab1
----
49
-96

query I rowsort
SELECT DISTINCT - ( col0 ) + + - col2 - + - col2 * + + col1 * - ( col2 ) FROM tab1
----
-129171
-17549
-217487

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT + 81 + - COUNT( * ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-4286
SELECT + 81 + - COUNT ( * ) AS col2 FROM tab0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4287
SELECT ALL - 37 + - 27 DIV + 59 AS col2 FROM tab0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL - 37 + - 27 / + 59 AS col2 FROM tab0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT col1 * - - col2 + col0 AS col1 FROM tab0
----
196
297
3822

query I rowsort
SELECT DISTINCT - col1 + + 6 AS col2 FROM tab0
----
-15
-75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT - COUNT( * ) - - + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT - COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL COUNT( * ) + - + 41 + + - 10 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL COUNT ( * ) + - + 41 + + - 10 FROM tab2
----
-48

query I rowsort
SELECT + col0 - - col1 FROM tab1 AS cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + 66 - + - 25 col0 FROM tab0 AS cor0
----
-128
-138
-56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4294
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) <= - 77 )
----

skipif mysql # not compatible
query III rowsort label-4294
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) <= - 77 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT DISTINCT - CAST( + ( - - col2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT - CAST ( + ( - - col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + col2 + + + ( + col0 ) FROM tab0 WHERE NOT - 86 IS NULL
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT DISTINCT + 43 AS col0 FROM tab1 cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL + COUNT( * ) * - COUNT( * ) - + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + COUNT ( * ) * - COUNT ( * ) - + - COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL - col2 * 70 * - + col1 + + col1 AS col0 FROM tab0 AS cor0
----
14721
266571
6931

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT - MIN( ALL - - col2 ) AS col2 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4302
SELECT - MIN ( ALL - - col2 ) AS col2 FROM tab1 cor0
----
-59

query II rowsort
SELECT 19, + col2 FROM tab0 AS cor0
----
19
10
19
47
19
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( col0, + 75 )
----

query II rowsort
SELECT ALL + ( - col1 ) - + col2 AS col0, + col2 FROM tab1 AS cor0 WHERE + col2 * + 38 + - + 80 - + + 42 + col0 * 8 - + ( + 31 ) * col0 * col2 + 21 * 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL - MIN( - - 65 ) AS col0 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL - MIN ( - - 65 ) AS col0 FROM tab1
----
-65

query I rowsort
SELECT - 93 * + 72 AS col0 FROM tab0
----
-6696
-6696
-6696

query I rowsort
SELECT ALL - ( - col1 ) * + col1 * + col1 FROM tab0
----
1
531441
9261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4309
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( + 99 <= - CAST( NULL AS SIGNED ) + + - 98 ) )
----

skipif mysql # not compatible
query III rowsort label-4309
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( + 99 <= - CAST ( NULL AS INTEGER ) + + - 98 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4310
SELECT 71 DIV col1 * - 55 FROM tab0
----
-165
-3905
0

skipif mysql # not compatible
query I rowsort label-4310
SELECT 71 / col1 * - 55 FROM tab0
----
-165
-3905
0

query II rowsort
SELECT + 28 AS col2, 74 FROM tab2 AS cor0
----
28
74
28
74
28
74

query II rowsort
SELECT ALL col1, col2 + + col1 FROM tab2 AS cor0
----
51
74
67
125
77
117

query I rowsort
SELECT - col2 + - col1 * + + 6 FROM tab1 AS cor0
----
-180
-350
-89

query I rowsort
SELECT col2 + + 0 + 78 FROM tab2
----
101
118
136

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > col2 + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 70 * col2 AND - 73
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT - + col2 - - col0 + + ( col1 ) FROM tab2 AS cor0
----
101
74
84

query I rowsort
SELECT ALL col1 + - 69 FROM tab2
----
-18
-2
8

query I rowsort
SELECT 36 + - + col0 FROM tab1
----
-15
-49
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT + 72 DIV col2 + + 65 AS col0 FROM tab0
----
65
66
72

skipif mysql # not compatible
query I rowsort label-4323
SELECT + 72 / col2 + + 65 AS col0 FROM tab0
----
65
66
72

query I rowsort
SELECT + 97 + + col2 FROM tab1
----
156
165
193

query II rowsort
SELECT DISTINCT col1, - col2 AS col1 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT ( + - col1 ) * col1 + - col2 FROM tab1 AS cor0
----
-2277
-292
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4327
SELECT CAST( NULL AS SIGNED ) * - 44, + col0 + + - col2 + + - col2 col0 FROM tab2
----
NULL
-16
NULL
-41
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4327
SELECT CAST ( NULL AS INTEGER ) * - 44, + col0 + + - col2 + + - col2 col0 FROM tab2
----
NULL
-16
NULL
-41
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT DISTINCT - - COUNT( * ) col0 FROM tab1 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-4328
SELECT DISTINCT - - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <> - ( + 21 ) * - col1 * col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4330
SELECT - + SUM( + - col1 ) AS col1, 61 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-4330
SELECT - + SUM ( + - col1 ) AS col1, 61 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT ALL - COUNT( * ) * + 49 AS col2 FROM tab0 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL - COUNT ( * ) * + 49 AS col2 FROM tab0 cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT - SUM( ALL - 87 ) FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-4332
SELECT - SUM ( ALL - 87 ) FROM tab0
----
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 26 col0 FROM tab1
----
31
40
73

query I rowsort
SELECT col0 + 16 AS col0 FROM tab0
----
103
113
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 col1 FROM tab0
----
19
19
19

query II rowsort
SELECT ALL + - col0, - 87 FROM tab2 WHERE NOT 27 + + 81 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4339
SELECT + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-3

query I rowsort
SELECT + col1 * - 35 FROM tab0 AS cor0
----
-2835
-35
-735

query I rowsort
SELECT + 66 AS col0 FROM tab1 cor0
----
66
66
66

query I rowsort
SELECT DISTINCT - 61 * 94 FROM tab0 cor0 WHERE - 23 - + + 61 + - ( + 73 ) * + 43 * + - 84 * - ( - - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT - SUM( + + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4343
SELECT - SUM ( + + col1 ) FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4344
SELECT DISTINCT + col0 - - CAST( - col1 AS SIGNED ) * 83 AS col2, col2 AS col1 FROM tab1 cor0
----
-1111
96
-330
59
-3810
68

skipif mysql # not compatible
query II rowsort label-4344
SELECT DISTINCT + col0 - - CAST ( - col1 AS INTEGER ) * 83 AS col2, col2 AS col1 FROM tab1 cor0
----
-1111
96
-330
59
-3810
68

query I rowsort
SELECT - col0 + - col1 * - col0 FROM tab2 AS cor0
----
2300
4864
4950

query I rowsort
SELECT + - 43 + + 31 AS col1 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT 0 * - - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT - col1 * 86 * + + col0 * col1 + - col2 + - col0 AS col1 FROM tab1 AS cor0 WHERE 63 IS NOT NULL
----
-17287793
-182894
-859803

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - + ( + MIN( DISTINCT - + 9 ) ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4349
SELECT - + ( + MIN ( DISTINCT - + 9 ) ) AS col0 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 WHERE + + 42 + col0 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < col2
----
0

skipif mysql # not compatible
query I rowsort label-4351
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < col2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 99 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT + 6 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT + 6 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 61 * + 45 col2 FROM tab0 AS cor0
----
2745
2745
2745

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT + col2 DIV col1 * + col0 FROM tab0 AS cor0
----
0
0
9603

skipif mysql # not compatible
query I rowsort label-4355
SELECT + col2 / col1 * + col0 FROM tab0 AS cor0
----
0
0
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT + + MAX( + - ( 17 ) ) col0 FROM tab1 cor0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4356
SELECT + + MAX ( + - ( 17 ) ) col0 FROM tab1 cor0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 AS cor0 WHERE ( NOT ( ( + col1 ) >= - col0 / + 86 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + col2 + - col0 col0 FROM tab0 AS cor0
----
10
-77
47
32
99
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL COUNT( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4359
SELECT ALL COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT + + col1 AS col2, 75 AS col0 FROM tab0 AS cor0
----
1
75
21
75
81
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL + - COUNT( + 48 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4361
SELECT ALL + - COUNT ( + 48 ) col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> 21
----

query I rowsort
SELECT col0 * - - 24 AS col0 FROM tab0
----
2088
2328
360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4364
SELECT DISTINCT col0, col0 * + col2 / + 22 AS col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query II rowsort label-4364
SELECT DISTINCT col0, col0 * + col2 / + 22 AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE - + col0 NOT BETWEEN - col2 + + - col1 AND NULL
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT 63 * - MAX( + + col2 ) col0 FROM tab1
----
-6048

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4366
SELECT 63 * - MAX ( + + col2 ) col0 FROM tab1
----
-6048

query I rowsort
SELECT DISTINCT ( - col0 ) * - - col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL + ( CAST( - 8 AS SIGNED ) ) + + 41 - + + col1 AS col0 FROM tab2
----
-18
-34
-44

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + ( CAST ( - 8 AS INTEGER ) ) + + 41 - + + col1 AS col0 FROM tab2
----
-18
-34
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT COUNT( * ) col2 FROM tab0 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-4369
SELECT COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + col2 - + + col0 AS col1 FROM tab0 AS cor0
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, + 47 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query II rowsort
SELECT ALL + col1 AS col2, - 77 FROM tab2 AS cor0
----
51
-77
67
-77
77
-77

query I rowsort
SELECT + 42 - col2 + - col2 FROM tab2 AS cor0
----
-38
-4
-74

query I rowsort
SELECT DISTINCT + ( + + col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col1 * + - col1 - + 89 * - - col1 + - col0 FROM tab2 AS cor0
----
-10527
-12846
-7186

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col2 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ALL + + ( + 68 ) AS col0 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT + + ( - - ( + col1 ) ) + - 39 FROM tab1 WHERE NOT + - 18 = NULL
----

query I rowsort
SELECT - 65 AS col1 FROM tab2 WHERE NOT + + col1 = + - col1
----
-65
-65
-65

query II rowsort
SELECT col1 AS col1, - col1 * + - 58 FROM tab0
----
1
58
21
1218
81
4698

onlyif mysql # aggregate syntax: 
query II rowsort label-4381
SELECT 49 AS col0, - SUM( + - col1 ) FROM tab0
----
49
103

skipif mysql # not compatible
query II rowsort label-4381
SELECT 49 AS col0, - SUM ( + - col1 ) FROM tab0
----
49
103

query II rowsort
SELECT 18 AS col1, col2 FROM tab1
----
18
59
18
68
18
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4383
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) * - - 31 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) * - - 31 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4385
SELECT + 24 AS col1, - col0 * 12 DIV + col2 FROM tab0
----
24
-104
24
-11
24
-3

skipif mysql # not compatible
query II rowsort label-4385
SELECT + 24 AS col1, - col0 * 12 / + col2 FROM tab0
----
24
-104
24
-11
24
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4386
SELECT CAST( + + SUM( DISTINCT - col2 ) AS SIGNED ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4386
SELECT CAST ( + + SUM ( DISTINCT - col2 ) AS INTEGER ) FROM tab1
----
-223

query II rowsort
SELECT col1 AS col2, col1 + - + col0 AS col0 FROM tab1
----
14
-37
47
-44
5
-80

query II rowsort
SELECT DISTINCT col2 AS col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND - 97 * + col1
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL = + 59 + + col1
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab2 cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT + + 5 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4394
SELECT - CAST( MAX( ALL - 31 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT - CAST ( MAX ( ALL - 31 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT + COUNT( DISTINCT + 66 ) AS col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4395
SELECT + COUNT ( DISTINCT + 66 ) AS col0 FROM tab1 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT DISTINCT 56 * + + col0 + col0 * - 34 * - 52 * + - 12 + + - CAST( NULL AS SIGNED ) + + col1 * col1 / - col2 * col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT 56 * + + col0 + col0 * - 34 * - 52 * + - 12 + + - CAST ( NULL AS INTEGER ) + + col1 * col1 / - col2 * col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT 10 + - - CAST( - - 45 AS SIGNED ) FROM tab0 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-4397
SELECT 10 + - - CAST ( - - 45 AS INTEGER ) FROM tab0 AS cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT 27 + + SUM( col0 ) * + COUNT( * ) FROM tab2
----
582

skipif mysql # not compatible
query I rowsort label-4398
SELECT 27 + + SUM ( col0 ) * + COUNT ( * ) FROM tab2
----
582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4399
SELECT ALL COUNT( * ) * - - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL COUNT ( * ) * - - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT + COUNT( 80 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT + COUNT ( 80 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE + - col0 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT - col2 + + + 80 AS col1 FROM tab0
----
-19
33
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT + - MAX( + 47 ) AS col2 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4403
SELECT + - MAX ( + 47 ) AS col2 FROM tab2 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL + COUNT( * ) + - 35 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL + COUNT ( * ) + - 35 FROM tab1 AS cor0
----
-32

query II rowsort
SELECT DISTINCT + col0, - col0 * 5 FROM tab1 AS cor0
----
51
-255
85
-425
91
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT MIN( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4406
SELECT MIN ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT + 38, + col2 AS col2 FROM tab1 AS cor0
----
38
59
38
68
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - 31 + + 3 col1 FROM tab1 AS cor0
----
-25
-34
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT col0 DIV 50 col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4409
SELECT col0 / 50 col2 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 * 23 AS col0 FROM tab2
----
1334
529
920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4411
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 - + col1 col0 FROM tab2
----
-109
-83
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4414
SELECT ALL 43 DIV ( - COUNT( col2 ) ) AS col2 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL 43 / ( - COUNT ( col2 ) ) AS col2 FROM tab2
----
-14

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( - col2 )
----

query I rowsort
SELECT + col0 * - 3 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-138
-192
-225

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 18 + 91 * + 56 FROM tab1
----
5078
5078
5078

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * ( 28 ) - col1 BETWEEN ( + 36 ) AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 94 NOT IN ( + 62 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * 32 ) IS NOT NULL
----

query I rowsort
SELECT 52 AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4423
SELECT DISTINCT - 59 DIV + ( + col0 ) AS col1 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT - 59 / + ( + col0 ) AS col1 FROM tab0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT DISTINCT + SUM( ALL 34 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT + SUM ( ALL 34 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - col0 BETWEEN NULL AND ( 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT - MIN( DISTINCT 25 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-4426
SELECT - MIN ( DISTINCT 25 ) FROM tab2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ( + MIN( ALL col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4427
SELECT ( + MIN ( ALL col2 ) ) AS col2 FROM tab0
----
10

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT ALL 13 - + col0 FROM tab0 WHERE NOT col1 NOT IN ( col1 * CAST( NULL AS SIGNED ) + ( col1 ) )
----

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL 13 - + col0 FROM tab0 WHERE NOT col1 NOT IN ( col1 * CAST ( NULL AS INTEGER ) + ( col1 ) )
----

query I rowsort
SELECT DISTINCT ( + 71 ) - col1 FROM tab0
----
-10
50
70

query III rowsort
SELECT * FROM tab2 WHERE col0 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - 5 + COUNT( * ) AS col2 FROM tab0 WHERE NOT col2 + 65 IS NULL
----
-2

skipif mysql # not compatible
query I rowsort label-4432
SELECT - 5 + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 + 65 IS NULL
----
-2

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 * - col2 ) NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + + 44 * - col0 AS col2 FROM tab1
----
-2148
-3681
-3936

query I rowsort
SELECT ALL col2 - ( - col0 ) FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT DISTINCT + MAX( - 48 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT + MAX ( - 48 ) FROM tab1
----
-48

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) > - col0 - 3
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4439
SELECT ALL + 94 FROM tab2 WHERE 96 * 29 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL + 94 FROM tab2 WHERE 96 * 29 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col0 * 6 FROM tab1 AS cor0
----
306
510
546

query I rowsort
SELECT + col1 / col1 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT col0 + 17 AS col0 FROM tab1 AS cor0
----
102
108
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4443
SELECT ALL ( CAST( col1 AS SIGNED ) ) DIV + 22 AS col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL ( CAST ( col1 AS INTEGER ) ) / + 22 AS col2 FROM tab0
----
0
0
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 72 * 90 + - col0 BETWEEN ( ( + col2 ) ) AND 81 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 54 FROM tab0 AS cor0 JOIN tab1 ON NOT ( NULL ) IS NOT NULL
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 78 ) + - 51 NOT BETWEEN - col0 + col2 AND - ( + 39 )
----

query I rowsort
SELECT - - ( + col0 ) * 18 FROM tab2 AS cor0
----
1152
1350
828

onlyif mysql # DIV for integer division: 
query I rowsort label-4448
SELECT - - col2 DIV + 17 FROM tab0 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-4448
SELECT - - col2 / + 17 FROM tab0 AS cor0
----
0
2
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT - MIN( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4449
SELECT - MIN ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL + SUM( col0 ) + + 46 FROM tab0 AS cor0
----
245

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL + SUM ( col0 ) + + 46 FROM tab0 AS cor0
----
245

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT - SUM( 28 ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4453
SELECT - SUM ( 28 ) FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT COUNT( ALL - col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4454
SELECT COUNT ( ALL - col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT DISTINCT + col0 * + 39 + 39 FROM tab2
----
1833
2535
2964

query III rowsort
SELECT * FROM tab0 WHERE ( + 65 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + + ( + col1 ) + col2 FROM tab1
----
124
162
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT ALL + col1 + + col0 DIV col0 AS col2 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL + col1 + + col0 / col0 AS col2 FROM tab0
----
2
22
82

query I rowsort
SELECT DISTINCT + ( + + 9 ) FROM tab2
----
9

query I rowsort
SELECT 84 * + col1 + + col0 * - 74 FROM tab2
----
1732
78
880

query I rowsort
SELECT + col1 + + 69 AS col2 FROM tab1 cor0
----
116
74
83

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IS NOT NULL AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT DISTINCT 39 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT 39 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - 16 AS col1 FROM tab2 cor0
----
-16
-16
-16

query I rowsort
SELECT - 58 * - col1 FROM tab0 AS cor0 WHERE - col2 >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT + ( col2 ) DIV + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4466
SELECT + ( col2 ) / + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT col2 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT col2 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * + col0 col2 FROM tab2
----
3358
4672
5475

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - MIN( ALL + 56 ) FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4469
SELECT - MIN ( ALL + 56 ) FROM tab2 AS cor0
----
-56

query I rowsort
SELECT col1 * col2 + + 97 * + 59 FROM tab0 AS cor0
----
5822
5933
9530

query I rowsort
SELECT 49 * 74 FROM tab1 cor0 WHERE NOT col0 + - 96 <= ( - col0 * - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 >= + - 33 * - 33 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 70 * - col0 * col1 ) NOT IN ( 48 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND + + col0
----
46
51
23
64
77
40

query II rowsort
SELECT ALL col2, 78 FROM tab1 AS cor0
----
59
78
68
78
96
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT ALL - 16 + - ( - CAST( - 19 AS SIGNED ) ) * - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL - 16 + - ( - CAST ( - 19 AS INTEGER ) ) * - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT 95 * COUNT( * ) FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-4478
SELECT 95 * COUNT ( * ) FROM tab1
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4479
SELECT 87 * - col1, - 98 + - CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
-4437
-121
-5829
-156
-6699
-138

skipif mysql # not compatible
query II rowsort label-4479
SELECT 87 * - col1, - 98 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
-4437
-121
-5829
-156
-6699
-138

query I rowsort
SELECT DISTINCT 59 * + + col0 * - col0 * col2 FROM tab0
----
-4465710
-54957969
-623925

query III rowsort
SELECT * FROM tab1 WHERE NOT 55 / + 48 + 26 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT + COUNT( col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + COUNT ( col1 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT col1 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT col1 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( - 45 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4486
SELECT CAST( NULL AS DECIMAL ) * 53 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4486
SELECT CAST ( NULL AS REAL ) * 53 col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 56 < - col1 + + 64
----
51
14
96
91
47
68

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT + MAX( DISTINCT + col1 ) * + - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-4489
SELECT + MAX ( DISTINCT + col1 ) * + - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
231

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( 83 / - - 36 ) IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT ALL - col2 * + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL - col2 * + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT + - ( - col1 ) * col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4493
SELECT ALL + + col1 DIV - 94 - + - col1 DIV - 75 + + col2 FROM tab2 cor0
----
23
39
58

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL + + col1 / - 94 - + - col1 / - 75 + + col2 FROM tab2 cor0
----
23
39
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT + 95 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

skipif mysql # not compatible
query I rowsort label-4494
SELECT + 95 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IN ( + 91 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( - col1 ) + - - 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * col0 * - col2 AS col1 FROM tab1
----
-249696
-426275
-563108

query I rowsort
SELECT DISTINCT - col0 * + + col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT - - col2 + col1 + + 81 + - + col0 FROM tab0 cor0
----
194
25
84

query I rowsort
SELECT ALL - + col2 * - col1 AS col1 FROM tab0 cor0
----
210
3807
99

query II rowsort
SELECT ALL + 53, col1 FROM tab2 AS cor0
----
53
51
53
67
53
77

onlyif mysql # DIV for integer division: 
query II rowsort label-4502
SELECT DISTINCT + col0 DIV - 18 + - col2 AS col1, - col2 FROM tab1 AS cor0
----
-63
-59
-73
-68
-98
-96

skipif mysql # not compatible
query II rowsort label-4502
SELECT DISTINCT + col0 / - 18 + - col2 AS col1, - col2 FROM tab1 AS cor0
----
-63
-59
-73
-68
-98
-96

query I rowsort
SELECT ALL 65 * + 80 FROM tab1 AS cor0
----
5200
5200
5200

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + + col0 + + + col2 + + + 78 / 8 AND col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 56 + - + col2 IS NULL
----

query I rowsort
SELECT - + 85 + - col1 AS col0 FROM tab2 AS cor0
----
-136
-152
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT - COUNT( * ) + 83 FROM tab1 AS cor0 WHERE col0 + - - 25 * + col2 - + 90 IS NULL
----
83

skipif mysql # not compatible
query I rowsort label-4507
SELECT - COUNT ( * ) + 83 FROM tab1 AS cor0 WHERE col0 + - - 25 * + col2 - + 90 IS NULL
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4508
SELECT + col2 + + + col1 * - col1 AS col0 FROM tab2 WHERE ( NULL NOT IN ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-4508
SELECT + col2 + + + col1 * - col1 AS col0 FROM tab2 WHERE ( NULL NOT IN ( - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT col1 + 90 + col0 AS col0 FROM tab1
----
155
180
228

query I rowsort
SELECT DISTINCT - ( + 35 ) + + + 44 AS col2 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4511
SELECT * FROM tab1 WHERE col1 * + CAST( NULL AS SIGNED ) * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4511
SELECT * FROM tab1 WHERE col1 * + CAST ( NULL AS INTEGER ) * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + + 71 * - + col1 FROM tab2
----
-3570
-4690
-5390

query II rowsort
SELECT + col0, col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT col0 - + 8 + + + col0 * - + col0 * + - ( col0 ) + - col1 * - col2 FROM tab1
----
134038
614497
756850

query I rowsort
SELECT - ( 42 ) FROM tab1
----
-42
-42
-42

query I rowsort
SELECT ALL - 12 + - + col2 AS col1 FROM tab2
----
-35
-52
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT DISTINCT + CAST( - - 66 AS SIGNED ) + + col0 AS col2 FROM tab1
----
117
151
157

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT + CAST ( - - 66 AS INTEGER ) + + col0 AS col2 FROM tab1
----
117
151
157

onlyif mysql # aggregate syntax: 
query II rowsort label-4518
SELECT DISTINCT COUNT( * ), MIN( DISTINCT 35 ) * 98 AS col0 FROM tab0, tab1 AS cor0
----
9
3430

skipif mysql # not compatible
query II rowsort label-4518
SELECT DISTINCT COUNT ( * ), MIN ( DISTINCT 35 ) * 98 AS col0 FROM tab0, tab1 AS cor0
----
9
3430

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 28 NOT BETWEEN ( + - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT COUNT( * ) * - SUM( + 23 ) FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT COUNT ( * ) * - SUM ( + 23 ) FROM tab2
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL + 94 - + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL + 94 - + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT DISTINCT + MIN( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT DISTINCT + MIN ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT + - ( COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4524
SELECT + - ( COUNT ( * ) ) FROM tab1 cor0
----
-3

query II rowsort
SELECT DISTINCT col2 * col0 + + - col1, col1 FROM tab1 AS cor0
----
4882
14
5010
5
6141
47

query I rowsort
SELECT - ( + + ( + col0 ) ) * 38 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1938
-3230
-3458

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT MIN( + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT MIN ( + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT - col2 + + ( - ( + 56 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - 18 IS NULL
----
-103
-155
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - 45 + - 47 col1 FROM tab1
----
51
-92
85
-92
91
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT MIN( + - col1 ) col0 FROM tab1 WHERE NOT - CAST( - CAST( - - col2 AS SIGNED ) AS SIGNED ) < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4530
SELECT MIN ( + - col1 ) col0 FROM tab1 WHERE NOT - CAST ( - CAST ( - - col2 AS INTEGER ) AS INTEGER ) < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - 79 * + + col2 FROM tab0 AS cor0
----
1
-7821
21
-790
81
-3713

query I rowsort
SELECT + - 57 + col2 - - col0 * + 35 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + + 86 * 45 + 18
----

query I rowsort
SELECT col0 * + + col2 FROM tab1 cor0
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 95 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT CAST( NULL AS SIGNED ) * + 8 + - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT CAST ( NULL AS INTEGER ) * + 8 + - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4537
SELECT + - col0 DIV 98 DIV + + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4537
SELECT + - col0 / 98 / + + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4538
SELECT DISTINCT - + COUNT( * ) DIV + 81 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT - + COUNT ( * ) / + 81 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * 63 + - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT + col2 + + col0 / + col0 IS NULL
----
59
68
96

query I rowsort
SELECT + 5 AS col0 FROM tab0 cor0
----
5
5
5

query I rowsort
SELECT 63 * col1 - col1 FROM tab1 AS cor0
----
2914
310
868

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4543
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query III rowsort label-4543
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT 14 + - col0 + + col1 FROM tab1
----
-23
-30
-66

query I rowsort
SELECT 47 - + 5 * + - col0 FROM tab2
----
277
367
422

query I rowsort
SELECT + 24 * - col2 - - col1 + + col0 FROM tab1
----
-1326
-1494
-2239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 42 col0 FROM tab1
----
-28
-37
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT + COUNT( * ) + AVG ( - - 95 ) FROM tab0 WHERE - col2 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT + COUNT ( * ) + AVG ( - - 95 ) FROM tab0 WHERE - col2 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL col2 - - - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + 79 * - ( + col0 ) * + 41 FROM tab0
----
-281793
-314183
-48585

query II rowsort
SELECT ALL + col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - 95 * - - col2 / - 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 24 AS col2 FROM tab0 AS cor0 WHERE 38 IS NOT NULL
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 66, + 86 col1 FROM tab1 AS cor0
----
-66
86
-66
86
-66
86

query I rowsort
SELECT DISTINCT + + ( + 71 ) AS col0 FROM tab1 cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT MAX( col1 ) AS col2 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-4556
SELECT MAX ( col1 ) AS col2 FROM tab2 cor0
----
77

query I rowsort
SELECT ALL col2 + + + col1 AS col1 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL 50 * + - col0 FROM tab2
----
-2300
-3200
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT - MAX( ALL + + col0 ) + - SUM( - + 30 ) col0 FROM tab2
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4559
SELECT - MAX ( ALL + + col0 ) + - SUM ( - + 30 ) col0 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT MAX( + ( col0 ) ) + 75 AS col1 FROM tab0
----
172

skipif mysql # not compatible
query I rowsort label-4560
SELECT MAX ( + ( col0 ) ) + 75 AS col1 FROM tab0
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT col1 + + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT col1 + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT + COUNT( * ) col0 FROM tab1 WHERE NOT - 13 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4562
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 WHERE NOT - 13 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 73 IS NULL
----

query II rowsort
SELECT + col1, col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4566
SELECT - + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT 23 * - + col1 * col2 * - + ( - 23 ) FROM tab2
----
-1629320
-2055694
-620517

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT ALL COUNT( * ) - + + 57 * - 34 AS col1 FROM tab1
----
1941

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL COUNT ( * ) - + + 57 * - 34 AS col1 FROM tab1
----
1941

query II rowsort
SELECT ALL + - col2 - + + ( col2 ) + - + col0, col2 AS col1 FROM tab0 AS cor0
----
-107
10
-109
47
-295
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT - COUNT( + - col0 ) * COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT - COUNT ( + - col0 ) * COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4571
SELECT CAST( NULL AS DECIMAL ) * + col0 + + col2 + - col1 * - col2 * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT CAST ( NULL AS REAL ) * + col0 + + col2 + - col1 * - col2 * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL + ( - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 71 * + - col1 + col1 col2 FROM tab0 AS cor0
----
1512
5832
72

query I rowsort
SELECT - col1 + - - col0 + + col0 * + 63 AS col1 FROM tab2 AS cor0
----
2893
4019
4733

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL MIN( - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL MIN ( - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT col1 * - col1 * + - ( - + col0 ) + col0 FROM tab1
----
-200928
-2040
-9945

query III rowsort
SELECT * FROM tab1 WHERE col1 * - + col2 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 41 AS col2 FROM tab0 WHERE col1 + col1 + + + ( - 95 ) * - 17 IS NOT NULL
----
-41
-41
-41

query I rowsort
SELECT 79 + - 89 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 38 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT ALL col0, col2 - - + 18 * - - col1 FROM tab1 AS cor0
----
51
348
85
149
91
914

query I rowsort
SELECT DISTINCT - col2 * 11 FROM tab1 cor0
----
-1056
-649
-748

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL + - MIN( DISTINCT + + 59 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL + - MIN ( DISTINCT + + 59 ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - ( 4 ) FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL COUNT( ALL + - 75 ) + + - MIN( - col2 ) AS col1 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL COUNT ( ALL + - 75 ) + + - MIN ( - col2 ) AS col1 FROM tab2 AS cor0
----
61

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( col2 ) > ( + 77 )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT col2 * + - 76 + col0 FROM tab1
----
-4399
-5077
-7245

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT DISTINCT COUNT( * ) + - 93 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT COUNT ( * ) + - 93 FROM tab1
----
-90

query I rowsort
SELECT - col0 * - - col2 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT 78 AS col2, 72 AS col1 FROM tab1
----
78
72
78
72
78
72

query III rowsort
SELECT * FROM tab0 WHERE col2 + - col1 * 2 * + col1 * + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT + MAX( DISTINCT col0 ) * COUNT( * ) AS col2 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-4593
SELECT + MAX ( DISTINCT col0 ) * COUNT ( * ) AS col2 FROM tab0
----
291

query I rowsort
SELECT + col2 * - + col2 AS col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4595
SELECT + COUNT( * ) DIV + 27 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4595
SELECT + COUNT ( * ) / + 27 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4596
SELECT - col1 * + - col0 DIV col0 + + + col2 DIV + col0 + + - col1, + 78 + + + col1 col2 FROM tab1 AS cor0
----
0
125
0
83
1
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4596
SELECT - col1 * + - col0 / col0 + + + col2 / + col0 + + - col1, + 78 + + + col1 col2 FROM tab1 AS cor0
----
0
125
0
83
1
92

query I rowsort
SELECT ALL 53 + + col2 AS col1 FROM tab0 AS cor0
----
100
152
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 74 < - ( - col1 ) + + col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - COUNT( - - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4599
SELECT - COUNT ( - - col2 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT 86 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT ALL + col0 DIV + col0 - - 24 FROM tab2
----
25
25
25

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL + col0 / + col0 - - 24 FROM tab2
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT + col0 DIV + - col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4602
SELECT + col0 / + - col2 FROM tab0 AS cor0
----
-8
0
0

query II rowsort
SELECT DISTINCT - col2 AS col1, + 95 FROM tab1
----
-59
95
-68
95
-96
95

query I rowsort
SELECT col0 + - 49 * - + 78 AS col0 FROM tab0
----
3837
3909
3919

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 * - - col1 / + + 81 IS NOT NULL
----

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 II rowsort
SELECT - col0, ( col0 ) + + col1 AS col0 FROM tab2 AS cor0
----
-46
97
-64
141
-75
142

query I rowsort
SELECT DISTINCT - + 59 AS col0 FROM tab1 AS cor0
----
-59

query II rowsort
SELECT ALL + 98 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
98
23
98
40
98
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT COUNT( * ) * + + 24 AS col2, COUNT( * ) FROM tab1
----
72
3

skipif mysql # not compatible
query II rowsort label-4610
SELECT COUNT ( * ) * + + 24 AS col2, COUNT ( * ) FROM tab1
----
72
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4611
SELECT - COUNT( * ) DIV 98 * - + 32 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4611
SELECT - COUNT ( * ) / 98 * - + 32 AS col1 FROM tab0
----
0

query I rowsort
SELECT col0 * + 78 * - 44 FROM tab2
----
-157872
-219648
-257400

query I rowsort
SELECT ALL 7 * 18 FROM tab0
----
126
126
126

query I rowsort
SELECT DISTINCT 37 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
37

query I rowsort
SELECT DISTINCT - + 68 * + ( + col1 ) + + col1 FROM tab0 cor0
----
-1407
-5427
-67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 84 col0, + col0 * + 48 AS col0 FROM tab1 AS cor0 WHERE + col1 / + 25 < NULL
----

query I rowsort
SELECT - ( + + col1 ) + 23 FROM tab1
----
-24
18
9

query I rowsort
SELECT ALL 25 + - + 37 + + ( col2 ) * + 44 AS col0 FROM tab1
----
2584
2980
4212

query I rowsort
SELECT + 30 * + col0 * + col2 + - - col0 - - + 80 + - col2 AS col0 FROM tab1
----
146915
150556
185743

query I rowsort
SELECT ALL + col2 + + + col0 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( 86 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + ( col0 ) FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT COUNT( * ) * + COUNT( * ) + + 91 AS col1 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-4624
SELECT COUNT ( * ) * + COUNT ( * ) + + 91 AS col1 FROM tab0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT ALL + 47 + ( - COUNT( * ) ) FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL + 47 + ( - COUNT ( * ) ) FROM tab0
----
44

query I rowsort
SELECT - col0 * - ( + 12 ) FROM tab1 AS cor0
----
1020
1092
612

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE + col1 / + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT COUNT( * ) FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT COUNT ( * ) FROM tab0, tab1 cor0
----
9

query I rowsort
SELECT DISTINCT 57 + + + col0 AS col2 FROM tab0
----
144
154
72

query I rowsort
SELECT DISTINCT + col2 * 63 + + 56 AS col2 FROM tab0
----
3017
6293
686

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT - COUNT( 77 ) * - COUNT( * ) + ( - - COUNT( * ) ) + + 38 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
128

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT - COUNT ( 77 ) * - COUNT ( * ) + ( - - COUNT ( * ) ) + + 38 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
128

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * + 19 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4633
SELECT - 68 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT - 68 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4634
SELECT CAST( NULL AS SIGNED ) + + SUM( + - col0 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT CAST ( NULL AS INTEGER ) + + SUM ( + - col0 ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4635
SELECT DISTINCT col1 AS col1, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4635
SELECT DISTINCT col1 AS col1, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 5, col0 + + 86 ) OR + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4637
SELECT + - col2 * col0 * - CAST( NULL AS SIGNED ) * - 79 AS col1, 25 AS col1 FROM tab2 cor0
----
NULL
25
NULL
25
NULL
25

skipif mysql # not compatible
query II rowsort label-4637
SELECT + - col2 * col0 * - CAST ( NULL AS INTEGER ) * - 79 AS col1, 25 AS col1 FROM tab2 cor0
----
NULL
25
NULL
25
NULL
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 4 ) IS NOT NULL
----

query I rowsort
SELECT - 63 * - - 91 FROM tab2
----
-5733
-5733
-5733

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT + COUNT( * ) FROM tab0 WHERE NOT - 89 * + + 32 / - 53 IN ( + col2, col2 )
----
3

skipif mysql # not compatible
query I rowsort label-4640
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - 89 * + + 32 / - 53 IN ( + col2, col2 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT - ( COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT - ( COUNT ( * ) ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 5 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * col0, 75 * col0 col2 FROM tab1
----
-425
6375
-4277
6825
-714
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL - ( MAX( + 44 ) ) AS col1 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - ( MAX ( + 44 ) ) AS col1 FROM tab2
----
-44

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT DISTINCT ( ( + SUM( ALL col1 ) ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT ( ( + SUM ( ALL col1 ) ) ) FROM tab0
----
103

query I rowsort
SELECT DISTINCT + ( col1 ) * 37 FROM tab1 AS cor0
----
1739
185
518

onlyif mysql # DIV for integer division: 
query II rowsort label-4649
SELECT col2 DIV + col2 + col2, 29 AS col0 FROM tab2
----
24
29
41
29
59
29

skipif mysql # not compatible
query II rowsort label-4649
SELECT col2 / + col2 + col2, 29 AS col0 FROM tab2
----
24
29
41
29
59
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT 51 * - + COUNT( * ) AS col1 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-4650
SELECT 51 * - + COUNT ( * ) AS col1 FROM tab0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT - 69 * + MIN( ALL + col0 ) FROM tab2 AS cor0
----
-3174

skipif mysql # not compatible
query I rowsort label-4651
SELECT - 69 * + MIN ( ALL + col0 ) FROM tab2 AS cor0
----
-3174

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT ALL + 95, COUNT( * ) AS col2 FROM tab2 AS cor0
----
95
3

skipif mysql # not compatible
query II rowsort label-4652
SELECT ALL + 95, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
95
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT + 76 DIV + ( - 28 ) + - col1 AS col2 FROM tab0 cor0
----
-23
-3
-83

skipif mysql # not compatible
query I rowsort label-4653
SELECT + 76 / + ( - 28 ) + - col1 AS col2 FROM tab0 cor0
----
-23
-3
-83

query I rowsort
SELECT DISTINCT - - 97 * ( 77 ) AS col2 FROM tab1 AS cor0
----
7469

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4655
SELECT DISTINCT - CAST( - - 80 AS SIGNED ), + col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-80
14
-80
47
-80
5

skipif mysql # not compatible
query II rowsort label-4655
SELECT DISTINCT - CAST ( - - 80 AS INTEGER ), + col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-80
14
-80
47
-80
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4656
SELECT DISTINCT col1 DIV - + 64 FROM tab0 AS cor0 WHERE + col2 * - col0 IS NOT NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT col1 / - + 64 FROM tab0 AS cor0 WHERE + col2 * - col0 IS NOT NULL
----
-1
0

query I rowsort
SELECT ALL + + col0 + + - col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4658
SELECT - col0 DIV CAST( - col1 AS SIGNED ), col0 FROM tab0 AS cor0
----
0
15
4
87
97
97

skipif mysql # not compatible
query II rowsort label-4658
SELECT - col0 / CAST ( - col1 AS INTEGER ), col0 FROM tab0 AS cor0
----
0
15
4
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ( - - COUNT( * ) ) * SUM( col0 ) FROM tab1 cor0
----
681

skipif mysql # not compatible
query I rowsort label-4659
SELECT ( - - COUNT ( * ) ) * SUM ( col0 ) FROM tab1 cor0
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL + 67 + - COUNT( * ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL + 67 + - COUNT ( * ) FROM tab2 AS cor0
----
64

query I rowsort
SELECT ALL + - 66 + - col2 FROM tab0 AS cor0
----
-113
-165
-76

query III rowsort
SELECT * FROM tab0 WHERE col1 + col2 - - col0 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - + col2, col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > - - 46
----

query III rowsort
SELECT * FROM tab1 WHERE - - ( + + col2 ) * - ( col2 ) * + col1 - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4666
SELECT ALL * FROM tab2 WHERE col1 + CAST( - + 46 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4666
SELECT ALL * FROM tab2 WHERE col1 + CAST ( - + 46 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT + + COUNT( * ) AS col0 FROM tab2 WHERE NULL < col0 / - col2 / + - 66
----
0

skipif mysql # not compatible
query I rowsort label-4667
SELECT + + COUNT ( * ) AS col0 FROM tab2 WHERE NULL < col0 / - col2 / + - 66
----
0

query I rowsort
SELECT - col0 + - + col2 AS col1 FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT + 61 DIV + COUNT( * ) + - 11 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4669
SELECT + 61 / + COUNT ( * ) + - 11 FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4670
SELECT DISTINCT + MIN( DISTINCT - col1 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT + MIN ( DISTINCT - col1 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT MAX( + + 27 ) * 0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4671
SELECT MAX ( + + 27 ) * 0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4672
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = + col0 + - col1 + col1 + CAST( col0 AS SIGNED ) * + 60 * + + ( col1 ) * - 43 / + + col0
----

skipif mysql # not compatible
query III rowsort label-4672
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = + col0 + - col1 + col1 + CAST ( col0 AS INTEGER ) * + 60 * + + ( col1 ) * - 43 / + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT DISTINCT CAST( NULL AS SIGNED ) - + - 88 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + - 88 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 - - 43 AS col2 FROM tab1 AS cor0
----
-42
-48
-8

query I rowsort
SELECT ALL 86 AS col1 FROM tab0 cor0
----
86
86
86

query I rowsort
SELECT ALL + ( - + ( + col1 ) ) / + 43 + + 93 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT SUM( + 42 ) AS col0 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4677
SELECT SUM ( + 42 ) AS col0 FROM tab0 AS cor0
----
126

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( 19 ) BETWEEN + col1 AND NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - + col0 AS col1 FROM tab0
----
225
7569
9409

query II rowsort
SELECT col0, col1 * + 52 FROM tab0
----
15
4212
87
1092
97
52

query I rowsort
SELECT ALL + 44 AS col0 FROM tab0
----
44
44
44

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + col1 >= NULL
----

query II rowsort
SELECT DISTINCT - - col2 AS col1, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT - + CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4684
SELECT - + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT - col2 AS col2, col2 + - - col1 AS col2 FROM tab2 WHERE NOT ( ( NOT - col2 IS NULL ) )
----

query I rowsort
SELECT - 26 AS col0 FROM tab1, tab1 cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 47d0574274146de273829785364ada39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * - col2 * + col2 * + 99 AND 6
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 49 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * col1 + - - col0 + - - col1 * 7 FROM tab0 AS cor0
----
-207
-5979
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT - + ( + COUNT( * ) ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4690
SELECT - + ( + COUNT ( * ) ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT - col1 + - - col0 FROM tab1
----
37
44
80

query I rowsort
SELECT 10 + + + col2 FROM tab0
----
109
20
57

query II rowsort
SELECT col2, - 70 AS col2 FROM tab2
----
23
-70
40
-70
58
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT DISTINCT - COUNT( * ) * - 34 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - COUNT ( * ) * - 34 FROM tab1
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT + col0 * - col2 / + col1 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT + col0 * - col2 / + col1 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4696
SELECT DISTINCT + col1 / + + col1 + CAST( NULL AS SIGNED ), - col2 + + ( - + col0 ) AS col0 FROM tab0 cor0
----
NULL
-196
NULL
-62
NULL
-97

skipif mysql # not compatible
query II rowsort label-4696
SELECT DISTINCT + col1 / + + col1 + CAST ( NULL AS INTEGER ), - col2 + + ( - + col0 ) AS col0 FROM tab0 cor0
----
NULL
-196
NULL
-62
NULL
-97

query I rowsort
SELECT - 76 - - + col1 AS col1 FROM tab0 AS cor0
----
-55
-75
5

query I rowsort
SELECT - col1 - - 69 + - + col2 * + 35 AS col0 FROM tab0 AS cor0
----
-1657
-302
-3397

query I rowsort
SELECT DISTINCT + 46 * - col2 AS col0 FROM tab1 AS cor0
----
-2714
-3128
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT - MIN( ALL - + 62 ) AS col0 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-4700
SELECT - MIN ( ALL - + 62 ) AS col0 FROM tab2
----
62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 20 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4702
SELECT ALL + COUNT( * ) DIV + MIN( - col2 ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4702
SELECT ALL + COUNT ( * ) / + MIN ( - col2 ) col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col0 * - ( + - col1 ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + 82 AS col2 FROM tab0 cor0
----
82
82
82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + col1 + - + col2 * + + col1 + + 69 ) IS NOT NULL
----

query I rowsort
SELECT + 26 * col1 - - col1 AS col1 FROM tab2 AS cor0
----
1377
1809
2079

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 66 NOT BETWEEN col1 AND - - 28
----

query I rowsort
SELECT ALL - + 97 AS col1 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT + + col0 + - col0 AS col2 FROM tab0 WHERE NOT - col2 > NULL
----

query I rowsort
SELECT 80 * - + col1 AS col0 FROM tab0
----
-1680
-6480
-80

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 23 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col2 col0 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT MIN( ALL col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT MIN ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 col2 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + col2 + + + col2 AS col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT ALL + 53 + 12 + - col2 + + - 79 * + col2 AS col0 FROM tab2 AS cor0
----
-1775
-3135
-4575

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query II rowsort
SELECT - col0, - 69 * - + col1 AS col1 FROM tab1 AS cor0
----
-51
966
-85
345
-91
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT + + SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4719
SELECT + + SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT DISTINCT - ( - COUNT( * ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4720
SELECT DISTINCT - ( - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT 59 DIV col2 + - col2 FROM tab0 AS cor0
----
-46
-5
-99

skipif mysql # not compatible
query I rowsort label-4721
SELECT 59 / col2 + - col2 FROM tab0 AS cor0
----
-46
-5
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT - - MAX( + 61 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4722
SELECT - - MAX ( + 61 ) FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4723
SELECT 61 + + 89, - SUM( ALL - col1 ) AS col1 FROM tab0
----
150
103

skipif mysql # not compatible
query II rowsort label-4723
SELECT 61 + + 89, - SUM ( ALL - col1 ) AS col1 FROM tab0
----
150
103

query I rowsort
SELECT - col0 + + - col1 + - - col2 * + + col1 FROM tab2
----
1076
2939
3744

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 55 >= 44 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT - + ( - col0 ) * - + col1 * + col1 + - - col0 FROM tab2 WHERE - + ( - CAST( NULL AS SIGNED ) ) IS NULL
----
-119600
-336600
-379392

skipif mysql # not compatible
query I rowsort label-4726
SELECT - + ( - col0 ) * - + col1 * + col1 + - - col0 FROM tab2 WHERE - + ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
-119600
-336600
-379392

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - 13 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL + MIN( col0 ) - - - 65 + - COUNT( * ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL + MIN ( col0 ) - - - 65 + - COUNT ( * ) FROM tab1 AS cor0
----
-17

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - col2 + + col2 FROM tab1 cor0 WHERE NOT + col0 * - col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT 48 DIV 33 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4731
SELECT 48 / 33 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4732
SELECT DISTINCT + COUNT( * ) DIV - 81 AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT + COUNT ( * ) / - 81 AS col1 FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT + 80, - COUNT( + - 52 ) + COUNT( DISTINCT + 91 ) AS col1 FROM tab2 AS cor0
----
80
-2

skipif mysql # not compatible
query II rowsort label-4734
SELECT + 80, - COUNT ( + - 52 ) + COUNT ( DISTINCT + 91 ) AS col1 FROM tab2 AS cor0
----
80
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT col2 * - 99 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + + + 55 + + 31 * CAST( NULL AS SIGNED ) * - 1 < NULL
----

skipif mysql # not compatible
query I rowsort label-4735
SELECT col2 * - 99 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + + + 55 + + 31 * CAST ( NULL AS INTEGER ) * - 1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT COUNT( * ) * + 51 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4736
SELECT COUNT ( * ) * + 51 FROM tab2 AS cor0
----
153

query I rowsort
SELECT 46 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col0 FROM tab2 AS cor0
----
-68
-68
-68

query II rowsort
SELECT col1 AS col0, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT col2 * + - 7 FROM tab0
----
-329
-693
-70

query I rowsort
SELECT + - col2 FROM tab2 WHERE NOT NULL BETWEEN - col2 + - + col0 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT DISTINCT + 28 * MAX( 38 ) FROM tab2
----
1064

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT + 28 * MAX ( 38 ) FROM tab2
----
1064

query I rowsort
SELECT col1 * - 91 * + col1 FROM tab0
----
-40131
-597051
-91

query I rowsort
SELECT ALL 48 * + ( + + 57 ) FROM tab1
----
2736
2736
2736

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT DISTINCT 66 DIV - col0 AS col0 FROM tab0
----
-4
0

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT 66 / - col0 AS col0 FROM tab0
----
-4
0

query I rowsort
SELECT 1 * - + 20 FROM tab1
----
-20
-20
-20

query I rowsort
SELECT 19 * col0 FROM tab2
----
1216
1425
874

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT + - COUNT( * ) + + - COUNT( - + 11 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT + - COUNT ( * ) + + - COUNT ( - + 11 ) FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT CAST( NULL AS SIGNED ) * - 37 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT CAST ( NULL AS INTEGER ) * - 37 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + + 41 AS col2 FROM tab1
----
2091
3485
3731

query I rowsort
SELECT DISTINCT + - ( - 10 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL + + 57 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT - + col0 + - 58 AS col2 FROM tab1 AS cor0
----
-109
-143
-149

query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT ALL - ( - ( 28 ) ) + - 35 FROM tab2 AS cor0
----
-7
-7
-7

query II rowsort
SELECT DISTINCT + 96 AS col0, - col2 AS col2 FROM tab0 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT DISTINCT col1 + + + 65 AS col1, - 95 FROM tab0
----
146
-95
66
-95
86
-95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT - col1 * - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 33 FROM tab0 WHERE 58 IS NULL
----

query I rowsort
SELECT ALL + col0 * - 20 + + - 84 FROM tab1 WHERE + ( col0 ) IS NULL
----

query I rowsort
SELECT + col0 - - - col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT 32 FROM tab2 AS cor0 WHERE - 40 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT DISTINCT ( + ( + + COUNT( * ) ) ) * - - MAX( 10 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT ( + ( + + COUNT ( * ) ) ) * - - MAX ( 10 ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col1 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4767
SELECT ALL + + COUNT( + CAST( + 62 AS SIGNED ) ) * - 37 AS col2 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + + COUNT ( + CAST ( + 62 AS INTEGER ) ) * - 37 AS col2 FROM tab2 AS cor0
----
-111

query II rowsort
SELECT DISTINCT - col0 * + - 61 AS col1, col2 FROM tab0 AS cor0
----
5307
10
5917
99
915
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > + col2 - - col0
----

query I rowsort
SELECT + 58 * + 88 * + + 59 + - 85 AS col2 FROM tab1 AS cor0
----
301051
301051
301051

query I rowsort
SELECT DISTINCT - col1 * - 55 * - 10 FROM tab1 AS cor0
----
-25850
-2750
-7700

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 <> NULL
----

query I rowsort
SELECT ALL - ( + + 59 ) + - + col1 AS col0 FROM tab0
----
-140
-60
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + col1 * + 24 col2 FROM tab2
----
46
1224
64
1848
75
1608

query I rowsort
SELECT ALL + col2 * + col0 * - ( + col1 ) FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT - + col1 + - - 68 * + col2 FROM tab2 AS cor0
----
1513
2643
3877

query I rowsort
SELECT DISTINCT + col1 + + 55 + 15 FROM tab2 AS cor0
----
121
137
147

query II rowsort
SELECT ALL - 39 + col1 AS col1, + col0 FROM tab0
----
-18
87
-38
97
42
15

query I rowsort
SELECT ( + 9 ) * ( col2 ) * 62 + + col2 FROM tab2
----
12857
22360
32422

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT + MIN( + 21 ) col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4780
SELECT DISTINCT + MIN ( + 21 ) col0 FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT ALL - MAX( ALL - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL - MAX ( ALL - col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4782
SELECT DISTINCT + COUNT( ALL col1 ), COUNT( * ) FROM tab2 WHERE NOT - col2 IS NULL AND NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4782
SELECT DISTINCT + COUNT ( ALL col1 ), COUNT ( * ) FROM tab2 WHERE NOT - col2 IS NULL AND NULL IS NOT NULL
----
0
0

query II rowsort
SELECT col2 AS col2, - col0 FROM tab1 WHERE NULL IS NULL
----
59
-85
68
-91
96
-51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 1 + col2 IS NULL AND col0 > - - col0
----

query I rowsort
SELECT + col2 + + + ( 80 ) FROM tab0
----
127
179
90

query I rowsort
SELECT DISTINCT + 75 + + + 34 FROM tab1
----
109

query I rowsort
SELECT DISTINCT 90 + + col1 AS col2 FROM tab0
----
111
171
91

query I rowsort
SELECT 53 + - col2 AS col0 FROM tab2
----
-5
13
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL 22 - + - COUNT( * ) AS col1 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL 22 - + - COUNT ( * ) AS col1 FROM tab2
----
25

query I rowsort
SELECT ALL - - 5 AS col0 FROM tab1 AS cor0 WHERE NOT 80 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT - MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4791
SELECT - MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 col0 FROM tab1 AS cor0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, ( + - col0 ) - - 46 col0 FROM tab1 AS cor0
----
59
-39
68
-45
96
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT DISTINCT - + MAX( + - ( ( + + col1 ) ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT - + MAX ( + - ( ( + + col1 ) ) ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 24 / + col0 < - 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT - COUNT( * ) * COUNT( * ) AS col2 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4796
SELECT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT + ( COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 65 col1, + 31 AS col0 FROM tab1
----
-65
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT DISTINCT - - 54 * COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
162

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT - - 54 * COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
162

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 93 AND col0 - col1 - - - col2 * 93
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 88 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 + + + col1 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + ( col2 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * 98 * + 45 FROM tab1
----
224910
374850
401310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) / - 5 + + ( + + 95 ) + + - 34 + + 29 - - AVG ( + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) / - 5 + + ( + + 95 ) + + - 34 + + 29 - - AVG ( + col1 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4806
SELECT DISTINCT COUNT( DISTINCT + col1 ) * MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT COUNT ( DISTINCT + col1 ) * MAX ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4807
SELECT - col1 * 17 + - 90 + + col0 DIV - - 52 AS col1 FROM tab2
----
-1228
-1398
-957

skipif mysql # not compatible
query I rowsort label-4807
SELECT - col1 * 17 + - 90 + + col0 / - - 52 AS col1 FROM tab2
----
-1228
-1398
-957

query III rowsort
SELECT * FROM tab1 WHERE ( 11 * - col2 <> NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4809
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4810
SELECT DISTINCT + COUNT( * ) DIV + - MIN( + col2 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT + COUNT ( * ) / + - MIN ( + col2 ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - + 81 * + - col2 + - col1 FROM tab0 cor0
----
3726
789
8018

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT DISTINCT MIN( + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT MIN ( + col1 ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT + col2 + - 45 AS col0 FROM tab1 AS cor0
----
14
23
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4815
SELECT DISTINCT - - col0 DIV 55 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT - - col0 / 55 AS col2 FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - COUNT( * ) * 84 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-4816
SELECT - COUNT ( * ) * 84 FROM tab1 AS cor0
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-4817
SELECT - - col1 DIV col2 + + col2 FROM tab0 AS cor0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-4817
SELECT - - col1 / col2 + + col2 FROM tab0 AS cor0
----
12
48
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT COUNT( DISTINCT - + 36 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT COUNT ( DISTINCT - + 36 ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 12 * - col2 * 12 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 12 * - col2 * 12 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT + 31 DIV - 70 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4820
SELECT + 31 / - 70 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT ALL - 18 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - 18 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + col1 * - - 25 + + 24 AS col0 FROM tab0
----
146
2064
636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT col0 * + CAST( + 55 AS SIGNED ) FROM tab2
----
2530
3520
4125

skipif mysql # not compatible
query I rowsort label-4823
SELECT col0 * + CAST ( + 55 AS INTEGER ) FROM tab2
----
2530
3520
4125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - 55 * col0 AS col2 FROM tab2 WHERE NULL NOT BETWEEN col0 + + 5 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - - col1
----

query I rowsort
SELECT + + AVG ( col0 ) FROM tab0 cor0 WHERE NOT + 97 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - - COUNT( * ) * + 25 - + 23 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-4828
SELECT - - COUNT ( * ) * + 25 - + 23 FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + 5 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT - 3 * + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT - 3 * + COUNT ( * ) FROM tab1
----
-9

query II rowsort
SELECT DISTINCT ( - - ( + + col1 ) ), + col0 - 66 AS col2 FROM tab0 AS cor0
----
1
31
21
21
81
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT DISTINCT MIN( ALL - 27 ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT MIN ( ALL - 27 ) FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT + + COUNT( * ) * MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4834
SELECT + + COUNT ( * ) * MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
-30

query II rowsort
SELECT + col0 AS col2, col2 AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT - ( - 26 ) FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT + COUNT( ALL col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4837
SELECT + COUNT ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 cor0 WHERE 70 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT + - COUNT( 9 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4839
SELECT + - COUNT ( 9 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL - SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL - SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query II rowsort label-4841
SELECT - - 16, + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 99 IS NOT NULL
----
16
0

skipif mysql # not compatible
query II rowsort label-4841
SELECT - - 16, + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 99 IS NOT NULL
----
16
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4842
SELECT * FROM tab1 WHERE - - col2 < col1 * - - col0 * + - CAST( NULL AS DECIMAL ) + + 24
----

skipif mysql # not compatible
query III rowsort label-4842
SELECT * FROM tab1 WHERE - - col2 < col1 * - - col0 * + - CAST ( NULL AS REAL ) + + 24
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 NOT BETWEEN 21 * - + 97 / + col1 AND 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT - 89 * - - COUNT( * ) + + 97 FROM tab1
----
-170

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - 89 * - - COUNT ( * ) + + 97 FROM tab1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 WHERE - col2 < - col2
----
0

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 WHERE - col2 < - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT + CAST( NULL AS SIGNED ) + + + col1 AS col0 FROM tab0 WHERE ( NULL ) < col0
----

skipif mysql # not compatible
query I rowsort label-4847
SELECT + CAST ( NULL AS INTEGER ) + + + col1 AS col0 FROM tab0 WHERE ( NULL ) < col0
----

query I rowsort
SELECT DISTINCT col1 * - + col2 AS col0 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT col2 + - 10 FROM tab0
----
0
37
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( - ( - + col2 ) ) col0 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4851
SELECT DISTINCT - col2 * - col0 DIV + CAST( - - col0 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - col2 * - col0 / + CAST ( - - col0 AS INTEGER ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT - - MAX( DISTINCT - - 9 ) * COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col2 - + col2 IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-4852
SELECT - - MAX ( DISTINCT - - 9 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col2 - + col2 IS NOT NULL
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT - 59 + COUNT( * ) FROM tab2 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4853
SELECT - 59 + COUNT ( * ) FROM tab2 cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT - col2 * - col0 * + CAST( NULL AS SIGNED ) + col1 * + - col2 + + col2 * + 88 AS col0 FROM tab1 AS cor0 WHERE ( NOT col1 - + - col1 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4854
SELECT - col2 * - col0 * + CAST ( NULL AS INTEGER ) + col1 * + - col2 + + col2 * + 88 AS col0 FROM tab1 AS cor0 WHERE ( NOT col1 - + - col1 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + ( + ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 12 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + + + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT DISTINCT COUNT( DISTINCT - col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT COUNT ( DISTINCT - col0 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ( - MIN( DISTINCT + col0 ) ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4859
SELECT ( - MIN ( DISTINCT + col0 ) ) AS col2 FROM tab2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4860
SELECT MAX( + CAST( + + col2 AS SIGNED ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4860
SELECT MAX ( + CAST ( + + col2 AS INTEGER ) ) FROM tab1
----
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - 17 * 56 AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4862
SELECT ALL MIN( - 51 ) DIV - 22 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL MIN ( - 51 ) / - 22 FROM tab0
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4863
SELECT ALL - + 77 * + col0 + - + 19 - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL - + 77 * + col0 + - + 19 - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 - - + col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT + 47 * CAST( NULL AS SIGNED ) - 8 / + 87 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT + 47 * CAST ( NULL AS INTEGER ) - 8 / + 87 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 69 - - - col1 AS col0 FROM tab2 AS cor0
----
-8
18
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 85 + ( + + col1 ) + + col2 * - col0 * ( - + col0 ) * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - 1 ) FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> + - col2 / - - 41 + + + col0 + 94
----

query I rowsort
SELECT + ( - 47 ) FROM tab1
----
-47
-47
-47

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <= - ( col2 ) * + col1 + + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT COUNT( * ) * - + COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4872
SELECT COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4873
SELECT DISTINCT + CAST( - col1 AS SIGNED ) DIV - + 29 - + + 56 FROM tab2
----
-54
-55

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) / - + 29 - + + 56 FROM tab2
----
-54
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4874
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0, + COUNT( * ) * - + COUNT( * ) AS col2 FROM tab0
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-4874
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0, + COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab0
----
NULL
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4875
SELECT col2 * - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT col2 * - + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 80 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + 56 FROM tab0 cor0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4878
SELECT DISTINCT - + col0 * + CAST( NULL AS SIGNED ) - - + col2 * 10 * + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT - + col0 * + CAST ( NULL AS INTEGER ) - - + col2 * 10 * + col2 AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * 45 + - col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
-2093
-2920
-3433

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT - 83 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) >= ( - col1 * - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * - ( 60 ) < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT - COUNT( * ) FROM tab1 WHERE - col2 * - 32 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT - COUNT ( * ) FROM tab1 WHERE - col2 * - 32 = ( NULL )
----
0

query I rowsort
SELECT - col1 * + ( - 99 ) FROM tab2
----
5049
6633
7623

query I rowsort
SELECT + ( + col0 ) * - col1 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT col2 - + ( - col2 ) FROM tab2
----
116
46
80

query I rowsort
SELECT + 99 * - 88 FROM tab0
----
-8712
-8712
-8712

query I rowsort
SELECT + ( col2 ) * 39 FROM tab1
----
2301
2652
3744

query I rowsort
SELECT ALL 47 AS col1 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + 9 AS col0 FROM tab0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT ALL col1 * 31 FROM tab1
----
1457
155
434

query I rowsort
SELECT ALL col0 - col2 FROM tab0 WHERE ( col1 ) <= - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 8 col1 FROM tab0
----
-168
-648
-8

query I rowsort
SELECT DISTINCT 94 * 37 + col2 FROM tab2
----
3501
3518
3536

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col1 / col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE 66 * col2 - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4898
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE 66 * col2 - col0 IS NULL
----
0

query I rowsort
SELECT ALL col0 * ( + 53 ) AS col1 FROM tab1
----
2703
4505
4823

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4900
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 80 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col2 - + col2 * + col1
----

query I rowsort
SELECT col2 * + 57 - + col2 FROM tab0 AS cor0
----
2632
5544
560

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE 7 + - ( col2 ) IS NULL
----

query I rowsort
SELECT - ( - 42 ) - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-2304
-4886
-4983

query I rowsort
SELECT - col0 * 44 + - 47 AS col1 FROM tab1 AS cor0 WHERE 31 BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4907
SELECT ALL CAST( NULL AS DECIMAL ) * col2 + CAST( + ( - 1 ) AS DECIMAL ) * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL CAST ( NULL AS REAL ) * col2 + CAST ( + ( - 1 ) AS REAL ) * - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4908
SELECT DISTINCT * FROM tab1 WHERE 98 / CAST( NULL AS SIGNED ) + + 64 <> NULL
----

skipif mysql # not compatible
query III rowsort label-4908
SELECT DISTINCT * FROM tab1 WHERE 98 / CAST ( NULL AS INTEGER ) + + 64 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( ( - col2 ) ) IS NULL
----

query I rowsort
SELECT ALL col1 * col2 AS col1 FROM tab0 AS cor0 WHERE 98 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT - 79 * COUNT( * ) FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-4912
SELECT - 79 * COUNT ( * ) FROM tab0 AS cor0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL MAX( DISTINCT ( - col2 ) ) * 69 FROM tab1 AS cor0
----
-4071

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL MAX ( DISTINCT ( - col2 ) ) * 69 FROM tab1 AS cor0
----
-4071

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4914
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 42 ) BETWEEN - 28 AND + CAST( NULL AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4914
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 42 ) BETWEEN - 28 AND + CAST ( NULL AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 3 / col1 + col1 * 90 < - 11 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT MAX( - col2 ) * COUNT( + col2 ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-4916
SELECT MAX ( - col2 ) * COUNT ( + col2 ) FROM tab1 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL + COUNT( ALL - col0 ) * ( + COUNT( * ) * 64 ) FROM tab1 AS cor0
----
576

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + COUNT ( ALL - col0 ) * ( + COUNT ( * ) * 64 ) FROM tab1 AS cor0
----
576

query I rowsort
SELECT + col1 * 33 FROM tab1 AS cor0
----
1551
165
462

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT ALL 53 * + COUNT( * ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL 53 * + COUNT ( * ) FROM tab2
----
159

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT 45 NOT BETWEEN col0 AND col0
----

query I rowsort
SELECT DISTINCT - 39 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 6 * - col0 <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - 96 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 + 28 col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT DISTINCT col0 DIV 7 FROM tab0
----
12
13
2

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT col0 / 7 FROM tab0
----
12
13
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 col1 FROM tab2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4928
SELECT col2 DIV + ( 67 ) FROM tab1 WHERE NOT col2 * + 2 + + col1 IS NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4928
SELECT col2 / + ( 67 ) FROM tab1 WHERE NOT col2 * + 2 + + col1 IS NULL
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4929
SELECT ALL CAST( NULL AS SIGNED ) / + - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL CAST ( NULL AS INTEGER ) / + - COUNT ( * ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - COUNT( * ) * - 38 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-4930
SELECT - COUNT ( * ) * - 38 FROM tab0
----
114

query I rowsort
SELECT ALL + col2 * 25 + col1 AS col1 FROM tab2 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col1 + ( col0 ) ) AND ( 79 )
----

query I rowsort
SELECT - - col0 * 27 AS col1 FROM tab1 AS cor0
----
1377
2295
2457

query I rowsort
SELECT ALL - col1 * col0 * - col2 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT + COUNT( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4936
SELECT + COUNT ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL + MAX( + + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL + MAX ( + + col2 ) FROM tab0
----
99

query I rowsort
SELECT - + 23 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT - col0 + + col2 * + - col0 * 82 FROM tab0
----
-57825
-71427
-787543

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 29 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT - + CAST( + 21 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

skipif mysql # not compatible
query I rowsort label-4942
SELECT - + CAST ( + 21 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT COUNT( * ) * - SUM( 7 ) AS col0 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-4943
SELECT COUNT ( * ) * - SUM ( 7 ) AS col0 FROM tab2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT + SUM( DISTINCT - - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4944
SELECT + SUM ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT - 74 * + 96 AS col1 FROM tab0 AS cor0
----
-7104
-7104
-7104

onlyif mysql # DIV for integer division: 
query II rowsort label-4946
SELECT - - col2 AS col0, 68 DIV 22 FROM tab0 AS cor0
----
10
3
47
3
99
3

skipif mysql # not compatible
query II rowsort label-4946
SELECT - - col2 AS col0, 68 / 22 FROM tab0 AS cor0
----
10
3
47
3
99
3

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE 35 / - col1 < 86 + col2
----
51
85
91

query I rowsort
SELECT col2 * - 71 * - + col1 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
221240
280256
84341

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT DISTINCT - + MIN( 60 ) AS col0 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT - + MIN ( 60 ) AS col0 FROM tab1 AS cor0
----
-60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT DISTINCT - COUNT( + 11 ) + + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT + col2 + 99 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT - COUNT ( + 11 ) + + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT + col2 + 99 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 + + col0 col1 FROM tab1 cor0 WHERE NULL <= ( col1 ) OR NOT ( - 52 ) >= + 36
----
109
115
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 91 * + + col1 + - + col2 col2 FROM tab0 AS cor0
----
-8
1901
7324

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 ) IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 BETWEEN col2 * 23 AND ( + ( 3 ) * 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT SUM( - - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4956
SELECT SUM ( - - col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT ALL + CAST( NULL AS SIGNED ) + ( + 16 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL + CAST ( NULL AS INTEGER ) + ( + 16 ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + 16 ) IS NULL
----

query I rowsort
SELECT ALL 29 * - col2 + + col2 FROM tab0
----
-1316
-2772
-280

query I rowsort
SELECT 44 - - col1 * + 95 AS col2 FROM tab0
----
139
2039
7739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT DISTINCT + 36 + col2 / + - col0 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT + 36 + col2 / + - col0 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 10 + col1 AS col0 FROM tab1
----
15
24
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4964
SELECT COUNT( * ) + + - 75 AS col1, MAX( DISTINCT col1 ) * + 19 AS col0 FROM tab2
----
-72
1463

skipif mysql # not compatible
query II rowsort label-4964
SELECT COUNT ( * ) + + - 75 AS col1, MAX ( DISTINCT col1 ) * + 19 AS col0 FROM tab2
----
-72
1463

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - col1 + - 67 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 63 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT col0 * 23 - + 94 AS col0 FROM tab0 cor0
----
1907
2137
251

query I rowsort
SELECT DISTINCT - col0 * + + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT col1 + - 79 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 * 77 + - - ( - col2 ) NOT BETWEEN ( - col1 * col2 ) AND + col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4970
SELECT col1 + - 79 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 * 77 + - - ( - col2 ) NOT BETWEEN ( - col1 * col2 ) AND + col1 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE - col1 + + 96 <= + 46
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL + + MIN( DISTINCT col2 ) * + COUNT( * ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + + MIN ( DISTINCT col2 ) * + COUNT ( * ) FROM tab1 AS cor0
----
177

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < - col2
----

query I rowsort
SELECT + ( + 25 ) * + col1 FROM tab0
----
2025
25
525

query I rowsort
SELECT DISTINCT + 3 * - 10 * ( + 75 ) AS col1 FROM tab0
----
-2250

query II rowsort
SELECT ALL col2 AS col2, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4977
SELECT ALL COUNT( * ), + 66 + 67 * + + COUNT( * ) AS col2 FROM tab1
----
3
267

skipif mysql # not compatible
query II rowsort label-4977
SELECT ALL COUNT ( * ), + 66 + 67 * + + COUNT ( * ) AS col2 FROM tab1
----
3
267

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT + 17 * + + COUNT( * ) col2 FROM tab0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4978
SELECT + 17 * + + COUNT ( * ) col2 FROM tab0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 45 col1, 83 AS col2 FROM tab2
----
45
83
45
83
45
83

query I rowsort
SELECT - ( + + col0 ) * 0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT + 15 * COUNT( * ) col2 FROM tab2
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4981
SELECT + 15 * COUNT ( * ) col2 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT COUNT( ALL - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT COUNT ( ALL - col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT + + COUNT( * ) * 55 AS col0 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-4983
SELECT + + COUNT ( * ) * 55 AS col0 FROM tab1 AS cor0
----
165

query II rowsort
SELECT ALL + ( + - 48 ), + col1 FROM tab0 AS cor0 WHERE NULL >= + 5
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4985
SELECT ALL - - col1 + + 60 + - col0 DIV + col0, + 90 AS col1 FROM tab2 AS cor0
----
110
90
126
90
136
90

skipif mysql # not compatible
query II rowsort label-4985
SELECT ALL - - col1 + + 60 + - col0 / + col0, + 90 AS col1 FROM tab2 AS cor0
----
110
90
126
90
136
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 * - - 31 + col1 ) NOT IN ( col1 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL <> col1
----

query I rowsort
SELECT DISTINCT - - 70 + col1 FROM tab2 AS cor0
----
121
137
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT SUM( col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT SUM ( col1 ) AS col2 FROM tab1
----
66

query III rowsort
SELECT * FROM tab2 WHERE NOT 89 - + + col2 - + 6 * + - 18 IS NOT NULL
----

query II rowsort
SELECT - col0 * col2 AS col1, - col0 + - + col1 AS col2 FROM tab0
----
-705
-96
-870
-108
-9603
-98

query I rowsort
SELECT + 64 * - - col2 + + col0 + 47 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT ALL ( + 87 ) + + MAX( col1 ) * - - SUM( ALL 67 ) FROM tab0
----
16368

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL ( + 87 ) + + MAX ( col1 ) * - - SUM ( ALL 67 ) FROM tab0
----
16368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4994
SELECT ALL CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL <= - col2 + - - col0 )
----

query I rowsort
SELECT DISTINCT - + col0 * + + col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - 53 + - + 68 - + ( - 39 ) FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ALL + 87 * + col1 FROM tab2 cor0
----
4437
5829
6699

onlyif mysql # DIV for integer division: 
query I rowsort label-4999
SELECT col0 + + col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
10
87
97

skipif mysql # not compatible
query I rowsort label-4999
SELECT col0 + + col1 / - col0 AS col1 FROM tab0 AS cor0
----
10
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col1 FROM tab2 AS cor0 WHERE col2 + + 60 IS NOT NULL
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5001
SELECT + CAST( - col2 AS SIGNED ) + + col0, - col1 AS col2 FROM tab0 AS cor0
----
-2
-1
-32
-81
77
-21

skipif mysql # not compatible
query II rowsort label-5001
SELECT + CAST ( - col2 AS INTEGER ) + + col0, - col1 AS col2 FROM tab0 AS cor0
----
-2
-1
-32
-81
77
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT + COUNT( * ) + 9 FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-5002
SELECT + COUNT ( * ) + 9 FROM tab0 cor0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT col1 * + + col2 + col2 DIV + + ( + ( col0 ) ) FROM tab1 AS cor0
----
1345
295
3196

skipif mysql # not compatible
query I rowsort label-5003
SELECT col1 * + + col2 + col2 / + + ( + ( col0 ) ) FROM tab1 AS cor0
----
1345
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( + col0 ) ) col1 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT col1 + + - col2 + + - col2 AS col2 FROM tab0
----
-13
-197
1

query I rowsort
SELECT + 15 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 27 * + - col0 FROM tab2
----
-1242
-1728
-2025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 - + col0 * col2 + + col0 col2 FROM tab1 AS cor0
----
-4867
-4952
-6119

query II rowsort
SELECT DISTINCT + + col2 * + ( - 91 ) - col0 * + col2 * 79 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
-395520
-51
-401554
-85
-495040
-91

query II rowsort
SELECT - + col1, - col2 AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5011
SELECT - 79 - + MIN( - - 18 ) AS col2, - ( 46 ) FROM tab2 AS cor0
----
-97
-46

skipif mysql # not compatible
query II rowsort label-5011
SELECT - 79 - + MIN ( - - 18 ) AS col2, - ( 46 ) FROM tab2 AS cor0
----
-97
-46

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 90 IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT + - col2 * + col2 - - col0 NOT IN ( 50 + - 69 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 BETWEEN + ( - col0 ) * 10 + + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT + COUNT( DISTINCT - + ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT + COUNT ( DISTINCT - + ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 27 + + ( - col0 ) + - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT - - MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5017
SELECT - - MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT DISTINCT MIN( ALL - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT 37 * - col1 * + - col1 AS col2 FROM tab1 cor0
----
7252
81733
925

query I rowsort
SELECT DISTINCT + - 83 * - col1 + + col1 FROM tab0 AS cor0
----
1764
6804
84

query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( 95 ) IS NOT NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT - + 95 IS NOT NULL
----

query I rowsort
SELECT col1 * + ( + 89 ) * + col1 + 60 AS col1 FROM tab0
----
149
39309
583989

onlyif mysql # DIV for integer division: 
query I rowsort label-5024
SELECT + col2 DIV - 18 FROM tab0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-5024
SELECT + col2 / - 18 FROM tab0
----
-2
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT DISTINCT + MIN( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT + MIN ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL - - 76 * - - 74 + + 65 * - col2 FROM tab2 AS cor0
----
1854
3024
4129

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL < + 67 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - 43 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5028
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - 43 > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 38 * + col0, - col2 * col1 + + - 74 col1 FROM tab1 AS cor0
----
-1938
-1418
-3230
-369
-3458
-3270

query I rowsort
SELECT ALL - + col0 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 38 * + col0 col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-3306
-3686
-570

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT DISTINCT col1 DIV - + col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT col1 / - + col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT + - 19 * ( + 82 ) FROM tab0 AS cor0
----
-1558
-1558
-1558

query I rowsort
SELECT ALL + ( - + col0 ) * col1 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-5036
SELECT 17 DIV 23 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5036
SELECT 17 / 23 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5037
SELECT DISTINCT + col0 DIV col1 + - col1 FROM tab0 AS cor0
----
-17
-81
96

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT + col0 / col1 + - col1 FROM tab0 AS cor0
----
-17
-81
96

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE - col2 * + ( 76 ) + 13 + - col2 / + col0 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT DISTINCT 2 + + + 42 * + col0 - + - CAST( - col2 AS SIGNED ) col0 FROM tab1 cor0
----
2048
3513
3756

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5039
SELECT DISTINCT 2 + + + 42 * + col0 - + - CAST ( - col2 AS INTEGER ) col0 FROM tab1 cor0
----
2048
3513
3756

query I rowsort
SELECT ALL + 60 + + col2 * col2 AS col1 FROM tab0
----
160
2269
9861

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT 21 * + 60 + - SUM( ALL + - col0 ) FROM tab1
----
1487

skipif mysql # not compatible
query I rowsort label-5041
SELECT 21 * + 60 + - SUM ( ALL + - col0 ) FROM tab1
----
1487

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT + 70 + - + SUM( DISTINCT + col1 ) * - + 37 AS col0 FROM tab2
----
7285

skipif mysql # not compatible
query I rowsort label-5042
SELECT + 70 + - + SUM ( DISTINCT + col1 ) * - + 37 AS col0 FROM tab2
----
7285

query I rowsort
SELECT - 36 + + + 92 FROM tab2
----
56
56
56

query II rowsort
SELECT DISTINCT col0 + + col0 AS col0, - col1 FROM tab1
----
102
-14
170
-5
182
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT ALL - col0 DIV col1 * - col2 FROM tab2
----
0
0
58

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL - col0 / col1 * - col2 FROM tab2
----
0
0
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * col1 * col2 IN ( col2 * - ( + 85 ) * + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 49 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1127
1960
2842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT ( - + col2 ) FROM tab1 AS cor0 WHERE NOT col0 + - col2 / CAST( NULL AS SIGNED ) * + 38 * - - col1 / col2 IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5049
SELECT ( - + col2 ) FROM tab1 AS cor0 WHERE NOT col0 + - col2 / CAST ( NULL AS INTEGER ) * + 38 * - - col1 / col2 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - 20 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-20
-20
-20

query II rowsort
SELECT 15 AS col2, 0 AS col1 FROM tab1
----
15
0
15
0
15
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT + MIN( ALL 34 ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-5052
SELECT + MIN ( ALL 34 ) FROM tab2
----
34

query II rowsort
SELECT 2, col0 FROM tab0
----
2
15
2
87
2
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5054
SELECT * FROM tab1 AS cor0 WHERE NOT + 11 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5054
SELECT * FROM tab1 AS cor0 WHERE NOT + 11 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + - 41 * + + ( 22 ) + col2 NOT IN ( - 64 + + 2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5056
SELECT - 33 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-5056
SELECT - 33 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ALL + ( + - MAX( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL + ( + - MAX ( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT ALL col2 AS col0, col2 - - col1 FROM tab0 AS cor0
----
10
31
47
128
99
100

query I rowsort
SELECT ALL - - 10 AS col1 FROM tab0 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5060
SELECT ALL + COUNT( DISTINCT + col1 ) AS col0, - 56 FROM tab2
----
3
-56

skipif mysql # not compatible
query II rowsort label-5060
SELECT ALL + COUNT ( DISTINCT + col1 ) AS col0, - 56 FROM tab2
----
3
-56

query I rowsort
SELECT ALL + 8 + + col2 + - col1 FROM tab2
----
-1
-20
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5062
SELECT DISTINCT - SUM( DISTINCT + col2 ), + 34 AS col0 FROM tab1
----
-223
34

skipif mysql # not compatible
query II rowsort label-5062
SELECT DISTINCT - SUM ( DISTINCT + col2 ), + 34 AS col0 FROM tab1
----
-223
34

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT - col1 IN ( - col1 / - - col2 )
----
1
21
81

query I rowsort
SELECT 76 * - col0 AS col0 FROM tab1
----
-3876
-6460
-6916

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL IN ( + - col0 )
----

query I rowsort
SELECT ALL 59 * 7 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT - 36 * - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
324

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5067
SELECT - 36 * - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
324

query I rowsort
SELECT DISTINCT - col0 + + 5 AS col2 FROM tab1
----
-46
-80
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 77 + - + 3 / - 64 col0 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + - col1 - 13 FROM tab0 cor0
----
-14
-34
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5071
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 58 AND + + 27
----
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 58 AND + + 27
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5073
SELECT DISTINCT + SUM( - + 69 ) DIV - MIN( DISTINCT 80 ) col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5073
SELECT DISTINCT + SUM ( - + 69 ) / - MIN ( DISTINCT 80 ) col0 FROM tab2 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + - col0 + col1 * col0 + - col0 col2 FROM tab0 AS cor0 WHERE NOT 4 IS NULL
----
-5829
-9409
975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT + 98 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT + 98 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT COUNT( ALL + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5076
SELECT COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + ( + + 89 ) + - + col2 FROM tab2 AS cor0
----
31
49
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT - COUNT( * ) * 88 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-5078
SELECT - COUNT ( * ) * 88 FROM tab2
----
-264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, col0 * + - col1 col1 FROM tab2
----
46
-2346
64
-4928
75
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT ALL + COUNT( * ) * 56 FROM tab1 WHERE + ( - col2 ) <> ( + col2 )
----
168

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL + COUNT ( * ) * 56 FROM tab1 WHERE + ( - col2 ) <> ( + col2 )
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-5081
SELECT DISTINCT + 75 + COUNT( * ) col0, - 15 col0 FROM tab1
----
78
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5081
SELECT DISTINCT + 75 + COUNT ( * ) col0, - 15 col0 FROM tab1
----
78
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT ALL 38 DIV col0 + + col2 * - col1 * + 0 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL 38 / col0 + + col2 * - col1 * + 0 AS col0 FROM tab0
----
0
0
2

query I rowsort
SELECT DISTINCT ( - col2 ) * - col2 + + col2 FROM tab2
----
1640
3422
552

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT MAX( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5084
SELECT MAX ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - + ( - - 32 ) * col1 FROM tab1 AS cor0
----
-1504
-160
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT + - 29 * - 37 * + COUNT( * ) FROM tab1 AS cor0
----
3219

skipif mysql # not compatible
query I rowsort label-5086
SELECT + - 29 * - 37 * + COUNT ( * ) FROM tab1 AS cor0
----
3219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab1 AS cor0 WHERE + col0 * - ( - col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ALL + + 51 + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
42

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL + + 51 + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
42

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 JOIN tab0 AS cor1 ON NOT - 17 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 >= - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > col1 + 61
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 59 - + 29 * + - col2 ) NOT IN ( 75 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5093
SELECT ALL - - MAX( - 12 ) AS col2, + COUNT( * ) FROM tab1 cor0
----
-12
3

skipif mysql # not compatible
query II rowsort label-5093
SELECT ALL - - MAX ( - 12 ) AS col2, + COUNT ( * ) FROM tab1 cor0
----
-12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT - SUM( - 29 ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5094
SELECT - SUM ( - 29 ) FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + - COUNT( DISTINCT + 38 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5095
SELECT + - COUNT ( DISTINCT + 38 ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT DISTINCT - + MAX( DISTINCT + - col1 ) + 19 col2 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5096
SELECT DISTINCT - + MAX ( DISTINCT + - col1 ) + 19 col2 FROM tab2 AS cor0
----
70

query I rowsort
SELECT ALL - col2 + - - 90 AS col1 FROM tab1 AS cor0
----
-6
22
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT - MAX( - col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5098
SELECT - MAX ( - col2 ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT 75 * col0 * - col0 FROM tab2 cor0
----
-158700
-307200
-421875

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5100
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1, + 28 AS col2 FROM tab0
----
NULL
28
NULL
28
NULL
28

skipif mysql # not compatible
query II rowsort label-5100
SELECT ALL + CAST ( NULL AS REAL ) AS col1, + 28 AS col2 FROM tab0
----
NULL
28
NULL
28
NULL
28

query I rowsort
SELECT ALL - + col1 * col1 + + col0 FROM tab0 WHERE NOT 54 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 > - - col2 / - col1
----

query II rowsort
SELECT 82 AS col1, + col2 AS col2 FROM tab2
----
82
23
82
40
82
58

query I rowsort
SELECT DISTINCT col1 + col1 + col0 FROM tab2
----
148
209
218

query I rowsort
SELECT - 25 + - 4 AS col0 FROM tab2 AS cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT ALL - - MIN( ALL 36 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL - - MIN ( ALL 36 ) FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT ALL - + COUNT( - + 83 ) * + - 16 + - COUNT( * ) AS col0 FROM tab2 cor0
----
45

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - + COUNT ( - + 83 ) * + - 16 + - COUNT ( * ) AS col0 FROM tab2 cor0
----
45

query I rowsort
SELECT DISTINCT col0 + + 65 * 84 + 0 AS col2 FROM tab2
----
5506
5524
5535

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT COUNT( + 6 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5109
SELECT COUNT ( + 6 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col2 * col2 + col2 + - - 44 - + 59 FROM tab1
----
-3437
-4571
-9135

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= ( - 38 )
----

query I rowsort
SELECT + - 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5113
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) DIV - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query II rowsort
SELECT ALL - 79 / 18 AS col2, + col0 + col1 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) = - ( - 35 ) * + col0
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE ( 17 NOT IN ( + 15 ) )
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col2 FROM tab2 cor0 WHERE NOT - 97 * + ( + - col1 ) + + col1 IS NOT NULL
----

query I rowsort
SELECT + + col0 + - 34 * 89 AS col2 FROM tab2 AS cor0
----
-2951
-2962
-2980

query I rowsort
SELECT ALL col1 * - - 57 AS col2 FROM tab2
----
2907
3819
4389

query I rowsort
SELECT - col0 * + + col2 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - col0 * - - 60 AS col1 FROM tab2
----
-2760
-3840
-4500

query I rowsort
SELECT ALL - col0 * 17 * 9 FROM tab2
----
-11475
-7038
-9792

query I rowsort
SELECT DISTINCT col0 * + - col2 * + - col0 FROM tab1
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT + SUM( DISTINCT - - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5123
SELECT + SUM ( DISTINCT - - col2 ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT - COUNT( ALL - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5124
SELECT - COUNT ( ALL - col2 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT ( + ( - ( + col1 ) ) ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL col0 + 52 AS col0 FROM tab0 WHERE NOT - col2 = 20
----
139
149
67

query I rowsort
SELECT ALL ( - + 21 ) FROM tab2
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + + 22 AS col1 FROM tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT - 31 AS col1 FROM tab1 cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 75 - col1 + + + col2 * + col2 col2 FROM tab2 AS cor0
----
-1728
-3347
-4252

query I rowsort
SELECT ALL - + 46 * + - 25 FROM tab2 AS cor0
----
1150
1150
1150

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - - ( + col2 )
----

query I rowsort
SELECT DISTINCT - ( + - ( - 69 ) ) AS col0 FROM tab1
----
-69

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT - + COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5135
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT 48 DIV - - col2 AS col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5136
SELECT 48 / - - col2 AS col2 FROM tab2
----
0
1
2

query I rowsort
SELECT ALL - 15 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL ( - MIN( - col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL ( - MIN ( - col0 ) ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5139
SELECT DISTINCT + + 85, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
85
-3

skipif mysql # not compatible
query II rowsort label-5139
SELECT DISTINCT + + 85, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
85
-3

query I rowsort
SELECT - + 27 + - + col2 FROM tab2 AS cor0
----
-50
-67
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT - COUNT( * ) + + 27 AS col0 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5141
SELECT - COUNT ( * ) + + 27 AS col0 FROM tab1 AS cor0
----
24

query I rowsort
SELECT + 72 + col0 FROM tab2 cor0
----
118
136
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT + - COUNT( * ) + + MAX( - 77 ) AS col2 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-5143
SELECT + - COUNT ( * ) + + MAX ( - 77 ) AS col2 FROM tab2 AS cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5144
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND + col2 * + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5144
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND + col2 * + + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT - SUM( DISTINCT - - col1 ) + ( COUNT( * ) ) + + + SUM( + col2 ) AS col2 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-5146
SELECT - SUM ( DISTINCT - - col1 ) + ( COUNT ( * ) ) + + + SUM ( + col2 ) AS col2 FROM tab0
----
56

query I rowsort
SELECT col0 + + 80 + + col2 * 14 FROM tab1
----
1123
1475
991

query I rowsort
SELECT col0 * ( + + 85 ) AS col0 FROM tab0
----
1275
7395
8245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5149
SELECT DISTINCT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 7 + - col1 + + col0, + col2 col2 FROM tab2 AS cor0
----
-12
23
-20
40
1
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= - + col2
----

query I rowsort
SELECT - col1 * + - 55 AS col0 FROM tab0 AS cor0
----
1155
4455
55

query I rowsort
SELECT ALL + 28 AS col1 FROM tab2 cor0
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT - CAST( - 61 AS SIGNED ) + - col2 * + 68 * - col0 AS col2 FROM tab0
----
48001
59221
653065

skipif mysql # not compatible
query I rowsort label-5154
SELECT - CAST ( - 61 AS INTEGER ) + - col2 * + 68 * - col0 AS col2 FROM tab0
----
48001
59221
653065

query I rowsort
SELECT + col1 * 82 + 15 AS col2 FROM tab1
----
1163
3869
425

query I rowsort
SELECT DISTINCT + col0 * - col0 + - - col2 * 22 FROM tab1 AS cor0
----
-489
-5927
-6785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT - - col1 FROM tab0 AS cor0 WHERE NULL < - ( CAST( 73 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5157
SELECT - - col1 FROM tab0 AS cor0 WHERE NULL < - ( CAST ( 73 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL + + ( - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL + + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 / col1 IN ( - 35 / - ( col2 ) + - + 12 - - col2, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT ALL 40 * MAX( col1 ) FROM tab0
----
3240

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL 40 * MAX ( col1 ) FROM tab0
----
3240

query II rowsort
SELECT DISTINCT + 83 * - + 40 AS col1, + col0 FROM tab2 cor0
----
-3320
46
-3320
64
-3320
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 / - ( + col1 ) IS NULL
----

query I rowsort
SELECT ALL + - 75 * col0 AS col1 FROM tab1 AS cor0
----
-3825
-6375
-6825

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT ALL + CAST( NULL AS SIGNED ) * + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL + CAST ( NULL AS INTEGER ) * + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 87, - col1 + - - col0 * + - 34 + - 17 * + + col1 AS col2 FROM tab2
----
87
-2482
87
-3562
87
-3756

onlyif mysql # DIV for integer division: 
query II rowsort label-5168
SELECT ALL + + ( - 94 ) DIV - col2, col0 AS col0 FROM tab0 AS cor0
----
0
97
2
15
9
87

skipif mysql # not compatible
query II rowsort label-5168
SELECT ALL + + ( - 94 ) / - col2, col0 AS col0 FROM tab0 AS cor0
----
0
97
2
15
9
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5169
SELECT - 39 DIV 49 * - COUNT( * ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5169
SELECT - 39 / 49 * - COUNT ( * ) AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT + 44 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + 97 AS col2 FROM tab1 AS cor0
----
156
165
193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT - col2 AS col1 FROM tab0 WHERE + + 40 + CAST( NULL AS SIGNED ) IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5172
SELECT - col2 AS col1 FROM tab0 WHERE + + 40 + CAST ( NULL AS INTEGER ) IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT - 24 * - COUNT( * ) * + 31 * + - MAX( ALL - col1 ) * 9 col0 FROM tab0 WHERE NULL IS NULL
----
20088

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5173
SELECT - 24 * - COUNT ( * ) * + 31 * + - MAX ( ALL - col1 ) * 9 col0 FROM tab0 WHERE NULL IS NULL
----
20088

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5174
SELECT DISTINCT ( - CAST( NULL AS DECIMAL ) ) AS col1, - col2 AS col1 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-5174
SELECT DISTINCT ( - CAST ( NULL AS REAL ) ) AS col1, - col2 AS col1 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT col2 + 31 AS col2 FROM tab2
----
54
71
89

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + - col0 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT DISTINCT - 81 * + - COUNT( * ) FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT - 81 * + - COUNT ( * ) FROM tab2
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT ALL 44 DIV - 7 FROM tab1
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL 44 / - 7 FROM tab1
----
-6
-6
-6

query I rowsort
SELECT DISTINCT + + col0 * - 86 * + col2 * - 94 FROM tab2 AS cor0
----
20695040
35165400
8552872

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL - MAX( - col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - MAX ( - col2 ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT ALL - + col0 + - col0 DIV + 15 FROM tab2 AS cor0
----
-49
-68
-80

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL - + col0 + - col0 / + 15 FROM tab2 AS cor0
----
-49
-68
-80

query I rowsort
SELECT + 90 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT SUM( + 5 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5184
SELECT SUM ( + 5 ) AS col2 FROM tab0
----
15

query I rowsort
SELECT ALL + 63 FROM tab1, tab1 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT - - ( - col1 ) * - + col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT - + 31 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + ( + - 98 ), - 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT + + COUNT( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT - 36 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5189
SELECT + + COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT - 36 IS NOT NULL
----
0

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 6 * col0 col1 FROM tab0 AS cor0
----
-4230
-5220
-57618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT ( - CAST( - col2 AS SIGNED ) ) * - 81 + col2 FROM tab2
----
-1840
-3200
-4640

skipif mysql # not compatible
query I rowsort label-5193
SELECT ( - CAST ( - col2 AS INTEGER ) ) * - 81 + col2 FROM tab2
----
-1840
-3200
-4640

onlyif mysql # DIV for integer division: 
query II rowsort label-5194
SELECT + col0 AS col0, + ( - 81 ) DIV col1 + - 89 FROM tab1
----
51
-94
85
-105
91
-90

skipif mysql # not compatible
query II rowsort label-5194
SELECT + col0 AS col0, + ( - 81 ) / col1 + - 89 FROM tab1
----
51
-94
85
-105
91
-90

query I rowsort
SELECT 77 * - - 11 AS col1 FROM tab2
----
847
847
847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5197
SELECT - COUNT( * ) AS col2, - 55 DIV 15 col0 FROM tab1
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5197
SELECT - COUNT ( * ) AS col2, - 55 / 15 col0 FROM tab1
----
-3
-3

query I rowsort
SELECT 43 * col0 FROM tab1
----
2193
3655
3913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5199
SELECT - COUNT( * ) DIV 87 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5199
SELECT - COUNT ( * ) / 87 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL + 26 * - - 76 AS col2 FROM tab0 cor0
----
1976
1976
1976

query II rowsort
SELECT + col2 AS col1, - col1 * + 27 FROM tab0 cor0
----
10
-567
47
-2187
99
-27

query I rowsort
SELECT 71 * ( + 48 ) AS col0 FROM tab0
----
3408
3408
3408

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT DISTINCT + COUNT( + - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT 90 BETWEEN - ( 62 ) AND + col1 - - ( + + col0 ) / + col0
----
3

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT + COUNT ( + - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT 90 BETWEEN - ( 62 ) AND + col1 - - ( + + col0 ) / + col0
----
3

query I rowsort
SELECT DISTINCT 2 + + col0 + - col0 * - ( - 17 ) FROM tab1 AS cor0
----
-1358
-1454
-814

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 64, 92 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT DISTINCT col1 DIV 85 + + 49 + 84 col1 FROM tab1
----
133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5206
SELECT DISTINCT col1 / 85 + + 49 + 84 col1 FROM tab1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT MIN( - + col0 ) + - 92 col0 FROM tab2
----
-167

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5207
SELECT MIN ( - + col0 ) + - 92 col0 FROM tab2
----
-167

query I rowsort
SELECT DISTINCT col1 - - 42 + - + col2 AS col1 FROM tab2
----
51
70
79

query II rowsort
SELECT - 29 AS col1, col1 FROM tab0
----
-29
1
-29
21
-29
81

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab2 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT DISTINCT - 53 + - - col0 FROM tab2
----
-7
11
22

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 NOT BETWEEN + - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col2 col2 FROM tab1
----
110
115
64

query I rowsort
SELECT - col0 FROM tab0 WHERE - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT + 67 * - COUNT( * ) AS col0 FROM tab2 WHERE + ( - col0 ) NOT BETWEEN + 86 + - 12 * - ( - col0 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT + 67 * - COUNT ( * ) AS col0 FROM tab2 WHERE + ( - col0 ) NOT BETWEEN + 86 + - 12 * - ( - col0 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT - MIN( - - 5 ) * - COUNT( DISTINCT - + col2 ) + - - COUNT( * ) FROM tab2 AS cor0 WHERE - col1 NOT IN ( - - col2, col0, + - col2, + + 4 )
----
18

skipif mysql # not compatible
query I rowsort label-5217
SELECT - MIN ( - - 5 ) * - COUNT ( DISTINCT - + col2 ) + - - COUNT ( * ) FROM tab2 AS cor0 WHERE - col1 NOT IN ( - - col2, col0, + - col2, + + 4 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5218
SELECT ALL COUNT( * ) DIV COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL COUNT ( * ) / COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT ALL - col0 - - + 93 FROM tab0
----
-4
6
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT ALL col1 DIV + 18 AS col1 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL col1 / + 18 AS col1 FROM tab1 AS cor0
----
0
0
2

query II rowsort
SELECT + - col2 AS col2, col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT - ( CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5222
SELECT - ( CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT DISTINCT MAX( ALL ( - 91 ) ) AS col1 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT MAX ( ALL ( - 91 ) ) AS col1 FROM tab0 AS cor0
----
-91

query II rowsort
SELECT ALL - col2 AS col0, col1 AS col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5225
SELECT - CAST( NULL AS DECIMAL ) * col1 * - - CAST( 10 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT - CAST ( NULL AS REAL ) * col1 * - - CAST ( 10 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 AS col1, - col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query II rowsort
SELECT DISTINCT + col2 AS col2, - col1 * - 1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT - MIN( ALL - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5228
SELECT - MIN ( ALL - col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT - 28 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-28
-28
-28

query I rowsort
SELECT - - ( + col1 ) * 4 AS col1 FROM tab1 AS cor0
----
188
20
56

query I rowsort
SELECT ALL + ( + - col1 ) AS col1 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - + ( - col1 ) )
----

query I rowsort
SELECT DISTINCT - + 79 - col2 * + col2 AS col2 FROM tab1 AS cor0 WHERE - 92 * + 79 IS NOT NULL
----
-3560
-4703
-9295

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT + COUNT( ALL - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5234
SELECT + COUNT ( ALL - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT DISTINCT - + SUM( - + col0 ) + - SUM( DISTINCT - + 33 ) FROM tab2 AS cor0
----
218

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT - + SUM ( - + col0 ) + - SUM ( DISTINCT - + 33 ) FROM tab2 AS cor0
----
218

query I rowsort
SELECT col0 * - + 38 AS col0 FROM tab2
----
-1748
-2432
-2850

query II rowsort
SELECT col2, col2 AS col2 FROM tab0 cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT - ( - - 36 ) AS col0 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT ALL + - 9 AS col2 FROM tab2 AS cor0
----
-9
-9
-9

query II rowsort
SELECT + col2, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT + - SUM( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT + - SUM ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT - - 32 + + ( - - 95 ) FROM tab0 AS cor0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT - 6 + - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5243
SELECT - 6 + - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT ALL - col2 - + 0 AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT + 72 + - + COUNT( * ) * + 93 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-5245
SELECT + 72 + - + COUNT ( * ) * + 93 FROM tab1
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5246
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col0 * + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col0 * + col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + ( - col1 ) + 27 FROM tab0
----
-54
26
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT + 59 DIV + col2 - - ( - - col2 ) FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT + 59 / + col2 - - ( - - col2 ) FROM tab2
----
25
41
59

query I rowsort
SELECT 78 + + ( - 52 ) FROM tab1
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT COUNT( - 79 ) + + - SUM( 43 ) FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-5250
SELECT COUNT ( - 79 ) + + - SUM ( 43 ) FROM tab2
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT ALL + + col0 DIV + col2 - + col1 FROM tab0 AS cor0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL + + col0 / + col2 - + col1 FROM tab0 AS cor0
----
-1
-13
-81

query I rowsort
SELECT + + 3 / + 99 + + 41 + 50 / col0 / col1 / col0 FROM tab1 WHERE NOT + - col1 + + ( 77 ) NOT IN ( col1 / + col0 * + col1, - col1, - - ( col0 ), + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT - COUNT( * ) * - 99 AS col2 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-5253
SELECT - COUNT ( * ) * - 99 AS col2 FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT DISTINCT COUNT( ( + - col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT COUNT ( ( + - col1 ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT DISTINCT col2 * col2 * - 96 + col2 FROM tab1 cor0
----
-334117
-443836
-884640

onlyif mysql # DIV for integer division: 
query II rowsort label-5257
SELECT ALL col1 DIV col1 * + + ( col2 ) AS col0, ( col2 ) * - + col0 AS col2 FROM tab1
----
59
-5015
68
-6188
96
-4896

skipif mysql # not compatible
query II rowsort label-5257
SELECT ALL col1 / col1 * + + ( col2 ) AS col0, ( col2 ) * - + col0 AS col2 FROM tab1
----
59
-5015
68
-6188
96
-4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 + - col0 col1 FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
-158
-168
-86

query II rowsort
SELECT col0 AS col1, col0 * 27 * - + col1 AS col2 FROM tab0
----
15
-32805
87
-49329
97
-2619

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

query III rowsort
SELECT ALL - col2, - col2, col0 FROM tab1
----
9 values hashing to 605e6ae1afd4effa4e63fdb3ad5d41c6

query II rowsort
SELECT DISTINCT 84 AS col1, col2 FROM tab0
----
84
10
84
47
84
99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NULL IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5264
SELECT 44 AS col2, - 94 * - col1 * + + CAST( + col2 AS SIGNED ) FROM tab2
----
44
110262
44
289520
44
365284

skipif mysql # not compatible
query II rowsort label-5264
SELECT 44 AS col2, - 94 * - col1 * + + CAST ( + col2 AS INTEGER ) FROM tab2
----
44
110262
44
289520
44
365284

onlyif mysql # aggregate syntax: 
query II rowsort label-5265
SELECT DISTINCT 74 AS col2, ( + COUNT( * ) ) FROM tab2
----
74
3

skipif mysql # not compatible
query II rowsort label-5265
SELECT DISTINCT 74 AS col2, ( + COUNT ( * ) ) FROM tab2
----
74
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5266
SELECT DISTINCT 85, + COUNT( * ) AS col2 FROM tab1
----
85
3

skipif mysql # not compatible
query II rowsort label-5266
SELECT DISTINCT 85, + COUNT ( * ) AS col2 FROM tab1
----
85
3

query II rowsort
SELECT DISTINCT + 82, 28 AS col1 FROM tab0
----
82
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT DISTINCT + - MIN( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT + - MIN ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT ALL + + MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + + MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5270
SELECT + col0 + - 43 FROM tab0 AS cor0 WHERE col0 * col1 > col1 + + + CAST( NULL AS SIGNED ) + - CAST( 29 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5270
SELECT + col0 + - 43 FROM tab0 AS cor0 WHERE col0 * col1 > col1 + + + CAST ( NULL AS INTEGER ) + - CAST ( 29 AS REAL )
----

query I rowsort
SELECT DISTINCT 31 + - 73 + - + col0 * - - col0 FROM tab1
----
-2643
-7267
-8323

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5272
SELECT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT ALL - 53 - + ( COUNT( ALL + + 54 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL - 53 - + ( COUNT ( ALL + + 54 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

query I rowsort
SELECT DISTINCT - col2 - - col2 * 36 AS col1 FROM tab1 AS cor0
----
2065
2380
3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT + + col1 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - 18 + col2 - 79 / - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT + + col1 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 18 + col2 - 79 / - col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5276
SELECT CAST( NULL AS SIGNED ) + - col1, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5276
SELECT CAST ( NULL AS INTEGER ) + - col1, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT - 64 + - col0 * - + col1 FROM tab0 AS cor0
----
1151
1763
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5278
SELECT + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT DISTINCT - 45 + - COUNT( ALL 44 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT - 45 + - COUNT ( ALL 44 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL ( - - 28 ) * + 63 + - col2 FROM tab0
----
1665
1717
1754

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL + ( + 23 ) - - COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL + ( + 23 ) - - COUNT ( * ) FROM tab2
----
26

query I rowsort
SELECT ALL - ( 30 ) - + 9 + 59 AS col1 FROM tab1
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT - + CAST( + + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5283
SELECT - + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - ( - + col2 ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col1 * - 86 FROM tab0 cor0
----
-1806
-6966
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT - COUNT( * ) * - 63 + + COUNT( * ) FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT - COUNT ( * ) * - 63 + + COUNT ( * ) FROM tab0 AS cor0
----
192

query I rowsort
SELECT DISTINCT + 20 * + col2 * 53 + + ( 29 ) AS col0 FROM tab1 AS cor0
----
101789
62569
72109

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 33 + 62 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT - + 49 * + - 38 FROM tab2 AS cor0
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT COUNT( col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5291
SELECT COUNT ( col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL + + COUNT( * ) * + 16 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL + + COUNT ( * ) * + 16 FROM tab1 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col0 FROM tab1 AS cor0
----
28
28
28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - + 45 = - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL + 91 * + MAX( 65 ) AS col2 FROM tab1 AS cor0
----
5915

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL + 91 * + MAX ( 65 ) AS col2 FROM tab1 AS cor0
----
5915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT + - 21 * CAST( 36 AS SIGNED ) FROM tab0 AS cor0
----
-756
-756
-756

skipif mysql # not compatible
query I rowsort label-5296
SELECT + - 21 * CAST ( 36 AS INTEGER ) FROM tab0 AS cor0
----
-756
-756
-756

query I rowsort
SELECT 31 * - - col0 AS col0 FROM tab1
----
1581
2635
2821

query II rowsort
SELECT ALL col2 AS col1, col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5299
SELECT - ( + - col1 ) DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5299
SELECT - ( + - col1 ) / + col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 + - + 68 + - 85 col1, - col0 FROM tab1 AS cor0
----
-102
-51
-62
-91
-68
-85

query I rowsort
SELECT DISTINCT - ( 37 ) * + + col2 * - - col0 - + + 89 + - col0 AS col2 FROM tab1 AS cor0
----
-181292
-185729
-229136

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT DISTINCT + SUM( DISTINCT - + col2 ) * 91 - + 13 AS col0 FROM tab2 AS cor0
----
-11024

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT + SUM ( DISTINCT - + col2 ) * 91 - + 13 AS col0 FROM tab2 AS cor0
----
-11024

query III rowsort
SELECT ALL col0, - col1 AS col1, - + col2 AS col2 FROM tab1 AS cor0
----
9 values hashing to a994f82f0f3db6a13962421d5700f4a9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5306
SELECT ALL - - ( - + COUNT( * ) ) + - + COUNT( * ) * - - CAST( NULL AS DECIMAL ), COUNT( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5306
SELECT ALL - - ( - + COUNT ( * ) ) + - + COUNT ( * ) * - - CAST ( NULL AS REAL ), COUNT ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT DISTINCT + + MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + + MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT COUNT( * ) + - + 33 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-33

skipif mysql # not compatible
query I rowsort label-5308
SELECT COUNT ( * ) + - + 33 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-33

query I rowsort
SELECT ALL col2 * col1 + - + col0 AS col1 FROM tab2 AS cor0
----
1127
3016
3811

query I rowsort
SELECT DISTINCT - - col2 + 28 + + - 74 * + - 94 FROM tab2 cor0
----
7007
7024
7042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5311
SELECT CAST( - AVG ( ALL + 88 ) AS SIGNED ) + - 80 col0 FROM tab1
----
-168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5311
SELECT CAST ( - AVG ( ALL + 88 ) AS INTEGER ) + - 80 col0 FROM tab1
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5312
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - CAST( + col0 AS SIGNED ) - ( + col0 ) * - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5312
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - CAST ( + col0 AS INTEGER ) - ( + col0 ) * - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5313
SELECT DISTINCT COUNT( * ) + - 54, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-5313
SELECT DISTINCT COUNT ( * ) + - 54, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-51
NULL

query I rowsort
SELECT ALL - col0 + + 54 FROM tab1
----
-31
-37
3

query I rowsort
SELECT ALL col0 - 52 AS col2 FROM tab2
----
-6
12
23

query I rowsort
SELECT ALL - col0 + + col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 63 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, + col2 * - col2 * + + col1, 88 + 50 )
----

query II rowsort
SELECT + col2, + col1 AS col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE col1 - + 82 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col1 col2 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5321
SELECT + - SUM( + 37 ) DIV + CAST( 37 AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5321
SELECT + - SUM ( + 37 ) / + CAST ( 37 AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 26 FROM tab2 AS cor0 WHERE NOT + 75 IS NULL
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL + - COUNT( * ) * 93 AS col0 FROM tab0 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL + - COUNT ( * ) * 93 AS col0 FROM tab0 cor0
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT ALL CAST( NULL AS SIGNED ) + - + col0 + - 95 / - col2 * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL CAST ( NULL AS INTEGER ) + - + col0 + - 95 / - col2 * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT ALL - ( - COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL - ( - COUNT ( * ) ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT DISTINCT 17 + - + CAST( - - col1 AS SIGNED ) * - 90 * + + col2 FROM tab0
----
18917
342647
8927

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT 17 + - + CAST ( - - col1 AS INTEGER ) * - 90 * + + col2 FROM tab0
----
18917
342647
8927

query I rowsort
SELECT DISTINCT - col0 * ( - 20 ) AS col2 FROM tab1
----
1020
1700
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT COUNT( 63 ) * + - 43 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-5328
SELECT COUNT ( 63 ) * + - 43 FROM tab2
----
-129

query I rowsort
SELECT DISTINCT col2 * - col1 * + - 99 AS col2 FROM tab0
----
20790
376893
9801

query I rowsort
SELECT ALL + + 24 + + 6 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT COUNT( * ) - - 7 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-5333
SELECT COUNT ( * ) - - 7 FROM tab2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5334
SELECT CAST( NULL AS SIGNED ) / - col2 + col0 + + ( - + col0 ) + col0 * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT CAST ( NULL AS INTEGER ) / - col2 + col0 + + ( - + col0 ) + col0 * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 71 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT + col1 - + + ( col1 ) * + col2 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5338
SELECT DISTINCT + - 91 DIV + + 86 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT + - 91 / + + 86 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ( + 14 ) FROM tab0 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT ALL CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT - MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5341
SELECT - MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT + col2 * col0 + + 91 - + col0 * + col0 + col1 FROM tab0 AS cor0
----
-6587
286
652

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL - SUM( ALL 36 ) FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - SUM ( ALL 36 ) FROM tab1 AS cor0
----
-108

query I rowsort
SELECT + - 5 * - + col1 AS col0 FROM tab0 cor0
----
105
405
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + + col1 ) + - + 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT + COUNT( * ) * + SUM( DISTINCT + 66 ) FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-5346
SELECT + COUNT ( * ) * + SUM ( DISTINCT + 66 ) FROM tab0
----
198

query III rowsort
SELECT * FROM tab2 WHERE NOT 38 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5348
SELECT 99 DIV + 2 AS col1 FROM tab0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-5348
SELECT 99 / + 2 AS col1 FROM tab0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT - SUM( ALL - + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5349
SELECT - SUM ( ALL - + col0 ) FROM tab0
----
199

query II rowsort
SELECT DISTINCT + 65, col2 AS col1 FROM tab1
----
65
59
65
68
65
96

query I rowsort
SELECT ALL - ( + 59 ) FROM tab2 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 43 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 43 <> NULL
----
0

query I rowsort
SELECT ALL - - ( 20 ) FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + col1 + - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 / + col1 IS NULL
----
138
65
90

query II rowsort
SELECT DISTINCT col1, 63 * - 86 FROM tab1 AS cor0
----
14
-5418
47
-5418
5
-5418

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL SUM( DISTINCT - + ( - 35 ) ) col2 FROM tab0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5356
SELECT ALL SUM ( DISTINCT - + ( - 35 ) ) col2 FROM tab0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5357
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5357
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5358
SELECT - ( - 50 ) DIV + 75, - 68 AS col0 FROM tab0 AS cor0
----
0
-68
0
-68
0
-68

skipif mysql # not compatible
query II rowsort label-5358
SELECT - ( - 50 ) / + 75, - 68 AS col0 FROM tab0 AS cor0
----
0
-68
0
-68
0
-68

query I rowsort
SELECT DISTINCT - - 48 FROM tab1 AS cor0 WHERE - col1 + ( col2 ) = 60 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL + - 57 * - COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + - 57 * - COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + - MIN( + 21 ) FROM tab1 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5361
SELECT + - MIN ( + 21 ) FROM tab1 cor0
----
-21

query I rowsort
SELECT DISTINCT - col1 * - 53 * ( - - col0 ) FROM tab1 AS cor0
----
22525
226681
37842

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT - SUM( ALL + col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5363
SELECT - SUM ( ALL + col2 ) FROM tab2 cor0
----
-121

query I rowsort
SELECT + - 10 AS col0 FROM tab0 AS cor0
----
-10
-10
-10

query I rowsort
SELECT ALL - + col2 + - 41 FROM tab2 AS cor0
----
-64
-81
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5366
SELECT DISTINCT - COUNT( * ) + - 66 DIV - 3 AS col2 FROM tab2, tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT - COUNT ( * ) + - 66 / - 3 AS col2 FROM tab2, tab0 AS cor0
----
13

query I rowsort
SELECT ALL 62 * - col0 FROM tab2
----
-2852
-3968
-4650

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * col0 NOT IN ( 78, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 17 + - 31 FROM tab0
----
-14
-14
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT + 37 - 28 * + COUNT( * ) AS col2 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-5373
SELECT + 37 - 28 * + COUNT ( * ) AS col2 FROM tab2
----
-47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 33 / - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5375
SELECT DISTINCT ( + COUNT( * ) ) DIV 13 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT ( + COUNT ( * ) ) / 13 AS col1 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + - col1 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 96 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * 94 AS col2 FROM tab0
----
4418
9306
940

onlyif mysql # DIV for integer division: 
query I rowsort label-5380
SELECT ALL + 81 DIV col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL + 81 / col2 FROM tab0
----
0
1
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5381
SELECT 59 DIV + COUNT( * ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-5381
SELECT 59 / + COUNT ( * ) FROM tab2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5382
SELECT + 6 DIV COUNT( * ) col0 FROM tab1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5382
SELECT + 6 / COUNT ( * ) col0 FROM tab1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT ( + col1 ) DIV - 83 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5383
SELECT ( + col1 ) / - 83 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 - 85 FROM tab2
----
-10
-21
-39

query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab0 WHERE NOT ( col2 * + 54 + 95 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + + col0 * + col2 AS col1 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
786
891
9604

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5387
SELECT ALL col0 - - CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab2 WHERE - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL col0 - - CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab2 WHERE - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT - MAX( DISTINCT - 20 ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-5388
SELECT - MAX ( DISTINCT - 20 ) FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT DISTINCT - 63 + COUNT( * ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT - 63 + COUNT ( * ) FROM tab2
----
-60

query I rowsort
SELECT ALL - 88 AS col0 FROM tab1
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT ALL MIN( DISTINCT + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL MIN ( DISTINCT + col0 ) AS col1 FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - 79 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 ) >= NULL
----

query I rowsort
SELECT DISTINCT 3 * + 64 FROM tab2 WHERE NOT - col0 < 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT SUM( ( - 89 ) ) FROM tab1 WHERE - col0 NOT BETWEEN ( col0 + + col0 ) AND NULL
----
-267

skipif mysql # not compatible
query I rowsort label-5395
SELECT SUM ( ( - 89 ) ) FROM tab1 WHERE - col0 NOT BETWEEN ( col0 + + col0 ) AND NULL
----
-267

query I rowsort
SELECT DISTINCT col0 * - ( 78 ) FROM tab1 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - col1 * col2
----

query I rowsort
SELECT 53 FROM tab2 WHERE NULL > col2 - + col1
----

query I rowsort
SELECT 7 FROM tab0 AS cor0 WHERE NOT ( col1 * col0 ) IS NULL
----
7
7
7

query I rowsort
SELECT ALL - col2 * - ( col2 ) - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL SUM( DISTINCT + col1 ) col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5401
SELECT ALL SUM ( DISTINCT + col1 ) col1 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5402
SELECT ALL CAST( NULL AS SIGNED ) * 5 col2 FROM tab2 WHERE ( + 73 * 58 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5402
SELECT ALL CAST ( NULL AS INTEGER ) * 5 col2 FROM tab2 WHERE ( + 73 * 58 ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 - + 53 / 47 BETWEEN - col2 AND ( 64 - + col1 )
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + 86 / - col2 BETWEEN NULL AND ( + col1 )
----
97
1
99

query I rowsort
SELECT DISTINCT + 55 FROM tab2 AS cor0 WHERE + 38 <> ( NULL )
----

query I rowsort
SELECT ( + col2 ) + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5407
SELECT CAST( + 3 AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0 WHERE col1 * 0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5407
SELECT CAST ( + 3 AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE col1 * 0 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5408
SELECT + COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT + COUNT ( * ) + - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5409
SELECT DISTINCT - 41 DIV col1 + 89 FROM tab0 AS cor0
----
48
88
89

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT - 41 / col1 + 89 FROM tab0 AS cor0
----
48
88
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT COUNT( * ) + + - 52 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-5410
SELECT COUNT ( * ) + + - 52 FROM tab0
----
-49

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + + 48 > ( col2 * - 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + ( - col2 ) AS col0 FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT - COUNT( * ) * - - 25 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5413
SELECT - COUNT ( * ) * - - 25 FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5414
SELECT ALL - CAST( - + col2 AS SIGNED ) * col2 AS col0 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - CAST ( - + col2 AS INTEGER ) * col2 AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5415
SELECT ( + + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5415
SELECT ( + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL COUNT( * ) * + + 89 - + COUNT( col2 ) AS col0 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL COUNT ( * ) * + + 89 - + COUNT ( col2 ) AS col0 FROM tab0
----
264

query I rowsort
SELECT ALL + 71 FROM tab2 WHERE NOT col1 > NULL
----

query I rowsort
SELECT ALL col1 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-98
11
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 + col1 ) <= + col2 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 - - 73 FROM tab2 AS cor0
----
124
140
150

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE ( - col0 + - col0 ) IN ( - col1 + col2 )
----

query I rowsort
SELECT 63 * + 75 + col1 * col2 AS col2 FROM tab0 WHERE NULL NOT IN ( - - ( + col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 47 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + ( - col1 ) * + col1 BETWEEN 5 AND ( + col1 )
----

query I rowsort
SELECT DISTINCT - 65 + + 47 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5426
SELECT col1 * - CAST( - col0 AS SIGNED ) * - 18 AS col1 FROM tab1 AS cor0
----
-12852
-7650
-76986

skipif mysql # not compatible
query I rowsort label-5426
SELECT col1 * - CAST ( - col0 AS INTEGER ) * - 18 AS col1 FROM tab1 AS cor0
----
-12852
-7650
-76986

onlyif mysql # DIV for integer division: 
query I rowsort label-5427
SELECT DISTINCT - col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT - col1 / col1 AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5428
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5429
SELECT 58, - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
58
46
58
64
58
75

skipif mysql # not compatible
query II rowsort label-5429
SELECT 58, - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
58
46
58
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT DISTINCT MIN( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT MIN ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 22 AS col0, col1 col2 FROM tab1 AS cor0
----
22
14
22
47
22
5

query I rowsort
SELECT col2 * - 50 AS col1 FROM tab0 AS cor0
----
-2350
-4950
-500

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5433
SELECT ALL * FROM tab0 cor0 WHERE ( CAST( - col1 AS DECIMAL ) + + col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5433
SELECT ALL * FROM tab0 cor0 WHERE ( CAST ( - col1 AS REAL ) + + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT DISTINCT + - col0 * + ( + col1 ) * col1 + col0 DIV 68 AS col1 FROM tab2 AS cor0
----
-119646
-336674
-379456

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT + - col0 * + ( + col1 ) * col1 + col0 / 68 AS col1 FROM tab2 AS cor0
----
-119646
-336674
-379456

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT col0 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - ( - + 86 ) ) NOT IN ( - col0 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT MIN( + 22 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-5438
SELECT MIN ( + 22 ) FROM tab2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5439
SELECT DISTINCT - 89 DIV + COUNT( * ), - COUNT( * ) AS col1 FROM tab0
----
-29
-3

skipif mysql # not compatible
query II rowsort label-5439
SELECT DISTINCT - 89 / + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0
----
-29
-3

query I rowsort
SELECT ALL col1 - + col0 AS col1 FROM tab0 WHERE NULL NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 75 * col2 * - col1 IN ( - ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE + - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE + - col1 >= NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - col1 * + + col1 * + 88 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - col1 * + + col1 * + 88 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5445
SELECT + COUNT( ALL CAST( NULL AS DECIMAL ) ) + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5445
SELECT + COUNT ( ALL CAST ( NULL AS REAL ) ) + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT + COUNT( * ) * - COUNT( * ) + COUNT( * ) * + + SUM( ALL + col1 ) FROM tab0 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-5446
SELECT + COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) * + + SUM ( ALL + col1 ) FROM tab0 AS cor0
----
300

query I rowsort
SELECT + + col0 * - col2 - - col2 * col1 FROM tab1 AS cor0
----
-2992
-3552
-4720

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5448
SELECT + 42 DIV MAX( + col2 ), + MIN( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query II rowsort label-5448
SELECT + 42 / MAX ( + col2 ), + MIN ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 IN ( + col0 + + + 26 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col1 * 67 AS col0 FROM tab1 AS cor0
----
-3149
-335
-938

query I rowsort
SELECT DISTINCT + 97 + + - 68 * - - col1 FROM tab2 AS cor0
----
-3371
-4459
-5139

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 80 NOT BETWEEN + ( + col0 ) AND + 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 + - col1 - + + ( - 38 ) col0 FROM tab1
----
12
45
54

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 36 * + 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * 57 NOT BETWEEN 17 AND NULL
----

query II rowsort
SELECT - 22 + - col2, col2 AS col1 FROM tab0
----
-121
99
-32
10
-69
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 + - 22 col2 FROM tab0
----
66
66
66

query I rowsort
SELECT ALL ( + 21 ) - - + col0 AS col0 FROM tab2
----
67
85
96

query I rowsort
SELECT - col0 + - + col2 FROM tab0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab1 WHERE ( - + col0 * col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5462
SELECT ALL + CAST( - ( - SUM( DISTINCT - col1 ) ) AS SIGNED ) + - 32 DIV + - COUNT( * ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL + CAST ( - ( - SUM ( DISTINCT - col1 ) ) AS INTEGER ) + - 32 / + - COUNT ( * ) AS col2 FROM tab2
----
-185

query I rowsort
SELECT ALL - col1 + + col1 - - 56 AS col2 FROM tab1
----
56
56
56

query I rowsort
SELECT ALL ( - 67 ) FROM tab0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query III rowsort label-5465
SELECT DISTINCT + COUNT( * ) AS col0, SUM( DISTINCT col1 ) + - - 35 AS col0, + + 31 FROM tab2 AS cor0
----
3
230
31

skipif mysql # not compatible
query III rowsort label-5465
SELECT DISTINCT + COUNT ( * ) AS col0, SUM ( DISTINCT col1 ) + - - 35 AS col0, + + 31 FROM tab2 AS cor0
----
3
230
31

query I rowsort
SELECT DISTINCT 61 * - - 94 + col2 - - ( - - ( - col0 ) ) + + col1 * + col2 AS col2 FROM tab2 AS cor0
----
6884
8790
9603

query I rowsort
SELECT ALL + 93 + - col2 AS col0 FROM tab0 AS cor0
----
-6
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT DISTINCT + MAX( + col2 ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT + MAX ( + col2 ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5469
SELECT DISTINCT + ( col0 ) + CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) * + 80 AS col2 FROM tab2
----
4126
5435
6224

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT + ( col0 ) + CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) * + 80 AS col2 FROM tab2
----
4126
5435
6224

query I rowsort
SELECT col0 * col0 - - 76 + - col2 FROM tab2
----
2169
4132
5643

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT - MAX( - col1 ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5472
SELECT - MAX ( - col1 ) AS col0 FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL + MAX( - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL + MAX ( - col2 ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 52 NOT IN ( - + col2 / + - 40 * col1 )
----

query I rowsort
SELECT ALL + 83 * + col0 AS col0 FROM tab1 cor0
----
4233
7055
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT - MIN( + + 16 ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5476
SELECT - MIN ( + + 16 ) FROM tab1 AS cor0
----
-16

query I rowsort
SELECT ALL - 14 * col2 AS col2 FROM tab1 AS cor0
----
-1344
-826
-952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT ALL CAST( + + ( + ( + col2 ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL CAST ( + + ( + ( + col2 ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT - MIN( DISTINCT - col0 ) * - 45 * - SUM( ALL - + col2 ) AS col0 FROM tab0
----
-680940

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT - MIN ( DISTINCT - col0 ) * - 45 * - SUM ( ALL - + col2 ) AS col0 FROM tab0
----
-680940

onlyif mysql # DIV for integer division: 
query I rowsort label-5480
SELECT ALL - col0 DIV - 2 AS col2 FROM tab0
----
43
48
7

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL - col0 / - 2 AS col2 FROM tab0
----
43
48
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT - 27 DIV 51 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5481
SELECT - 27 / 51 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT DISTINCT 77 col1, 85 * COUNT( * ) AS col2 FROM tab2
----
77
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5482
SELECT DISTINCT 77 col1, 85 * COUNT ( * ) AS col2 FROM tab2
----
77
255

query I rowsort
SELECT ALL 95 AS col0 FROM tab1
----
95
95
95

query I rowsort
SELECT ALL + 75 + col0 FROM tab1 WHERE NOT col0 - + - col0 IS NULL
----
126
160
166

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 1 * + - 48 FROM tab0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT - COUNT( ALL - + ( + col0 ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT - COUNT ( ALL - + ( + col0 ) ) AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 35 * + 78 = col1
----

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab1 WHERE + - col2 < + - 28 + + col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT DISTINCT COUNT( ALL - + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT COUNT ( ALL - + col2 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE col2 + + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 47 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5493
SELECT DISTINCT - + CAST( col1 AS SIGNED ) * - col2 col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5493
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) * - col2 col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5494
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5494
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT DISTINCT col2 + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT col2 + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT + + MIN( ALL + col1 ) + + - 9 AS col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5496
SELECT + + MIN ( ALL + col1 ) + + - 9 AS col1 FROM tab2 AS cor0
----
42

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( col1 * - 25 * + + col2 - - - col0 ) IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT - - SUM( - + 16 ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5498
SELECT - - SUM ( - + 16 ) FROM tab0 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5499
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN + - 24 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5499
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN + - 24 AND NULL
----

query I rowsort
SELECT ( - 22 ) FROM tab1 WHERE ( + - col0 ) IS NOT NULL
----
-22
-22
-22

query I rowsort
SELECT DISTINCT 78 + - col2 * - - 26 + - col0 FROM tab1
----
-1541
-1781
-2469

query I rowsort
SELECT 5 AS col0 FROM tab2 WHERE NULL IS NULL
----
5
5
5

query III rowsort
SELECT * FROM tab1 WHERE 9 + + col0 IS NULL
----

query II rowsort
SELECT - 68, 22 AS col2 FROM tab2
----
-68
22
-68
22
-68
22

query I rowsort
SELECT + 98 * + 36 AS col2 FROM tab1
----
3528
3528
3528

query III rowsort
SELECT ALL * FROM tab2 WHERE + 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5507
SELECT SUM( DISTINCT - col2 ) * - COUNT( * ) AS col0 FROM tab0 WHERE 23 < + col0 * - ( - 73 ) * ( - CAST( NULL AS SIGNED ) ) + + + ( - col0 ) + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT SUM ( DISTINCT - col2 ) * - COUNT ( * ) AS col0 FROM tab0 WHERE 23 < + col0 * - ( - 73 ) * ( - CAST ( NULL AS INTEGER ) ) + + + ( - col0 ) + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 - - col1 col2 FROM tab1 cor0
----
13
22
55

onlyif mysql # DIV for integer division: 
query II rowsort label-5509
SELECT DISTINCT 73 DIV col1 + col1, - 21 AS col0 FROM tab2 AS cor0
----
52
-21
68
-21
77
-21

skipif mysql # not compatible
query II rowsort label-5509
SELECT DISTINCT 73 / col1 + col1, - 21 AS col0 FROM tab2 AS cor0
----
52
-21
68
-21
77
-21

query I rowsort
SELECT ALL - col2 - - 83 FROM tab0 AS cor0
----
-16
36
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col1 FROM tab1 cor0
----
16
16
16

query III rowsort
SELECT * FROM tab2 WHERE NOT + 14 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5513
SELECT - COUNT( ALL 31 ), 40 col0 FROM tab2 AS cor0
----
-3
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5513
SELECT - COUNT ( ALL 31 ), 40 col0 FROM tab2 AS cor0
----
-3
40

query I rowsort
SELECT - - 20 * - col1 FROM tab1 cor0
----
-100
-280
-940

query I rowsort
SELECT - 32 AS col1 FROM tab1 cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT ALL - COUNT( ALL + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL - COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL - 16 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL - 16 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL + 68 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ALL + 46 * COUNT( * ) FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL + 46 * COUNT ( * ) FROM tab0 AS cor0
----
138

query II rowsort
SELECT - col1 * + - col2, - col2 AS col2 FROM tab0 AS cor0
----
210
-10
3807
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT + + MAX( ALL - col0 ) col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5521
SELECT + + MAX ( ALL - col0 ) col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - - 9 AS col1 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT 61 * col0 * - col1 BETWEEN col1 AND + 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT + 95 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + 95 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
285

query I rowsort
SELECT DISTINCT + + col0 + - - col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL - 54 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT ALL - col0 * + col0 * - CAST( col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
3375
658503
912673

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5527
SELECT ALL - col0 * + col0 * - CAST ( col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
3375
658503
912673

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5528
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) - - MAX( ALL 51 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT - + CAST ( NULL AS REAL ) - - MAX ( ALL 51 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5529
SELECT 46 * - col1 + + CAST( NULL AS SIGNED ) - col0 col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5529
SELECT 46 * - col1 + + CAST ( NULL AS INTEGER ) - col0 col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - 48 - - - col1 col0 FROM tab1 AS cor0
----
-2303
-245
-686

onlyif mysql # DIV for integer division: 
query I rowsort label-5531
SELECT DISTINCT 12 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT 12 / - col2 AS col2 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL + + 3 * - 32 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5533
SELECT - 20 * - - COUNT( * ) / - CAST( NULL AS SIGNED ) * - ( + - 38 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT - 20 * - - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - ( + - 38 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 35 col0 FROM tab2 AS cor0
----
-58
-75
-93

query I rowsort
SELECT DISTINCT - col2 + + 52 FROM tab0 AS cor0
----
-47
42
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + - ( col2 ) col0 FROM tab0
----
-2
-32
77

query III rowsort
SELECT * FROM tab1 WHERE 92 + 11 - - - 99 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + 9 + - 88 * - 46 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + - ( + - col2 ) ) + - col1 + + col0 * - col2 FROM tab2
----
-1086
-2597
-4359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 97 + 39 * - 72 col2 FROM tab1 WHERE + col0 NOT BETWEEN + col0 - col0 * + col2 / - - col0 AND NULL
----

query I rowsort
SELECT - 60 + + 37 AS col1 FROM tab1
----
-23
-23
-23

query I rowsort
SELECT col0 + - - col0 FROM tab2
----
128
150
92

query III rowsort
SELECT * FROM tab0 WHERE ( 96 ) IS NULL OR NOT + col0 * - col2 NOT IN ( + col0, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT - COUNT( * ) * - AVG ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL <= + 72 + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT - COUNT ( * ) * - AVG ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL <= + 72 + 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5546
SELECT DISTINCT - 71 AS col1, + COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
-71
3

skipif mysql # not compatible
query II rowsort label-5546
SELECT DISTINCT - 71 AS col1, + COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
-71
3

query I rowsort
SELECT ALL - - 8 FROM tab0 cor0
----
8
8
8

query I rowsort
SELECT - ( + ( - 82 ) ) FROM tab1 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT - MIN( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5549
SELECT - MIN ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ( + 60 ) * 14 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
840
840
840

query I rowsort
SELECT + col0 - 94 + - col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT DISTINCT + 67, + col1 FROM tab2
----
67
51
67
67
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT ALL MIN( + col2 ) col1 FROM tab1 WHERE NOT NULL <> 79
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5553
SELECT ALL MIN ( + col2 ) col1 FROM tab1 WHERE NOT NULL <> 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
0

query II rowsort
SELECT DISTINCT - col2 AS col1, 92 + + + col1 AS col1 FROM tab0
----
-10
113
-47
173
-99
93

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 >= - 53
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5557
SELECT + 34 col0, SUM( DISTINCT + col0 ) AS col0 FROM tab0
----
34
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5557
SELECT + 34 col0, SUM ( DISTINCT + col0 ) AS col0 FROM tab0
----
34
199

query I rowsort
SELECT DISTINCT 90 AS col2 FROM tab0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, ( - + col1 ) col0 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN + 25 * - col0 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN + 25 * - col0 AND + col1
----
0

query I rowsort
SELECT ALL + - 34 / + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query II rowsort
SELECT - - 84 * col0, + col0 AS col0 FROM tab2 cor0
----
3864
46
5376
64
6300
75

query I rowsort
SELECT ALL - col2 * - col2 + - col2 FROM tab1 AS cor0
----
3422
4556
9120

query I rowsort
SELECT DISTINCT - 65 + - - col0 FROM tab2 AS cor0
----
-1
-19
10

query I rowsort
SELECT ALL + + 34 + - 45 FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5566
SELECT ALL + 73 + + 12 + + col0 DIV - CAST( - 93 AS SIGNED ) AS col0 FROM tab2
----
85
85
85

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL + 73 + + 12 + + col0 / - CAST ( - 93 AS INTEGER ) AS col0 FROM tab2
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT col0 + - col1 DIV col1 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-5567
SELECT col0 + - col1 / col1 FROM tab1
----
50
84
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - 76, col0 col0 FROM tab1
----
-3876
51
-6460
85
-6916
91

query I rowsort
SELECT ALL col0 - 39 + + - ( + - ( - + col0 ) ) * col0 FROM tab2 AS cor0
----
-2109
-4071
-5589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 60 * col0 - + col0 * + col1 * - - col1 + + col0 + + 80 col1, col0 * + col0 + - 27 * + 81 FROM tab2 AS cor0
----
-116760
-71
-332020
3438
-375472
1909

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE - 47 * + col0 * + col0 IS NOT NULL
----
15
87
97

query II rowsort
SELECT ALL ( 69 ) AS col2, - col1 FROM tab0 AS cor0
----
69
-1
69
-21
69
-81

query II rowsort
SELECT - col0 * col1 AS col1, col2 FROM tab2 AS cor0
----
-2346
23
-4928
40
-5025
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 75 col0 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5575
SELECT ALL + CAST( - - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL col1 * + col1 - + - col2 AS col2 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
100
451
6608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5577
SELECT 3 * - CAST( - - 54 AS SIGNED ) - + + COUNT( * ) AS col1 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-5577
SELECT 3 * - CAST ( - - 54 AS INTEGER ) - + + COUNT ( * ) AS col1 FROM tab1
----
-165

query I rowsort
SELECT col1 * - - col0 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT + 59 FROM tab2 WHERE ( NOT + 21 IS NOT NULL )
----

query I rowsort
SELECT + 86 - + col2 * col2 FROM tab2
----
-1514
-3278
-443

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT 58 + + col2 IS NOT NULL
----

query II rowsort
SELECT - 38 * - col1 + - + 61, col1 FROM tab2 AS cor0
----
1877
51
2485
67
2865
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 26 * + col0 col2 FROM tab1
----
187850
215306
67626

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL SUM( - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL SUM ( - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT - - MIN( - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5585
SELECT - - MIN ( - col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL col1 * - - col1 + + 78 * col0 + col0 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
4225
6740
9398

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT + MIN( - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5588
SELECT + MIN ( - col0 ) FROM tab1
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 54 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + + 45 AS col1 FROM tab0
----
-42
-52
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5591
SELECT ALL CAST( - col1 AS SIGNED ) * col2 AS col1 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL CAST ( - col1 AS INTEGER ) * col2 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT + AVG ( DISTINCT col2 ) * + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT + AVG ( DISTINCT col2 ) * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5593
SELECT ALL * FROM tab0 WHERE NOT CAST( 45 AS SIGNED ) + + - col1 <> - + col1
----

skipif mysql # not compatible
query III rowsort label-5593
SELECT ALL * FROM tab0 WHERE NOT CAST ( 45 AS INTEGER ) + + - col1 <> - + col1
----

query I rowsort
SELECT - col1 + + + 92 + - - col0 FROM tab2 AS cor0
----
100
79
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT DISTINCT SUM( - col1 ) col0 FROM tab1 cor0 WHERE NOT col2 IN ( - col0 * - 53 + col1, 42 )
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5595
SELECT DISTINCT SUM ( - col1 ) col0 FROM tab1 cor0 WHERE NOT col2 IN ( - col0 * - 53 + col1, 42 )
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 + - + col1 col1 FROM tab0
----
1
21
81

query I rowsort
SELECT + ( - - col1 ) * - col2 + col1 - + + col0 + + + 23 FROM tab2 AS cor0
----
-1145
-3044
-3871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 94 col0 FROM tab2 cor0
----
-19
-30
-48

query I rowsort
SELECT ALL col2 - - + ( + - 64 ) + + - col2 FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT ( col2 ) - ( + col0 ) + - ( 85 ) * + + 62 FROM tab0 AS cor0
----
-5238
-5268
-5347

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL = + col0
----

query I rowsort
SELECT ALL + 32 FROM tab0 AS cor0 WHERE NOT col0 * + 15 * - col0 IS NULL
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT - + COUNT( * ) FROM tab0 cor0 WHERE NULL > + 91 * + col1 + - - 23 / col2 * col2 / 55
----
0

skipif mysql # not compatible
query I rowsort label-5603
SELECT - + COUNT ( * ) FROM tab0 cor0 WHERE NULL > + 91 * + col1 + - - 23 / col2 * col2 / 55
----
0

query II rowsort
SELECT - col2 + + col1 + + col0 + col1 AS col0, 40 FROM tab0 AS cor0
----
0
40
119
40
130
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT ALL 77 + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND 96
----
77

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL 77 + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND 96
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT DISTINCT - COUNT( * ) * ( + + 86 ) AS col2 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT - COUNT ( * ) * ( + + 86 ) AS col2 FROM tab2
----
-258

query I rowsort
SELECT ALL + col2 * - - 31 AS col0 FROM tab2
----
1240
1798
713

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT DISTINCT COUNT( * ) * - 87 FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT COUNT ( * ) * - 87 FROM tab2
----
-261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - ( - + col1 ) col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT + col0 + - ( 76 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5610
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col0 + - ( 76 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT + MIN( DISTINCT + ( + 22 ) ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-5611
SELECT + MIN ( DISTINCT + ( + 22 ) ) FROM tab2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5612
SELECT * FROM tab0 WHERE NOT - + col1 NOT IN ( + col2, + ( - col0 ), - CAST( NULL AS SIGNED ) + + 39 )
----

skipif mysql # not compatible
query III rowsort label-5612
SELECT * FROM tab0 WHERE NOT - + col1 NOT IN ( + col2, + ( - col0 ), - CAST ( NULL AS INTEGER ) + + 39 )
----

query I rowsort
SELECT DISTINCT - col0 * + ( - col0 ) AS col1 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT ALL - col2 * - + col0 * col2 FROM tab0
----
33135
8700
950697

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5615
SELECT * FROM tab0 WHERE NOT col0 + col2 / - + CAST( NULL AS SIGNED ) - - - 85 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5615
SELECT * FROM tab0 WHERE NOT col0 + col2 / - + CAST ( NULL AS INTEGER ) - - - 85 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT + AVG ( ALL - CAST( - - ( - col1 ) AS SIGNED ) ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT + AVG ( ALL - CAST ( - - ( - col1 ) AS INTEGER ) ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT - + ( + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5617
SELECT - + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN + + 62 * 34 * + col1 AND + col1 * + + col1 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5620
SELECT ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5621
SELECT col0 DIV 19 AS col0, col1 * - + ( + 65 ) FROM tab2 WHERE NOT - col2 > + col1
----
2
-3315
3
-4355
3
-5005

skipif mysql # not compatible
query II rowsort label-5621
SELECT col0 / 19 AS col0, col1 * - + ( + 65 ) FROM tab2 WHERE NOT - col2 > + col1
----
2
-3315
3
-4355
3
-5005

query I rowsort
SELECT col0 * - 82 FROM tab1
----
-4182
-6970
-7462

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5623
SELECT * FROM tab1 WHERE NOT - col1 * + + col2 * - CAST( NULL AS SIGNED ) + 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5623
SELECT * FROM tab1 WHERE NOT - col1 * + + col2 * - CAST ( NULL AS INTEGER ) + 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5624
SELECT ALL 35 DIV - - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL 35 / - - col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT 88 * COUNT( * ) AS col1 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-5625
SELECT 88 * COUNT ( * ) AS col1 FROM tab1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT 37 * - MAX( col1 ) AS col2 FROM tab2
----
-2849

skipif mysql # not compatible
query I rowsort label-5626
SELECT 37 * - MAX ( col1 ) AS col2 FROM tab2
----
-2849

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5627
SELECT - col2 + col2 + + CAST( NULL AS SIGNED ), + col0 AS col2 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5627
SELECT - col2 + col2 + + CAST ( NULL AS INTEGER ), + col0 AS col2 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL - - 72 + - 54 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT 70 * - - col0 + - - col0 + + 95 AS col0 FROM tab0 AS cor0
----
1160
6272
6982

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 98 = + + 7 * col1 AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

query I rowsort
SELECT - 43 + col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN - ( - + col0 ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 4 + - ( + ( + col1 ) ) IS NULL )
----

query I rowsort
SELECT 65 * + col0 AS col1 FROM tab2
----
2990
4160
4875

query I rowsort
SELECT DISTINCT - col2 + + + col0 AS col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT col1 - + 17 FROM tab2 WHERE ( NOT - ( col1 ) IN ( + col1 * + col0 * + + ( + + col0 ) ) )
----
34
50
60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 * + + col0 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 + 23 FROM tab1
----
28
37
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5641
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * col2 * - 59 AS col2 FROM tab0 AS cor0 WHERE NOT ( - ( - 45 ) ) <> col0
----

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT + - CAST ( NULL AS REAL ) * col2 * - 59 AS col2 FROM tab0 AS cor0 WHERE NOT ( - ( - 45 ) ) <> col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 - - col2 IN ( 85 + - col0 + + 81 * col2 * - - 80 + - col0 + col2, col1 / + ( - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 67 * + - 47 * - 68 + - col0 + col0 * + + col1 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5644
SELECT ALL + CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL + CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + + col0 - - + col1 * - + col1 + + col2 FROM tab2 AS cor0
----
-2532
-4356
-5825

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 + - + col2 / - + 28 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 7 * col2 + - 86 AS col2 FROM tab1 AS cor0
----
-499
-562
-758

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT - + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5648
SELECT - + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5649
SELECT DISTINCT - 66 AS col2, COUNT( * ) AS col0 FROM tab0
----
-66
3

skipif mysql # not compatible
query II rowsort label-5649
SELECT DISTINCT - 66 AS col2, COUNT ( * ) AS col0 FROM tab0
----
-66
3

query I rowsort
SELECT ALL 32 * - 67 AS col0 FROM tab1
----
-2144
-2144
-2144

query I rowsort
SELECT 77 + + 29 FROM tab0 WHERE NOT + - 9 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( 66 ) FROM tab0
----
66

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT ALL SUM( col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL SUM ( col0 ) AS col0 FROM tab0
----
199

query II rowsort
SELECT DISTINCT + 38, col1 AS col2 FROM tab0
----
38
1
38
21
38
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT - 79 * - + CAST( + 3 AS SIGNED ) col0 FROM tab2 AS cor0
----
237
237
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5656
SELECT - 79 * - + CAST ( + 3 AS INTEGER ) col0 FROM tab2 AS cor0
----
237
237
237

query II rowsort
SELECT col2 AS col0, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5658
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 96 - col1 * - + 63 + + + 20 * + 1 - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5658
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 96 - col1 * - + 63 + + + 20 * + 1 - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + col0 + + ( 40 ) - - col1 * + - col0 FROM tab0 AS cor0
----
-950
5782
9352

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * - - 9 AND + + ( - - col2 ) * + - col0 + + col0 - 67 * - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT ALL - CAST( - - col0 AS SIGNED ) / - col1 FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND - col0 + + 76 + + 11
----

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL - CAST ( - - col0 AS INTEGER ) / - col1 FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND - col0 + + 76 + + 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT DISTINCT + COUNT( ALL + 21 ) * SUM( DISTINCT + 5 ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT + COUNT ( ALL + 21 ) * SUM ( DISTINCT + 5 ) FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT DISTINCT - - MAX( - col0 ) + - + 63 AS col1 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT - - MAX ( - col0 ) + - + 63 AS col1 FROM tab1 AS cor0
----
-114

query I rowsort
SELECT ALL + - ( - col2 ) FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5665
SELECT DISTINCT 3 * - CAST( NULL AS SIGNED ) + + + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT 3 * - CAST ( NULL AS INTEGER ) + + + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * - 77 + + col1 FROM tab2 AS cor0
----
-3491
-4851
-5708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5667
SELECT ALL 78 + CAST( NULL AS SIGNED ) + - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL 78 + CAST ( NULL AS INTEGER ) + - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + - col1 IS NOT NULL AND NOT + col2 * - col0 < - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 + + + col1 col2 FROM tab1
----
-17
-8
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT + COUNT( * ) + 76 FROM tab0 WHERE + 32 IS NOT NULL
----
79

skipif mysql # not compatible
query I rowsort label-5670
SELECT + COUNT ( * ) + 76 FROM tab0 WHERE + 32 IS NOT NULL
----
79

query I rowsort
SELECT ALL - col2 * + + col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + 39 * + col2 AS col2 FROM tab2
----
1560
2262
897

query I rowsort
SELECT col1 + - 18 FROM tab2
----
33
49
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL MAX( - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL MAX ( - col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5675
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + col2 AS col2, + ( + + 29 ) FROM tab2
----
NULL
29
NULL
29
NULL
29

skipif mysql # not compatible
query II rowsort label-5675
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + col2 AS col2, + ( + + 29 ) FROM tab2
----
NULL
29
NULL
29
NULL
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= - 2 * col1 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5677
SELECT ( + + CAST( NULL AS SIGNED ) ) - + col0 * col1 * 98 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT ( + + CAST ( NULL AS INTEGER ) ) - + col0 * col1 * 98 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT DISTINCT SUM( col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT 59 IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + ( + ( + 9 ) ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col1 + col0 * - - col1 < - - col2 + ( + - col1 )
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col1 FROM tab1 cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT DISTINCT - + COUNT( - + 83 ) * + 83 FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT - + COUNT ( - + 83 ) * + 83 FROM tab0 AS cor0
----
-249

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 64 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 64 - + col1 / + 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT SUM( 80 ) * 2 AS col0 FROM tab0 AS cor0
----
480

skipif mysql # not compatible
query I rowsort label-5686
SELECT SUM ( 80 ) * 2 AS col0 FROM tab0 AS cor0
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT 17 * COUNT( * ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5687
SELECT 17 * COUNT ( * ) AS col1 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT DISTINCT MAX( + 78 ) * - COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
-702

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT MAX ( + 78 ) * - COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
-702

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 ) * col1 / col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 7 + 43 IS NOT NULL )
----

query I rowsort
SELECT 66 * - col2 AS col1 FROM tab2
----
-1518
-2640
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT ALL + COUNT( * ) * + + 13 AS col1 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL + COUNT ( * ) * + + 13 AS col1 FROM tab1
----
39

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 94 * col2 NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT + MAX( - 54 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5694
SELECT + MAX ( - 54 ) FROM tab1 AS cor0
----
-54

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + ( - col1 ) + - + col1 AS col0 FROM tab0
----
-162
-2
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 91 col2 FROM tab0
----
-1911
-7371
-91

query I rowsort
SELECT DISTINCT - 54 * col0 AS col2 FROM tab1 cor0
----
-2754
-4590
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5701
SELECT ALL - + ( + col2 ) DIV 91 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL - + ( + col2 ) / 91 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - + col1 * - col0 + + 42 FROM tab2 AS cor0
----
2388
4970
5067

query I rowsort
SELECT 42 + - col2 * - col1 FROM tab1 AS cor0
----
1386
3238
337

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 IN ( - col0 + - col1 / col1 + col2 )
----

query I rowsort
SELECT - col1 + + col1 * + - 86 FROM tab2 AS cor0
----
-4437
-5829
-6699

onlyif mysql # DIV for integer division: 
query II rowsort label-5706
SELECT DISTINCT - 61 + 11 + - col1 + + 84 DIV + + col0 AS col1, col0 AS col2 FROM tab1
----
-55
85
-63
51
-97
91

skipif mysql # not compatible
query II rowsort label-5706
SELECT DISTINCT - 61 + 11 + - col1 + + 84 / + + col0 AS col1, col0 AS col2 FROM tab1
----
-55
85
-63
51
-97
91

query I rowsort
SELECT DISTINCT 79 + + col0 AS col1 FROM tab2
----
125
143
154

query I rowsort
SELECT 72 * col1 AS col1 FROM tab1
----
1008
3384
360

query I rowsort
SELECT DISTINCT + col2 - - 62 FROM tab1
----
121
130
158

query I rowsort
SELECT ALL 46 * + - 8 FROM tab0
----
-368
-368
-368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5711
SELECT + + CAST( NULL AS SIGNED ) - - 20 + COUNT( - 99 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5711
SELECT + + CAST ( NULL AS INTEGER ) - - 20 + COUNT ( - 99 ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - - col0 ) + col0 * + 92 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5713
SELECT - - MAX( ALL col2 ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT - - MAX ( ALL col2 ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 + + 82 + + 82 col2 FROM tab1 cor0
----
214
214
214

query II rowsort
SELECT ALL + ( - 24 ), col1 + + 55 AS col0 FROM tab0 AS cor0
----
-24
136
-24
56
-24
76

query I rowsort
SELECT - col1 + + 90 FROM tab2
----
13
23
39

query I rowsort
SELECT DISTINCT + - 10 * + col1 + - + col2 - + 41 + col1 - + 66 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-211
-329
-598

query I rowsort
SELECT DISTINCT 19 * - col2 FROM tab0
----
-1881
-190
-893

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5719
SELECT + CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT + CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT COUNT( ALL + 49 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5720
SELECT COUNT ( ALL + 49 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT - + ( - col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT ALL + col2, col0 AS col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT - col1 * col1 * - - ( - col0 ) FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT - - MAX( ALL + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5724
SELECT - - MAX ( ALL + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT col2 * col0 / - ( - 49 ) - + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT col2 * col0 / - ( - 49 ) - + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 98 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT SUM( DISTINCT + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5727
SELECT SUM ( DISTINCT + col2 ) AS col0 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT ALL MAX( - 90 ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL MAX ( - 90 ) FROM tab2
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 WHERE NOT - col1 <= 71
----

query I rowsort
SELECT + + ( 24 ) FROM tab2 AS cor0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT col2 * col0 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT col2 * col0 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 39 * + col0 AS col1 FROM tab0 AS cor0
----
3393
3783
585

query I rowsort
SELECT + + col2 FROM tab2 WHERE 47 + col1 * col1 + - col2 < - 38
----

query I rowsort
SELECT 42 * + + col2 FROM tab2
----
1680
2436
966

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - 78 + + col0 FROM tab0 cor0
----
-1155
-6699
-7469

query I rowsort
SELECT - col1 * - - 59 FROM tab0 AS cor0
----
-1239
-4779
-59

query I rowsort
SELECT + + 67 * + 34 FROM tab2 AS cor0
----
2278
2278
2278

query I rowsort
SELECT DISTINCT col0 * col1 * - col1 FROM tab1 AS cor0 WHERE NOT 33 * 64 IS NOT NULL
----

query II rowsort
SELECT - + col2 AS col2, + 79 * + - col0 AS col1 FROM tab0 AS cor0
----
-10
-6873
-47
-1185
-99
-7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col1 - - - col2 col0 FROM tab1 AS cor0
----
14
-82
47
-21
5
-54

query I rowsort
SELECT DISTINCT + 51 + - + col2 AS col1 FROM tab2
----
-7
11
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - col2 col2 FROM tab1
----
110
115
64

query I rowsort
SELECT col1 + 31 FROM tab0
----
112
32
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5745
SELECT DISTINCT + ( - col1 ) + + + 19 + - - col2 + - CAST( NULL AS SIGNED ) + + col0 / - col1 * - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT + ( - col1 ) + + + 19 + - - col2 + - CAST ( NULL AS INTEGER ) + + col0 / - col1 * - col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + + col1 * - col2, - col2, - 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT ALL - MIN( 88 ) - + - 30 AS col1 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL - MIN ( 88 ) - + - 30 AS col1 FROM tab1
----
-58

query I rowsort
SELECT + 21 * + + 1 FROM tab1 cor0
----
21
21
21

query I rowsort
SELECT - - 43 * + 76 FROM tab0 AS cor0
----
3268
3268
3268

query I rowsort
SELECT DISTINCT col0 - - - col1 AS col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5751
SELECT ALL + - 4, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-4
-3

skipif mysql # not compatible
query II rowsort label-5751
SELECT ALL + - 4, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-4
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) <= - col2
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = - col1 * + + 61
----

query I rowsort
SELECT col1 * - - col0 + - 24 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2322
4904
5001

query II rowsort
SELECT col0 * - - 62, col1 AS col0 FROM tab2 AS cor0
----
2852
51
3968
77
4650
67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2, + 27 AS col0 FROM tab2
----
23
27
40
27
58
27

query I rowsort
SELECT col0 * + - col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5759
SELECT DISTINCT + col0 + col2 / - + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5759
SELECT DISTINCT + col0 + col2 / - + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * - col1 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT MIN( 2 ) * - 52 * + + 27 AS col0, 82 FROM tab0
----
-2808
82

skipif mysql # not compatible
query II rowsort label-5761
SELECT MIN ( 2 ) * - 52 * + + 27 AS col0, 82 FROM tab0
----
-2808
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT ALL COUNT( * ) * 72 AS col1 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL COUNT ( * ) * 72 AS col1 FROM tab2
----
216

query II rowsort
SELECT DISTINCT + 77, col1 AS col0 FROM tab1 AS cor0
----
77
14
77
47
77
5

query I rowsort
SELECT 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5765
SELECT * FROM tab1 WHERE + - 59 + + CAST( NULL AS SIGNED ) IN ( - - col0 * - col2 + 68 )
----

skipif mysql # not compatible
query III rowsort label-5765
SELECT * FROM tab1 WHERE + - 59 + + CAST ( NULL AS INTEGER ) IN ( - - col0 * - col2 + 68 )
----

query I rowsort
SELECT - col2 + + + col0 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-2
-32
77

query I rowsort
SELECT col1 * - 7 AS col0 FROM tab0 AS cor0 WHERE - col0 = + col1 - + col1 * + ( + col0 ) * + 97 * - ( + 59 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT + 63 DIV col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5768
SELECT + 63 / col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5769
SELECT + CAST( + + 57 AS SIGNED ) * - ( + col0 ), - col1 AS col1 FROM tab2 AS cor0
----
-2622
-51
-3648
-77
-4275
-67

skipif mysql # not compatible
query II rowsort label-5769
SELECT + CAST ( + + 57 AS INTEGER ) * - ( + col0 ), - col1 AS col1 FROM tab2 AS cor0
----
-2622
-51
-3648
-77
-4275
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5770
SELECT ALL 24, col0 * 56 + - - col0 / CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE - 81 / - + 19 + col1 IS NOT NULL
----
24
NULL
24
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-5770
SELECT ALL 24, col0 * 56 + - - col0 / CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE - 81 / - + 19 + col1 IS NOT NULL
----
24
NULL
24
NULL
24
NULL

query I rowsort
SELECT + col2 * - 65 AS col0 FROM tab0
----
-3055
-6435
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ( - - MIN( ALL - col2 ) ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5772
SELECT ( - - MIN ( ALL - col2 ) ) AS col0 FROM tab2
----
-58

query I rowsort
SELECT ALL - col0 * + ( col2 ) FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + ( - - 87 ) + col1 + - col1 FROM tab2
----
87

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE + 0 / + 77 + 63 * 87 + 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT DISTINCT - COUNT( * ) - - 10 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT - COUNT ( * ) - - 10 FROM tab1
----
7

query I rowsort
SELECT DISTINCT 41 - col2 AS col1 FROM tab0
----
-58
-6
31

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT - - COUNT( * ) * + + 40 AS col0 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-5779
SELECT - - COUNT ( * ) * + + 40 AS col0 FROM tab2 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL COUNT( * ) * + - 78 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL COUNT ( * ) * + - 78 FROM tab1 AS cor0
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5781
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + col0 / - CAST( - + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5781
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + col0 / - CAST ( - + col0 AS INTEGER )
----

query I rowsort
SELECT col0 * + - 57 + - col2 FROM tab0 AS cor0
----
-4969
-5628
-902

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < 87
----
0

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < 87
----
0

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT + 77 BETWEEN NULL AND 96
----

query II rowsort
SELECT ALL + col0, 11 AS col2 FROM tab2
----
46
11
64
11
75
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 40, 87 col1 FROM tab0 cor0
----
40
87
40
87
40
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5787
SELECT - + 43 AS col2, - ( MAX( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
-43
-96

skipif mysql # not compatible
query II rowsort label-5787
SELECT - + 43 AS col2, - ( MAX ( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
-43
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 8 >= - col1 - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - - col2 col1, col1 FROM tab0 AS cor0
----
705
81
870
21
9603
1

query I rowsort
SELECT + - 53 * + + 30 AS col2 FROM tab2 AS cor0
----
-1590
-1590
-1590

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5792
SELECT DISTINCT + col1 DIV + col0 + CAST( + 6 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
6
7

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT + col1 / + col0 + CAST ( + 6 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
6
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT DISTINCT ( - + 34 ) DIV + col0 + + + 19 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT ( - + 34 ) / + col0 + + + 19 FROM tab2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5794
SELECT DISTINCT COUNT( + 93 ) AS col1, + CAST( NULL AS SIGNED ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5794
SELECT DISTINCT COUNT ( + 93 ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab0
----
3
NULL

query I rowsort
SELECT ALL col1 + - + col0 AS col0 FROM tab1
----
-37
-44
-80

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT 29 * - + COUNT( * ) * 11 + + 78 FROM tab1
----
-879

skipif mysql # not compatible
query I rowsort label-5797
SELECT 29 * - + COUNT ( * ) * 11 + + 78 FROM tab1
----
-879

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT - + MAX( + col2 ) AS col2 FROM tab2 WHERE - + col0 * - col2 + + - col2 / + + col2 IS NOT NULL
----
-58

skipif mysql # not compatible
query I rowsort label-5798
SELECT - + MAX ( + col2 ) AS col2 FROM tab2 WHERE - + col0 * - col2 + + - col2 / + + col2 IS NOT NULL
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT MIN( col2 ) + + 84 AS col0 FROM tab2 cor0
----
107

skipif mysql # not compatible
query I rowsort label-5799
SELECT MIN ( col2 ) + + 84 AS col0 FROM tab2 cor0
----
107

query I rowsort
SELECT - col0 * + col1 + - col2 - - 97 + - + col2 + - - col0 * - 9 * + col1 AS col0 FROM tab0 AS cor0
----
-1071
-12147
-18193

query II rowsort
SELECT DISTINCT 52, + 25 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5802
SELECT DISTINCT col0 * - CAST( - - col0 AS SIGNED ) AS col2, 13 FROM tab1 cor0
----
-2601
13
-7225
13
-8281
13

skipif mysql # not compatible
query II rowsort label-5802
SELECT DISTINCT col0 * - CAST ( - - col0 AS INTEGER ) AS col2, 13 FROM tab1 cor0
----
-2601
13
-7225
13
-8281
13

query II rowsort
SELECT DISTINCT 65 + + - col1 + + col2 AS col1, ( col2 ) FROM tab1
----
119
59
147
96
86
68

query I rowsort
SELECT ( ( + - col2 ) ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT + + ( + COUNT( + - col1 ) ) * + 95 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-5805
SELECT + + ( + COUNT ( + - col1 ) ) * + 95 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
282

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) < + col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT + COUNT( * ) - 98 AS col0 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5807
SELECT + COUNT ( * ) - 98 AS col0 FROM tab1 AS cor0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 AS col0, col1 + + col0 col2 FROM tab0 cor0
----
10
108
47
96
99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT DISTINCT + COUNT( * ) + MIN( ALL - + col2 ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT + COUNT ( * ) + MIN ( ALL - + col2 ) FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL 8 * + + ( col1 ) FROM tab2 cor0
----
408
536
616

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT + - SUM( DISTINCT + 0 ) AS col2 FROM tab2 WHERE - - col2 - - - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5811
SELECT + - SUM ( DISTINCT + 0 ) AS col2 FROM tab2 WHERE - - col2 - - - col1 IS NOT NULL
----
0

query I rowsort
SELECT + col1 + - - col2 * col0 AS col2 FROM tab2
----
1109
2637
4417

query III rowsort
SELECT * FROM tab2 WHERE - col1 * + col0 - - 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT ALL COUNT( * ) * - COUNT( * ) + - - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL COUNT ( * ) * - COUNT ( * ) + - - COUNT ( * ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT + ( MAX( DISTINCT - 27 ) ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-5815
SELECT + ( MAX ( DISTINCT - 27 ) ) AS col1 FROM tab1
----
-27

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( ( col1 ) ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT + ( + CAST( col0 AS SIGNED ) ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5817
SELECT + ( + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 99 <= + 43 + 48 + col1
----
97
1
99

query I rowsort
SELECT + 67 * 52 * - col2 FROM tab1 AS cor0
----
-205556
-236912
-334464

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT DISTINCT COUNT( DISTINCT - + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT COUNT ( DISTINCT - + col0 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 21 ) NOT BETWEEN NULL AND - 71 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5822
SELECT DISTINCT + col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-5822
SELECT DISTINCT + col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT - - 75 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-5823
SELECT - - 75 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-225

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 6 BETWEEN NULL AND - 55 / - col1 * - 99 / + 30 + col1 * - col1 - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT DISTINCT + 46 * - MIN( + 94 ) FROM tab2 AS cor0
----
-4324

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT + 46 * - MIN ( + 94 ) FROM tab2 AS cor0
----
-4324

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5826
SELECT DISTINCT 75 + - - col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT 75 + - - col1 * CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL + SUM( DISTINCT + - 49 ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + SUM ( DISTINCT + - 49 ) FROM tab0
----
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5828
SELECT - 7 + + 89 + + - col2 DIV - - col0 AS col0, CAST( NULL AS SIGNED ) * - ( + ( - - col1 ) ) + + col1 + + 0 * + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
81
NULL
82
NULL
82
NULL

skipif mysql # not compatible
query II rowsort label-5828
SELECT - 7 + + 89 + + - col2 / - - col0 AS col0, CAST ( NULL AS INTEGER ) * - ( + ( - - col1 ) ) + + col1 + + 0 * + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
81
NULL
82
NULL
82
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5829
SELECT DISTINCT - col1 AS col1, 27 DIV col1 AS col0 FROM tab2
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-5829
SELECT DISTINCT - col1 AS col1, 27 / col1 AS col0 FROM tab2
----
-51
0
-67
0
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT - 57 + - COUNT( * ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-5830
SELECT - 57 + - COUNT ( * ) FROM tab1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT + 75 * + + MAX( ALL col1 ) AS col0 FROM tab0
----
6075

skipif mysql # not compatible
query I rowsort label-5831
SELECT + 75 * + + MAX ( ALL col1 ) AS col0 FROM tab0
----
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT + MAX( 41 ) * + - 94 FROM tab0
----
-3854

skipif mysql # not compatible
query I rowsort label-5832
SELECT + MAX ( 41 ) * + - 94 FROM tab0
----
-3854

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 4 + - 60 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, 28 FROM tab2
----
-51
28
-67
28
-77
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT ALL col0 DIV + 79 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL col0 / + 79 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT + MIN( - + col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5836
SELECT + MIN ( - + col2 ) AS col2 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 + + - col2 IS NULL
----
39

query II rowsort
SELECT ALL - - col0 AS col0, - col0 AS col1 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5839
SELECT 90 DIV - col2 + CAST( - - 46 AS SIGNED ) * + + col1 FROM tab0 cor0
----
3725
46
957

skipif mysql # not compatible
query I rowsort label-5839
SELECT 90 / - col2 + CAST ( - - 46 AS INTEGER ) * + + col1 FROM tab0 cor0
----
3725
46
957

query I rowsort
SELECT DISTINCT + - col1 * - col1 - + - 58 FROM tab0 cor0
----
499
59
6619

query I rowsort
SELECT 71 - + - col2 AS col1 FROM tab1 AS cor0
----
130
139
167

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL - ( 95 ) - + COUNT( * ) FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL - ( 95 ) - + COUNT ( * ) FROM tab0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5843
SELECT 58 DIV + + col2 + - - col2 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-5843
SELECT 58 / + + col2 + - - col2 FROM tab2
----
25
41
59

query II rowsort
SELECT + ( - 64 ) + 43 AS col1, - col0 AS col1 FROM tab1
----
-21
-51
-21
-85
-21
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5845
SELECT - col1 + - ( + CAST( NULL AS SIGNED ) ) - + col0 * 26 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT - col1 + - ( + CAST ( NULL AS INTEGER ) ) - + col0 * 26 AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 27 + + + 38 + + col2 + + ( col1 ), + col0 AS col1 FROM tab2
----
139
46
182
64
190
75

query I rowsort
SELECT DISTINCT col0 - - col1 AS col2 FROM tab0 AS cor0
----
108
96
98

query II rowsort
SELECT + + 48, ( - + 78 ) + + + 24 AS col0 FROM tab1 AS cor0 WHERE + 64 <= NULL
----

query I rowsort
SELECT 27 * - - 62 FROM tab1 AS cor0
----
1674
1674
1674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5850
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5850
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + ( - - col2 ) FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 * - - ( col1 ) col2 FROM tab2 AS cor0
----
153
201
231

query I rowsort
SELECT DISTINCT col1 + + - 56 + - - col1 + + col1 * + - col2 AS col2 FROM tab0 AS cor0
----
-153
-224
-3701

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 54 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5855
SELECT + col0 DIV - 41, + 9 * col0 * + col1 * + col0 AS col2 FROM tab1 cor0
----
-1
327726
-2
325125
-2
3502863

skipif mysql # not compatible
query II rowsort label-5855
SELECT + col0 / - 41, + 9 * col0 * + col1 * + col0 AS col2 FROM tab1 cor0
----
-1
327726
-2
325125
-2
3502863

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE col2 * + 25 IS NULL
----

query II rowsort
SELECT + 78 AS col1, - 92 AS col2 FROM tab0
----
78
-92
78
-92
78
-92

query I rowsort
SELECT ALL - 6 + + col0 FROM tab2 WHERE NOT + - col2 IN ( - col2, - 81 + - + col2 + - - col1, + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab0 WHERE NOT - col1 * + - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT - col1 * + - col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT DISTINCT MIN( ALL - - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT MIN ( ALL - - col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

query II rowsort
SELECT ALL + ( + - 1 ) * + - 89 * - - col0 AS col0, 2 FROM tab2 AS cor0 WHERE 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT DISTINCT - COUNT( ALL + col0 ) + 45 AS col1 FROM tab1 cor0 WHERE + 29 IS NULL
----
45

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT - COUNT ( ALL + col0 ) + 45 AS col1 FROM tab1 cor0 WHERE + 29 IS NULL
----
45

query III rowsort
SELECT * FROM tab2 WHERE 39 * + 33 IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5865
SELECT col2 - + col2 DIV + col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5865
SELECT col2 - + col2 / + col0 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 50 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL - COUNT( * ) + - 8 FROM tab2 WHERE - 10 * + col0 + col0 * ( 1 ) BETWEEN col1 AND NULL
----
-8

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL - COUNT ( * ) + - 8 FROM tab2 WHERE - 10 * + col0 + col0 * ( 1 ) BETWEEN col1 AND NULL
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - ( col2 - + col0 ) col0 FROM tab1
----
-21
24
59

query I rowsort
SELECT - col1 * + col1 + col0 FROM tab2
----
-2555
-4414
-5865

query I rowsort
SELECT ALL + 58 + + 40 AS col0 FROM tab2
----
98
98
98

query I rowsort
SELECT DISTINCT ( 16 ) + col1 FROM tab1
----
21
30
63

query I rowsort
SELECT col0 FROM tab1 WHERE col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT DISTINCT 65 * - MIN( ALL - col2 ) AS col2 FROM tab2 WHERE col2 + + 28 NOT IN ( - 34 )
----
3770

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT 65 * - MIN ( ALL - col2 ) AS col2 FROM tab2 WHERE col2 + + 28 NOT IN ( - 34 )
----
3770

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NULL <= 5 * + 87
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col2 FROM tab1
----
72
72
72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 - + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5879
SELECT ALL 38 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL 38 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) > ( NULL )
----

query I rowsort
SELECT 59 AS col2 FROM tab2 WHERE NOT col0 - col0 BETWEEN 20 AND + col2
----
59
59
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 / 67 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + col0 + 42 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT DISTINCT - col2 col0 FROM tab0 WHERE NOT CAST( col0 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5884
SELECT DISTINCT - col2 col0 FROM tab0 WHERE NOT CAST ( col0 AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 9 - col2 FROM tab0 WHERE NOT - 5 - + col0 / - col0 NOT BETWEEN ( col0 + - col1 ) AND ( + col2 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT ALL ( - COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL ( - COUNT ( * ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT DISTINCT COUNT( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NOT + 82 BETWEEN ( NULL ) AND col2
----
3

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT COUNT ( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NOT + 82 BETWEEN ( NULL ) AND col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5888
SELECT DISTINCT CAST( + 84 AS SIGNED ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT CAST ( + 84 AS INTEGER ) FROM tab0
----
84

query I rowsort
SELECT DISTINCT - 30 * 23 AS col2 FROM tab2
----
-690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5890
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5890
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5891
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 71 * 51 AS col2 FROM tab1
----
3621
3621
3621

query I rowsort
SELECT DISTINCT 52 * col0 AS col0 FROM tab1
----
2652
4420
4732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5894
SELECT DISTINCT + ( COUNT( * ) ) + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col2 > ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT + ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col2 > ( + col1 )
----
NULL

query I rowsort
SELECT col0 * 35 AS col0 FROM tab2
----
1610
2240
2625

query I rowsort
SELECT + col1 / col1 + - col1 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT COUNT( * ) * - 91 AS col2 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-5897
SELECT COUNT ( * ) * - 91 AS col2 FROM tab0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL COUNT( col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL COUNT ( col1 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT 97 - ( col2 ) AS col2 FROM tab2
----
39
57
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * + 48 col2 FROM tab0
----
1680
1680
1680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 col1 FROM tab2 AS cor0 WHERE NOT - col1 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT ALL col0 + - CAST( col0 - + col2 * 26 AS SIGNED ) FROM tab0 cor0
----
1222
2574
260

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL col0 + - CAST ( col0 - + col2 * 26 AS INTEGER ) FROM tab0 cor0
----
1222
2574
260

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL ( - COUNT( * ) ) * COUNT( * ) + 36 col1 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5903
SELECT ALL ( - COUNT ( * ) ) * COUNT ( * ) + 36 col1 FROM tab0 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT DISTINCT - 65 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
-56

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT - 65 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
-56

query I rowsort
SELECT 90 - - col2 * - col2 FROM tab0
----
-10
-2119
-9711

query I rowsort
SELECT - 24 - + 10 * 31 FROM tab2
----
-334
-334
-334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5907
SELECT - 72 - - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT - 72 - - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT + col0 * col1 - CAST( 20 AS SIGNED ) FROM tab0 AS cor0
----
1195
1807
77

skipif mysql # not compatible
query I rowsort label-5908
SELECT + col0 * col1 - CAST ( 20 AS INTEGER ) FROM tab0 AS cor0
----
1195
1807
77

query I rowsort
SELECT - + 39 * col0 AS col2 FROM tab0 cor0
----
-3393
-3783
-585

query I rowsort
SELECT ALL - ( col0 ) * 94 AS col0 FROM tab0 AS cor0
----
-1410
-8178
-9118

query I rowsort
SELECT ALL ( 55 ) AS col0 FROM tab2 cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT CAST( NULL AS SIGNED ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT CAST ( NULL AS INTEGER ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 67 ) AS col2 FROM tab1
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col1 FROM tab2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT 77 DIV - - COUNT( * ) AS col0 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-5915
SELECT 77 / - - COUNT ( * ) AS col0 FROM tab0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5916
SELECT ALL + col1 + + col0 * CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 33
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5916
SELECT ALL + col1 + + col0 * CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 33
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT col1 DIV + - col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5917
SELECT col1 / + - col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - col1 * + - 67 FROM tab0
----
1407
5427
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5919
SELECT 18 DIV - - ( col0 ) col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5919
SELECT 18 / - - ( col0 ) col0 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 23 + - col0 FROM tab0 AS cor0 WHERE + col1 + + col2 * + 72 IS NOT NULL
----
-64
-74
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5923
SELECT DISTINCT + CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5924
SELECT ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT - - COUNT( * ) * + 70 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
630

skipif mysql # not compatible
query I rowsort label-5925
SELECT - - COUNT ( * ) * + 70 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
630

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + - 22 + - 35 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 * + 33 )
----

query I rowsort
SELECT ALL - col2 + - - col1 AS col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5929
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * - col0 + - - col2 AS col2 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE - col1 > ( 96 + col0 )
----

query I rowsort
SELECT 54 FROM tab1 WHERE col0 + 21 + ( col0 + - col2 * col1 ) <> + col0 * 98
----
54
54
54

query I rowsort
SELECT DISTINCT 48 + - col0 FROM tab2
----
-16
-27
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT COUNT( DISTINCT col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5934
SELECT COUNT ( DISTINCT col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL - 80 + - col1 FROM tab1
----
-127
-85
-94

query I rowsort
SELECT DISTINCT + col1 + col2 * + col1 * - col1 FROM tab1
----
-1470
-150165
-18802

query III rowsort
SELECT * FROM tab0 WHERE NULL < col0 + - col1 * + col2
----

query I rowsort
SELECT ALL col0 + + + 68 + + 2 * + + col2 FROM tab1
----
271
295
311

query I rowsort
SELECT DISTINCT + col2 + - ( 71 ) FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT + 89 * col2 AS col1 FROM tab1 WHERE NULL NOT IN ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 11 <> ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT MIN( + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT MIN ( + col2 ) AS col1 FROM tab2
----
23

query II rowsort
SELECT ALL 49 - - - col0 AS col1, col2 AS col1 FROM tab2
----
-15
40
-26
58
3
23

query I rowsort
SELECT ALL col0 + - + col1 FROM tab0
----
-66
66
96

query I rowsort
SELECT DISTINCT - 71 * + + ( col1 ) + - col2 FROM tab2
----
-3644
-4815
-5507

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT 15 / + + 71 - + 22 FROM tab2 AS cor0 WHERE NULL < 17
----

query I rowsort
SELECT ALL + col0 * + + col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT DISTINCT 31 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT 31 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5950
SELECT + 57 AS col2, SUM( DISTINCT 70 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) < NULL
----
57
NULL

skipif mysql # not compatible
query II rowsort label-5950
SELECT + 57 AS col2, SUM ( DISTINCT 70 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) < NULL
----
57
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5951
SELECT 68 DIV - 90 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5951
SELECT 68 / - 90 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5952
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - CAST( NULL AS SIGNED ) AND + - col2
----

skipif mysql # not compatible
query III rowsort label-5952
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - CAST ( NULL AS INTEGER ) AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL + CAST( NULL AS SIGNED ) * - 39 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL + CAST ( NULL AS INTEGER ) * - 39 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT SUM( ALL ( + col0 ) ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5954
SELECT SUM ( ALL ( + col0 ) ) AS col1 FROM tab1
----
227

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 = - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5956
SELECT ALL SUM( + + col2 ) AS col2, 6 FROM tab1
----
223
6

skipif mysql # not compatible
query II rowsort label-5956
SELECT ALL SUM ( + + col2 ) AS col2, 6 FROM tab1
----
223
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT 11 + COUNT( DISTINCT - col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
14

skipif mysql # not compatible
query I rowsort label-5957
SELECT 11 + COUNT ( DISTINCT - col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
14

query I rowsort
SELECT 66 FROM tab1 WHERE NOT + col2 * + col2 / + col2 - - + 20 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - 67 ) AS col2 FROM tab2 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + col1 * col2 * + - 28 * + 65 AS col0 FROM tab0
----
-180180
-382200
-6928740

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 98 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE + - 19 BETWEEN - 29 AND 73 + + 87
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL SUM( ALL + - 53 ) FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL SUM ( ALL + - 53 ) FROM tab1
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-5964
SELECT DISTINCT 40 DIV - + col1 FROM tab1
----
-2
-8
0

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT 40 / - + col1 FROM tab1
----
-2
-8
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5965
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, col2 col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5965
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, col2 col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 + col0 + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * col2 <> col1 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5968
SELECT + 57 AS col0, + col1 DIV col1 + - 45 + - + 83 * + col0 AS col1 FROM tab2 AS cor0
----
57
-3862
57
-5356
57
-6269

skipif mysql # not compatible
query II rowsort label-5968
SELECT + 57 AS col0, + col1 / col1 + - 45 + - + 83 * + col0 AS col1 FROM tab2 AS cor0
----
57
-3862
57
-5356
57
-6269

query I rowsort
SELECT - 86 + + 20 + - + 10 AS col1 FROM tab1 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-5970
SELECT DISTINCT - + 91 AS col0, + COUNT( - col1 ) AS col1 FROM tab1 AS cor0
----
-91
3

skipif mysql # not compatible
query II rowsort label-5970
SELECT DISTINCT - + 91 AS col0, + COUNT ( - col1 ) AS col1 FROM tab1 AS cor0
----
-91
3

query I rowsort
SELECT + + col1 * col0 + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 > - 17
----

query III rowsort
SELECT * FROM tab1 WHERE + + ( - col1 ) NOT BETWEEN col1 + col1 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 52 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 22 * ( - 91 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 11 AS col0 FROM tab2 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT - COUNT( * ) * 46 col0 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5976
SELECT - COUNT ( * ) * 46 col0 FROM tab1 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT DISTINCT - - ( + COUNT( ( 60 ) ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT - - ( + COUNT ( ( 60 ) ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - - col1 = ( + col1 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5979
SELECT ALL + CAST( NULL AS DECIMAL ) * + col1 + 51 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + CAST ( NULL AS REAL ) * + col1 + 51 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 ) BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT + 39 * MAX( ALL col0 ) AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
3783

skipif mysql # not compatible
query I rowsort label-5981
SELECT + 39 * MAX ( ALL col0 ) AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
3783

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5982
SELECT * FROM tab1 WHERE + 95 * - col2 + - + CAST( - 48 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5982
SELECT * FROM tab1 WHERE + 95 * - col2 + - + CAST ( - 48 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 13 - - col0 AS col2 FROM tab1
----
104
64
98

query I rowsort
SELECT DISTINCT 31 - + - col2 FROM tab0
----
130
41
78

query I rowsort
SELECT + col0 * - - col0 + - ( - 37 ) AS col0 FROM tab1
----
2638
7262
8318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5986
SELECT ALL - CAST( - - 21 AS SIGNED ) FROM tab0
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL - CAST ( - - 21 AS INTEGER ) FROM tab0
----
-21
-21
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5987
SELECT - col0 + ( - + 92 ) / ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT - col0 + ( - + 92 ) / ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5988
SELECT ALL + CAST( NULL AS SIGNED ) * - 15 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT ALL + CAST ( NULL AS INTEGER ) * - 15 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT ALL - - COUNT( * ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5989
SELECT ALL - - COUNT ( * ) col0 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL ( 2 ) * 94 AS col0 FROM tab1
----
188
188
188

onlyif mysql # DIV for integer division: 
query II rowsort label-5991
SELECT ALL 0 DIV + col2 AS col1, - col2 AS col2 FROM tab0 AS cor0
----
0
-10
0
-47
0
-99

skipif mysql # not compatible
query II rowsort label-5991
SELECT ALL 0 / + col2 AS col1, - col2 AS col2 FROM tab0 AS cor0
----
0
-10
0
-47
0
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT ALL + 87 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL + 87 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-5
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5994
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - - 5 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5994
SELECT DISTINCT - CAST ( NULL AS REAL ) * - - 5 col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 39 * - - ( ( - 13 ) ) + - ( 11 ) + - + col2 AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
-541
-558
-576

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT - 65 * - 45 * - + col2 FROM tab1
----
-172575
-198900
-280800

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT - col1 DIV - - col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5998
SELECT - col1 / - - col1 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT + MIN( - col0 ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5999
SELECT + MIN ( - col0 ) col2 FROM tab1
----
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 BETWEEN col0 * + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT + COUNT( col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6001
SELECT + COUNT ( col1 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND - col0
----
3

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND - col0
----
3

query I rowsort
SELECT ALL - - col1 * - + 69 AS col2 FROM tab1 cor0
----
-3243
-345
-966

query II rowsort
SELECT ALL col0 AS col0, - 3 FROM tab0
----
15
-3
87
-3
97
-3

query II rowsort
SELECT 35 + - 13 AS col0, + 24 AS col2 FROM tab1
----
22
24
22
24
22
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT DISTINCT MIN( ALL - 73 ) + COUNT( * ) FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT MIN ( ALL - 73 ) + COUNT ( * ) FROM tab1
----
-70

query I rowsort
SELECT DISTINCT - - col1 * 76 AS col1 FROM tab0 AS cor0
----
1596
6156
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6008
SELECT ALL + COUNT( * ) AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6008
SELECT ALL + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT ALL - 52 + + - col0 AS col2 FROM tab1 AS cor0
----
-103
-137
-143

query I rowsort
SELECT - col0 + + - col0 + col1 FROM tab0 cor0
----
-153
-193
51

query I rowsort
SELECT ALL 74 + + col2 FROM tab0 AS cor0 WHERE 22 * - col0 <= + 19
----
121
173
84

query II rowsort
SELECT ALL - col0 AS col2, - col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT 0 * + + col1 * - 20 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + + 71 FROM tab2 AS cor0
----
122
138
148

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - + MAX( - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6015
SELECT - + MAX ( - col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL - + COUNT( * ) * - MAX( + - 54 ) + - + MAX( col0 ) FROM tab0 AS cor0
----
-259

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - + COUNT ( * ) * - MAX ( + - 54 ) + - + MAX ( col0 ) FROM tab0 AS cor0
----
-259

query I rowsort
SELECT ALL - col0 + ( + - col0 ) - - 5 AS col1 FROM tab2 AS cor0
----
-123
-145
-87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - + 29 + - - col0, col1 )
----

query I rowsort
SELECT DISTINCT col0 + - 82 AS col0 FROM tab2
----
-18
-36
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT DISTINCT MIN( + col2 ) + + + COUNT( * ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT MIN ( + col2 ) + + + COUNT ( * ) FROM tab1
----
62

query II rowsort
SELECT DISTINCT - 85 + + + col0, - col1 AS col2 FROM tab1
----
-34
-14
0
-5
6
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6023
SELECT COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-6024
SELECT - col0 DIV - col1 AS col0, col1 FROM tab0 AS cor0
----
0
81
4
21
97
1

skipif mysql # not compatible
query II rowsort label-6024
SELECT - col0 / - col1 AS col0, col1 FROM tab0 AS cor0
----
0
81
4
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT DISTINCT - 74 - - MAX( DISTINCT 6 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-68

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - 74 - - MAX ( DISTINCT 6 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-68

query I rowsort
SELECT 66 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT DISTINCT SUM( ALL + + col0 ) FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT SUM ( ALL + + col0 ) FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND col1
----
NULL

query II rowsort
SELECT + + col0 AS col1, 26 FROM tab1 AS cor0
----
51
26
85
26
91
26

query I rowsort
SELECT + 3 + col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN 79 + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT - SUM( ALL - 5 ) AS col1 FROM tab2 cor0
----
15

skipif mysql # not compatible
query I rowsort label-6030
SELECT - SUM ( ALL - 5 ) AS col1 FROM tab2 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT MAX( + 78 ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6031
SELECT MAX ( + 78 ) FROM tab0 AS cor0
----
78

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <> + - ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6033
SELECT ALL + + 14 * - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + + 14 * - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( ( + 93 ) ) FROM tab2 AS cor0
----
93
93
93

query II rowsort
SELECT DISTINCT + ( + col2 ) * - 26, + col0 + - - 88 AS col0 FROM tab0 AS cor0
----
-1222
103
-2574
185
-260
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 col1 FROM tab0 AS cor0
----
-62

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 6 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 29 * - 45 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 + - + 77 / - - col2 <= NULL
----

query I rowsort
SELECT ALL col2 * - + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 71 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 71 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 * + 86 col1 FROM tab0 AS cor0
----
3870
3870
3870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6043
SELECT ALL + CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL + CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT DISTINCT - 46 * - COUNT( * ) AS col0 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT - 46 * - COUNT ( * ) AS col0 FROM tab2
----
138

query I rowsort
SELECT ALL - - col1 * - + col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6046
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + + CAST( NULL AS SIGNED ), - col1 * + - col0 )
----

skipif mysql # not compatible
query III rowsort label-6046
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + + CAST ( NULL AS INTEGER ), - col1 * + - col0 )
----

query I rowsort
SELECT + 87 - + 46 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT DISTINCT - + SUM( DISTINCT col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT - + SUM ( DISTINCT col0 ) FROM tab0 cor0
----
-199

query I rowsort
SELECT - col1 + - - 80 FROM tab0 AS cor0
----
-1
59
79

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE col0 + + 13 - + col0 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT ALL ( CAST( - 65 AS SIGNED ) ) AS col1 FROM tab0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL ( CAST ( - 65 AS INTEGER ) ) AS col1 FROM tab0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT - 75 FROM tab2 WHERE NOT NULL NOT IN ( - 79 + + col2, col0 * + 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6053
SELECT DISTINCT * FROM tab1 WHERE - 5 * CAST( + 94 AS SIGNED ) * - 90 >= - CAST( col2 AS SIGNED ) * - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6053
SELECT DISTINCT * FROM tab1 WHERE - 5 * CAST ( + 94 AS INTEGER ) * - 90 >= - CAST ( col2 AS INTEGER ) * - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col2 * 97 * - col0 >= NULL
----

query I rowsort
SELECT ALL + 76 FROM tab0 WHERE NULL IS NULL
----
76
76
76

query I rowsort
SELECT DISTINCT col1 - - + col1 AS col2 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6057
SELECT ALL - col1 + + - CAST( NULL AS SIGNED ) - - - 19 / - ( + 95 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL - col1 + + - CAST ( NULL AS INTEGER ) - - - 19 / - ( + 95 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6058
SELECT ALL + COUNT( * ) - - - COUNT( * ), - 32 * - - 3 AS col2 FROM tab2
----
0
-96

skipif mysql # not compatible
query II rowsort label-6058
SELECT ALL + COUNT ( * ) - - - COUNT ( * ), - 32 * - - 3 AS col2 FROM tab2
----
0
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT ALL + + 93 FROM tab0 WHERE NULL = CAST( - + col1 AS SIGNED ) + - col1 * - col0 * + + col2
----

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL + + 93 FROM tab0 WHERE NULL = CAST ( - + col1 AS INTEGER ) + - col1 * - col0 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT DISTINCT 33 - COUNT( * ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT 33 - COUNT ( * ) FROM tab2
----
30

query II rowsort
SELECT col1 AS col1, + 98 FROM tab2 AS cor0
----
51
98
67
98
77
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT - col1 + col1 + - 9 * - 66 + - ( - col2 ) + + + 40 BETWEEN ( + - col0 ) AND NULL ) )
----

query II rowsort
SELECT ALL + + col1, + col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - - col1 + + + col0 + + + 72 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6066
SELECT - - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT ALL MIN( + col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL MIN ( + col0 ) AS col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT DISTINCT 73 * - MIN( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-1679

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT 73 * - MIN ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-1679

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT ALL + COUNT( ALL + 34 ) AS col0 FROM tab0 cor0 WHERE NOT col0 BETWEEN NULL AND + 75
----
2

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL + COUNT ( ALL + 34 ) AS col0 FROM tab0 cor0 WHERE NOT col0 BETWEEN NULL AND + 75
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6070
SELECT DISTINCT SUM( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * 50 - - + 48 + + 35 FROM tab1 AS cor0
----
3033
3483
4883

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT - 11 + COUNT( * ) AS col1 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-6072
SELECT - 11 + COUNT ( * ) AS col1 FROM tab0
----
-8

query I rowsort
SELECT 49 * col2 AS col0 FROM tab1
----
2891
3332
4704

query I rowsort
SELECT 90 * - col0 FROM tab0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT ALL - COUNT( * ) * - - 63 AS col1 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL - COUNT ( * ) * - - 63 AS col1 FROM tab0
----
-189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 49 col1 FROM tab0
----
1029
3969
49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT 49 > - 93 + - 96 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 38 + col0 FROM tab1 AS cor0
----
13
47
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6079
SELECT CAST( NULL AS SIGNED ) / + col2 + + - 12 * - CAST( NULL AS SIGNED ) + + 81 - + col2 / + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT CAST ( NULL AS INTEGER ) / + col2 + + - 12 * - CAST ( NULL AS INTEGER ) + + 81 - + col2 / + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 34 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - col1 - - - 63 - col0 + col2 + + 34 FROM tab0
----
-127
-28
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ( + COUNT( * ) ) - + + ( 89 ) - COUNT( 5 ) + + ( 63 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-26

skipif mysql # not compatible
query I rowsort label-6082
SELECT ( + COUNT ( * ) ) - + + ( 89 ) - COUNT ( 5 ) + + ( 63 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( + col0, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 60 * + col1 AS col1, ( - col2 ) + - ( - 96 ) AS col0 FROM tab1 AS cor0
----
-2820
28
-300
37
-840
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 + - col1 ) <> NULL
----

query I rowsort
SELECT ALL - 13 + - 4 FROM tab2 AS cor0
----
-17
-17
-17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( + 18 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6088
SELECT + CAST( SUM( + 42 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-6088
SELECT + CAST ( SUM ( + 42 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
126

query I rowsort
SELECT + 64 - + - 63 FROM tab2
----
127
127
127

query I rowsort
SELECT ALL col1 + - col0 * + 43 FROM tab0
----
-3720
-4170
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT DISTINCT - 40 * - + COUNT( * ) AS col2 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT - 40 * - + COUNT ( * ) AS col2 FROM tab2
----
120

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + 49 * - - col2 * col1 + + col2 > + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6093
SELECT - SUM( ALL - col1 ) FROM tab2 WHERE NOT + CAST( - col0 AS DECIMAL ) * - col1 + + CAST( NULL AS SIGNED ) NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT - SUM ( ALL - col1 ) FROM tab2 WHERE NOT + CAST ( - col0 AS REAL ) * - col1 + + CAST ( NULL AS INTEGER ) NOT IN ( col2 )
----
NULL

query I rowsort
SELECT ALL col1 * col2 * - col1 AS col1 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT + - CAST( - 28 AS SIGNED ) FROM tab2 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-6095
SELECT + - CAST ( - 28 AS INTEGER ) FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT - ( 46 ) AS col1 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < ( - col2 + + + ( + col2 ) )
----

query I rowsort
SELECT + - 40 AS col0 FROM tab2 WHERE NOT - 23 IN ( + - 27, + col0 )
----
-40
-40
-40

query I rowsort
SELECT 95 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6100
SELECT ALL - - CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL - - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT ALL SUM( ALL - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL SUM ( ALL - col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT col0 * + col0 + - + 65 FROM tab1 AS cor0
----
2536
7160
8216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6103
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-6103
SELECT + ( CAST ( NULL AS INTEGER ) ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN ( + col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + - + col1 / - + 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT DISTINCT - + MAX( DISTINCT - col0 ) FROM tab2 WHERE col2 * + col1 - - 37 BETWEEN - + ( - 89 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT - + MAX ( DISTINCT - col0 ) FROM tab2 WHERE col2 * + col1 - - 37 BETWEEN - + ( - 89 ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6107
SELECT ALL 72 * COUNT( * ) DIV 97 + 2 AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL 72 * COUNT ( * ) / 97 + 2 AS col1 FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT SUM( col1 ) * + ( + - 79 ) + - 62 * + 35 col1 FROM tab1
----
-7384

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6108
SELECT SUM ( col1 ) * + ( + - 79 ) + - 62 * + 35 col1 FROM tab1
----
-7384

query III rowsort
SELECT * FROM tab2 WHERE + 92 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT COUNT( * ) + + COUNT( * ) + - - 16 * - COUNT( * ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-6110
SELECT COUNT ( * ) + + COUNT ( * ) + - - 16 * - COUNT ( * ) FROM tab0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6111
SELECT - - col2 + col1 AS col1, CAST( + col0 AS SIGNED ) + ( - + col1 ) AS col2 FROM tab0 AS cor0
----
100
96
128
-66
31
66

skipif mysql # not compatible
query II rowsort label-6111
SELECT - - col2 + col1 AS col1, CAST ( + col0 AS INTEGER ) + ( - + col1 ) AS col2 FROM tab0 AS cor0
----
100
96
128
-66
31
66

query I rowsort
SELECT DISTINCT - 24 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT 7 - + COUNT( * ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-6113
SELECT 7 - + COUNT ( * ) FROM tab1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6114
SELECT ALL MAX( CAST( - 22 AS SIGNED ) ) col1 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6114
SELECT ALL MAX ( CAST ( - 22 AS INTEGER ) ) col1 FROM tab2 AS cor0
----
-22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 <= + col2 AND NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 35 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 88 = NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - col0 * col1 * - 73 FROM tab0 AS cor0
----
1333710
4168665
701019

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6119
SELECT DISTINCT COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT 42 * 43 * + ( + - col1 ) AS col2 FROM tab0
----
-146286
-1806
-37926

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 74 * + - col2 + col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6123
SELECT DISTINCT col2 * - 65 + + + 48 * col2 + CAST( + 56 AS SIGNED ), col0 / - col0 AS col1 FROM tab0 WHERE NULL NOT BETWEEN + + col0 AND col2
----

skipif mysql # not compatible
query II rowsort label-6123
SELECT DISTINCT col2 * - 65 + + + 48 * col2 + CAST ( + 56 AS INTEGER ), col0 / - col0 AS col1 FROM tab0 WHERE NULL NOT BETWEEN + + col0 AND col2
----

query I rowsort
SELECT DISTINCT + col1 * col2 * - 1 AS col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL 27 * 5 * + 37 FROM tab0
----
4995
4995
4995

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT - MIN( DISTINCT - - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6126
SELECT - MIN ( DISTINCT - - col1 ) AS col1 FROM tab2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6127
SELECT DISTINCT col1 DIV - + col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT col1 / - + col2 FROM tab2
----
-1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6128
SELECT DISTINCT 12 DIV + COUNT( * ) AS col0 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT 12 / + COUNT ( * ) AS col0 FROM tab2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6129
SELECT - + CAST( 53 AS SIGNED ) FROM tab2 cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-6129
SELECT - + CAST ( 53 AS INTEGER ) FROM tab2 cor0
----
-53
-53
-53

query I rowsort
SELECT + 88 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
88
88
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6131
SELECT ALL 45 DIV col1 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6131
SELECT ALL 45 / col1 col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 15 BETWEEN - - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6133
SELECT - CAST( NULL AS DECIMAL ) * ( + col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6133
SELECT - CAST ( NULL AS REAL ) * ( + col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE ( ( NOT col0 BETWEEN - col0 AND col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT COUNT( DISTINCT 62 ) col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6135
SELECT COUNT ( DISTINCT 62 ) col0 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6136
SELECT + CAST( NULL AS DECIMAL ) * CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT + CAST ( NULL AS REAL ) * CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 96 AS col1, - 46 + - col0 * - col0 col1 FROM tab1
----
96
2555
96
7179
96
8235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col2 col2 FROM tab1
----
59
59
68
68
96
96

query II rowsort
SELECT - 45 AS col0, col0 FROM tab2
----
-45
46
-45
64
-45
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT DISTINCT 96 * + 38 + ( COUNT( * ) ) + + - 18 * MAX( col0 ) AS col1 FROM tab2
----
2301

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT 96 * + 38 + ( COUNT ( * ) ) + + - 18 * MAX ( col0 ) AS col1 FROM tab2
----
2301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT ALL - 96 + - 14 * + 3 FROM tab0 WHERE NOT + CAST( - 26 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL - 96 + - 14 * + 3 FROM tab0 WHERE NOT + CAST ( - 26 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - + col0 AS col1 FROM tab1 AS cor0 WHERE + 21 <= NULL
----

query II rowsort
SELECT DISTINCT col0, + 55 + + col2 FROM tab1 AS cor0
----
51
151
85
114
91
123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6144
SELECT - - col1 + + + CAST( NULL AS SIGNED ) col2, 3 - - - col1 FROM tab2 AS cor0
----
NULL
-48
NULL
-64
NULL
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6144
SELECT - - col1 + + + CAST ( NULL AS INTEGER ) col2, 3 - - - col1 FROM tab2 AS cor0
----
NULL
-48
NULL
-64
NULL
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6145
SELECT ALL COUNT( * ), 74 AS col0 FROM tab0 AS cor0
----
3
74

skipif mysql # not compatible
query II rowsort label-6145
SELECT ALL COUNT ( * ), 74 AS col0 FROM tab0 AS cor0
----
3
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 26, 29 / - 50 col0 FROM tab0 AS cor0 WHERE - col0 > 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6147
SELECT - CAST( - 25 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif mysql # not compatible
query I rowsort label-6147
SELECT - CAST ( - 25 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6148
SELECT ALL col2 - + col0 * ( + - CAST( NULL AS SIGNED ) ) + + 81 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL col2 - + col0 * ( + - CAST ( NULL AS INTEGER ) ) + + 81 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 - - - col2 AS col0 FROM tab1 AS cor0
----
-118
-136
-192

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - + 85 AND 12 OR NOT NULL IN ( col1 / 75, col2, + ( - - 86 ) )
----
51
14
96
91
47
68

query I rowsort
SELECT ( - 28 ) AS col2 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT - 1 * col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * col2 col2 FROM tab0 cor0
----
1034
2178
220

onlyif mysql # aggregate syntax: 
query II rowsort label-6154
SELECT COUNT( * ) * MAX( ALL + - col2 ) AS col1, - SUM( ALL - ( col2 ) ) + - 14 AS col0 FROM tab1
----
-177
209

skipif mysql # not compatible
query II rowsort label-6154
SELECT COUNT ( * ) * MAX ( ALL + - col2 ) AS col1, - SUM ( ALL - ( col2 ) ) + - 14 AS col0 FROM tab1
----
-177
209

query I rowsort
SELECT col2 * + + col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT col1 * - - col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT DISTINCT MIN( DISTINCT - 31 ) AS col0 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT MIN ( DISTINCT - 31 ) AS col0 FROM tab1
----
-31

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 - - - col1 + + - col2 + - col2 * - col2 NOT BETWEEN - 31 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + 5 ) IS NULL
----

query II rowsort
SELECT ALL + 2 * + - col0 + - col1, + 65 FROM tab1 AS cor0 WHERE ( + 71 = 72 )
----

query I rowsort
SELECT - + 65 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + - col0
----

query I rowsort
SELECT ALL + col2 * + - 91 FROM tab0 cor0
----
-4277
-9009
-910

query II rowsort
SELECT + + col2 AS col0, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT col0 * + - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6165
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 + 84 AS col0 FROM tab0 AS cor0
----
-15
37
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT DISTINCT SUM( ALL - ( - - col0 ) ) * 36 FROM tab0 WHERE NOT 83 * - col1 - + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT SUM ( ALL - ( - - col0 ) ) * 36 FROM tab0 WHERE NOT 83 * - col1 - + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT ( - MIN( + col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT ( - MIN ( + col2 ) ) FROM tab2
----
-23

query I rowsort
SELECT col2 * col2 AS col1 FROM tab0 AS cor0 WHERE NULL <= col0
----

query I rowsort
SELECT ALL + col1 * + - col1 + - + col2 FROM tab0 AS cor0
----
-100
-451
-6608

query I rowsort
SELECT 96 * - ( - ( - col1 ) ) FROM tab2 AS cor0
----
-4896
-6432
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6172
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + - 30 * + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-1431
-1997
-2317

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6174
SELECT ALL + 11 * COUNT( * ) DIV + + 36 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + 11 * COUNT ( * ) / + + 36 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6175
SELECT DISTINCT col0 / + - col0 * - - col1 * - ( 17 ) + + 10 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT col0 / + - col0 * - - col1 * - ( 17 ) + + 10 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 < + col1 * + col0
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - 66 * - - col1 + col0 AS col2 FROM tab2 AS cor0
----
-3320
-4347
-5018

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND - col1 + + col1 + - col2
----

query III rowsort
SELECT * FROM tab1 WHERE 39 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT col0 * - CAST( NULL AS SIGNED ) FROM tab1 WHERE + - col2 NOT IN ( + col0, col1 - - col1, col1, - col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT col0 * - CAST ( NULL AS INTEGER ) FROM tab1 WHERE + - col2 NOT IN ( + col0, col1 - - col1, col1, - col0 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT DISTINCT + COUNT( 53 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT + COUNT ( 53 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT + ( col1 ) * - col1 * + + CAST( col0 AS SIGNED ) + - 0 AS col0 FROM tab0
----
-38367
-97
-98415

skipif mysql # not compatible
query I rowsort label-6182
SELECT + ( col1 ) * - col1 * + + CAST ( col0 AS INTEGER ) + - 0 AS col0 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT ALL + COUNT( * ) AS col0 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL + COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT ALL + - col0 * + + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT + COUNT( * ) * 20 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-6185
SELECT + COUNT ( * ) * 20 FROM tab1 AS cor0
----
60

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 * col1 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 4 ) - + - col2 AS col2 FROM tab2
----
27
44
62

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IS NULL AND ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT MIN( DISTINCT + - ( - col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6189
SELECT MIN ( DISTINCT + - ( - col1 ) ) FROM tab1
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6190
SELECT ALL - col0 AS col0, + col2 + - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE col0 + + 41 IS NULL
----

skipif mysql # not compatible
query II rowsort label-6190
SELECT ALL - col0 AS col0, + col2 + - - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 WHERE col0 + + 41 IS NULL
----

query I rowsort
SELECT + 14 + + 75 * 62 * col2 * - - 51 AS col1 FROM tab2 AS cor0 WHERE NOT col0 <= - col0 * - col2
----

query II rowsort
SELECT DISTINCT + col0 AS col0, - 64 FROM tab2 AS cor0
----
46
-64
64
-64
75
-64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - 24 < + - 34 * - 27 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT DISTINCT + ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL > + 64 )
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT - col0 * - col2 IS NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 * col2 col2 FROM tab0
----
-1881
-190
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT MIN( + ( - col0 ) ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6198
SELECT MIN ( + ( - col0 ) ) AS col0 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6199
SELECT MAX( ALL - - col2 ) AS col2, + MAX( ( + - col2 ) ) + - 17 FROM tab2
----
58
-40

skipif mysql # not compatible
query II rowsort label-6199
SELECT MAX ( ALL - - col2 ) AS col2, + MAX ( ( + - col2 ) ) + - 17 FROM tab2
----
58
-40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT ( + + MIN( DISTINCT + 0 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT ( + + MIN ( DISTINCT + 0 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT DISTINCT - COUNT( * ) * - COUNT( DISTINCT + - 69 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT - COUNT ( * ) * - COUNT ( DISTINCT + - 69 ) FROM tab2
----
3

query I rowsort
SELECT col0 + + 86 FROM tab0
----
101
173
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6204
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 6 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6204
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 6 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT ALL COUNT( * ) * + 84 * + ( + 56 ) AS col0 FROM tab1 AS cor0
----
14112

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL COUNT ( * ) * + 84 * + ( + 56 ) AS col0 FROM tab1 AS cor0
----
14112

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 18 * 47 * + + col2 NOT BETWEEN + 96 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 36 * - col1 col1 FROM tab2 AS cor0
----
1836
2412
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT - + MAX( - ( + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6208
SELECT - + MAX ( - ( + col2 ) ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + 95 AS col1 FROM tab0
----
105
142
194

query I rowsort
SELECT col1 * - + 50 AS col0 FROM tab0
----
-1050
-4050
-50

query I rowsort
SELECT DISTINCT - col2 * col0 + + col1 AS col1 FROM tab2
----
-1007
-2483
-4283

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6213
SELECT DISTINCT + col0 col2, 88 / - - col2 + + ( - 66 ) AS col2 FROM tab0 WHERE - - CAST( col2 AS SIGNED ) BETWEEN NULL AND - col1 / - + 44 + + - ( + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6213
SELECT DISTINCT + col0 col2, 88 / - - col2 + + ( - 66 ) AS col2 FROM tab0 WHERE - - CAST ( col2 AS INTEGER ) BETWEEN NULL AND - col1 / - + 44 + + - ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < + 14 + + + 86
----

query I rowsort
SELECT DISTINCT + ( 7 ) + + col1 AS col2 FROM tab2
----
58
74
84

query I rowsort
SELECT ALL col1 * - col1 * - ( + col0 ) + + col1 * + col2 FROM tab1
----
11340
204215
2420

query I rowsort
SELECT DISTINCT col0 * + + 54 - - + 56 FROM tab0
----
4754
5294
866

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6218
SELECT * FROM tab2 WHERE NULL BETWEEN CAST( + col1 AS SIGNED ) AND + 97 * + 61 + + ( 11 )
----

skipif mysql # not compatible
query III rowsort label-6218
SELECT * FROM tab2 WHERE NULL BETWEEN CAST ( + col1 AS INTEGER ) AND + 97 * + 61 + + ( 11 )
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE 87 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6220
SELECT col0 - - 15 + CAST( NULL AS SIGNED ) + - 31 / - 42 AS col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-6220
SELECT col0 - - 15 + CAST ( NULL AS INTEGER ) + - 31 / - 42 AS col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6221
SELECT ALL + 33 DIV col1 FROM tab1 cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL + 33 / col1 FROM tab1 cor0
----
0
2
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 56 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - - col0
----

query II rowsort
SELECT DISTINCT col1, col2 + - - col2 - col2 AS col1 FROM tab0
----
1
99
21
10
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col0 FROM tab1
----
-24
-24
-24

query II rowsort
SELECT col2 AS col2, + col2 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6227
SELECT + + 89 * + - CAST( NULL AS SIGNED ) + - - 2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT + + 89 * + - CAST ( NULL AS INTEGER ) + - - 2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col0 ) + + - col1 AND + - col1 * 59 + - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT MIN( col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6229
SELECT MIN ( col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6230
SELECT ALL - 6 + - col0 DIV + 31 FROM tab2 AS cor0 WHERE NOT - col2 * + col1 DIV col1 + - ( - col2 ) = col2 + + col1
----
-7
-8
-8

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL - 6 + - col0 / + 31 FROM tab2 AS cor0 WHERE NOT - col2 * + col1 / col1 + - ( - col2 ) = col2 + + col1
----
-7
-8
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6231
SELECT - 46 * + - COUNT( * ) * - AVG ( col0 ) + + CAST( NULL AS SIGNED ) + - CAST( 57 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT - 46 * + - COUNT ( * ) * - AVG ( col0 ) + + CAST ( NULL AS INTEGER ) + - CAST ( 57 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT ALL - 24 + + COUNT( * ) FROM tab1, tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL - 24 + + COUNT ( * ) FROM tab1, tab1 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-6233
SELECT DISTINCT col0, + 6 DIV - + col0 col2 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6233
SELECT DISTINCT col0, + 6 / - + col0 col2 FROM tab2
----
46
0
64
0
75
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN NULL AND - 98
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6235
SELECT - 35 AS col1, COUNT( * ) * 3 AS col0 FROM tab0 AS cor0
----
-35
9

skipif mysql # not compatible
query II rowsort label-6235
SELECT - 35 AS col1, COUNT ( * ) * 3 AS col0 FROM tab0 AS cor0
----
-35
9

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT ALL MIN( ALL + 11 ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL MIN ( ALL + 11 ) FROM tab1 AS cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 79 + - + col0 col2 FROM tab1 AS cor0
----
-1157
-3804
-480

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * col0 * + col2 + + col1 + - col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT ALL - col0 + + col0 + - + col1 * + col0 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - 91
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + + 14 - + 99 col2 FROM tab2 AS cor0 WHERE NOT NULL <= + 0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 28 ) col1 FROM tab1 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT - 53 * + ( + + COUNT( - 33 ) ) FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-6245
SELECT - 53 * + ( + + COUNT ( - 33 ) ) FROM tab2 AS cor0
----
-159

query II rowsort
SELECT - 57 - + ( 45 ), col0 FROM tab1 AS cor0
----
-102
51
-102
85
-102
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 89 - col1 + - col1 * - + 68 col1 FROM tab0 AS cor0
----
2297
8878
9610

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT ALL 35 + + - 53 + + 3 - + COUNT( * ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL 35 + + - 53 + + 3 - + COUNT ( * ) AS col1 FROM tab2
----
-18

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 29 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 + 56 AS col2 FROM tab0
----
143
153
71

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 = col2 * col0 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6253
SELECT DISTINCT + col0 - - col2 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT + col0 - - col2 * CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 20 * - col2 AS col0 FROM tab1
----
-1180
-1360
-1920

query II rowsort
SELECT ALL - ( + 36 ) - + 74 + + - 94 AS col2, - col1 AS col0 FROM tab1 AS cor0
----
-204
-14
-204
-47
-204
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6256
SELECT DISTINCT + - 59 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT + - 59 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT ALL + SUM( + 50 ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL + SUM ( + 50 ) FROM tab2 AS cor0
----
150

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + col0 AND 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * 49 <= ( 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT ALL + + SUM( 98 ) AS col1 FROM tab1 cor0
----
294

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL + + SUM ( 98 ) AS col1 FROM tab1 cor0
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT DISTINCT - ( - - col0 ) DIV + col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT - ( - - col0 ) / + col1 FROM tab1
----
-1
-17
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - - 33 ) AS col1 FROM tab1 cor0
----
33

query I rowsort
SELECT - + ( - 61 ) FROM tab1 AS cor0
----
61
61
61

onlyif mysql # DIV for integer division: 
query II rowsort label-6265
SELECT + - 89 * + + col0, col1 + + 52 DIV - - ( - col2 ) * col0 + + col0 AS col2 FROM tab1 AS cor0
----
-4539
65
-7565
90
-8099
138

skipif mysql # not compatible
query II rowsort label-6265
SELECT + - 89 * + + col0, col1 + + 52 / - - ( - col2 ) * col0 + + col0 AS col2 FROM tab1 AS cor0
----
-4539
65
-7565
90
-8099
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT DISTINCT COUNT( * ) * - + 9 AS col2 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT COUNT ( * ) * - + 9 AS col2 FROM tab2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6267
SELECT ALL + 69 DIV + COUNT( * ) AS col2 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL + 69 / + COUNT ( * ) AS col2 FROM tab1
----
23

query II rowsort
SELECT + 78 AS col0, col0 FROM tab1
----
78
51
78
85
78
91

query I rowsort
SELECT col0 + ( + col1 ) FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + 42, + col0 - + 85 + - col2 * 41 * col1 AS col0 FROM tab1 AS cor0
----
42
-12095
42
-131030
42
-55138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT + 85 * - - col0 / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT + 85 * - - col0 / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT 15 * - ( - + 65 ) + - - 67 + - + col0 * + col1 AS col2 FROM tab0
----
-173
-785
945

query I rowsort
SELECT 43 * - + 43 + + 58 - - + ( 38 ) + + 80 AS col1 FROM tab1
----
-1673
-1673
-1673

query I rowsort
SELECT + col0 + col0 + + 4 AS col2 FROM tab1 AS cor0
----
106
174
186

query II rowsort
SELECT + + col0, col2 * col2 AS col1 FROM tab0 AS cor0
----
15
2209
87
100
97
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT - COUNT( DISTINCT + col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) FROM tab0 cor0
----
-3

query II rowsort
SELECT 1, + col2 FROM tab0 cor0
----
1
10
1
47
1
99

query I rowsort
SELECT DISTINCT + col0 + - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col1, - 46 * - 44 * - col1 * col2 AS col1 FROM tab1 AS cor0
----
14
-2720256
47
-6468704
5
-597080

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL - ( COUNT( DISTINCT - + col0 ) ) + + 72 AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL - ( COUNT ( DISTINCT - + col0 ) ) + + 72 AS col2 FROM tab0
----
69

query I rowsort
SELECT ALL col0 * - col0 * + + 72 + col1 - - 30 FROM tab2
----
-152271
-294805
-404903

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 21 - + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + 30 col0 FROM tab1
----
-16
-25
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL COUNT( * ) + COUNT( col1 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL COUNT ( * ) + COUNT ( col1 ) FROM tab1
----
6

query I rowsort
SELECT col2 - - 23 FROM tab1
----
119
82
91

query I rowsort
SELECT ALL - col0 + 5 FROM tab2 WHERE NOT + - col0 IN ( + ( + col2 ) / - + ( + col1 ) + - + col1, + col1 / + col0, col1 )
----
-41
-59
-70

query III rowsort
SELECT ALL * FROM tab2 WHERE + 80 <> NULL
----

query I rowsort
SELECT ALL - + ( + + col1 ) * + col0 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + col1 + + col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 * + - 69 col1 FROM tab1 AS cor0
----
-414
-414
-414

query I rowsort
SELECT ALL - ( - + 79 ) AS col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6293
SELECT - col2 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6293
SELECT - col2 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6294
SELECT DISTINCT AVG ( + + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT AVG ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 88 col0 FROM tab2 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT - MIN( - col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT - MIN ( - col1 ) AS col0 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6297
SELECT - 18 DIV - MIN( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6297
SELECT - 18 / - MIN ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0, 25 * + col0 col1 FROM tab0 AS cor0
----
-15
375
-87
2175
-97
2425

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT MAX( col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT MAX ( col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL + col0 * col0 + 36 AS col0 FROM tab0
----
261
7605
9445

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT 11 + - COUNT( * ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-6301
SELECT 11 + - COUNT ( * ) FROM tab2
----
8

query II rowsort
SELECT DISTINCT + col0, + 3 AS col2 FROM tab1
----
51
3
85
3
91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT DISTINCT + - MAX( DISTINCT - 65 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
65

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT + - MAX ( DISTINCT - 65 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
65

query I rowsort
SELECT 79 - + + 40 FROM tab2
----
39
39
39

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 BETWEEN NULL AND NULL
----

query II rowsort
SELECT + - col0 * + col2 * - col0 - ( + + 65 ) AS col0, 66 + - 86 AS col1 FROM tab0 AS cor0
----
10510
-20
75625
-20
931426
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 - - col0 col2 FROM tab1 AS cor0
----
4947
5100
6279

query III rowsort
SELECT * FROM tab0 cor0 WHERE 54 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL + + MIN( ALL + + ( - + col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL + + MIN ( ALL + + ( - + col2 ) ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - col1 + + - col2 * - col1 + - col1 AS col1 FROM tab1 AS cor0
----
1316
285
3102

query I rowsort
SELECT ALL + - col2 + - 31 - col1 FROM tab0 AS cor0
----
-131
-159
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT col0 DIV + 96 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT col0 / + 96 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE + 22 + - col0 NOT BETWEEN NULL AND + 4
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 24 NOT IN ( + - col2 + + col0 )
----
64
77
40

onlyif mysql # DIV for integer division: 
query II rowsort label-6315
SELECT ALL col1, col0 DIV - 21 + - + col2 AS col1 FROM tab1
----
14
-98
47
-72
5
-63

skipif mysql # not compatible
query II rowsort label-6315
SELECT ALL col1, col0 / - 21 + - + col2 AS col1 FROM tab1
----
14
-98
47
-72
5
-63

query II rowsort
SELECT ALL col1, - col1 * - + col2 FROM tab0
----
1
99
21
210
81
3807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + ( + col0 ) ) - - col2 col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 72 > NULL
----

query I rowsort
SELECT - 26 * - col2 + - col2 AS col0 FROM tab1 AS cor0
----
1475
1700
2400

query I rowsort
SELECT + 65 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT MIN( + ( - 89 ) ) + - 92 FROM tab1 AS cor0
----
-181

skipif mysql # not compatible
query I rowsort label-6321
SELECT MIN ( + ( - 89 ) ) + - 92 FROM tab1 AS cor0
----
-181

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE 28 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6323
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < col1 * CAST( - ( + 13 ) AS DECIMAL ) / - col0
----

skipif mysql # not compatible
query III rowsort label-6323
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < col1 * CAST ( - ( + 13 ) AS REAL ) / - col0
----

query I rowsort
SELECT ALL + - 35 + col1 * 47 AS col2 FROM tab1 AS cor0
----
200
2174
623

query I rowsort
SELECT + col1 * + + col0 + - 45 AS col0 FROM tab2 AS cor0
----
2301
4883
4980

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT DISTINCT 80 + COUNT( * ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT 80 + COUNT ( * ) FROM tab0 AS cor0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6327
SELECT CAST( NULL AS SIGNED ) * 11 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT CAST ( NULL AS INTEGER ) * 11 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT - MAX( ALL + + col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6328
SELECT - MAX ( ALL + + col0 ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT ALL col0 + - 65 AS col0 FROM tab2
----
-1
-19
10

query III rowsort
SELECT * FROM tab0 WHERE + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + - 84 * + col2 AS col0 FROM tab2
----
-1881
-3283
-4805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6332
SELECT CAST( - + 83 AS SIGNED ) * 89 AS col0 FROM tab0
----
-7387
-7387
-7387

skipif mysql # not compatible
query I rowsort label-6332
SELECT CAST ( - + 83 AS INTEGER ) * 89 AS col0 FROM tab0
----
-7387
-7387
-7387

query III rowsort
SELECT * FROM tab0 WHERE + col2 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6335
SELECT ALL COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT + MAX( col2 ) - - 12 AS col0 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-6336
SELECT + MAX ( col2 ) - - 12 AS col0 FROM tab1 AS cor0
----
108

query I rowsort
SELECT ( 87 ) FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND ( col1 * + col2 - - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6338
SELECT * FROM tab1 WHERE NOT ( CAST( NULL AS DECIMAL ) ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6338
SELECT * FROM tab1 WHERE NOT ( CAST ( NULL AS REAL ) ) >= NULL
----

query I rowsort
SELECT DISTINCT col2 * 17 AS col1 FROM tab0
----
1683
170
799

query I rowsort
SELECT ALL - 51 * col2 FROM tab0
----
-2397
-5049
-510

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 NOT IN ( ( - 58 ) * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT + MIN( DISTINCT + col1 ) + 28 * - 80 FROM tab0
----
-2239

skipif mysql # not compatible
query I rowsort label-6342
SELECT + MIN ( DISTINCT + col1 ) + 28 * - 80 FROM tab0
----
-2239

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> ( - 37 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6344
SELECT 48 DIV 26 + + col2 DIV - col1 FROM tab0 WHERE NOT ( col1 ) * col0 IS NULL
----
-98
1
1

skipif mysql # not compatible
query I rowsort label-6344
SELECT 48 / 26 + + col2 / - col1 FROM tab0 WHERE NOT ( col1 ) * col0 IS NULL
----
-98
1
1

query III rowsort
SELECT * FROM tab1 WHERE ( 99 ) IN ( + col0 )
----

query I rowsort
SELECT - col0 + col0 AS col2 FROM tab0 WHERE NULL NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6347
SELECT ALL MIN( - 31 ) DIV - COUNT( * ) col0 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6347
SELECT ALL MIN ( - 31 ) / - COUNT ( * ) col0 FROM tab0
----
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 * col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 59 * col0 - 5 AS col2 FROM tab1
----
3004
5010
5364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6350
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT DISTINCT - ( - 52 ) DIV - col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT - ( - 52 ) / - col1 FROM tab2
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6352
SELECT * FROM tab2 WHERE 12 * CAST( NULL AS SIGNED ) + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6352
SELECT * FROM tab2 WHERE 12 * CAST ( NULL AS INTEGER ) + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( - col2 ) + - 46 * 76 FROM tab2
----
-3519
-3536
-3554

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT DISTINCT 5 - - COUNT( * ) AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT 5 - - COUNT ( * ) AS col2 FROM tab2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT - COUNT( * ) + - 34 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-6355
SELECT - COUNT ( * ) + - 34 FROM tab0
----
-37

query I rowsort
SELECT DISTINCT col2 / + col1 + col0 FROM tab1 WHERE 70 * col2 + + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 ) <> ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT - col1 / col2 BETWEEN 99 + - 19 AND col2
----
-3

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - col1 / col2 BETWEEN 99 + - 19 AND col2
----
-3

query I rowsort
SELECT ( - 39 ) AS col0 FROM tab2 AS cor0
----
-39
-39
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT - COUNT( * ) * - MIN( 12 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6361
SELECT - COUNT ( * ) * - MIN ( 12 ) FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT DISTINCT ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT + COUNT( col1 ) * + 50 AS col0 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-6363
SELECT + COUNT ( col1 ) * + 50 AS col0 FROM tab0 AS cor0
----
150

query I rowsort
SELECT ALL 58 * col1 FROM tab2 AS cor0
----
2958
3886
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT + MAX( - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT + MAX ( - col2 ) AS col0 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT DISTINCT - ( 5 ) + 15 * COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
130

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT - ( 5 ) + 15 * COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT + COUNT( * ) * MAX( ALL col1 * - col1 ) - 79 AS col1 FROM tab1 cor0 WHERE NOT 43 * col2 + - 60 NOT IN ( 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6367
SELECT + COUNT ( * ) * MAX ( ALL col1 * - col1 ) - 79 AS col1 FROM tab1 cor0 WHERE NOT 43 * col2 + - 60 NOT IN ( 60 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6369
SELECT ALL - col0 + + 0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + ( + col2 ) + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL - col0 + + 0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + ( + col2 ) + - col1 IS NOT NULL
----

query I rowsort
SELECT 82 FROM tab1 AS cor0 WHERE NOT + col0 + - 41 * - 54 BETWEEN ( + col1 ) AND + col1 + 91
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6372
SELECT * FROM tab0 AS cor0 WHERE 20 + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6372
SELECT * FROM tab0 AS cor0 WHERE 20 + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col2 ) col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + col1 + ( 13 + col0 ) AS col1 FROM tab1 AS cor0
----
103
151
78

query I rowsort
SELECT ALL + col1 + 99 FROM tab0 WHERE NOT - col0 * + col0 IN ( col1 * col2 )
----
100
120
180

query I rowsort
SELECT DISTINCT + 4 + + 9 FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT + ( - SUM( ALL col1 ) ) FROM tab1 WHERE + 93 + - 92 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT + ( - SUM ( ALL col1 ) ) FROM tab1 WHERE + 93 + - 92 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <= col1 + + col1 OR NOT + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6379
SELECT * FROM tab0 WHERE CAST( col1 AS SIGNED ) <= ( + 4 )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-6379
SELECT * FROM tab0 WHERE CAST ( col1 AS INTEGER ) <= ( + 4 )
----
97
1
99

query I rowsort
SELECT DISTINCT + ( - - col1 ) + + 5 FROM tab0
----
26
6
86

query I rowsort
SELECT - col0 + - - col2 AS col2 FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 <= col1 + + col0
----

query I rowsort
SELECT col0 + - + col0 + 77 * - ( - col1 ) FROM tab0
----
1617
6237
77

query I rowsort
SELECT col0 + ( + 25 ) FROM tab1
----
110
116
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT DISTINCT - COUNT( * ) - - 27 AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT - COUNT ( * ) - - 27 AS col2 FROM tab0 AS cor0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6387
SELECT ALL COUNT( - + col2 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL COUNT ( - + col2 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT - ( + + 18 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6388
SELECT - ( + + 18 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-54

query I rowsort
SELECT ALL - col2 + - ( + - col2 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + + 78 * + 5 - 25 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c2cbc3cfe7d48334368ad79410e2073

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE - ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT - COUNT( * ) - + 62 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-6392
SELECT - COUNT ( * ) - + 62 FROM tab1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-6393
SELECT ALL - col0 - + col0 DIV - - 18 AS col1 FROM tab1 AS cor0
----
-53
-89
-96

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL - col0 - + col0 / - - 18 AS col1 FROM tab1 AS cor0
----
-53
-89
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT DISTINCT + - 7 DIV + 94 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT + - 7 / + 94 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT - MAX( - 48 ) FROM tab0 AS cor0 WHERE NOT col2 + - col0 * col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6395
SELECT - MAX ( - 48 ) FROM tab0 AS cor0 WHERE NOT col2 + - col0 * col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT ALL MAX( ALL ( col0 ) ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL MAX ( ALL ( col0 ) ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
75

query II rowsort
SELECT ALL + 77 AS col2, + col0 FROM tab2 AS cor0
----
77
46
77
64
77
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT + SUM( + col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6398
SELECT + SUM ( + col2 ) AS col0 FROM tab0 AS cor0
----
156

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 97 ) * col2 BETWEEN - 87 AND ( col0 )
----

query I rowsort
SELECT ALL col1 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT - ( 99 ) AS col2 FROM tab0 AS cor0 WHERE NOT 19 - + col2 * - 96 BETWEEN 55 + col2 AND col1
----
-99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * + 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT ALL + 0 * + COUNT( * ) AS col0 FROM tab0 WHERE NOT ( - - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL + 0 * + COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( - - col2 ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6404
SELECT ALL 35 DIV - - col1 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL 35 / - - col1 FROM tab0
----
0
1
35

query I rowsort
SELECT col2 * + - col2 AS col1 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL + ( ( - 94 ) ) AS col0 FROM tab0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT ALL - COUNT( 99 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL - COUNT ( 99 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 > NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 cor0 WHERE NOT 94 / col0 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + + 39 - - 81 * + col0 > - ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / 40 = ( - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 21 * + 38 AS col1 FROM tab0
----
798

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE ( + - 25 ) IS NULL
----

query I rowsort
SELECT ALL 55 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + - 65 FROM tab0 AS cor0
----
-18
-55
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT ALL + + MAX( DISTINCT - + col0 ) + - 11 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL + + MAX ( DISTINCT - + col0 ) + - 11 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6417
SELECT DISTINCT + col0 * + 49 - - col1 DIV - col1 + - col1 AS col1 FROM tab1
----
2484
4159
4411

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT + col0 * + 49 - - col1 / - col1 + - col1 AS col1 FROM tab1
----
2484
4159
4411

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT COUNT( + - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6418
SELECT COUNT ( + - col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT ALL COUNT( * ) + + MAX( - - col1 ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL COUNT ( * ) + + MAX ( - - col1 ) FROM tab1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6420
SELECT + col0 AS col2, - col2 * + - ( - 78 ) * - CAST( 72 AS SIGNED ) * + col2 AS col0 FROM tab0
----
15
12405744
87
561600
97
55042416

skipif mysql # not compatible
query II rowsort label-6420
SELECT + col0 AS col2, - col2 * + - ( - 78 ) * - CAST ( 72 AS INTEGER ) * + col2 AS col0 FROM tab0
----
15
12405744
87
561600
97
55042416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6421
SELECT + col2 * CAST( - 44 AS SIGNED ) FROM tab1
----
-2596
-2992
-4224

skipif mysql # not compatible
query I rowsort label-6421
SELECT + col2 * CAST ( - 44 AS INTEGER ) FROM tab1
----
-2596
-2992
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT ALL 80 * COUNT( * ) - 90 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL 80 * COUNT ( * ) - 90 FROM tab0
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-6423
SELECT DISTINCT col1 DIV + + col0 + - - col2 FROM tab0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT col1 / + + col0 + - - col2 FROM tab0
----
10
52
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT col0 + ( col2 ) FROM tab0 cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT - 39 + MAX( - 31 ) AS col1 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-6426
SELECT - 39 + MAX ( - 31 ) AS col1 FROM tab2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6427
SELECT + 54 + + + SUM( CAST( col0 AS SIGNED ) ) * - COUNT( col1 ) AS col2 FROM tab1 WHERE NULL = col0 * + CAST( + + col0 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6427
SELECT + 54 + + + SUM ( CAST ( col0 AS INTEGER ) ) * - COUNT ( col1 ) AS col2 FROM tab1 WHERE NULL = col0 * + CAST ( + + col0 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT DISTINCT COUNT( - - col0 ) * + 40 * + 28 FROM tab0
----
3360

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT COUNT ( - - col0 ) * + 40 * + 28 FROM tab0
----
3360

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col0 IN ( - - col1, col2 )
----
-59
-68
-96

query I rowsort
SELECT ALL ( - ( - col1 ) ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6431
SELECT - CAST( + col0 AS SIGNED ) * + + col2 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6431
SELECT - CAST ( + col0 AS INTEGER ) * + + col2 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 35 IS NOT NULL
----

query I rowsort
SELECT - + 75 FROM tab1 AS cor0 WHERE NOT NULL >= - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6434
SELECT + col1 DIV - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6434
SELECT + col1 / - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT ALL + col1 * ( + 88 ) * col2 FROM tab2 AS cor0
----
103224
271040
341968

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT DISTINCT - - SUM( col1 ) col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6436
SELECT DISTINCT - - SUM ( col1 ) col0 FROM tab1 AS cor0
----
66

query II rowsort
SELECT + col1 AS col2, + col2 + + 63 + + col2 FROM tab0
----
1
261
21
83
81
157

query I rowsort
SELECT ( - 27 ) FROM tab1
----
-27
-27
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6439
SELECT 38 DIV COUNT( * ) * 79 * - + 71 AS col1 FROM tab1
----
-67308

skipif mysql # not compatible
query I rowsort label-6439
SELECT 38 / COUNT ( * ) * 79 * - + 71 AS col1 FROM tab1
----
-67308

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6440
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 * - + col2 col1, + 76 FROM tab0
----
NULL
76
NULL
76
NULL
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6440
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 * - + col2 col1, + 76 FROM tab0
----
NULL
76
NULL
76
NULL
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6441
SELECT ALL + 3 DIV + - ( ( col1 ) ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL + 3 / + - ( ( col1 ) ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 39 + - + col1 FROM tab0 WHERE NOT + col2 + - + col1 + 2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6444
SELECT + COUNT( * ) FROM tab1 WHERE NOT + 23 / - col2 IN ( - - col2 + - - col1 / CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6444
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + 23 / - col2 IN ( - - col2 + - - col1 / CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6445
SELECT * FROM tab0 WHERE NOT ( ( - + CAST( - + 75 AS SIGNED ) ) ) NOT IN ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-6445
SELECT * FROM tab0 WHERE NOT ( ( - + CAST ( - + 75 AS INTEGER ) ) ) NOT IN ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 27 col1, + col0 * - - col0 - + col2 FROM tab0
----
27
178
27
7559
27
9310

query I rowsort
SELECT + 51 * + - ( 55 ) FROM tab0
----
-2805
-2805
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT DISTINCT + + SUM( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT + + SUM ( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT - col2 + - 59 FROM tab1 AS cor0
----
-118
-127
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6450
SELECT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT ALL COUNT( * ) * + 8 AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL COUNT ( * ) * + 8 AS col0 FROM tab0
----
24

query I rowsort
SELECT - - 79 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6453
SELECT + CAST( NULL AS SIGNED ) * col0 * - + ( 54 ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6453
SELECT + CAST ( NULL AS INTEGER ) * col0 * - + ( 54 ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT - col1 * - - col2 AS col0 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT ALL - MAX( ALL - - 80 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL - MAX ( ALL - - 80 ) FROM tab2 AS cor0
----
-80

query I rowsort
SELECT DISTINCT - - 5 + + + col2 FROM tab1 AS cor0
----
101
64
73

query I rowsort
SELECT - - col2 * 92 + + + col1 FROM tab2 AS cor0
----
2167
3757
5403

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= ( + 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6459
SELECT ALL CAST( NULL AS SIGNED ) - + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL CAST ( NULL AS INTEGER ) - + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6460
SELECT DISTINCT + CAST( - - 55 AS SIGNED ) + - 81 * + col1 FROM tab2
----
-4076
-5372
-6182

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT + CAST ( - - 55 AS INTEGER ) + - 81 * + col1 FROM tab2
----
-4076
-5372
-6182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6461
SELECT DISTINCT CAST( + - col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL - 15 AS col2 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT DISTINCT + col0 DIV ( + - 46 ) + col1 FROM tab1
----
13
4
46

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + col0 / ( + - 46 ) + col1 FROM tab1
----
13
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT DISTINCT + COUNT( + - col1 ) - - COUNT( ALL + - 19 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT + COUNT ( + - col1 ) - - COUNT ( ALL + - 19 ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-6465
SELECT - + COUNT( * ) AS col1, + 89 FROM tab2 AS cor0
----
-3
89

skipif mysql # not compatible
query II rowsort label-6465
SELECT - + COUNT ( * ) AS col1, + 89 FROM tab2 AS cor0
----
-3
89

query I rowsort
SELECT ALL + 12 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT - 63 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query II rowsort
SELECT ALL 60 AS col0, col0 FROM tab1
----
60
51
60
85
60
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT DISTINCT + - SUM( + - 68 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
612

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT + - SUM ( + - 68 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6471
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 + + - 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT - - SUM( ALL + - 85 ) AS col2 FROM tab1 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-6473
SELECT - - SUM ( ALL + - 85 ) AS col2 FROM tab1 AS cor0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT DISTINCT + + SUM( DISTINCT col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT + + SUM ( DISTINCT col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT + + col1 * - col1 FROM tab2 cor0
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 <> + 37 * - - col2
----

query I rowsort
SELECT ALL 74 AS col0 FROM tab0 cor0
----
74
74
74

query I rowsort
SELECT DISTINCT col1 * 12 AS col2 FROM tab0 AS cor0
----
12
252
972

query I rowsort
SELECT DISTINCT - col1 * + col2 * - 53 AS col1 FROM tab1
----
15635
169388
71232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6480
SELECT DISTINCT ( - + col0 ) / - col2 * + - 11 * - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT ( - + col0 ) / - col2 * + - 11 * - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT 14 * - SUM( DISTINCT - 87 ) * - COUNT( * ) + ( - + COUNT( * ) ) * + + COUNT( * ) FROM tab2
----
-3663

skipif mysql # not compatible
query I rowsort label-6481
SELECT 14 * - SUM ( DISTINCT - 87 ) * - COUNT ( * ) + ( - + COUNT ( * ) ) * + + COUNT ( * ) FROM tab2
----
-3663

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - 83 ) + - + ( - 61 ) + - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 * col2 + - col2 + col1 * + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-39247
-9799
-99167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6484
SELECT ( - ( - CAST( COUNT( * ) AS SIGNED ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6484
SELECT ( - ( - CAST ( COUNT ( * ) AS INTEGER ) ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6485
SELECT + col0 * + CAST( - col1 AS SIGNED ) + - 99 DIV 97 * - col1 AS col0 FROM tab0
----
-1134
-1806
-96

skipif mysql # not compatible
query I rowsort label-6485
SELECT + col0 * + CAST ( - col1 AS INTEGER ) + - 99 / 97 * - col1 AS col0 FROM tab0
----
-1134
-1806
-96

query I rowsort
SELECT ALL 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT + ( - col2 ) + - - 59 + + col1 * - 59 FROM tab0
----
-1190
-4767
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT ALL - SUM( DISTINCT + 54 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-54

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL - SUM ( DISTINCT + 54 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT ALL - COUNT( ( - 69 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL - COUNT ( ( - 69 ) ) FROM tab0
----
-3

query I rowsort
SELECT - - ( - col2 ) + - 52 * 34 FROM tab1 AS cor0
----
-1827
-1836
-1864

query I rowsort
SELECT DISTINCT + col0 * - + col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + ( 55 ) + 45 FROM tab1 AS cor0
----
100

query I rowsort
SELECT 80 * - + 12 AS col0 FROM tab0 AS cor0
----
-960
-960
-960

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL >= NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 84 * - - 81 * - 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT + - MIN( - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6496
SELECT + - MIN ( - col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6497
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col0 + 31 + - col2 FROM tab1 WHERE 74 > - - 37 + - 7 / ( + - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col0 + 31 + - col2 FROM tab1 WHERE 74 > - - 37 + - 7 / ( + - 66 )
----
NULL

query I rowsort
SELECT DISTINCT - 60 - - ( + col0 ) FROM tab2
----
-14
15
4

query I rowsort
SELECT DISTINCT + col0 - col0 * 64 FROM tab0 AS cor0
----
-5481
-6111
-945

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - ( + 43 ) = ( 82 )
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( 77 ) col2 FROM tab2 cor0
----
77

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 24 BETWEEN NULL AND - col0 + col2 + + + col2
----
46
51
23
64
77
40

query II rowsort
SELECT col1, col2 + - col0 AS col0 FROM tab1 AS cor0
----
14
45
47
-23
5
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6504
SELECT + CAST( NULL AS SIGNED ) AS col0, - CAST( + col1 AS SIGNED ) + + 79 FROM tab2 AS cor0
----
NULL
12
NULL
2
NULL
28

skipif mysql # not compatible
query II rowsort label-6504
SELECT + CAST ( NULL AS INTEGER ) AS col0, - CAST ( + col1 AS INTEGER ) + + 79 FROM tab2 AS cor0
----
NULL
12
NULL
2
NULL
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 94 + 26 col1 FROM tab0 AS cor0
----
1436
8204
9144

query III rowsort
SELECT DISTINCT + col0 AS col0, col2 + 91 AS col2, col0 AS col2 FROM tab0 AS cor0
----
9 values hashing to 59180ec9931515fe8c4069138e9603f5

query I rowsort
SELECT DISTINCT + + col1 * + 95 FROM tab1 AS cor0
----
1330
4465
475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6508
SELECT DISTINCT - - AVG ( ALL + CAST( 73 AS SIGNED ) ) FROM tab2 WHERE NOT + CAST( + + 79 AS SIGNED ) * + 45 + + + col0 - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT - - AVG ( ALL + CAST ( 73 AS INTEGER ) ) FROM tab2 WHERE NOT + CAST ( + + 79 AS INTEGER ) * + 45 + + + col0 - col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6509
SELECT 81 AS col1, - col2 DIV col0 AS col1 FROM tab0
----
81
-1
81
-3
81
0

skipif mysql # not compatible
query II rowsort label-6509
SELECT 81 AS col1, - col2 / col0 AS col1 FROM tab0
----
81
-1
81
-3
81
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6510
SELECT * FROM tab0 WHERE NOT - col1 * - - col0 + 19 + + 6 + + ( + 7 ) * + + CAST( NULL AS SIGNED ) * + ( + - col2 ) * - col0 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6510
SELECT * FROM tab0 WHERE NOT - col1 * - - col0 + 19 + + 6 + + ( + 7 ) * + + CAST ( NULL AS INTEGER ) * + ( + - col2 ) * - col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 80, col2 FROM tab0
----
80
10
80
47
80
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6512
SELECT - 64 DIV + - 78 + - + 98 + - - 94 * + col2 FROM tab0
----
4320
842
9208

skipif mysql # not compatible
query I rowsort label-6512
SELECT - 64 / + - 78 + - + 98 + - - 94 * + col2 FROM tab0
----
4320
842
9208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6513
SELECT - + ( + col1 ) FROM tab2 WHERE NOT CAST( - col1 AS SIGNED ) <> - col0
----

skipif mysql # not compatible
query I rowsort label-6513
SELECT - + ( + col1 ) FROM tab2 WHERE NOT CAST ( - col1 AS INTEGER ) <> - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT col2 + - + col1 DIV + col2 FROM tab0
----
46
8
99

skipif mysql # not compatible
query I rowsort label-6514
SELECT col2 + - + col1 / + col2 FROM tab0
----
46
8
99

query I rowsort
SELECT + 24 + - - col2 FROM tab2 AS cor0
----
47
64
82

query I rowsort
SELECT - + col0 + + col2 * + col0 AS col0 FROM tab1 AS cor0
----
4845
4930
6097

query II rowsort
SELECT ALL col2, + 65 FROM tab2 AS cor0
----
23
65
40
65
58
65

query I rowsort
SELECT 81 + col1 FROM tab0 AS cor0
----
102
162
82

query I rowsort
SELECT - 17 + - + col1 AS col2 FROM tab1 AS cor0
----
-22
-31
-64

query I rowsort
SELECT - + ( + + col1 ) + col0 FROM tab2 AS cor0
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col0, - col1 + + 69 * + 75 AS col2 FROM tab1 AS cor0
----
59
5170
68
5128
96
5161

query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-73

query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab0 WHERE NULL BETWEEN + 80 * - - 78 + col0 * - col1 AND + col0 / + + col0
----

query I rowsort
SELECT ALL 70 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6525
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( CAST( col0 AS DECIMAL ) + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( CAST ( col0 AS REAL ) + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6526
SELECT col1 - - ( - col1 ) + + col1 DIV - ( + + col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6526
SELECT col1 - - ( - col1 ) + + col1 / - ( + + col0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT MIN( col0 ) - - + MIN( + - col0 ) AS col0 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-6527
SELECT MIN ( col0 ) - - + MIN ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT ALL + + col2 DIV + 84 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL + + col2 / + 84 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6529
SELECT 3 col1, + COUNT( * ) FROM tab2 cor0 WHERE - col0 * - + col2 * + 6 IS NULL
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6529
SELECT 3 col1, + COUNT ( * ) FROM tab2 cor0 WHERE - col0 * - + col2 * + 6 IS NULL
----
3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - 44 col0 FROM tab0
----
125
45
65

query I rowsort
SELECT ALL 97 + - col2 AS col0 FROM tab1
----
1
29
38

query I rowsort
SELECT ( 14 ) AS col2 FROM tab2
----
14
14
14

query II rowsort
SELECT col0 AS col0, + 90 + col1 AS col0 FROM tab0
----
15
171
87
111
97
91

query I rowsort
SELECT DISTINCT - + col2 * - 89 FROM tab1 WHERE - 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT DISTINCT - - ( COUNT( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT - - ( COUNT ( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 95 NOT BETWEEN 17 AND + - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT DISTINCT COUNT( * ) * COUNT( DISTINCT 10 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT COUNT ( * ) * COUNT ( DISTINCT 10 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab2 cor0
----
27

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT - col2 * col1 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6540
SELECT - MIN( ALL 47 ) * CAST( 58 AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-2729

skipif mysql # not compatible
query I rowsort label-6540
SELECT - MIN ( ALL 47 ) * CAST ( 58 AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-2729

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL + - 72 + - + MAX( - 8 ) FROM tab2 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL + - 72 + - + MAX ( - 8 ) FROM tab2 cor0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT DISTINCT - col0 FROM tab1 WHERE 4 * + CAST( col1 AS SIGNED ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT - col0 FROM tab1 WHERE 4 * + CAST ( col1 AS INTEGER ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-6543
SELECT - 63 * - + 35 * - col2, 73 DIV - col0 AS col0 FROM tab0
----
-103635
-4
-218295
0
-22050
0

skipif mysql # not compatible
query II rowsort label-6543
SELECT - 63 * - + 35 * - col2, 73 / - col0 AS col0 FROM tab0
----
-103635
-4
-218295
0
-22050
0

query II rowsort
SELECT DISTINCT + 63, col2 AS col2 FROM tab2
----
63
23
63
40
63
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6545
SELECT - - 73, COUNT( * ) AS col1 FROM tab2 WHERE - 54 <= + 32 / - + col1
----
73
3

skipif mysql # not compatible
query II rowsort label-6545
SELECT - - 73, COUNT ( * ) AS col1 FROM tab2 WHERE - 54 <= + 32 / - + col1
----
73
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT DISTINCT MIN( ALL col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6546
SELECT DISTINCT MIN ( ALL col2 ) FROM tab2
----
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col2, - 4, 92 / col0, - - 96, - col2 * - 4 + col0, - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6548
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + + - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6548
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + + - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6549
SELECT + col0 * + + col2 DIV col2 AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6549
SELECT + col0 * + + col2 / col2 AS col0 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT - 95 FROM tab1 WHERE NOT - 12 BETWEEN NULL AND col1 / col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6551
SELECT ALL - col0 * - col2 DIV - col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL - col0 * - col2 / - col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6552
SELECT - + 95 + + - COUNT( 5 ) AS col1, - 5 AS col1 FROM tab0 cor0
----
-98
-5

skipif mysql # not compatible
query II rowsort label-6552
SELECT - + 95 + + - COUNT ( 5 ) AS col1, - 5 AS col1 FROM tab0 cor0
----
-98
-5

query II rowsort
SELECT col0 + - ( + col1 ) + 38, 95 AS col1 FROM tab0
----
-28
95
104
95
134
95

query I rowsort
SELECT - 21 + + + col1 FROM tab1
----
-16
-7
26

query III rowsort
SELECT * FROM tab1 WHERE - col0 <= - 44 - - ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 13 - - col2 FROM tab1 AS cor0
----
109
72
81

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 31 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6560
SELECT DISTINCT - 75 DIV - col0 AS col1 FROM tab0 cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT - 75 / - col0 AS col1 FROM tab0 cor0
----
0
5

query I rowsort
SELECT + + col0 * 53 * + col2 AS col1 FROM tab0 cor0
----
37365
46110
508959

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col0 col1, col0 + 40 AS col0 FROM tab2
----
2346
86
4928
104
5025
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6564
SELECT ALL CAST( col0 AS SIGNED ) * - - col1 col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6564
SELECT ALL CAST ( col0 AS INTEGER ) * - - col1 col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL = + col0
----

query I rowsort
SELECT + col1 * + - col2 - + - 14 - - col0 - + - col2 * + col1 * - col2 AS col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 9 AS col0 FROM tab0 cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6568
SELECT DISTINCT SUM( - col0 ), - 89 AS col2 FROM tab2 AS cor0
----
-185
-89

skipif mysql # not compatible
query II rowsort label-6568
SELECT DISTINCT SUM ( - col0 ), - 89 AS col2 FROM tab2 AS cor0
----
-185
-89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6569
SELECT * FROM tab1 AS cor0 WHERE NOT 98 * - col1 * 7 - + - CAST( - col1 AS SIGNED ) + + col1 * + col0 * - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6569
SELECT * FROM tab1 AS cor0 WHERE NOT 98 * - col1 * 7 - + - CAST ( - col1 AS INTEGER ) + + col1 * + col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT 74 * - + col0 FROM tab0
----
-1110
-6438
-7178

query I rowsort
SELECT + 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL + COUNT( * ) FROM tab0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NULL = NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6574
SELECT DISTINCT CAST( + 11 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT CAST ( + 11 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT - ( + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6575
SELECT - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 83 col1 FROM tab1 cor0
----
83
83
83

query I rowsort
SELECT + + ( + - 30 ) FROM tab2 AS cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT - COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> + 94
----
0

skipif mysql # not compatible
query I rowsort label-6578
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> + 94
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 col1 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL - col1 + 91 FROM tab2
----
14
24
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT + ( 11 ) + - MIN( + col1 ) AS col2 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-6581
SELECT + ( 11 ) + - MIN ( + col1 ) AS col2 FROM tab2
----
-40

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL = 67 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + ( + col1 ) + col1, ( col2 ) * + col1 * + col0 * + col2 col2 FROM tab0
----
1
950697
21
182700
81
2683935

query I rowsort
SELECT 68 + + 86 * + - col1 AS col1 FROM tab1
----
-1136
-362
-3974

query I rowsort
SELECT ALL + - 74 AS col1 FROM tab1 AS cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6586
SELECT DISTINCT + 68 + - COUNT( * ) col0, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
65
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6586
SELECT DISTINCT + 68 + - COUNT ( * ) col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
65
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6587
SELECT ALL + MIN( - col0 ) + + - CAST( + MIN( DISTINCT - + 76 ) AS SIGNED ) * + 19 FROM tab1 AS cor0
----
1353

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL + MIN ( - col0 ) + + - CAST ( + MIN ( DISTINCT - + 76 ) AS INTEGER ) * + 19 FROM tab1 AS cor0
----
1353

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT - ( - COUNT( * ) ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6588
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - - col0 + + 22 AS col0 FROM tab1 cor0
----
107
113
73

query I rowsort
SELECT ALL col2 * + - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT ALL - ( - - COUNT( + - col0 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL - ( - - COUNT ( + - col0 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL + COUNT( * ) * 80 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL + COUNT ( * ) * 80 FROM tab0
----
240

query I rowsort
SELECT DISTINCT - col0 * + ( col1 ) FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-6594
SELECT DISTINCT 37 DIV 73 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT 37 / 73 AS col2 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 * - 94 / - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT ALL - COUNT( DISTINCT - - 9 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL - COUNT ( DISTINCT - - 9 ) FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6597
SELECT + col2, + 12 DIV col1 AS col1 FROM tab1
----
59
2
68
0
96
0

skipif mysql # not compatible
query II rowsort label-6597
SELECT + col2, + 12 / col1 AS col1 FROM tab1
----
59
2
68
0
96
0

query II rowsort
SELECT - col0 AS col2, - 11 * col0 AS col0 FROM tab2 cor0
----
-46
-506
-64
-704
-75
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL + MAX( col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL + MAX ( col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT DISTINCT + 81 * 7 * MAX( ALL col1 ) AS col1 FROM tab1
----
26649

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT + 81 * 7 * MAX ( ALL col1 ) AS col1 FROM tab1
----
26649

onlyif mysql # aggregate syntax: 
query II rowsort label-6601
SELECT + + COUNT( * ) AS col1, + 76 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
76

skipif mysql # not compatible
query II rowsort label-6601
SELECT + + COUNT ( * ) AS col1, + 76 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
76

query I rowsort
SELECT + - 4 + - - 55 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT ALL - - 15 FROM tab1 AS cor0
----
15
15
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - col1 * col0 + - 14 = ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 + + + col1, col0 col2 FROM tab2 AS cor0
----
102
46
134
75
154
64

query I rowsort
SELECT ALL 71 * + - col1 FROM tab2 AS cor0
----
-3621
-4757
-5467

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT DISTINCT + SUM( ALL - + 76 ) + COUNT( * ) FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT + SUM ( ALL - + 76 ) + COUNT ( * ) FROM tab1 AS cor0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT + COUNT( + + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6608
SELECT + COUNT ( + + col0 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 73 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN 5 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT MAX( DISTINCT col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6611
SELECT MAX ( DISTINCT col0 ) FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6612
SELECT CAST( NULL AS SIGNED ) * - 98 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT CAST ( NULL AS INTEGER ) * - 98 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 51 - + 99 FROM tab0 AS cor0
----
-150
-150
-150

query I rowsort
SELECT DISTINCT - col1 + 78 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
31
64
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6615
SELECT * FROM tab1 AS cor0 WHERE NULL > - CAST( + col0 AS SIGNED ) + - col1
----

skipif mysql # not compatible
query III rowsort label-6615
SELECT * FROM tab1 AS cor0 WHERE NULL > - CAST ( + col0 AS INTEGER ) + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 50 col1 FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT + - 26 + + - 20 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT - col1 * - - ( - + 81 ) + + col0 FROM tab0
----
178
1788
6576

query I rowsort
SELECT DISTINCT col1 + - col0 * - + col0 FROM tab1
----
2615
7230
8328

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col1, - col2, - + col2 / - + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT ALL - COUNT( col0 ) AS col0 FROM tab2 WHERE 40 * - - CAST( NULL AS SIGNED ) * 30 * col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - COUNT ( col0 ) AS col0 FROM tab2 WHERE 40 * - - CAST ( NULL AS INTEGER ) * 30 * col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT ALL - COUNT( * ) + + MAX( DISTINCT + + 5 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL - COUNT ( * ) + + MAX ( DISTINCT + + 5 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-6623
SELECT - ( + 61 ) col1, - 42 * col0 DIV - - 80 FROM tab0 AS cor0
----
-61
-45
-61
-50
-61
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6623
SELECT - ( + 61 ) col1, - 42 * col0 / - - 80 FROM tab0 AS cor0
----
-61
-45
-61
-50
-61
-7

query II rowsort
SELECT - 27 AS col0, + 48 FROM tab2 AS cor0 WHERE NOT 38 * col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT - MAX( DISTINCT + ( - - 87 ) ) * 37 AS col1 FROM tab2 AS cor0
----
-3219

skipif mysql # not compatible
query I rowsort label-6625
SELECT - MAX ( DISTINCT + ( - - 87 ) ) * 37 AS col1 FROM tab2 AS cor0
----
-3219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * + - 76 col0 FROM tab2 AS cor0
----
456
456
456

onlyif mysql # DIV for integer division: 
query I rowsort label-6627
SELECT + 73 DIV + 66 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6627
SELECT + 73 / + 66 AS col1 FROM tab1 cor0
----
1
1
1

query II rowsort
SELECT DISTINCT + col0 * col0 AS col1, col1 * - 9 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
225
-682
7569
-179
9409
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6629
SELECT col2 * col2 AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3481
NULL
4624
NULL
9216
NULL

skipif mysql # not compatible
query II rowsort label-6629
SELECT col2 * col2 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
3481
NULL
4624
NULL
9216
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT ALL + COUNT( * ) * - + 70 AS col2 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL + COUNT ( * ) * - + 70 AS col2 FROM tab2
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6631
SELECT - CAST( NULL AS SIGNED ) * 20 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6631
SELECT - CAST ( NULL AS INTEGER ) * 20 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6632
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 42 + COUNT( * ) FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 42 + COUNT ( * ) FROM tab1, tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6633
SELECT DISTINCT - col0 * + - CAST( NULL AS SIGNED ) / + + col1 / - - col1 - col2 FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT - col0 * + - CAST ( NULL AS INTEGER ) / + + col1 / - - col1 - col2 FROM tab0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + 49 IS NOT NULL
----

query I rowsort
SELECT ALL - 18 * col0 AS col0 FROM tab2 AS cor0
----
-1152
-1350
-828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6636
SELECT + - CAST( NULL AS SIGNED ) * + COUNT( * ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6636
SELECT + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT ALL + 78 DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL + 78 / - col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL 20 * + COUNT( * ) AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL 20 * + COUNT ( * ) AS col2 FROM tab0
----
60

query I rowsort
SELECT + 5 * col1 AS col2 FROM tab0 WHERE - - 50 IS NULL
----

query II rowsort
SELECT - col0, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6641
SELECT DISTINCT COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6641
SELECT DISTINCT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 6 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) * col2 * 24 = NULL
----

query I rowsort
SELECT + + 76 AS col2 FROM tab2 AS cor0
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6646
SELECT - col2 DIV 22 + 49 AS col2 FROM tab1 AS cor0
----
45
46
47

skipif mysql # not compatible
query I rowsort label-6646
SELECT - col2 / 22 + 49 AS col2 FROM tab1 AS cor0
----
45
46
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6647
SELECT ALL CAST( NULL AS DECIMAL ) + - 39 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL CAST ( NULL AS REAL ) + - 39 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * + - col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6649
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 1 + 15 AS col0 FROM tab1
----
16
16
16

query III rowsort
SELECT * FROM tab1 WHERE col0 * - - 21 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab1 WHERE + + 95 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 58 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 21 * - 99 + - col0 FROM tab0
----
1982
1992
2064

query I rowsort
SELECT - col2 * col0 * col1 + - col2 - - - 46 FROM tab0
----
-18326
-57198
-9748

onlyif mysql # DIV for integer division: 
query I rowsort label-6656
SELECT col0 DIV + 47 + - col0 AS col1 FROM tab2
----
-46
-63
-74

skipif mysql # not compatible
query I rowsort label-6656
SELECT col0 / + 47 + - col0 AS col1 FROM tab2
----
-46
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT + 19 + COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-6657
SELECT + 19 + COUNT ( * ) FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT 50 + - ( COUNT( * ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6658
SELECT 50 + - ( COUNT ( * ) ) FROM tab1
----
47

query I rowsort
SELECT ALL - 63 FROM tab0 AS cor0
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 43 ) col0 FROM tab1 AS cor0
----
-43
-43
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6661
SELECT ALL - CAST( NULL AS SIGNED ) + + - col0 + - 24 + 11 + - CAST( + col2 AS SIGNED ) + + + col0 * + + col2 * + 73 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL - CAST ( NULL AS INTEGER ) + + - col0 + - 24 + 11 + - CAST ( + col2 AS INTEGER ) + + + col0 * + + col2 * + 73 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6662
SELECT ALL - CAST( + ( col1 ) AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL - CAST ( + ( col1 ) AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 63 * - col1 > - + col1 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 56 FROM tab0 AS cor0 WHERE NOT + col2 > + 70 + - 36
----
56

query I rowsort
SELECT ALL - + 61 AS col1 FROM tab2 AS cor0
----
-61
-61
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-6666
SELECT - col1 * - + 56 - + col2, + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
221
-1
2564
-1
688
-1

skipif mysql # not compatible
query II rowsort label-6666
SELECT - col1 * - + 56 - + col2, + col0 / - col0 AS col1 FROM tab1 AS cor0
----
221
-1
2564
-1
688
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 46 * col1 AS col1 FROM tab1 cor0
----
2162
230
644

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT 92 * - - MIN( ALL - + col0 ) * + + COUNT( * ) AS col2 FROM tab0
----
-26772

skipif mysql # not compatible
query I rowsort label-6669
SELECT 92 * - - MIN ( ALL - + col0 ) * + + COUNT ( * ) AS col2 FROM tab0
----
-26772

query I rowsort
SELECT + 44 FROM tab2 WHERE NOT col1 * + + 80 IS NULL
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6671
SELECT ALL - CAST( - + col0 AS SIGNED ) * + 41 FROM tab0
----
3567
3977
615

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL - CAST ( - + col0 AS INTEGER ) * + 41 FROM tab0
----
3567
3977
615

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6672
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 * + col0 + - col0 AND col0 + + 87 + + + CAST( NULL AS SIGNED ) * + col0 / + 84
----

skipif mysql # not compatible
query III rowsort label-6672
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 * + col0 + - col0 AND col0 + + 87 + + + CAST ( NULL AS INTEGER ) * + col0 / + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT DISTINCT MIN( + - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT MIN ( + - col2 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6674
SELECT - MAX( DISTINCT col1 ), - 25 AS col2 FROM tab0
----
-81
-25

skipif mysql # not compatible
query II rowsort label-6674
SELECT - MAX ( DISTINCT col1 ), - 25 AS col2 FROM tab0
----
-81
-25

query I rowsort
SELECT - col0 * + + col2 AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6676
SELECT + COUNT( * ) DIV ( + 42 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6676
SELECT + COUNT ( * ) / ( + 42 ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6677
SELECT ALL ( - - CAST( - col2 AS SIGNED ) ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL ( - - CAST ( - col2 AS INTEGER ) ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL SUM( DISTINCT - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL SUM ( DISTINCT - col1 ) FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6679
SELECT col0 * col1 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6679
SELECT col0 * col1 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT - 69 * col0 + - col1 FROM tab2 AS cor0
----
-3225
-4493
-5242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6682
SELECT ALL + + ( - - 14 ) * - - CAST( NULL AS SIGNED ) * + col0 * ( 50 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL + + ( - - 14 ) * - - CAST ( NULL AS INTEGER ) * + col0 * ( 50 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - - 59 FROM tab0 WHERE NOT ( NOT col2 NOT BETWEEN - col2 AND + + col1 * - ( 24 ) * col2 * - 18 ) OR + + col0 IS NOT NULL
----
-1239
-4779
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT DISTINCT + - COUNT( * ) * - - MAX( + + 65 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT + - COUNT ( * ) * - - MAX ( + + 65 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT - + ( 76 ) AS col0 FROM tab1 AS cor0
----
-76
-76
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6686
SELECT DISTINCT - col2 DIV col0 - - col1 AS col0 FROM tab1 cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT - col2 / col0 - - col1 AS col0 FROM tab1 cor0
----
13
47
5

query I rowsort
SELECT ALL 62 + - col1 AS col2 FROM tab0
----
-19
41
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT DISTINCT + 33 * - COUNT( * ) + - MAX( - col1 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT + 33 * - COUNT ( * ) + - MAX ( - col1 ) FROM tab2
----
-48

query II rowsort
SELECT + col2 AS col1, - col2 + - col2 AS col2 FROM tab0
----
10
-20
47
-94
99
-198

query III rowsort
SELECT * FROM tab0 WHERE + col2 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 55 col0 FROM tab1
----
-106
-140
-146

query I rowsort
SELECT - ( 9 ) - + - col0 * - 84 FROM tab2
----
-3873
-5385
-6309

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN - col2 AND + - col2 + + col1
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT + 78 + col0 + - - col2 AS col2 FROM tab0 AS cor0
----
140
175
274

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT ALL - MIN( + - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL - MIN ( + - col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT - col0 + - - col2 * - 63 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT - col0 + - - col2 * - 63 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 + + col2 col0 FROM tab2 AS cor0
----
-30
-48
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - col2 AND + + 21 / - ( 34 ) * - 4 + + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - ( + 76 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT 74 * 28 * col1 IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col1, col0 * - - 75 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
3450
40
4800
58
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 53 col2 FROM tab0 cor0
----
53
53
53

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 + + col2 IS NULL
----
14
47
5

query I rowsort
SELECT ( + col1 ) * + - col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - ( 51 ) AS col0 FROM tab0 AS cor0
----
-51
-51
-51

query II rowsort
SELECT DISTINCT - 13 AS col1, + ( - col2 ) FROM tab2
----
-13
-23
-13
-40
-13
-58

query I rowsort
SELECT DISTINCT - ( + - 76 ) FROM tab1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL MAX( - col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL MAX ( - col2 ) AS col2 FROM tab2
----
-23

query II rowsort
SELECT 63, - col2 AS col2 FROM tab0
----
63
-10
63
-47
63
-99

query II rowsort
SELECT ALL + 2 AS col1, col0 AS col2 FROM tab2
----
2
46
2
64
2
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL 42 * MIN( ( - col0 ) ) FROM tab0
----
-4074

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL 42 * MIN ( ( - col0 ) ) FROM tab0
----
-4074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + + col1 + col0 * 49 col2 FROM tab0 cor0
----
4371
4851
831

query I rowsort
SELECT + 86 AS col2 FROM tab1 AS cor0 WHERE NOT + 96 + + + ( + - col0 ) IS NOT NULL
----

query I rowsort
SELECT + - col1 + - ( - + col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6715
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) + + - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) + + - col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT col1 + - - col0 FROM tab2 WHERE NOT - - col2 >= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 76 + + col0 NOT BETWEEN + col2 AND ( col1 + + 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT DISTINCT + 27 * - COUNT( * ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT + 27 * - COUNT ( * ) FROM tab2 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6721
SELECT * FROM tab1 cor0 WHERE - 45 + - CAST( + 34 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6721
SELECT * FROM tab1 cor0 WHERE - 45 + - CAST ( + 34 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL 23 * - col1 * - - 22 FROM tab1 AS cor0
----
-23782
-2530
-7084

query I rowsort
SELECT DISTINCT col2 + col0 + col1 AS col2 FROM tab0 AS cor0
----
118
143
197

query II rowsort
SELECT DISTINCT - ( col0 ), - 28 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 53 + + col1 + + col2 FROM tab2 AS cor0
----
-2629
-3426
-3964

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL - 79 + + - MIN( ALL + + col2 ) FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL - 79 + + - MIN ( ALL + + col2 ) FROM tab2 AS cor0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6727
SELECT DISTINCT - 25 * 23 * col0 * - - 88 + - + 16 * - - CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2579064
-4300056
-4603512

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT - 25 * 23 * col0 * - - 88 + - + 16 * - - CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2579064
-4300056
-4603512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6728
SELECT ALL - 65 + + - CAST( - col1 AS SIGNED ) FROM tab1
----
-18
-51
-60

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL - 65 + + - CAST ( - col1 AS INTEGER ) FROM tab1
----
-18
-51
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-6729
SELECT SUM( ALL - + col1 ) + - 28 AS col1, ( + + 98 ) FROM tab0
----
-131
98

skipif mysql # not compatible
query II rowsort label-6729
SELECT SUM ( ALL - + col1 ) + - 28 AS col1, ( + + 98 ) FROM tab0
----
-131
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - + col0
----

query I rowsort
SELECT - col0 + + ( + + 22 ) + + col1 FROM tab1
----
-15
-22
-58

query I rowsort
SELECT DISTINCT ( + col2 ) * + col1 + - col1 FROM tab2
----
1122
3003
3819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT DISTINCT CAST( NULL AS SIGNED ) + 1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 1 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT DISTINCT MAX( + col1 ) - - 33 * ( + + COUNT( * ) ) col1 FROM tab1
----
146

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6734
SELECT DISTINCT MAX ( + col1 ) - - 33 * ( + + COUNT ( * ) ) col1 FROM tab1
----
146

query I rowsort
SELECT ALL - ( - + ( + - col0 ) ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6736
SELECT DISTINCT SUM( DISTINCT + col1 ) * COUNT( * ) * - - 7 - + + 84 + + + COUNT( * ) DIV + 72 FROM tab1
----
1302

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT SUM ( DISTINCT + col1 ) * COUNT ( * ) * - - 7 - + + 84 + + + COUNT ( * ) / + 72 FROM tab1
----
1302

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 * - col0 col0 FROM tab2
----
506
704
825

query I rowsort
SELECT ALL + col0 - - - 36 FROM tab0 AS cor0
----
-21
51
61

query II rowsort
SELECT - col0 AS col2, 36 FROM tab0 AS cor0 WHERE + 93 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6740
SELECT ALL CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6741
SELECT ALL MIN( ALL + col0 ), COUNT( * ) col0 FROM tab1 WHERE NULL IS NULL
----
51
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6741
SELECT ALL MIN ( ALL + col0 ), COUNT ( * ) col0 FROM tab1 WHERE NULL IS NULL
----
51
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6742
SELECT ALL - 14 AS col2, - ( - ( - MAX( DISTINCT - ( - + 32 ) ) ) ) AS col0 FROM tab1 AS cor0
----
-14
-32

skipif mysql # not compatible
query II rowsort label-6742
SELECT ALL - 14 AS col2, - ( - ( - MAX ( DISTINCT - ( - + 32 ) ) ) ) AS col0 FROM tab1 AS cor0
----
-14
-32

query II rowsort
SELECT col2 * + + col0 * - col0 AS col2, 29 FROM tab2 AS cor0 WHERE NOT ( - ( - col1 ) ) IS NULL
----
-163840
29
-326250
29
-48668
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL + COUNT( DISTINCT - - 59 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL + COUNT ( DISTINCT - - 59 ) AS col1 FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * - 58 NOT IN ( + 18 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, - ( + + 85 ) AS col0 FROM tab2 AS cor0
----
46
-85
64
-85
75
-85

query I rowsort
SELECT 98 * col1 AS col2 FROM tab2 AS cor0
----
4998
6566
7546

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT DISTINCT + MAX( ALL 5 ) AS col2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT + MAX ( ALL 5 ) AS col2 FROM tab2 AS cor0
----
5

query I rowsort
SELECT DISTINCT 15 AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT col0 * col1 + + col2 + 69 AS col2 FROM tab0 AS cor0
----
1331
1906
265

onlyif mysql # aggregate syntax: 
query II rowsort label-6752
SELECT DISTINCT MAX( DISTINCT + col1 ) AS col2, - COUNT( * ) AS col0 FROM tab1
----
47
-3

skipif mysql # not compatible
query II rowsort label-6752
SELECT DISTINCT MAX ( DISTINCT + col1 ) AS col2, - COUNT ( * ) AS col0 FROM tab1
----
47
-3

query I rowsort
SELECT ALL - 90 AS col1 FROM tab1
----
-90
-90
-90

query I rowsort
SELECT DISTINCT - col0 * + + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 + + 26 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 / + col0 BETWEEN - + col1 + + col0 - 34 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-6756
SELECT col2 DIV - - 82 AS col1, col1 * - col0 - + + col2 FROM tab1
----
0
-4345
0
-484
1
-810

skipif mysql # not compatible
query II rowsort label-6756
SELECT col2 / - - 82 AS col1, col1 * - col0 - + + col2 FROM tab1
----
0
-4345
0
-484
1
-810

query II rowsort
SELECT col2 * - + col0, - col1 AS col2 FROM tab2
----
-1058
-51
-2560
-77
-4350
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT ALL 63 * + SUM( - 28 ) AS col2 FROM tab2
----
-5292

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL 63 * + SUM ( - 28 ) AS col2 FROM tab2
----
-5292

onlyif mysql # DIV for integer division: 
query II rowsort label-6759
SELECT col1 DIV + col0 col1, - 26 FROM tab1
----
0
-26
0
-26
0
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6759
SELECT col1 / + col0 col1, - 26 FROM tab1
----
0
-26
0
-26
0
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6760
SELECT ALL + COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
117
125
74

query I rowsort
SELECT + - 18 FROM tab0 AS cor0 WHERE 52 IS NOT NULL
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL - MIN( - col1 ) col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6764
SELECT ALL - MIN ( - col1 ) col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL + - 97 AS col1 FROM tab1 AS cor0
----
-97
-97
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + - col1 >= + col2 + + col0 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6767
SELECT + - col0 DIV + - CAST( - - col0 AS SIGNED ) + + + ( + col2 ) AS col1 FROM tab2 cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-6767
SELECT + - col0 / + - CAST ( - - col0 AS INTEGER ) + + + ( + col2 ) AS col1 FROM tab2 cor0
----
24
41
59

query I rowsort
SELECT - 55 - ( col0 ) FROM tab2
----
-101
-119
-130

query I rowsort
SELECT DISTINCT ( + col1 ) + - - col1 AS col0 FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT + 3 - + 92 * - 60 * + 68 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT + 3 - + 92 * - 60 * + 68 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 33 - - col1 FROM tab1
----
38
47
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT ALL col2 * + col0 + col1 + col0 + col0 + - 82 - + 86 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 WHERE NOT - ( col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL col2 * + col0 + col1 + col0 + col0 + - 82 - + 86 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 WHERE NOT - ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - 33 ) - - 91 + 93 + col1 FROM tab0
----
152
172
232

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT - 21 - - + MIN( ALL - 75 ) - - COUNT( - ( + col2 ) ) + - - 6 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-6774
SELECT - 21 - - + MIN ( ALL - 75 ) - - COUNT ( - ( + col2 ) ) + - - 6 FROM tab2
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-6775
SELECT DISTINCT - COUNT( * ) + + - 50 AS col1, - 86 FROM tab1
----
-53
-86

skipif mysql # not compatible
query II rowsort label-6775
SELECT DISTINCT - COUNT ( * ) + + - 50 AS col1, - 86 FROM tab1
----
-53
-86

query I rowsort
SELECT + 88 - + 32 + + 44 FROM tab0
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT MAX( + ( + col0 ) ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6777
SELECT MAX ( + ( + col0 ) ) col2 FROM tab1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 82 col2, AVG ( 76 ) AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
-82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6779
SELECT - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT ALL 52 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL 52 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
156

query II rowsort
SELECT - col0 * - col2 * + col1 - col2 AS col2, + col0 AS col2 FROM tab1 AS cor0
----
25016
85
290768
91
68448
51

query I rowsort
SELECT ALL + 56 AS col1 FROM tab0 WHERE NOT 8 IS NULL
----
56
56
56

query I rowsort
SELECT DISTINCT - - 18 + col2 FROM tab0 AS cor0
----
117
28
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT DISTINCT COUNT( * ) + 8 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT COUNT ( * ) + 8 FROM tab1
----
11

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col0 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 = + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0 AS col0, - ( + col1 ) AS col2 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT col1 + - ( col0 ) AS col1 FROM tab2
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 76 AS col2, + 27, - col0 * - + 41 + - col2 col0 FROM tab0
----
9 values hashing to ac20f05f23350d78d26fb6dd47fc22e2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 43 = + col1 + 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6791
SELECT COUNT( * ) col1, - COUNT( * ) FROM tab2 cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6791
SELECT COUNT ( * ) col1, - COUNT ( * ) FROM tab2 cor0
----
3
-3

query I rowsort
SELECT ALL 48 + - + col0 * + col1 * + - col1 FROM tab1 AS cor0
----
10044
201067
2173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6793
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 col1 FROM tab2 AS cor0
----
17

query I rowsort
SELECT DISTINCT - + col1 + - ( col2 ) AS col1 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT + MIN( + + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6796
SELECT + MIN ( + + col2 ) FROM tab0
----
10

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL BETWEEN ( NULL ) AND + 27 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6798
SELECT + COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6798
SELECT + COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT - col1 DIV 89 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6799
SELECT - col1 / 89 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT + col2 AS col2, - 3 FROM tab2
----
23
-3
40
-3
58
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT + MAX( DISTINCT + 7 ) AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-6801
SELECT + MAX ( DISTINCT + 7 ) AS col0 FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT DISTINCT - ( + 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-6802
SELECT DISTINCT - ( + MAX ( - col0 ) ) col0 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT - - SUM( DISTINCT + ( - col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6803
SELECT - - SUM ( DISTINCT + ( - col1 ) ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT DISTINCT + - COUNT( * ) * ( COUNT( * ) ) + SUM( + col0 ) FROM tab0 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT + - COUNT ( * ) * ( COUNT ( * ) ) + SUM ( + col0 ) FROM tab0 AS cor0
----
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6805
SELECT DISTINCT + - 45 DIV - + COUNT( * ) AS col0 FROM tab2 cor0
----
15

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT + - 45 / - + COUNT ( * ) AS col0 FROM tab2 cor0
----
15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - - col1
----

query I rowsort
SELECT ( + 25 ) FROM tab1 WHERE NOT col0 * col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 / 44 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * + 16 IS NOT NULL
----

query I rowsort
SELECT ALL 95 * - col0 FROM tab2 WHERE NOT + 27 - col1 <> - 82 + + 13 * 91
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT + col0 DIV 5 FROM tab2 WHERE + col0 + col0 * col2 IS NOT NULL
----
12
15
9

skipif mysql # not compatible
query I rowsort label-6811
SELECT + col0 / 5 FROM tab2 WHERE + col0 + col0 * col2 IS NOT NULL
----
12
15
9

query I rowsort
SELECT + 99 - col0 AS col1 FROM tab1
----
14
48
8

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + col2 + 75 )
----

query I rowsort
SELECT DISTINCT - 77 + + 8 * 31 FROM tab0
----
171

query III rowsort
SELECT * FROM tab0 WHERE col0 < col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT MIN( 5 ) - + 9 col0 FROM tab1
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6816
SELECT MIN ( 5 ) - + 9 col0 FROM tab1
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 96 col0 FROM tab0
----
2016
7776
96

query I rowsort
SELECT DISTINCT + col0 - 85 FROM tab2
----
-10
-21
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6819
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6819
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6820
SELECT ALL AVG ( ALL col0 ) * - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2 WHERE - 99 * - ( - col1 ) + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL AVG ( ALL col0 ) * - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2 WHERE - 99 * - ( - col1 ) + + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + col0 NOT BETWEEN 1 AND - 26
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 > ( + 7 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + col1 NOT BETWEEN 30 * col2 AND - 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT + MAX( DISTINCT + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6824
SELECT + MAX ( DISTINCT + col2 ) FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col2 col1 FROM tab0
----
196
62
97

query I rowsort
SELECT ALL 81 * + col0 AS col0 FROM tab2
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT ALL - COUNT( * ) * - MIN( ALL + col1 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - COUNT ( * ) * - MIN ( ALL + col1 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT - ( + COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6828
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL 82 + + col2 FROM tab1
----
141
150
178

query I rowsort
SELECT 33 - + col2 AS col2 FROM tab1
----
-26
-35
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6831
SELECT CAST( - col1 AS SIGNED ) AS col0 FROM tab0 WHERE NOT 31 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6831
SELECT CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 WHERE NOT 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL - SUM( ( 53 ) ) AS col2 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL - SUM ( ( 53 ) ) AS col2 FROM tab1
----
-159

query I rowsort
SELECT ALL - col0 * - 94 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT + COUNT( DISTINCT 66 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6834
SELECT + COUNT ( DISTINCT 66 ) FROM tab1
----
1

query I rowsort
SELECT ALL - 8 AS col0 FROM tab0
----
-8
-8
-8

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + 41 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6837
SELECT DISTINCT 46 * + ( 91 ) + col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT 46 * + ( 91 ) + col2 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 * col1 + ( 22 - - 14 ) AS col0 FROM tab2 AS cor0
----
2382
4964
5061

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT COUNT( * ) + 93 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6839
SELECT COUNT ( * ) + 93 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT + 9 + CAST( col2 AS SIGNED ) FROM tab0 cor0
----
108
19
56

skipif mysql # not compatible
query I rowsort label-6840
SELECT + 9 + CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
108
19
56

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE col1 - col0 NOT IN ( + col1 * + col0 )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6842
SELECT ALL 78 AS col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) + + col0 < + col2
----

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL 78 AS col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + + col0 < + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 + + col0 ) IS NULL
----

query I rowsort
SELECT ALL + + col1 * - 76 AS col1 FROM tab2 AS cor0
----
-3876
-5092
-5852

query I rowsort
SELECT DISTINCT col2 - - 2 FROM tab2 AS cor0
----
25
42
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL ( COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL ( COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 AS col2 FROM tab0 cor0 WHERE - col2 * col2 NOT BETWEEN col1 * + col1 AND col0
----
1
21
81

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN 71 AND - col1 - - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col1 FROM tab0 cor0
----
83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 82 / col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT SUM( col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6852
SELECT SUM ( col1 ) AS col1 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL + COUNT( * ) * + 90 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL + COUNT ( * ) * + 90 FROM tab2 AS cor0
----
270

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 58 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE ( - ( col2 ) + - ( col1 ) ) NOT IN ( 40 )
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * + col0 col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT ALL COUNT( DISTINCT - 19 ) col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6857
SELECT ALL COUNT ( DISTINCT - 19 ) col1 FROM tab0
----
1

query I rowsort
SELECT ALL 80 * col1 + - 93 AS col0 FROM tab2 WHERE NOT 80 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6859
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND - CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-6859
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND - CAST ( NULL AS INTEGER ) + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN 22 * 49 AND ( - col0 + col0 * + col1 )
----

query I rowsort
SELECT ALL + - ( - + 13 ) * - col1 FROM tab2 AS cor0
----
-1001
-663
-871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6862
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ) * - ( col2 + 16 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) * - ( col2 + 16 ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 * col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + col2 NOT IN ( - 58 )
----

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > 50
----

query I rowsort
SELECT ALL 64 * col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6869
SELECT - col1 DIV - - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6869
SELECT - col1 / - - col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT - 77 * - COUNT( * ) + + ( 27 ) + - COUNT( * ) FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-6870
SELECT - 77 * - COUNT ( * ) + + ( 27 ) + - COUNT ( * ) FROM tab0 AS cor0
----
255

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( 80 ) BETWEEN 9 / col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE col2 * - + 62 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6872
SELECT - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE col2 * - + 62 >= NULL
----
0

query II rowsort
SELECT + col1, 1 FROM tab2 AS cor0
----
51
1
67
1
77
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN col0 AND + 44
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6875
SELECT col2 AS col2, col2 + - + col2 DIV col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-6875
SELECT col2 AS col2, col2 + - + col2 / col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE - 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + + + col2 + + 69 * + 40 AS col0 FROM tab2
----
2723
2732
2751

query I rowsort
SELECT ALL 13 * - 82 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT COUNT( ALL col1 ) + - 27 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-6881
SELECT COUNT ( ALL col1 ) + - 27 FROM tab2
----
-24

query I rowsort
SELECT DISTINCT 68 + 38 * - - 50 FROM tab1
----
1968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6883
SELECT DISTINCT COUNT( * ) * - 35 - + 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-6883
SELECT DISTINCT COUNT ( * ) * - 35 - + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6884
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) * 73 DIV + - 64 AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) * 73 / + - 64 AS col1 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6885
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 * + + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 * + + col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - + col2 * + col2 AS col1, + col0 * col0 + 62 AS col2 FROM tab1 AS cor0
----
-3481
7287
-4624
8343
-9216
2663

query I rowsort
SELECT ALL + + col2 + - + ( - + 15 ) + + col1 AS col1 FROM tab0 AS cor0
----
115
143
46

query I rowsort
SELECT ALL + 95 FROM tab0 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6890
SELECT + - CAST( + col0 AS SIGNED ), + col0 AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

skipif mysql # not compatible
query II rowsort label-6890
SELECT + - CAST ( + col0 AS INTEGER ), + col0 AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT DISTINCT + - 86 + + col2 AS col0 FROM tab2 AS cor0
----
-28
-46
-63

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 >= col0 * - 53 * + col1 - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col2 FROM tab0 cor0
----
70
70
70

query I rowsort
SELECT - 54 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6895
SELECT - COUNT( * ), COUNT( * ) * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
9

skipif mysql # not compatible
query II rowsort label-6895
SELECT - COUNT ( * ), COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
9

query I rowsort
SELECT ALL 20 - - + col1 AS col2 FROM tab2 cor0 WHERE NOT 57 IS NULL
----
71
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - + ( - col2 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 + + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 54 ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6901
SELECT DISTINCT * FROM tab0 WHERE - 91 BETWEEN - + ( CAST( - col1 AS SIGNED ) ) AND col2
----

skipif mysql # not compatible
query III rowsort label-6901
SELECT DISTINCT * FROM tab0 WHERE - 91 BETWEEN - + ( CAST ( - col1 AS INTEGER ) ) AND col2
----

query I rowsort
SELECT DISTINCT - col2 * - col1 AS col0 FROM tab0 WHERE NOT 40 + + col0 * - - 40 * + - col0 * + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, - 69 col1 FROM tab2 AS cor0
----
23
-69
40
-69
58
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 40 / - - col0 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6905
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( col1 AS SIGNED ) BETWEEN NULL AND - 87
----

skipif mysql # not compatible
query III rowsort label-6905
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( col1 AS INTEGER ) BETWEEN NULL AND - 87
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
23
40
58

query II rowsort
SELECT DISTINCT + 28 AS col0, + 61 * + + 31 FROM tab2 AS cor0
----
28
1891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + ( + 0 ) ) col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 * - + 32 + + 96 FROM tab1
----
1600
256
544

query II rowsort
SELECT ALL - ( + col2 ) AS col2, + 51 AS col0 FROM tab2
----
-23
51
-40
51
-58
51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 24 + - - col2 < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + + col1 * + + 21 + + + col2 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 81 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 50 AS col2 FROM tab0 cor0
----
-50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 5 + + col0 + ( + - 6 ) + - col2 FROM tab1 AS cor0
----
-56
12
15

query II rowsort
SELECT col2, col0 AS col1 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6919
SELECT COUNT( * ) AS col2, - MIN( ALL - col2 ) FROM tab2
----
3
58

skipif mysql # not compatible
query II rowsort label-6919
SELECT COUNT ( * ) AS col2, - MIN ( ALL - col2 ) FROM tab2
----
3
58

query III rowsort
SELECT * FROM tab1 WHERE + ( - 30 ) + 59 * 94 * - - col1 <> ( - col0 / 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-6921
SELECT COUNT( * ), - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-6921
SELECT COUNT ( * ), - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2
----
3
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( ( 26 ) - - - col1, col1 )
----

query I rowsort
SELECT 30 * - 34 FROM tab1
----
-1020
-1020
-1020

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 - + + col2 col2 FROM tab2
----
-16
-41
0

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6926
SELECT DISTINCT + 18 DIV + - col0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT + 18 / + - col0 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6927
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0, 42 FROM tab0 cor0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-6927
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, 42 FROM tab0 cor0
----
NULL
42

query I rowsort
SELECT ALL col0 + col1 + 76 FROM tab2
----
173
217
218

query I rowsort
SELECT ALL + 5 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # DIV for integer division: 
query I rowsort label-6930
SELECT ALL + ( - col2 ) DIV col1 DIV - + col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL + ( - col2 ) / col1 / - + col2 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT col0 AS col2, + col1 - col2 FROM tab0 AS cor0 WHERE NOT 94 BETWEEN - col0 AND ( - - col2 ) + - col0
----
15
34
87
11
97
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 46
----
0

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT DISTINCT - + COUNT( ALL + 77 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT - + COUNT ( ALL + 77 ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 < ( + col2 )
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 5 IS NOT NULL
----

query I rowsort
SELECT + col0 * + - ( ( col1 ) ) + - + col1 AS col0 FROM tab2 AS cor0
----
-2397
-5005
-5092

query II rowsort
SELECT DISTINCT - 62 * - col0 AS col0, ( - + 7 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6938
SELECT ALL - 61 DIV + 38 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL - 61 / + 38 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + + 72 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6940
SELECT 21 DIV 34 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6940
SELECT 21 / 34 col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col1, col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT - MIN( ALL + 71 ) AS col2 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-6943
SELECT - MIN ( ALL + 71 ) AS col2 FROM tab2
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + 33 col1 FROM tab0 AS cor0
----
2871
3201
495

onlyif mysql # DIV for integer division: 
query I rowsort label-6945
SELECT + - col1 DIV - + 54 + + col0 * + 77 AS col2 FROM tab0 AS cor0
----
1156
6699
7469

skipif mysql # not compatible
query I rowsort label-6945
SELECT + - col1 / - + 54 + + col0 * + 77 AS col2 FROM tab0 AS cor0
----
1156
6699
7469

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT ALL COUNT( * ) + 72 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL COUNT ( * ) + 72 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6948
SELECT ( 65 ) DIV MAX( col0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6948
SELECT ( 65 ) / MAX ( col0 ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT + MAX( DISTINCT - + 60 ) * - COUNT( * ) FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-6949
SELECT + MAX ( DISTINCT - + 60 ) * - COUNT ( * ) FROM tab0 AS cor0
----
180

query II rowsort
SELECT ALL - - col1 AS col0, + 38 FROM tab0 AS cor0
----
1
38
21
38
81
38

query I rowsort
SELECT DISTINCT + 79 + - - 54 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col1
----

query I rowsort
SELECT DISTINCT - ( + + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT col1 * - - col1 + - + col1 FROM tab0 AS cor0
----
0
420
6480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6954
SELECT - - 76 DIV + COUNT( * ) + - 4 AS col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6954
SELECT - - 76 / + COUNT ( * ) + - 4 AS col0 FROM tab2 AS cor0
----
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - + 83 <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT - - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6956
SELECT - - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

query II rowsort
SELECT - col2 + - col1 + + - 41 - - 90, 91 AS col2 FROM tab1 AS cor0
----
-15
91
-61
91
-66
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * + col1 - + col1 * + col0 col0 FROM tab2
----
-402
1173
385

query I rowsort
SELECT ALL + 7 + col1 * + col0 AS col1 FROM tab1
----
4284
432
721

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6960
SELECT * FROM tab0 WHERE + + CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6960
SELECT * FROM tab0 WHERE + + CAST ( + col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6961
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ), SUM( + + col0 ) AS col2 FROM tab1 AS cor0
----
3
227

skipif mysql # not compatible
query II rowsort label-6961
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ), SUM ( + + col0 ) AS col2 FROM tab1 AS cor0
----
3
227

query I rowsort
SELECT + - col0 * col2 + - 87 + col2 FROM tab0 AS cor0
----
-745
-947
-9591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT ALL + + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL + + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 7 NOT BETWEEN - 11 * - 0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col0 AS col2 FROM tab0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT DISTINCT + MIN( col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT + MIN ( col0 ) AS col2 FROM tab2
----
46

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col0 AS col0, - 31 + col1 AS col1 FROM tab0 AS cor0
----
15
50
87
-10
97
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT - 81 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-6970
SELECT - 81 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6971
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 33 * CAST( + 6 AS SIGNED ) ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6971
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 33 * CAST ( + 6 AS INTEGER ) ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT ALL MIN( ALL + - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL MIN ( ALL + - col2 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6973
SELECT DISTINCT - col1, + 71 * 13 * col0 + col1 + - ( + - CAST( NULL AS DECIMAL ) ) * - + col2 AS col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-6973
SELECT DISTINCT - col1, + 71 * 13 * col0 + col1 + - ( + - CAST ( NULL AS REAL ) ) * - + col2 AS col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT ALL - - SUM( + 29 ) * + COUNT( * ) * + 78 FROM tab0 AS cor0
----
20358

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL - - SUM ( + 29 ) * + COUNT ( * ) * + 78 FROM tab0 AS cor0
----
20358

query I rowsort
SELECT DISTINCT + 94 FROM tab2 AS cor0 WHERE NOT + 36 IS NULL
----
94

query I rowsort
SELECT DISTINCT + col0 * + 64 + - 98 AS col1 FROM tab0 cor0
----
5470
6110
862

query I rowsort
SELECT + 66 * + col2 FROM tab0
----
3102
6534
660

query II rowsort
SELECT col1 * + + 78 AS col1, col2 FROM tab1
----
1092
96
3666
68
390
59

query I rowsort
SELECT + - col2 * - + 74 + col2 AS col2 FROM tab1 AS cor0
----
4425
5100
7200

query I rowsort
SELECT ALL + ( - col2 ) * - 78 - - col1 + + + 98 FROM tab1 AS cor0
----
4705
5449
7600

onlyif mysql # DIV for integer division: 
query I rowsort label-6981
SELECT ALL - 97 + 47 DIV - + col2 AS col2 FROM tab1 cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL - 97 + 47 / - + col2 AS col2 FROM tab1 cor0
----
-97
-97
-97

query II rowsort
SELECT DISTINCT - 36 AS col0, + 12 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-36
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6983
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6984
SELECT 67 + - SUM( DISTINCT + col2 ) + + 12 + + MAX( - CAST( - col2 AS SIGNED ) ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-6984
SELECT 67 + - SUM ( DISTINCT + col2 ) + + 12 + + MAX ( - CAST ( - col2 AS INTEGER ) ) FROM tab2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6985
SELECT * FROM tab2 WHERE NULL NOT IN ( + CAST( col2 AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-6985
SELECT * FROM tab2 WHERE NULL NOT IN ( + CAST ( col2 AS INTEGER ), col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = + col2 / + 10
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 col1 FROM tab0 AS cor0 WHERE - col1 * + 30 = + ( - col2 ) * - col2 / 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT DISTINCT - ( - COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT - ( - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + col1 + + 20 * 73 - 69 FROM tab2 AS cor0
----
1442
1458
1468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col1 FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6991
SELECT - ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 35 AS col1 FROM tab2 cor0
----
35
35
35

query I rowsort
SELECT DISTINCT + 23 + - 67 + - 96 FROM tab1
----
-140

query I rowsort
SELECT DISTINCT 93 * 21 - + - 20 FROM tab0
----
1973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6995
SELECT 92, + COUNT( DISTINCT - - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col0 FROM tab2
----
92
0

skipif mysql # not compatible
query II rowsort label-6995
SELECT 92, + COUNT ( DISTINCT - - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) AS col0 FROM tab2
----
92
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 - + + col0 - - col1 col1 FROM tab1
----
-34
2
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT CAST( NULL AS SIGNED ) * + - col0 - + - 11 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT CAST ( NULL AS INTEGER ) * + - col0 - + - 11 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 49 - - + 93 AS col1 FROM tab1
----
142
142
142

query I rowsort
SELECT col2 * + + col0 - + - 97 * + + col2 FROM tab2
----
3289
6440
9976

query I rowsort
SELECT DISTINCT 70 - + ( 7 ) AS col1 FROM tab0
----
63

query I rowsort
SELECT DISTINCT col1 * + - col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT SUM( - + ( - col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7002
SELECT SUM ( - + ( - col2 ) ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT - ( 17 ) AS col1 FROM tab2 AS cor0
----
-17
-17
-17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT - + COUNT( * ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7005
SELECT - + COUNT ( * ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - 5 * + col2 * - col2 * 32 AS col0 FROM tab2 AS cor0
----
-256000
-538240
-84640

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT - COUNT( + - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7007
SELECT - COUNT ( + - col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7008
SELECT MIN( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT MIN ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT MAX( ALL col2 ) col0 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7009
SELECT MAX ( ALL col2 ) col0 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7010
SELECT DISTINCT + 78 AS col2, 3 * + MAX( - col2 ) AS col2 FROM tab1
----
78
-177

skipif mysql # not compatible
query II rowsort label-7010
SELECT DISTINCT + 78 AS col2, 3 * + MAX ( - col2 ) AS col2 FROM tab1
----
78
-177

query I rowsort
SELECT DISTINCT col2 + - + col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 24 * + + 79 - - col0 < - 67
----

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab0 WHERE NOT + ( 13 ) + ( - 71 ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + col1 * + ( - + 94 ) AS col2 FROM tab1
----
-1316
-4418
-470

query I rowsort
SELECT ALL - col1 + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > + 95 + 70
----

query I rowsort
SELECT ALL + - 72 + 89 AS col0 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7017
SELECT * FROM tab0 WHERE NULL IN ( + col0 + CAST( NULL AS SIGNED ), col1, + - 70 )
----

skipif mysql # not compatible
query III rowsort label-7017
SELECT * FROM tab0 WHERE NULL IN ( + col0 + CAST ( NULL AS INTEGER ), col1, + - 70 )
----

query I rowsort
SELECT + col0 - + - col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7019
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE ( ( NOT NULL NOT IN ( - 66, col2 - - + col1 + - col2, - + CAST( + col2 AS SIGNED ), - + col1 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7019
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE ( ( NOT NULL NOT IN ( - 66, col2 - - + col1 + - col2, - + CAST ( + col2 AS INTEGER ), - + col1 ) ) )
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col1 / - col1 + + - 99 + - + 49 - 35 BETWEEN - 54 AND + 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT + 63 + - - COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7021
SELECT + 63 + - - COUNT ( * ) FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT + - COUNT( * ) + - + MAX( ( + + col0 ) ) AS col0 FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-7022
SELECT + - COUNT ( * ) + - + MAX ( ( + + col0 ) ) AS col0 FROM tab0 AS cor0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE ( - + 40 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7023
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( - + 40 ) IS NULL
----
0

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
23
40
58

query II rowsort
SELECT - col1 AS col2, col0 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # DIV for integer division: 
query II rowsort label-7026
SELECT + col2 AS col2, - col0 DIV + - col2 AS col0 FROM tab1
----
59
1
68
1
96
0

skipif mysql # not compatible
query II rowsort label-7026
SELECT + col2 AS col2, - col0 / + - col2 AS col0 FROM tab1
----
59
1
68
1
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT - COUNT( + + 85 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7027
SELECT - COUNT ( + + 85 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7028
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7028
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7029
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-7029
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7031
SELECT ALL + 83 FROM tab0 WHERE NOT - + 13 > + col1 + col2 + + CAST( NULL AS SIGNED ) - 11
----

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL + 83 FROM tab0 WHERE NOT - + 13 > + col1 + col2 + + CAST ( NULL AS INTEGER ) - 11
----

query I rowsort
SELECT ALL + 19 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # DIV for integer division: 
query II rowsort label-7034
SELECT DISTINCT col0 AS col1, col0 DIV + col2 FROM tab2
----
46
2
64
1
75
1

skipif mysql # not compatible
query II rowsort label-7034
SELECT DISTINCT col0 AS col1, col0 / + col2 FROM tab2
----
46
2
64
1
75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT - COUNT( * ) + + SUM( ALL - 4 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7035
SELECT - COUNT ( * ) + + SUM ( ALL - 4 ) FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7036
SELECT DISTINCT - col0 DIV - - 58 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT - col0 / - - 58 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7038
SELECT + col1 + + CAST( NULL AS SIGNED ) + + ( + col1 ) * + col2 / + col0 * 13 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT + col1 + + CAST ( NULL AS INTEGER ) + + ( + col1 ) * + col2 / + col0 * 13 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 51 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 32 NOT BETWEEN ( col1 + col1 * + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT DISTINCT + ( - SUM( ALL - + col0 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT + ( - SUM ( ALL - + col0 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 / - 95 col0 FROM tab1 AS cor0 WHERE NOT ( + col1 ) NOT IN ( 16 + - - 72 + - col2 )
----

query I rowsort
SELECT ALL 40 * 44 FROM tab2 AS cor0
----
1760
1760
1760

query I rowsort
SELECT ALL + col1 + - 90 FROM tab1 cor0
----
-43
-76
-85

query I rowsort
SELECT DISTINCT col1 + - - col2 AS col1 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT col0 * - ( + col0 ) AS col1 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT - 86 AS col2 FROM tab1 AS cor0 WHERE + 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT 81 * + 67 * + + MIN( - 89 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-483003

skipif mysql # not compatible
query I rowsort label-7048
SELECT 81 * + 67 * + + MIN ( - 89 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-483003

query I rowsort
SELECT DISTINCT col1 + + 45 FROM tab1
----
50
59
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7050
SELECT ALL ( - CAST( NULL AS SIGNED ) ) - + 99 * + + 63 - + CAST( COUNT( * ) AS SIGNED ) + - 93 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) - + 99 * + + 63 - + CAST ( COUNT ( * ) AS INTEGER ) + - 93 AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 9 BETWEEN - col0 + col1 AND - + ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 58 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
58
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7053
SELECT ALL MAX( + + CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7053
SELECT ALL MAX ( + + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT DISTINCT + 9 + COUNT( * ) + - COUNT( * ) * - 90 + - MAX( - 7 ) AS col0 FROM tab0 AS cor0
----
289

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT + 9 + COUNT ( * ) + - COUNT ( * ) * - 90 + - MAX ( - 7 ) AS col0 FROM tab0 AS cor0
----
289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7055
SELECT - CAST( NULL AS SIGNED ) - + CAST( + - 2 AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT - CAST ( NULL AS INTEGER ) - + CAST ( + - 2 AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 12 + + 44 FROM tab0 AS cor0
----
56

query I rowsort
SELECT ALL col1 * - + 85 FROM tab2
----
-4335
-5695
-6545

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 61 + - col2 <> + 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7059
SELECT DISTINCT - ( + col0 ), + CAST( NULL AS SIGNED ) * - + col2 col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7059
SELECT DISTINCT - ( + col0 ), + CAST ( NULL AS INTEGER ) * - + col2 col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7060
SELECT ALL - - col1 DIV - - ( + col1 ) AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL - - col1 / - - ( + col1 ) AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + - 80 * + 14 AS col0 FROM tab1 AS cor0
----
-1120
-1120
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7062
SELECT + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT + COUNT( * ) * 89 AS col0 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-7063
SELECT + COUNT ( * ) * 89 AS col0 FROM tab2
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7064
SELECT ALL * FROM tab1 WHERE NOT 29 / + - col0 * + - CAST( - col1 AS SIGNED ) <> col2
----

skipif mysql # not compatible
query III rowsort label-7064
SELECT ALL * FROM tab1 WHERE NOT 29 / + - col0 * + - CAST ( - col1 AS INTEGER ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-3

query II rowsort
SELECT ALL + col1, 92 AS col2 FROM tab1
----
14
92
47
92
5
92

query II rowsort
SELECT ALL - - col1 AS col2, + col0 * col2 FROM tab0 AS cor0
----
1
9603
21
870
81
705

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 45 * + col0 * + + 10 - + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7069
SELECT DISTINCT - + AVG ( - col0 ) * + 13 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT - + AVG ( - col0 ) * + 13 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + + - 38 FROM tab1 AS cor0
----
13
47
53

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT + 26 IS NOT NULL
----

query I rowsort
SELECT - - 75 * - col2 - - 98 FROM tab1 AS cor0
----
-4327
-5002
-7102

query I rowsort
SELECT DISTINCT - - col0 + + + col1 * + col0 + + + col1 AS col2 FROM tab0 AS cor0
----
1311
1935
195

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 83 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE - col0 NOT BETWEEN ( NULL ) AND + 14 * + - ( - col2 ) - 9 + + 79 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + + col0 col0, col0 FROM tab1
----
138
91
65
51
90
85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + + col1
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 BETWEEN - col2 * - 15 * - 26 * 16 AND - ( + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 22 + + 72 FROM tab0
----
94

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT - col0 * + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * - 57 < + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7082
SELECT - + ( + COUNT( + col1 ) ) col2 FROM tab1 WHERE + + 59 + - col0 * - col2 NOT BETWEEN - + col1 * - ( + col1 ) - CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7082
SELECT - + ( + COUNT ( + col1 ) ) col2 FROM tab1 WHERE + + 59 + - col0 * - col2 NOT BETWEEN - + col1 * - ( + col1 ) - CAST ( NULL AS INTEGER ) AND NULL
----
0

query I rowsort
SELECT DISTINCT 49 * - col1 * - + col1 FROM tab2
----
127449
219961
290521

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT COUNT( DISTINCT + 11 ) + - 80 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-7084
SELECT COUNT ( DISTINCT + 11 ) + - 80 FROM tab1
----
-79

query I rowsort
SELECT col0 + col0 + - col1 FROM tab1
----
135
165
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT DISTINCT - ( + + COUNT( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT - ( + + COUNT ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + 56, + col1 * col2 AS col2 FROM tab2 AS cor0
----
56
1173
56
3080
56
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT ALL + COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL + COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT DISTINCT 59 + MIN( + - 93 ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT 59 + MIN ( + - 93 ) FROM tab0 AS cor0
----
-34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 85 + - 13 NOT BETWEEN + col1 * - col1 AND NULL
----

query I rowsort
SELECT ALL col0 + - col0 * + + col1 AS col1 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT 37 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7093
SELECT col0 AS col0 FROM tab2 WHERE CAST( + - col0 AS SIGNED ) - + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7093
SELECT col0 AS col0 FROM tab2 WHERE CAST ( + - col0 AS INTEGER ) - + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT COUNT( * ) - COUNT( DISTINCT + 12 ) AS col2 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7094
SELECT COUNT ( * ) - COUNT ( DISTINCT + 12 ) AS col2 FROM tab2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7095
SELECT 28 + COUNT( + CAST( NULL AS SIGNED ) ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-7095
SELECT 28 + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT - - 40 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7096
SELECT - - 40 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7097
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT COUNT( * ) + - 83 AS col1 FROM tab2 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-7098
SELECT COUNT ( * ) + - 83 AS col1 FROM tab2 cor0
----
-80

query I rowsort
SELECT DISTINCT + + ( col1 ) AS col1 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col2 * col2 * - col1 + + col0 + - + ( + - ( 8 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7101
SELECT - COUNT( * ) DIV ( MIN( DISTINCT - 53 ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7101
SELECT - COUNT ( * ) / ( MIN ( DISTINCT - 53 ) ) AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 95 * + col1 FROM tab0
----
1995
7695
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) * + + col0 * - + ( + 2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) * + + col0 * - + ( + 2 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT ALL col2 DIV col0 + - col1 FROM tab0 AS cor0
----
-21
-78
0

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL col2 / col0 + - col1 FROM tab0 AS cor0
----
-21
-78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT + + MAX( 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-7106
SELECT + + MAX ( ALL - + col2 ) col1 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7107
SELECT ALL + + col1 + CAST( + col1 AS SIGNED ) - col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + + 32 + - 4 + col1 * col2
----

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL + + col1 + CAST ( + col1 AS INTEGER ) - col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + + 32 + - 4 + col1 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 <> - 57 + - ( + 4 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col2 + - 43 FROM tab2 AS cor0 WHERE NOT 86 * + 4 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT + COUNT( * ) AS col0 FROM tab1 cor0 INNER JOIN tab1 cor1 ON 23 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7110
SELECT + COUNT ( * ) AS col0 FROM tab1 cor0 INNER JOIN tab1 cor1 ON 23 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7111
SELECT + CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT - col0 * 61 * col2 AS col1 FROM tab2
----
-156160
-265350
-64538

query I rowsort
SELECT 96 + + - col0 AS col0 FROM tab0 AS cor0
----
-1
81
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * col0 + 35 <> + 47 * + + col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7115
SELECT ALL - CAST( NULL AS SIGNED ) + + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL - CAST ( NULL AS INTEGER ) + + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL - + 36 + col1 FROM tab1 AS cor0
----
-22
-31
11

query I rowsort
SELECT - 9 * 49 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + + 95 - + + 10
----

query I rowsort
SELECT DISTINCT - col2 + + - 20 + - col2 FROM tab0
----
-114
-218
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7120
SELECT + 12 * - MAX( ALL + CAST( - + col1 AS SIGNED ) ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-7120
SELECT + 12 * - MAX ( ALL + CAST ( - + col1 AS INTEGER ) ) FROM tab0
----
12

query I rowsort
SELECT DISTINCT + col1 * - + col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT col2 + + + col0 BETWEEN NULL AND col0 * - - col1 + CAST( col1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT col2 + + + col0 BETWEEN NULL AND col0 * - - col1 + CAST ( col1 AS INTEGER )
----
1

query II rowsort
SELECT + 83 AS col0, col1 FROM tab2
----
83
51
83
67
83
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT COUNT( col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT COUNT ( col2 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7125
SELECT DISTINCT + + CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT + + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 + - + 56 * + 21 IN ( 74 * 53 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT - col1 + - - CAST( NULL AS SIGNED ) / col2 / col1 + - col1 / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT - col1 + - - CAST ( NULL AS INTEGER ) / col2 / col1 + - col1 / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 18 - + col1 FROM tab0
----
-3
-63
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7129
SELECT col2 DIV 28 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-7129
SELECT col2 / 28 FROM tab1
----
2
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT - MAX( + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7130
SELECT - MAX ( + col2 ) FROM tab2
----
-58

query I rowsort
SELECT ALL - col0 - col2 - + col1 * col1 AS col2 FROM tab2
----
-2670
-4622
-6033

query I rowsort
SELECT DISTINCT + col2 * - col0 AS col2 FROM tab2 WHERE col2 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 51 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + - col2 ) AS col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE NOT col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 83 col0, + 19 * + 11 FROM tab0 AS cor0
----
83
209
83
209
83
209

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE NOT - 13 < NULL
----

query III rowsort
SELECT DISTINCT - 59 AS col0, col2 * - - 59 * + col2 AS col1, col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to 481943e18d19ff3a20d16ff6bde86a98

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT COUNT( * ) * + MAX( - + col2 ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7139
SELECT COUNT ( * ) * + MAX ( - + col2 ) FROM tab2 AS cor0
----
-69

query II rowsort
SELECT DISTINCT - - col2, + col1 * - - 76 AS col2 FROM tab1 AS cor0
----
59
380
68
3572
96
1064

query I rowsort
SELECT col2 * col1 - - col0 + + col0 FROM tab1 AS cor0
----
1446
3378
465

query I rowsort
SELECT - + 40 * + col1 - + col0 AS col2 FROM tab2 cor0
----
-2086
-2755
-3144

query I rowsort
SELECT DISTINCT - 79 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT ALL COUNT( * ) * - - 10 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL COUNT ( * ) * - - 10 FROM tab0 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 4 * col2 * - col0, col1 * + - col0 col2, + ( - + 15 ) + + + col0 * - ( - 45 ) AS col0 FROM tab2
----
9 values hashing to f073ea82430b2c660b9db4eaad7749d2

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT 94 * + COUNT( DISTINCT - col0 ) AS col0 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-7146
SELECT 94 * + COUNT ( DISTINCT - col0 ) AS col0 FROM tab2
----
282

query I rowsort
SELECT col2 * + + 93 FROM tab2
----
2139
3720
5394

query I rowsort
SELECT ALL col1 * - + col0 AS col0 FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT ALL + - col0, + 85 AS col2 FROM tab0 WHERE NULL IS NULL
----
-15
85
-87
85
-97
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT - - MAX( + col1 ) FROM tab2 WHERE NOT + col2 + - + col0 IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-7150
SELECT - - MAX ( + col1 ) FROM tab2 WHERE NOT + col2 + - + col0 IS NULL
----
77

query I rowsort
SELECT ALL - - col2 FROM tab2 WHERE NOT + 70 BETWEEN - + ( + + col0 ) + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7152
SELECT ALL - col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IN ( + col1 + - col2, - CAST( NULL AS SIGNED ) * - 64 + + col1 )
----

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL - col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IN ( + col1 + - col2, - CAST ( NULL AS INTEGER ) * - 64 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL - 49 * + COUNT( * ) col0 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7153
SELECT ALL - 49 * + COUNT ( * ) col0 FROM tab0 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7154
SELECT COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7155
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( 5 ) + + 93 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( 5 ) + + 93 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + 38 / + - col2 FROM tab0 cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT col1 * - + 24 AS col0 FROM tab2
----
-1224
-1608
-1848

query II rowsort
SELECT - col2 AS col1, - col1 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

query II rowsort
SELECT ALL - col0, - col0 FROM tab1 AS cor0 WHERE - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7161
SELECT + 40, COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 cor0
----
40
6

skipif mysql # not compatible
query II rowsort label-7161
SELECT + 40, COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 cor0
----
40
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7162
SELECT + 4 col1, - SUM( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
4
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7162
SELECT + 4 col1, - SUM ( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
4
199

query I rowsort
SELECT + col1 + + - col0 FROM tab0 AS cor0
----
-66
-96
66

query II rowsort
SELECT DISTINCT col1 * + col0 AS col0, col1 - col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT - + 81 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7165
SELECT - + 81 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT DISTINCT col1 * + col2 + - col1 + - col2 FROM tab2 AS cor0
----
1099
2963
3761

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - col0 * + - col1 + - + col2 - col0 * - - col0 AS col1 FROM tab1
----
-1983
-4072
-6859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7169
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + MIN( - col0 ) + + 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-7169
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + MIN ( - col0 ) + + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT BETWEEN ( - 95 * + 36 * - 89 * - ( ( + 12 ) ) + - 72 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT - COUNT( * ) + + + SUM( - + col0 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT - COUNT ( * ) + + + SUM ( - + col0 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col0 ) col1 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT 42 - - + col1 AS col2 FROM tab1
----
47
56
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7175
SELECT + MIN( DISTINCT + col2 ) AS col0, - COUNT( 27 ) FROM tab0
----
10
-3

skipif mysql # not compatible
query II rowsort label-7175
SELECT + MIN ( DISTINCT + col2 ) AS col0, - COUNT ( 27 ) FROM tab0
----
10
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7176
SELECT - SUM( + col2 ) DIV 96 AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7176
SELECT - SUM ( + col2 ) / 96 AS col1 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT ALL + - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL + - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 14 * + ( col1 ) AS col0 FROM tab0 AS cor0
----
1134
14
294

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT + COUNT( * ) * + + 46 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-7179
SELECT + COUNT ( * ) * + + 46 FROM tab2 AS cor0
----
138

query I rowsort
SELECT - col2 * + 21 * + col1 * col2 AS col1 FROM tab2 AS cor0
----
-2587200
-4733148
-566559

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT + ( - - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7181
SELECT + ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * 52 + 30 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - MAX( + + 36 ) AS col0 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-7183
SELECT - MAX ( + + 36 ) AS col0 FROM tab1
----
-36

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT + 98 * - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 95 FROM tab0 AS cor0
----
-2
8
80

query I rowsort
SELECT DISTINCT + 92 * + col2 FROM tab1 AS cor0
----
5428
6256
8832

query I rowsort
SELECT DISTINCT - 14 * ( - 94 ) FROM tab1
----
1316

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - 53 * - col1 + - col1 / - + col1
----

query I rowsort
SELECT + 1 + + - 3 AS col1 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 83 * + - 95 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 95 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 95 IS NULL
----
3

query II rowsort
SELECT - + 72 + - 96 AS col1, col0 FROM tab2 AS cor0
----
-168
46
-168
64
-168
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT COUNT( * ) * + 82 FROM tab0 cor0
----
246

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT COUNT ( * ) * + 82 FROM tab0 cor0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT + MIN( DISTINCT - col0 ) + - + COUNT( * ) FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN - ( + col0 ) AND + col0 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT + MIN ( DISTINCT - col0 ) + - + COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN - ( + col0 ) AND + col0 * + col1
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - - col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT + + col1 FROM tab0 cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT ALL - - ( - col1 ) AS col1, + 78 AS col2 FROM tab1 AS cor0
----
-14
78
-47
78
-5
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col1 FROM tab0 cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7199
SELECT - col1 DIV - 62 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7199
SELECT - col1 / - 62 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( + + col1 ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT - MAX( ALL + - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7201
SELECT - MAX ( ALL + - col2 ) FROM tab0
----
10

query I rowsort
SELECT DISTINCT col2 + 13 AS col0 FROM tab1
----
109
72
81

query II rowsort
SELECT DISTINCT 40 - + ( 30 ) + col0 + + 46 * - ( ( 65 ) ), - col2 AS col1 FROM tab0
----
-2883
-99
-2893
-10
-2965
-47

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( NULL ) IS NULL
----
10
47
99

query I rowsort
SELECT ALL + 62 * + col2 * + col0 * + col1 - + - col1 AS col0 FROM tab2
----
12221517
18069967
3345447

query II rowsort
SELECT DISTINCT 68, + col1 FROM tab1
----
68
14
68
47
68
5

query I rowsort
SELECT DISTINCT col2 - + 49 * col2 FROM tab1 AS cor0
----
-2832
-3264
-4608

query I rowsort
SELECT - col2 / - 45 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col0 - col0 + - 19 * + col0 )
----

query I rowsort
SELECT + 75 + + col2 AS col1 FROM tab0 cor0
----
122
174
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7210
SELECT DISTINCT + + col1 DIV + 5 FROM tab2 AS cor0
----
10
13
15

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT + + col1 / + 5 FROM tab2 AS cor0
----
10
13
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT + - ( ( - COUNT( * ) ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7211
SELECT + - ( ( - COUNT ( * ) ) ) FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT ALL - COUNT( - 98 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL - COUNT ( - 98 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NOT 36 NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT - ( 31 ) * - - SUM( ALL + 85 ) FROM tab0 cor0
----
-7905

skipif mysql # not compatible
query I rowsort label-7215
SELECT - ( 31 ) * - - SUM ( ALL + 85 ) FROM tab0 cor0
----
-7905

query I rowsort
SELECT ALL ( + 15 ) AS col2 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT - - col1 * - - col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col0 FROM tab0
----
-15
15
-87
87
-97
97

query II rowsort
SELECT ALL col0, + col0 - col2 FROM tab1
----
51
-45
85
26
91
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT COUNT( col1 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7220
SELECT COUNT ( col1 ) col0 FROM tab2
----
3

query II rowsort
SELECT DISTINCT + + col0 + + - col2 * - + 1 AS col0, 34 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - + col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT DISTINCT MAX( ALL - - 8 ) AS col0 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT MAX ( ALL - - 8 ) AS col0 FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT - COUNT( * ) + + 71 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7224
SELECT - COUNT ( * ) + + 71 FROM tab0 AS cor0
----
68

query I rowsort
SELECT ALL col0 * + col0 * + col2 AS col2 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7226
SELECT DISTINCT + 71 + + CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT + 71 + + CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7227
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - - col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT - CAST ( NULL AS REAL ) * - - col0 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + + 86 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
86

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7230
SELECT DISTINCT 63 + + 8 DIV col1 AS col1 FROM tab1
----
63
64

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT 63 + + 8 / col1 AS col1 FROM tab1
----
63
64

query I rowsort
SELECT DISTINCT + col1 + - col1 + - col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT + col2 - 80 AS col0 FROM tab2
----
-22
-40
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT + COUNT( * ) - ( - + 41 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-7233
SELECT + COUNT ( * ) - ( - + 41 ) FROM tab1 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7234
SELECT ALL - CAST( col2 AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL - CAST ( col2 AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 16 + + 87 FROM tab1 cor0
----
103
103
103

query I rowsort
SELECT DISTINCT - - 96 * + col0 FROM tab1 AS cor0
----
4896
8160
8736

onlyif mysql # DIV for integer division: 
query II rowsort label-7237
SELECT DISTINCT - col1 + - ( - col0 ) DIV + - 35 + - col0 * + 47 * + + col1 + + col0 + - + 44 AS col2, - 99 AS col0 FROM tab0 AS cor0
----
-4509
-99
-57215
-99
-85849
-99

skipif mysql # not compatible
query II rowsort label-7237
SELECT DISTINCT - col1 + - ( - col0 ) / + - 35 + - col0 * + 47 * + + col1 + + col0 + - + 44 AS col2, - 99 AS col0 FROM tab0 AS cor0
----
-4509
-99
-57215
-99
-85849
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + col2 + + - 99 * + - col2 AS col0 FROM tab1 AS cor0
----
5895
6753
9586

query I rowsort
SELECT ALL col1 + - 83 - col1 * - - 81 * ( 42 ) AS col1 FROM tab0
----
-275564
-3484
-71504

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL + 30 - + COUNT( * ) AS col1 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL + 30 - + COUNT ( * ) AS col1 FROM tab1
----
27

query I rowsort
SELECT ALL 82 - col1 FROM tab0
----
1
61
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * + 21 col1 FROM tab2
----
1344
1344
1344

query I rowsort
SELECT 0 * + + col1 * + col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7246
SELECT DISTINCT + - ( COUNT( * ) ) / - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT + - ( COUNT ( * ) ) / - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, col0 + - col0 col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT DISTINCT + MIN( DISTINCT + - 76 ) AS col0 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7249
SELECT DISTINCT + MIN ( DISTINCT + - 76 ) AS col0 FROM tab2 AS cor0
----
-76

query II rowsort
SELECT + + 38, col1 FROM tab1 AS cor0
----
38
14
38
47
38
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT - 72 * + col2 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) - + 12 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7251
SELECT - 72 * + col2 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) - + 12 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 69 FROM tab0 cor0
----
-48
-68
12

query I rowsort
SELECT ALL + ( - col2 ) + - col1 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ALL ( 38 ) FROM tab1
----
38
38
38

query I rowsort
SELECT ALL - - 92 FROM tab2 WHERE - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + col0 * col0 AS col2 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT + 94 * + ( - col1 ) AS col0 FROM tab2
----
-4794
-6298
-7238

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT DISTINCT MIN( col1 ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7258
SELECT DISTINCT MIN ( col1 ) col2 FROM tab1
----
5

query I rowsort
SELECT - + 16 * + - 49 + - 25 AS col0 FROM tab2 AS cor0
----
759
759
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7260
SELECT + CAST( NULL AS SIGNED ) + - 10 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7260
SELECT + CAST ( NULL AS INTEGER ) + - 10 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + col0 + + col2 FROM tab2
----
1081
2600
4408

query II rowsort
SELECT DISTINCT col2 * + 31 - - + 83, col2 FROM tab1
----
1912
59
2191
68
3059
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT + - ( + + ( 72 ) ) * 88 + - COUNT( * ) + - COUNT( * ) * + 0 AS col2 FROM tab1 AS cor0
----
-6339

skipif mysql # not compatible
query I rowsort label-7263
SELECT + - ( + + ( 72 ) ) * 88 + - COUNT ( * ) + - COUNT ( * ) * + 0 AS col2 FROM tab1 AS cor0
----
-6339

query I rowsort
SELECT ALL - - 13 FROM tab2 cor0
----
13
13
13

query I rowsort
SELECT DISTINCT - col2 - - + 56 - - + col2 AS col0 FROM tab2 cor0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7266
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + 96 AS col0, ( col2 ) * + + col2 AS col2 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7268
SELECT + 98 DIV - 37 FROM tab2 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7268
SELECT + 98 / - 37 FROM tab2 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7269
SELECT + - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7269
SELECT + - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 + 61 FROM tab2 AS cor0
----
21
3
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7271
SELECT 38 - - - ( + COUNT( * ) ) AS col2, 61 AS col2 FROM tab1 AS cor0
----
35
61

skipif mysql # not compatible
query II rowsort label-7271
SELECT 38 - - - ( + COUNT ( * ) ) AS col2, 61 AS col2 FROM tab1 AS cor0
----
35
61

query I rowsort
SELECT - col2 - + 72 + + + 86 FROM tab1
----
-45
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT COUNT( * ) - - 37 + + - 25 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7273
SELECT COUNT ( * ) - - 37 + + - 25 FROM tab0
----
15

query I rowsort
SELECT col0 - + 4 AS col2 FROM tab0
----
11
83
93

query I rowsort
SELECT ALL - col2 * - col0 + - col0 + col1 + 29 AS col2 FROM tab0
----
800
833
9536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT CAST( NULL AS SIGNED ) - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT CAST ( NULL AS INTEGER ) - + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 93 - + col2 AS col1 FROM tab2
----
35
53
70

query I rowsort
SELECT col0 * - 59 - + ( 12 ) + - col0 + - + col2 FROM tab1
----
-3168
-5171
-5540

query II rowsort
SELECT DISTINCT - col0 AS col1, + ( - + 51 ) + col0 + col1 AS col0 FROM tab1
----
-51
14
-85
39
-91
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7280
SELECT COUNT( * ) FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) * - 59 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT COUNT ( * ) FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) * - 59 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7281
SELECT + col2 * + col0, col2 * - CAST( NULL AS DECIMAL ) * - 96 AS col1 FROM tab0 AS cor0
----
705
NULL
870
NULL
9603
NULL

skipif mysql # not compatible
query II rowsort label-7281
SELECT + col2 * + col0, col2 * - CAST ( NULL AS REAL ) * - 96 AS col1 FROM tab0 AS cor0
----
705
NULL
870
NULL
9603
NULL

query I rowsort
SELECT - col2 * - - col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ( + + 18 ) * 40 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bbc4aef4b8d2e37384ad44c9235ab9f5

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT DISTINCT 65 * + MAX( + + col1 ) FROM tab1
----
3055

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT 65 * + MAX ( + + col1 ) FROM tab1
----
3055

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT - - MIN( + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7286
SELECT - - MIN ( + col2 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 46 + - col2 <> NULL
----

query I rowsort
SELECT + 65 * - col1 + + + col0 * + 16 - + 13 - col2 + + col1 * - + col2 * + - 38 + - - col1 * - col2 AS col1 FROM tab0 AS cor0
----
135774
5038
7774

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL COUNT( * ) + + 43 AS col0 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL COUNT ( * ) + + 43 AS col0 FROM tab1 AS cor0
----
46

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 * - ( + 6 ) BETWEEN 51 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + col0 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7292
SELECT DISTINCT - ( - 81 ) * SUM( ALL + - col0 ) + + + CAST( NULL AS DECIMAL ) / - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT - ( - 81 ) * SUM ( ALL + - col0 ) + + + CAST ( NULL AS REAL ) / - - COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT ALL - ( - - 12 ) + - 15 AS col2, + 86 + ( col0 ) AS col2 FROM tab2
----
-27
132
-27
150
-27
161

query I rowsort
SELECT + 5 + + col1 AS col2 FROM tab0
----
26
6
86

query I rowsort
SELECT + 31 + - 97 AS col0 FROM tab2 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT + - MAX( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0 WHERE 53 + + 9 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT + - MAX ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0 WHERE 53 + + 9 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL >= + col2
----
0

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL >= + col2
----
0

query I rowsort
SELECT + + col2 * + - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT DISTINCT 6 * COUNT( * ) AS col1 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT 6 * COUNT ( * ) AS col1 FROM tab1
----
18

query I rowsort
SELECT DISTINCT + 88 * + 68 AS col1 FROM tab1
----
5984

query I rowsort
SELECT ( col1 ) FROM tab0 WHERE NOT - 80 * col0 NOT BETWEEN 24 * 22 AND ( + col0 )
----

query I rowsort
SELECT ALL + 76 AS col2 FROM tab2 WHERE + 56 / - col2 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL col2 + + col0 * col1 AS col1 FROM tab0
----
1262
1837
196

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( 99 ) * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7305
SELECT + 86 DIV col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7305
SELECT + 86 / col0 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7306
SELECT + 19 DIV - col1 AS col0 FROM tab0
----
-19
0
0

skipif mysql # not compatible
query I rowsort label-7306
SELECT + 19 / - col1 AS col0 FROM tab0
----
-19
0
0

query I rowsort
SELECT DISTINCT 64 + + col0 AS col2 FROM tab2
----
110
128
139

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 84 >= NULL
----

query I rowsort
SELECT - ( col0 ) + + col2 * col1 AS col1 FROM tab1
----
1293
210
3105

query I rowsort
SELECT + 48 * - AVG ( col0 ) AS col0 FROM tab2 WHERE NOT col2 - 80 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7311
SELECT * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7311
SELECT * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE ( 71 * col1 + col1 ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7313
SELECT ALL 54 DIV + 64 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL 54 / + 64 FROM tab1
----
0
0
0

query I rowsort
SELECT - 65 + - col1 FROM tab1
----
-112
-70
-79

query I rowsort
SELECT ALL - col0 + 81 AS col1 FROM tab0
----
-16
-6
66

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 15 * col2 FROM tab1
----
1020
1440
885

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT + 36 DIV - 64 - + col0 col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7318
SELECT + 36 / - 64 - + col0 col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL MIN( - 67 ) + COUNT( * ) FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL MIN ( - 67 ) + COUNT ( * ) FROM tab1
----
-64

query III rowsort
SELECT * FROM tab1 WHERE NULL <= col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 11 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT + COUNT( ALL col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7322
SELECT + COUNT ( ALL col1 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT MAX( DISTINCT 51 ) - COUNT( * ) AS col0 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7323
SELECT MAX ( DISTINCT 51 ) - COUNT ( * ) AS col0 FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL - MIN( col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL - MIN ( col0 ) AS col2 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab1 WHERE ( col2 ) = 85 + 58
----

skipif mysql # not compatible
query I rowsort label-7325
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( col2 ) = 85 + 58
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NULL NOT IN ( ( 66 ) )
----

query I rowsort
SELECT DISTINCT + 35 * col1 - - col1 FROM tab0
----
2916
36
756

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 < ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7330
SELECT + CAST( NULL AS SIGNED ) + 86 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7330
SELECT + CAST ( NULL AS INTEGER ) + 86 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * 16 >= - 18 - 54
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE + col0 < ( col2 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT MIN( 21 ) AS col2 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-7333
SELECT MIN ( 21 ) AS col2 FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL + COUNT( DISTINCT col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + COUNT ( DISTINCT col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT + MAX( ALL + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7335
SELECT + MAX ( ALL + col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL 29 * + col2 FROM tab0 AS cor0
----
1363
2871
290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 * + col2 col1 FROM tab1 cor0
----
3068
3536
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT + 1 * + 38 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7340
SELECT ALL COUNT( * ) DIV - 78 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL COUNT ( * ) / - 78 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT DISTINCT ( COUNT( ALL 29 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT ( COUNT ( ALL 29 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT - SUM( DISTINCT + 84 ) + SUM( 25 ) FROM tab1 WHERE NOT - col0 * + col2 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7342
SELECT - SUM ( DISTINCT + 84 ) + SUM ( 25 ) FROM tab1 WHERE NOT - col0 * + col2 IS NULL
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7343
SELECT col0 DIV - col2 col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7343
SELECT col0 / - col2 col1 FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + + ( - 42 ) col0 FROM tab2 AS cor0
----
-118
-118
-118

query I rowsort
SELECT ALL 17 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
17
17
17

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 58 * + col0 + col2 * + col1 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT + COUNT( * ) + MAX( DISTINCT - 63 ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7347
SELECT + COUNT ( * ) + MAX ( DISTINCT - 63 ) FROM tab1 AS cor0
----
-60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 56 = ( col2 + 2 * 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7349
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) * - col0 ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7349
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) * - col0 ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7350
SELECT ALL * FROM tab2 AS cor0 WHERE 53 IN ( - col1 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7350
SELECT ALL * FROM tab2 AS cor0 WHERE 53 IN ( - col1 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT ALL + COUNT( * ) + - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7352
SELECT - CAST( + + 16 AS SIGNED ) AS col0 FROM tab1
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-7352
SELECT - CAST ( + + 16 AS INTEGER ) AS col0 FROM tab1
----
-16
-16
-16

query III rowsort
SELECT * FROM tab1 WHERE ( col2 * - ( - col2 ) ) NOT IN ( + 44 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 2 + + - col2 FROM tab1
----
-57
-66
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT ALL ( + MAX( DISTINCT 19 ) ) AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL ( + MAX ( DISTINCT 19 ) ) AS col1 FROM tab2
----
19

query I rowsort
SELECT col1 * - - col0 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT + ( + + ( - col0 ) ) AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + 49 AS col0 FROM tab2 WHERE col0 <> NULL
----

query I rowsort
SELECT + + 25 + - 71 FROM tab2 AS cor0
----
-46
-46
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IS NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT - SUM( - col2 ) + + 31 * 38 AS col1 FROM tab2 AS cor0
----
1299

skipif mysql # not compatible
query I rowsort label-7361
SELECT - SUM ( - col2 ) + + 31 * 38 AS col1 FROM tab2 AS cor0
----
1299

query I rowsort
SELECT DISTINCT - 62 * + col0 * + - col1 + col2 FROM tab2
----
145475
305576
311608

query I rowsort
SELECT DISTINCT - - 18 - + + 82 AS col1 FROM tab1 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT + - COUNT( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7364
SELECT + - COUNT ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT DISTINCT COUNT( * ) * 92 AS col2 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT COUNT ( * ) * 92 AS col2 FROM tab2 AS cor0
----
276

query II rowsort
SELECT ALL + col1 AS col0, col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) IS NULL OR NOT 57 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col2 FROM tab2 AS cor0 WHERE NULL < ( col0 ) OR NOT ( - 81 ) IS NULL
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 64 col0 FROM tab2 AS cor0
----
1472
2560
3712

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 56 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT - 47 * + ( - SUM( ALL - col2 ) ) AS col0 FROM tab1 cor0
----
-10481

skipif mysql # not compatible
query I rowsort label-7371
SELECT - 47 * + ( - SUM ( ALL - col2 ) ) AS col0 FROM tab1 cor0
----
-10481

query I rowsort
SELECT ALL - - col1 * - 19 + + col1 FROM tab1 AS cor0
----
-252
-846
-90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL SUM( - - col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL SUM ( - - col0 ) AS col2 FROM tab0
----
199

query I rowsort
SELECT ( ( 74 ) ) AS col1 FROM tab1
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7376
SELECT DISTINCT CAST( NULL AS SIGNED ) / 42 AS col0 FROM tab2 AS cor0 WHERE ( col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 42 AS col0 FROM tab2 AS cor0 WHERE ( col0 ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( - col0 ) IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - col2 col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7379
SELECT DISTINCT + SUM( + - col2 ) * CAST( NULL AS SIGNED ) * - COUNT( * ) + - MAX( col2 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT + SUM ( + - col2 ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - MAX ( col2 ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7380
SELECT ALL - 86 FROM tab0 WHERE NOT - 70 + CAST( NULL AS SIGNED ) BETWEEN + 46 + - CAST( NULL AS DECIMAL ) AND - 24
----

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL - 86 FROM tab0 WHERE NOT - 70 + CAST ( NULL AS INTEGER ) BETWEEN + 46 + - CAST ( NULL AS REAL ) AND - 24
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 42 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 72 * + col1 FROM tab1
----
1008
3384
360

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT MAX( - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7383
SELECT MAX ( - col2 ) AS col1 FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT col2 * 98 + 90 AS col1 FROM tab2 AS cor0 WHERE + 16 + - col1 BETWEEN CAST( 8 AS SIGNED ) - col2 AND + 83 + 7 * - col2
----

skipif mysql # not compatible
query I rowsort label-7384
SELECT col2 * 98 + 90 AS col1 FROM tab2 AS cor0 WHERE + 16 + - col1 BETWEEN CAST ( 8 AS INTEGER ) - col2 AND + 83 + 7 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT MAX( ALL col2 ) col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7385
SELECT MAX ( ALL col2 ) col2 FROM tab0 cor0
----
99

query I rowsort
SELECT ALL 15 * + ( - 56 ) FROM tab0 cor0
----
-840
-840
-840

query II rowsort
SELECT ALL - col0 AS col2, col0 * 85 AS col2 FROM tab1 AS cor0
----
-51
4335
-85
7225
-91
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT DISTINCT - COUNT( * ) * + 8 + 83 AS col0 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT - COUNT ( * ) * + 8 + 83 AS col0 FROM tab2 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT ALL + 41 + - - col2 + - 69 DIV - 96 FROM tab2 AS cor0
----
64
81
99

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL + 41 + - - col2 + - 69 / - 96 FROM tab2 AS cor0
----
64
81
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7390
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7390
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 5 + - + 23 AS col0 FROM tab0 AS cor0
----
-18
-18
-18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 76 / - col2 ) NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( - + col2 * col1 / 76 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 38 * + col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col0 * + 99 AS col2 FROM tab0
----
1485
8613
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 + + - col0 col2 FROM tab1
----
1
41
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT + MIN( + 75 ) AS col2 FROM tab1 WHERE ( NOT + col1 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT + MIN ( + 75 ) AS col2 FROM tab1 WHERE ( NOT + col1 IS NOT NULL )
----
NULL

query I rowsort
SELECT ALL + col0 * + 63 * + - col2 AS col2 FROM tab2 AS cor0
----
-161280
-274050
-66654

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT - COUNT( - 73 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7399
SELECT - COUNT ( - 73 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE ( ( - + col0 ) <= ( + col1 * col0 * - col2 ) )
----

query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab1 cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT ALL + MAX( col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL + MAX ( col1 ) AS col2 FROM tab0 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT ( NULL ) NOT IN ( col2 ) )
----

query I rowsort
SELECT - - 71 FROM tab0 cor0 WHERE NOT - 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT ALL SUM( + col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL SUM ( + col2 ) AS col1 FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + 83
----

query II rowsort
SELECT DISTINCT col2, + col1 - - + col0 + ( col1 ) + + 24 AS col2 FROM tab1
----
59
119
68
209
96
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 88 col0 FROM tab2
----
2024
3520
5104

onlyif mysql # DIV for integer division: 
query I rowsort label-7409
SELECT + col1 DIV + + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7409
SELECT + col1 / + + col2 FROM tab2
----
1
1
2

query I rowsort
SELECT col2 * - - 73 FROM tab0
----
3431
7227
730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7411
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-7411
SELECT ( - + CAST ( + COUNT ( * ) AS INTEGER ) ) col1 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 76 * + ( + 90 ) FROM tab1
----
-6840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col0 FROM tab0 WHERE NOT NULL IN ( col0 * + col1 * + - col2, + col0 / - 27 ) OR col0 IS NOT NULL
----
64
64
64

query II rowsort
SELECT col0 AS col1, + col1 AS col2 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7415
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7415
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 49 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
49
49
49

query I rowsort
SELECT ALL + 96 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT 10 + + 13 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
23

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT - + 65 IS NOT NULL
----

query I rowsort
SELECT col1 * + - col1 + 27 AS col1 FROM tab1
----
-169
-2182
2

query II rowsort
SELECT 84 + - 15, col2 FROM tab0
----
69
10
69
47
69
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7422
SELECT + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT - + ( + 41 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - 9 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - 84 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7427
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST( + 21 AS SIGNED ) * + col0, 52, 38 )
----

skipif mysql # not compatible
query III rowsort label-7427
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( + 21 AS INTEGER ) * + col0, 52, 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT DISTINCT + COUNT( * ) * - 35 AS col0 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT + COUNT ( * ) * - 35 AS col0 FROM tab1 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT + MIN( col2 ) * + + 88 col0 FROM tab0 AS cor0
----
880

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7429
SELECT + MIN ( col2 ) * + + 88 col0 FROM tab0 AS cor0
----
880

query I rowsort
SELECT ALL col0 * - + 98 AS col0 FROM tab1 cor0
----
-4998
-8330
-8918

query I rowsort
SELECT ALL + col1 * col2 + + + col2 FROM tab0 AS cor0
----
198
220
3854

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT DISTINCT + - 11 DIV + - ( col1 ) col1 FROM tab1 AS cor0
----
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7432
SELECT DISTINCT + - 11 / + - ( col1 ) col1 FROM tab1 AS cor0
----
0
2

query II rowsort
SELECT ALL - 20 + - col0 AS col0, col1 + + 62 - col0 FROM tab0 cor0
----
-107
-4
-117
-34
-35
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT + - col0 * - + CAST( - 36 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3132
-3492
-540

skipif mysql # not compatible
query I rowsort label-7434
SELECT + - col0 * - + CAST ( - 36 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3132
-3492
-540

query I rowsort
SELECT - col1 + col0 + + - 70 + - - col0 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL col1 + + + 58 * - 89 FROM tab1 AS cor0
----
-5115
-5148
-5157

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT + COUNT( * ) + - 7 AS col1 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT + COUNT ( * ) + - 7 AS col1 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT ALL + col0 + - col1 * + - col1 AS col2 FROM tab1
----
110
2300
247

query I rowsort
SELECT ALL + col0 - + col1 + 98 - + - 52 AS col1 FROM tab0
----
216
246
84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 - + - col2 - col1 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7441
SELECT 96, - COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
96
NULL

skipif mysql # not compatible
query II rowsort label-7441
SELECT 96, - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
96
NULL

query I rowsort
SELECT DISTINCT col0 * + - 38 AS col2 FROM tab0
----
-3306
-3686
-570

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7443
SELECT CAST( NULL AS DECIMAL ) - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7443
SELECT CAST ( NULL AS REAL ) - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT - COUNT( * ) FROM tab0 WHERE + - 18 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7444
SELECT - COUNT ( * ) FROM tab0 WHERE + - 18 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - ( col1 ) * + 34 FROM tab2 cor0
----
-1734
-2278
-2618

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 / - + 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # DIV for integer division: 
query I rowsort label-7448
SELECT col1 DIV 11 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7448
SELECT col1 / 11 / - col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7449
SELECT ( - CAST( NULL AS SIGNED ) ) col2, + 73 + - 92 FROM tab0
----
NULL
-19
NULL
-19
NULL
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7449
SELECT ( - CAST ( NULL AS INTEGER ) ) col2, + 73 + - 92 FROM tab0
----
NULL
-19
NULL
-19
NULL
-19

query I rowsort
SELECT + - 3 + + 68 * 80 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7264dc3601870972e0082b9e9a3b267

query II rowsort
SELECT ALL + col0, 85 AS col1 FROM tab1 AS cor0
----
51
85
85
85
91
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT DISTINCT - + MIN( ALL 15 ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT - + MIN ( ALL 15 ) FROM tab1 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT ALL col2 DIV 79 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL col2 / 79 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL 54 AS col0 FROM tab2 AS cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7455
SELECT DISTINCT + ( - CAST( - ( + col1 ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT + ( - CAST ( - ( + col1 ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 - - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 89 col2, col1 AS col2 FROM tab1 cor0
----
-89
14
-89
47
-89
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT DISTINCT + MIN( ALL - 62 ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT + MIN ( ALL - 62 ) FROM tab1 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7460
SELECT DISTINCT - CAST( + + 33 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT - CAST ( + + 33 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL COUNT( DISTINCT 69 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL COUNT ( DISTINCT 69 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT COUNT( * ) * 34 * + COUNT( * ) AS col1 FROM tab1
----
306

skipif mysql # not compatible
query I rowsort label-7462
SELECT COUNT ( * ) * 34 * + COUNT ( * ) AS col1 FROM tab1
----
306

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7463
SELECT DISTINCT COUNT( * ) DIV - 72 col2, 59 FROM tab0
----
0
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7463
SELECT DISTINCT COUNT ( * ) / - 72 col2, 59 FROM tab0
----
0
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL + ( + + MIN( ALL + + 75 ) ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL + ( + + MIN ( ALL + + 75 ) ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT DISTINCT - 47 + - 33 FROM tab0 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT + COUNT( DISTINCT - + col2 ) * 68 + + COUNT( * ) FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT + COUNT ( DISTINCT - + col2 ) * 68 + + COUNT ( * ) FROM tab2 AS cor0
----
207

query I rowsort
SELECT - col1 / - col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( - 0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT + ( ( + 3 ) ) DIV 64 + + + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7468
SELECT + ( ( + 3 ) ) / 64 + + + col0 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 17 col0 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT + 81 + col0 FROM tab1 AS cor0
----
132
166
172

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7471
SELECT - + col2 * + 94 + - col2 + + col2 / + CAST( NULL AS DECIMAL ) / + + col1 + - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT - + col2 * + 94 + - col2 + + col2 / + CAST ( NULL AS REAL ) / + + col1 + - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7472
SELECT * FROM tab1 AS cor0 WHERE - CAST( - + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7472
SELECT * FROM tab1 AS cor0 WHERE - CAST ( - + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - + col0 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7475
SELECT ALL - + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL - + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE ( ( NOT - col1 <= + + col1 + + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-7476
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE ( ( NOT - col1 <= + + col1 + + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7477
SELECT MAX( ( - col0 ) ) + COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) + + + SUM( - col1 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-7477
SELECT MAX ( ( - col0 ) ) + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) + + + SUM ( - col1 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-43
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 81 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 + + 46 AS col0 FROM tab2 AS cor0
----
110
121
92

query II rowsort
SELECT - col0 AS col0, - col0 * col1 AS col1 FROM tab2 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 96 + - 70 * - col2 AS col2 FROM tab0
----
3386
7026
796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7482
SELECT ALL - CAST( + - 26 AS SIGNED ) - + 24 + + col2 * + col1 * + + 76 - + - col2 AS col2 FROM tab2
----
234122
295396
89173

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL - CAST ( + - 26 AS INTEGER ) - + 24 + + col2 * + col1 * + + 76 - + - col2 AS col2 FROM tab2
----
234122
295396
89173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT ALL - col2 * + col0 + - - 36 * - ( + + 70 ) AS col0 FROM tab1 WHERE NOT ( + col2 * CAST( + col1 AS SIGNED ) * - + col1 ) >= + col0
----
-7416
-7535
-8708

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL - col2 * + col0 + - - 36 * - ( + + 70 ) AS col0 FROM tab1 WHERE NOT ( + col2 * CAST ( + col1 AS INTEGER ) * - + col1 ) >= + col0
----
-7416
-7535
-8708

query I rowsort
SELECT - 48 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query II rowsort
SELECT 63, col0 FROM tab0
----
63
15
63
87
63
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7486
SELECT ALL + - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL + - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 41 + col1 <> - - col2 * 53 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT ALL - + 49 * - COUNT( * ) - SUM( ALL + 76 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL - + 49 * - COUNT ( * ) - SUM ( ALL + 76 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT DISTINCT - + COUNT( * ) + + + COUNT( - + 76 ) col0 FROM tab0 AS cor0 WHERE NULL < - ( + - 81 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7489
SELECT DISTINCT - + COUNT ( * ) + + + COUNT ( - + 76 ) col0 FROM tab0 AS cor0 WHERE NULL < - ( + - 81 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7490
SELECT 72 AS col2, CAST( NULL AS SIGNED ) + - + col1 FROM tab0
----
72
NULL
72
NULL
72
NULL

skipif mysql # not compatible
query II rowsort label-7490
SELECT 72 AS col2, CAST ( NULL AS INTEGER ) + - + col1 FROM tab0
----
72
NULL
72
NULL
72
NULL

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col2 FROM tab0
----
10
47
99

query II rowsort
SELECT col0 AS col0, 23 * + col2 AS col1 FROM tab1
----
51
2208
85
1357
91
1564

onlyif mysql # DIV for integer division: 
query I rowsort label-7493
SELECT col0 DIV - 79 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7493
SELECT col0 / - 79 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7494
SELECT CAST( + ( + col2 ) AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7494
SELECT CAST ( + ( + col2 ) AS INTEGER ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7495
SELECT COUNT( * ) DIV + - 44 AS col1, - COUNT( * ) AS col1 FROM tab1
----
0
-3

skipif mysql # not compatible
query II rowsort label-7495
SELECT COUNT ( * ) / + - 44 AS col1, - COUNT ( * ) AS col1 FROM tab1
----
0
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7496
SELECT DISTINCT + 63 DIV + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT + 63 / + COUNT ( * ) FROM tab2
----
21

query I rowsort
SELECT DISTINCT ( + - ( - - col1 ) ) AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - col2 * + 66 * col1 FROM tab1
----
-19470
-210936
-88704

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7499
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST( - + col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7499
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST ( - + col2 AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + + col2 * - col1 * + - col0 * - 71 IN ( + col0 )
----

query II rowsort
SELECT DISTINCT - - col1, col0 AS col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7502
SELECT DISTINCT + col0 * + - 76 * 19 FROM tab2 AS cor0 WHERE col0 <= 99 + - CAST( + col1 AS DECIMAL )
----
-66424

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT + col0 * + - 76 * 19 FROM tab2 AS cor0 WHERE col0 <= 99 + - CAST ( + col1 AS REAL )
----
-66424

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 NOT IN ( - 86, + col2 * + col0 * - 81, - col1, + + 37 / + - 6 + 99 * + - col1 * - 4, - 19 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 + - ( 41 ) ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL < col1
----

query I rowsort
SELECT col1 * - 81 AS col0 FROM tab0
----
-1701
-6561
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT + + MIN( col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7507
SELECT + + MIN ( col0 ) AS col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL - + 78 AS col2 FROM tab0 AS cor0
----
-78
-78
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7510
SELECT + CAST( NULL AS SIGNED ) * AVG ( DISTINCT - - col2 ) - + 66 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - - col2 ) - + 66 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 25 * ( + col1 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT DISTINCT + ( + SUM( ALL + col0 ) ) * + COUNT( + col1 ) AS col0 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT + ( + SUM ( ALL + col0 ) ) * + COUNT ( + col1 ) AS col0 FROM tab1 AS cor0
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL + - COUNT( ALL - 3 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL + - COUNT ( ALL - 3 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col1 * - - col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 52 / + col0 * col0 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - 85 > + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + - 78 * + - col0, col2 AS col0 FROM tab1 AS cor0
----
3978
96
6630
59
7098
68

query I rowsort
SELECT - + ( - + 94 ) * col0 AS col1 FROM tab2 AS cor0
----
4324
6016
7050

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( ( + 42 < - 88 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - col1 ) * - 50 FROM tab0 AS cor0
----
-1050
-4050
-50

query II rowsort
SELECT ALL col1 + + col0 AS col0, - col1 * + + col0 AS col1 FROM tab0 AS cor0
----
108
-1827
96
-1215
98
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT DISTINCT + COUNT( * ) * + 38 + - 42 AS col0 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT + COUNT ( * ) * + 38 + - 42 AS col0 FROM tab2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7523
SELECT ALL - CAST( + col1 AS SIGNED ) * 70 FROM tab1 WHERE NOT NULL > + col2 - + 71
----

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - CAST ( + col1 AS INTEGER ) * 70 FROM tab1 WHERE NOT NULL > + col2 - + 71
----

query I rowsort
SELECT ALL - 79 + + col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 15 * + - col0 FROM tab2
----
1125
690
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7526
SELECT + 72 + - CAST( NULL AS SIGNED ) + + col2 + - - col2 * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT + 72 + - CAST ( NULL AS INTEGER ) + + col2 + - - col2 * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT + 95 + - COUNT( * ) col2 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7527
SELECT + 95 + - COUNT ( * ) col2 FROM tab2 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT DISTINCT - + MIN( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT - + MIN ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT + SUM( - + 97 ) AS col2 FROM tab1 AS cor0 WHERE + 84 + + col0 <> - col1 / col2 - - col1 + + + col1
----
-291

skipif mysql # not compatible
query I rowsort label-7529
SELECT + SUM ( - + 97 ) AS col2 FROM tab1 AS cor0 WHERE + 84 + + col0 <> - col1 / col2 - - col1 + + + col1
----
-291

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 28 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT - COUNT( + 16 ) AS col2 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7532
SELECT - COUNT ( + 16 ) AS col2 FROM tab2, tab0 AS cor0
----
-9

query I rowsort
SELECT 45 - + - 84 + + 66 AS col2 FROM tab0
----
195
195
195

query I rowsort
SELECT ALL + + col1 * + 6 FROM tab1 AS cor0 WHERE - col0 > ( NULL ) OR NOT + 3 IS NOT NULL
----

query I rowsort
SELECT + 22 + + 15 - col1 + - - 29 AS col0 FROM tab2 AS cor0
----
-1
-11
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 ) >= + + ( + 28 )
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( + 24 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7537
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( + 24 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7538
SELECT ALL 26 - - - col1 + CAST( - 29 AS SIGNED ) col2 FROM tab0
----
-24
-4
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7538
SELECT ALL 26 - - - col1 + CAST ( - 29 AS INTEGER ) col2 FROM tab0
----
-24
-4
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col0 FROM tab2
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL SUM( ALL col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL SUM ( ALL col1 ) AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT 40 * + + COUNT( * ) * + 77 AS col2 FROM tab2
----
9240

skipif mysql # not compatible
query I rowsort label-7541
SELECT 40 * + + COUNT ( * ) * + 77 AS col2 FROM tab2
----
9240

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT - - 49 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7543
SELECT CAST( NULL AS SIGNED ) * - 99 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT CAST ( NULL AS INTEGER ) * - 99 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 * - ( col1 ) < - col1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT COUNT( + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7545
SELECT COUNT ( + col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT 86 + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
109
126
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT COUNT( * ) * + - SUM( - - 34 ) FROM tab1
----
-306

skipif mysql # not compatible
query I rowsort label-7547
SELECT COUNT ( * ) * + - SUM ( - - 34 ) FROM tab1
----
-306

query II rowsort
SELECT col0, + 91 FROM tab2
----
46
91
64
91
75
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7549
SELECT - COUNT( * ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN + col1 * - col1 AND 45 + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT - COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN + col1 * - col1 AND 45 + + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT ALL - - COUNT( - - col2 ) FROM tab1 AS cor0 WHERE - col2 + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL - - COUNT ( - - col2 ) FROM tab1 AS cor0 WHERE - col2 + + col2 IS NULL
----
0

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 77 * - + col0, ( - + col0 ), + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7552
SELECT - CAST( + 18 AS SIGNED ) FROM tab2 AS cor0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-7552
SELECT - CAST ( + 18 AS INTEGER ) FROM tab2 AS cor0
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + - 30 + - - col2 + col1 col2 FROM tab2 AS cor0
----
-1306
-1803
-2125

query II rowsort
SELECT + + 1, col2 AS col0 FROM tab2 AS cor0
----
1
23
1
40
1
58

query I rowsort
SELECT DISTINCT + 10 * col2 * - + col0 AS col2 FROM tab1 AS cor0 WHERE NULL > 22 + 1
----

query I rowsort
SELECT ALL - col2 + + col1 * - 37 FROM tab1 AS cor0
----
-1807
-244
-614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col2 FROM tab2
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL COUNT( * ) * 40 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL COUNT ( * ) * 40 FROM tab1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT - col0 * - - CAST( + - 70 AS SIGNED ) AS col2 FROM tab1
----
3570
5950
6370

skipif mysql # not compatible
query I rowsort label-7559
SELECT - col0 * - - CAST ( + - 70 AS INTEGER ) AS col2 FROM tab1
----
3570
5950
6370

query I rowsort
SELECT DISTINCT - col0 * + 72 FROM tab0
----
-1080
-6264
-6984

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7561
SELECT - col0 DIV + + col2, ( + - 79 ) DIV - + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1
----
-1
NULL
-1
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-7561
SELECT - col0 / + + col2, ( + - 79 ) / - + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1
----
-1
NULL
-1
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT DISTINCT - COUNT( * ) * - 69 AS col1 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT - COUNT ( * ) * - 69 AS col1 FROM tab1 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT - COUNT( * ) + + - ( 89 ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-7563
SELECT - COUNT ( * ) + + - ( 89 ) FROM tab1 AS cor0
----
-92

query I rowsort
SELECT ALL + 63 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-3776
-4352
-6144

query I rowsort
SELECT col0 * 20 * col1 + - 75 + + 82 + col2 + + 78 FROM tab1
----
14461
85693
8644

query II rowsort
SELECT + 59 * + col0 + + 92 AS col2, col2 FROM tab0
----
5225
10
5815
99
977
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT COUNT( * ) + - + 38 AS col0 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-7567
SELECT COUNT ( * ) + - + 38 AS col0 FROM tab0
----
-35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7568
SELECT ALL 35 DIV - 93 * - col2 AS col1, 18 * + - col0 + + CAST( col0 AS SIGNED ) FROM tab1
----
0
-1445
0
-1547
0
-867

skipif mysql # not compatible
query II rowsort label-7568
SELECT ALL 35 / - 93 * - col2 AS col1, 18 * + - col0 + + CAST ( col0 AS INTEGER ) FROM tab1
----
0
-1445
0
-1547
0
-867

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7569
SELECT ALL + col2 DIV + + col1 * + CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL + col2 / + + col1 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
0
0
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 4 + + - 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7571
SELECT ALL - 30 - + col0 + col1 DIV 82 col0 FROM tab0 AS cor0
----
-117
-127
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7571
SELECT ALL - 30 - + col0 + col1 / 82 col0 FROM tab0 AS cor0
----
-117
-127
-45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= + 83 * + 54 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT MAX( + + col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7573
SELECT MAX ( + + col2 ) AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT - SUM( DISTINCT - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT - SUM ( DISTINCT - col1 ) FROM tab1
----
66

query II rowsort
SELECT DISTINCT col2, + col2 AS col1 FROM tab1
----
59
59
68
68
96
96

query II rowsort
SELECT 98, - col1 AS col1 FROM tab0
----
98
-1
98
-21
98
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-7577
SELECT ALL - 4 AS col0, - COUNT( * ) AS col0 FROM tab0
----
-4
-3

skipif mysql # not compatible
query II rowsort label-7577
SELECT ALL - 4 AS col0, - COUNT ( * ) AS col0 FROM tab0
----
-4
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT DISTINCT + col1 DIV + - col2 AS col1 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT + col1 / + - col2 AS col1 FROM tab2
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7579
SELECT ALL col2 DIV - - col1 + - col1 FROM tab1 AS cor0
----
-46
-8
6

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL col2 / - - col1 + - col1 FROM tab1 AS cor0
----
-46
-8
6

query I rowsort
SELECT ALL - - 36 AS col1 FROM tab1 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT DISTINCT - MIN( ALL - + 40 ) AS col0 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT - MIN ( ALL - + 40 ) AS col0 FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT DISTINCT - MAX( - - col1 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT - MAX ( - - col1 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 + - col0 + + col0 col1 FROM tab1 AS cor0
----
16

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - ( - + col0 ) ) + 23 + - - col0 + + + 76 <> - col0 * + 78 + col2 + - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 * col2 / col0 ) IS NULL
----

query I rowsort
SELECT ALL col0 + - col0 - + + col0 * + 54 * + + 30 FROM tab1
----
-137700
-147420
-82620

query I rowsort
SELECT + 8 + + + col1 FROM tab2
----
59
75
85

query I rowsort
SELECT DISTINCT col1 * + 48 AS col2 FROM tab0
----
1008
3888
48

query I rowsort
SELECT ALL - 19 * + + col2 FROM tab1
----
-1121
-1292
-1824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + ( 20 ) AS col2 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + col2 * + - 51 * + + col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + col1 * + 0 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7594
SELECT DISTINCT + + MIN( + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT + + MIN ( + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7595
SELECT ALL * FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7595
SELECT ALL * FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT 45 + + col2 + + col1 AS col1 FROM tab2
----
119
162
170

query III rowsort
SELECT + - col0 * + 16 * - col2 + col2, + col2, - col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to 8a7568aa31203841eecdd237bf8b88b9

query I rowsort
SELECT - - col1 + - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT + + col2 + + 86 DIV + col1 FROM tab2 cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-7599
SELECT + + col2 + + 86 / + col1 FROM tab2 cor0
----
24
41
59

query I rowsort
SELECT DISTINCT - + col0 + + 9 + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT 68 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 67 * - 48 FROM tab1 AS cor0
----
-3216
-3216
-3216

query I rowsort
SELECT ALL - ( + 22 ) FROM tab2 AS cor0
----
-22
-22
-22

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 32 < NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7607
SELECT DISTINCT COUNT( * ) DIV + COUNT( CAST( - 25 AS SIGNED ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT COUNT ( * ) / + COUNT ( CAST ( - 25 AS INTEGER ) ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col0 IS NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7610
SELECT ALL - 42 DIV 53 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL - 42 / 53 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7611
SELECT COUNT( * ) DIV 17 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7611
SELECT COUNT ( * ) / 17 col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT - CAST( + 36 AS SIGNED ) FROM tab0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-7612
SELECT - CAST ( + 36 AS INTEGER ) FROM tab0
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7613
SELECT DISTINCT - CAST( - - 10 AS SIGNED ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7613
SELECT DISTINCT - CAST ( - - 10 AS INTEGER ) FROM tab2 AS cor0
----
-10

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT - col1 * + + col2 AS col1 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL >= NULL )
----

query I rowsort
SELECT + col2 * + col2 + + - col0 AS col1 FROM tab2 cor0
----
1536
3289
483

query I rowsort
SELECT ALL + ( - + 36 ) AS col1 FROM tab1 AS cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT - ( + ( + 14 ) ) + - 43 DIV + col2 FROM tab1 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-7621
SELECT - ( + ( + 14 ) ) + - 43 / + col2 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT ALL - + CAST( - + col1 AS SIGNED ) FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - + CAST ( - + col1 AS INTEGER ) FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 41 ) IS NULL
----

query I rowsort
SELECT - col0 + - 52 + 39 FROM tab2 AS cor0 WHERE col1 * ( + - col0 ) <> NULL
----

query I rowsort
SELECT ALL + col1 + + ( + col1 ) FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7626
SELECT - - COUNT( * ) AS col1, - MAX( DISTINCT + 66 ) + - COUNT( * ) FROM tab1 AS cor0
----
3
-69

skipif mysql # not compatible
query II rowsort label-7626
SELECT - - COUNT ( * ) AS col1, - MAX ( DISTINCT + 66 ) + - COUNT ( * ) FROM tab1 AS cor0
----
3
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT col2 * + + col0 + - - col0 / + col1 AS col0 FROM tab0 AS cor0 WHERE NULL >= CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query I rowsort label-7627
SELECT col2 * + + col0 + - - col0 / + col1 AS col0 FROM tab0 AS cor0 WHERE NULL >= CAST ( NULL AS INTEGER ) + col0
----

query I rowsort
SELECT DISTINCT - 6 + + 33 AS col1 FROM tab2 AS cor0
----
27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 92 / - - col0 < - 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 12 - - - col2 * + - col1 AS col1 FROM tab2
----
1185
3092
3898

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7631
SELECT * FROM tab2 WHERE + - 93 * + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7631
SELECT * FROM tab2 WHERE + - 93 * + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7632
SELECT ( + - 79 ) + - SUM( DISTINCT - ( + col0 ) ) AS col2, + COUNT( * ) + - 94 * ( - 10 ) FROM tab2
----
106
943

skipif mysql # not compatible
query II rowsort label-7632
SELECT ( + - 79 ) + - SUM ( DISTINCT - ( + col0 ) ) AS col2, + COUNT ( * ) + - 94 * ( - 10 ) FROM tab2
----
106
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7633
SELECT DISTINCT - 35 + - 55 * - - CAST( col0 AS SIGNED ) * - ( - - 12 ) FROM tab0 AS cor0
----
57385
63985
9865

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - 35 + - 55 * - - CAST ( col0 AS INTEGER ) * - ( - - 12 ) FROM tab0 AS cor0
----
57385
63985
9865

query I rowsort
SELECT - + col1 * col0 * - col2 * - col0 + - + 20 FROM tab0 AS cor0
----
-1589510
-856595
-931511

query I rowsort
SELECT + + 7 + + + ( + + col0 ) AS col1 FROM tab1 cor0
----
58
92
98

query I rowsort
SELECT + + 13 AS col0 FROM tab0 WHERE ( 18 IS NOT NULL )
----
13
13
13

query I rowsort
SELECT ALL 30 - - col2 + - - 86 * - col0 * - - 82 + + 92 * - 40 AS col0 FROM tab1
----
-363206
-603011
-645314

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE + 83 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7639
SELECT - + COUNT( * ) DIV + - 44 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7639
SELECT - + COUNT ( * ) / + - 44 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 34 NOT IN ( - col2, - 79 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, + 79 AS col2 FROM tab1 AS cor0
----
59
79
68
79
96
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT DISTINCT + 2 * + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT + 2 * + COUNT ( * ) FROM tab0 cor0
----
6

query I rowsort
SELECT ALL - + col2 * - + 29 FROM tab0 cor0
----
1363
2871
290

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT + 41 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-7644
SELECT + 41 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-7645
SELECT DISTINCT - - 44 AS col2, + COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 IS NULL
----
44
3

skipif mysql # not compatible
query II rowsort label-7645
SELECT DISTINCT - - 44 AS col2, + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 IS NULL
----
44
3

query I rowsort
SELECT col2 * 90 FROM tab1
----
5310
6120
8640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7647
SELECT DISTINCT CAST( - - 58 AS SIGNED ) * + col1 FROM tab0
----
1218
4698
58

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT CAST ( - - 58 AS INTEGER ) * + col1 FROM tab0
----
1218
4698
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7648
SELECT ALL - COUNT( + CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL - COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 21 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7650
SELECT ALL 61 DIV 45 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL 61 / 45 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT DISTINCT + SUM( + 47 ) col2 FROM tab1
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7651
SELECT DISTINCT + SUM ( + 47 ) col2 FROM tab1
----
141

query I rowsort
SELECT DISTINCT 48 * - col0 * - ( + col2 ) AS col1 FROM tab0
----
33840
41760
460944

query II rowsort
SELECT ( - 49 ), 31 - col2 AS col2 FROM tab0 AS cor0
----
-49
-16
-49
-68
-49
21

query I rowsort
SELECT + col0 * - 85 FROM tab2 AS cor0
----
-3910
-5440
-6375

query I rowsort
SELECT + - 92 FROM tab1 AS cor0 WHERE NOT ( col2 > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT DISTINCT - col2 DIV 61 + ( - 55 ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT - col2 / 61 + ( - 55 ) FROM tab2 AS cor0
----
-55

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( 48 ) * col0 + - col1 * - col1 AND + col2 + + + col1 - - col0
----

query I rowsort
SELECT + + ( - col0 ) * + 75 + - col0 * + ( + 6 ) - + col1 FROM tab0 cor0
----
-1296
-7068
-7858

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 22 * + col1 * - - col2 IS NOT NULL AND NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT DISTINCT 26 + + + COUNT( * ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT 26 + + + COUNT ( * ) FROM tab2 AS cor0
----
29

query I rowsort
SELECT - col2 + - - col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7662
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 89 + - col2 AS col2 FROM tab2 AS cor0
----
-112
-129
-147

query I rowsort
SELECT + 45 + + + col1 AS col2 FROM tab0 AS cor0
----
126
46
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7665
SELECT + 50 * col0 + - CAST( - ( + 25 ) AS SIGNED ) FROM tab2
----
2325
3225
3775

skipif mysql # not compatible
query I rowsort label-7665
SELECT + 50 * col0 + - CAST ( - ( + 25 ) AS INTEGER ) FROM tab2
----
2325
3225
3775

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT + 87 * + - COUNT( * ) AS col0 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-7668
SELECT + 87 * + - COUNT ( * ) AS col0 FROM tab0
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7669
SELECT * FROM tab0 WHERE - + ( - CAST( NULL AS SIGNED ) ) * - + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7669
SELECT * FROM tab0 WHERE - + ( - CAST ( NULL AS INTEGER ) ) * - + col1 IS NOT NULL
----

query I rowsort
SELECT - col1 * col1 * 73 FROM tab0
----
-32193
-478953
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT - MAX( DISTINCT 66 ) * - 32 AS col0 FROM tab0 AS cor0
----
2112

skipif mysql # not compatible
query I rowsort label-7671
SELECT - MAX ( DISTINCT 66 ) * - 32 AS col0 FROM tab0 AS cor0
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT 97 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 97 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - + col1 ) = - - ( + col2 )
----

query I rowsort
SELECT - 81 - - ( col1 ) * 31 FROM tab2 AS cor0
----
1500
1996
2306

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT + col0 - col2 DIV + 92 + 86 FROM tab0 AS cor0
----
101
173
182

skipif mysql # not compatible
query I rowsort label-7675
SELECT + col0 - col2 / + 92 + 86 FROM tab0 AS cor0
----
101
173
182

query I rowsort
SELECT ALL col0 * + + col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT + 91 DIV + ( + - 22 ) + + 71 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif mysql # not compatible
query I rowsort label-7677
SELECT + 91 / + ( + - 22 ) + + 71 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT - 42 - + 80 FROM tab1 WHERE NOT NULL >= 21 + - - 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7680
SELECT ALL + CAST( + col2 AS SIGNED ) * + + col0 + + 65 AS col2 FROM tab2 AS cor0
----
1123
2625
4415

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL + CAST ( + col2 AS INTEGER ) * + + col0 + + 65 AS col2 FROM tab2 AS cor0
----
1123
2625
4415

query I rowsort
SELECT - ( + + col1 ) AS col1 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7682
SELECT ALL 88 AS col1 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) > + - col2 * + + 14
----

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL 88 AS col1 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) > + - col2 * + + 14
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7683
SELECT ALL + 84 * + - 5 * - 49 * + MAX( ALL - col0 ) + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL + 84 * + - 5 * - 49 * + MAX ( ALL - col0 ) + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 87 * - ( + - col2 ) AS col0 FROM tab1 cor0
----
5133
5916
8352

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - + 47 * - col1 * - 30 IS NULL )
----

query I rowsort
SELECT DISTINCT - 28 AS col0 FROM tab1 cor0
----
-28

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab1 cor0 WHERE NOT ( NOT - + 79 IS NOT NULL )
----
51
85
91

query I rowsort
SELECT ALL col2 * + 1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT DISTINCT + ( + SUM( DISTINCT col1 ) ) * - - MAX( col0 ) FROM tab2
----
14625

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT + ( + SUM ( DISTINCT col1 ) ) * - - MAX ( col0 ) FROM tab2
----
14625

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT DISTINCT - SUM( - - col1 ) col0 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7690
SELECT DISTINCT - SUM ( - - col1 ) col0 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-7691
SELECT + COUNT( * ) AS col0, 23 AS col1 FROM tab2
----
3
23

skipif mysql # not compatible
query II rowsort label-7691
SELECT + COUNT ( * ) AS col0, 23 AS col1 FROM tab2
----
3
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7692
SELECT - CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7692
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7693
SELECT - CAST( NULL AS SIGNED ) / 3 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT - CAST ( NULL AS INTEGER ) / 3 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT col0 * col1 DIV - col2 AS col0 FROM tab2
----
-102
-123
-86

skipif mysql # not compatible
query I rowsort label-7694
SELECT col0 * col1 / - col2 AS col0 FROM tab2
----
-102
-123
-86

query I rowsort
SELECT DISTINCT - 0 * - col1 * col1 AS col1 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 56, ( + 59 ) AS col0 FROM tab0 AS cor0
----
56
59
56
59
56
59

query I rowsort
SELECT ALL - col0 * 57 AS col1 FROM tab0 AS cor0
----
-4959
-5529
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT DISTINCT - + COUNT( * ) * - - COUNT( * ) col0 FROM tab2 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7699
SELECT DISTINCT - + COUNT ( * ) * - - COUNT ( * ) col0 FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT DISTINCT - 6 - + 79 * COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-717

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT - 6 - + 79 * COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT CAST( + - col2 AS SIGNED ) + - col1 AS col0 FROM tab2
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-7701
SELECT CAST ( + - col2 AS INTEGER ) + - col1 AS col0 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT + COUNT( * ) + + - 48 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT + COUNT ( * ) + + - 48 FROM tab2
----
-45

query I rowsort
SELECT - 9 AS col1 FROM tab0 cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + 17 + col2 + + col2 AS col1 FROM tab2 AS cor0
----
133
63
97

query III rowsort
SELECT * FROM tab1 WHERE col0 + - 41 + + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT + SUM( - - col0 ) - - - COUNT( * ) AS col2 FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-7706
SELECT + SUM ( - - col0 ) - - - COUNT ( * ) AS col2 FROM tab1
----
224

query I rowsort
SELECT DISTINCT + 55 + - 80 AS col0 FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT DISTINCT COUNT( * ) - + 53 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT COUNT ( * ) - + 53 FROM tab2
----
-50

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - 76 IS NOT NULL AND NOT NULL = NULL
----

query I rowsort
SELECT col0 * + col2 + - ( + - 81 ) * - col2 FROM tab1
----
-2880
236
680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT ALL - CAST( NULL AS SIGNED ) + 24 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL - CAST ( NULL AS INTEGER ) + 24 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 col0 FROM tab1
----
69

query I rowsort
SELECT DISTINCT + col2 - - col1 FROM tab0 cor0
----
100
128
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7714
SELECT - col2 * + 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-7714
SELECT - col2 * + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7715
SELECT - COUNT( * ) DIV CAST( - - 23 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7715
SELECT - COUNT ( * ) / CAST ( - - 23 AS INTEGER ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7716
SELECT + 67, - COUNT( * ) AS col0 FROM tab0
----
67
-3

skipif mysql # not compatible
query II rowsort label-7716
SELECT + 67, - COUNT ( * ) AS col0 FROM tab0
----
67
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT 26 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT ALL + 13 * - - col2 FROM tab1 AS cor0 WHERE ( - col2 + - ( col2 ) * - col1 * - col1 ) IS NOT NULL
----
1248
767
884

onlyif mysql # aggregate syntax: 
query II rowsort label-7720
SELECT + COUNT( * ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7720
SELECT + COUNT ( * ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col2 IN ( + - col1, 13, 55 * ( + 81 ) )
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7722
SELECT - + 32, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-32
3

skipif mysql # not compatible
query II rowsort label-7722
SELECT - + 32, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-32
3

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col2, col0 * + col1 FROM tab1 AS cor0
----
-51
714
-85
425
-91
4277

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 81 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - ( col1 ) FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - col0 * + + 6 FROM tab2
----
-276
-384
-450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 34 * - + col0, - 59 col1 FROM tab1
----
-1734
-59
-2890
-59
-3094
-59

query I rowsort
SELECT ALL - + 64 FROM tab2 WHERE NOT + col1 >= - col2 * + + col1 + - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 29 AS col0 FROM tab0 cor0
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 col2, - ( 75 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
18 values hashing to 4df5f9ed781ab6b9b0b49fe01876f2db

query I rowsort
SELECT DISTINCT + + 59 * 25 * + col1 * col2 AS col2 FROM tab1 AS cor0
----
1982400
435125
4714100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7734
SELECT + col0 + - 28 * - CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
-1382
-1801
-2092

skipif mysql # not compatible
query I rowsort label-7734
SELECT + col0 + - 28 * - CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
-1382
-1801
-2092

query I rowsort
SELECT - - ( - 49 ) + col2 * col2 FROM tab2 AS cor0
----
1551
3315
480

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT DISTINCT SUM( ALL - - 18 ) AS col0 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT SUM ( ALL - - 18 ) AS col0 FROM tab0 AS cor0
----
54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + + 37 BETWEEN 11 AND col2
----

query I rowsort
SELECT DISTINCT col2 * + 39 AS col0 FROM tab0 AS cor0
----
1833
3861
390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + - col1 + col2 + + - 11 col0, col0 FROM tab0 AS cor0
----
-126
15
-43
87
86
97

query I rowsort
SELECT DISTINCT + col2 + + - 18 FROM tab1 AS cor0
----
41
50
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL >= ( - 55 ) )
----

query I rowsort
SELECT DISTINCT col0 * col1 + - + col0 FROM tab2
----
2300
4864
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-7743
SELECT ALL - col2 DIV + - 52 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL - col2 / + - 52 AS col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + col2 * + + 23 AS col0 FROM tab2
----
1334
529
920

onlyif mysql # DIV for integer division: 
query I rowsort label-7745
SELECT DISTINCT - 8 DIV col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - 8 / col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT - - 59 * - MAX( - col2 ) col0 FROM tab2 cor0
----
1357

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7746
SELECT - - 59 * - MAX ( - col2 ) col0 FROM tab2 cor0
----
1357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT - - 24 - + 90 * 7 * + 0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
24
24
24

skipif mysql # not compatible
query I rowsort label-7747
SELECT - - 24 - + 90 * 7 * + 0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT ALL - - MIN( DISTINCT + col1 ) AS col2 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL - - MIN ( DISTINCT + col1 ) AS col2 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7749
SELECT * FROM tab1 WHERE NOT + CAST( - col1 AS SIGNED ) + + ( + 45 ) >= + 27
----
91
47
68

skipif mysql # not compatible
query III rowsort label-7749
SELECT * FROM tab1 WHERE NOT + CAST ( - col1 AS INTEGER ) + + ( + 45 ) >= + 27
----
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + 15 ) col1 FROM tab1
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT DISTINCT - ( + MIN( col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT - ( + MIN ( col2 ) ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7752
SELECT 48, + 28 + + COUNT( * ) DIV + 23 * - - 76 AS col1 FROM tab0 AS cor0
----
48
28

skipif mysql # not compatible
query II rowsort label-7752
SELECT 48, + 28 + + COUNT ( * ) / + 23 * - - 76 AS col1 FROM tab0 AS cor0
----
48
28

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE + col0 + + + 82 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT DISTINCT COUNT( + + 19 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7754
SELECT DISTINCT COUNT ( + + 19 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 26 AND ( + + ( - 86 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT - - COUNT( * ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7756
SELECT - - COUNT ( * ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT MIN( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT 86 / 99 + + + col0 - + 98 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT MIN ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT 86 / 99 + + + col0 - + 98 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT - - SUM( DISTINCT + 70 ) AS col2 FROM tab1 cor0
----
70

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT - - SUM ( DISTINCT + 70 ) AS col2 FROM tab1 cor0
----
70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - 18 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + ( + - col2 ) FROM tab0 cor0
----
-10
-47
-99

query II rowsort
SELECT ALL + + 79, + col2 AS col1 FROM tab2 AS cor0
----
79
23
79
40
79
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7762
SELECT DISTINCT - col2 + + 54 DIV col1 AS col0 FROM tab0 AS cor0
----
-45
-47
-8

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT - col2 + + 54 / col1 AS col0 FROM tab0 AS cor0
----
-45
-47
-8

query I rowsort
SELECT + col2 * + - col1 * + + col2 AS col0 FROM tab1
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT DISTINCT - MAX( + + 66 ) + - + 27 + - COUNT( * ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT - MAX ( + + 66 ) + - + 27 + - COUNT ( * ) FROM tab1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7765
SELECT DISTINCT COUNT( ALL - - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query II rowsort
SELECT col0, + col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT 72 * + - col0 FROM tab1
----
-3672
-6120
-6552

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 = + col2 + + 52
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7770
SELECT + col2, + CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-7770
SELECT + col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL - + 30 FROM tab1 cor0
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7772
SELECT col1 DIV + col2 * + 79 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7772
SELECT col1 / + col2 * + 79 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + col2, 90 - + col2 FROM tab0 AS cor0
----
10
80
47
43
99
-9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 95 NOT BETWEEN NULL AND ( + col1 * - - 15 / + col0 + - col2 + - col2 + col2 )
----
97
1
99

query I rowsort
SELECT DISTINCT + 94 FROM tab0 WHERE NULL BETWEEN + - col0 AND - col0
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - + 69 * + col1 FROM tab0
----
-30429
-452709
-69

query I rowsort
SELECT - 10 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT ALL + + col1 - + col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT col0 * - - col1 * 37 AS col0 FROM tab2 AS cor0
----
182336
185925
86802

onlyif mysql # DIV for integer division: 
query I rowsort label-7781
SELECT ALL + col2 DIV + ( - col1 ) + - 70 AS col0 FROM tab1 AS cor0
----
-71
-76
-81

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL + col2 / + ( - col1 ) + - 70 AS col0 FROM tab1 AS cor0
----
-71
-76
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT - MAX( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7782
SELECT - MAX ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7783
SELECT col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 47 * - col0 AS col1 FROM tab2
----
-2162
-3008
-3525

query I rowsort
SELECT DISTINCT 51 * col2 AS col1 FROM tab2
----
1173
2040
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT MIN( DISTINCT + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7787
SELECT MIN ( DISTINCT + col0 ) AS col1 FROM tab0
----
15

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * - 68 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT COUNT( * ) * MIN( - - ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-7790
SELECT COUNT ( * ) * MIN ( - - ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7791
SELECT MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT ALL - - ( + - SUM( + 71 ) ) * + 68 FROM tab0 AS cor0
----
-14484

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL - - ( + - SUM ( + 71 ) ) * + 68 FROM tab0 AS cor0
----
-14484

query I rowsort
SELECT + col0 * 6 FROM tab2 AS cor0
----
276
384
450

query I rowsort
SELECT DISTINCT 57 * - col0 - col2 FROM tab2
----
-2645
-3688
-4333

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - 71 / + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7796
SELECT DISTINCT + CAST( - 25 AS SIGNED ) col2 FROM tab0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7796
SELECT DISTINCT + CAST ( - 25 AS INTEGER ) col2 FROM tab0
----
-25

query I rowsort
SELECT - 73 - col2 AS col1 FROM tab0
----
-120
-172
-83

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT ALL - COUNT( ALL - 89 ) * + COUNT( * ) + 63 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL - COUNT ( ALL - 89 ) * + COUNT ( * ) + 63 FROM tab0
----
54

query I rowsort
SELECT ALL 51 + 7 FROM tab1
----
58
58
58

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN + col0 * col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + 78 FROM tab1
----
125
83
92

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE + col2 BETWEEN ( - col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL MAX( DISTINCT + col1 ) AS col2 FROM tab2 WHERE NOT NULL <= + 60 - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL MAX ( DISTINCT + col1 ) AS col2 FROM tab2 WHERE NOT NULL <= + 60 - 81
----
NULL

query I rowsort
SELECT ALL 64 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 78 * + 24 AS col0 FROM tab2
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * 58 + col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT MIN( ALL - 73 ) AS col2 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-7810
SELECT MIN ( ALL - 73 ) AS col2 FROM tab2
----
-73

query I rowsort
SELECT 7 - col2 * + col0 AS col0 FROM tab0
----
-698
-863
-9596

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 4 ) IS NOT NULL
----

query I rowsort
SELECT - 61 FROM tab2 WHERE NOT NULL IN ( - col0 * 16 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 69 + - col1 ) BETWEEN - ( - 8 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IN ( col2 * 5 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT 5 * - COUNT( * ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-7817
SELECT 5 * - COUNT ( * ) FROM tab2
----
-15

query I rowsort
SELECT col0 * ( 7 * 49 ) FROM tab1
----
17493
29155
31213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * - 62 col1 FROM tab2
----
-4960
-4960
-4960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7820
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) + 85 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) + 85 FROM tab2
----
88

query III rowsort
SELECT ALL * FROM tab2 WHERE - 96 NOT BETWEEN - col2 AND ( - 53 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( - 51 - + 63 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 13 + - ( 59 ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT ALL - 98 AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( - col1 + 28 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT DISTINCT COUNT( * ) + COUNT( * ) * COUNT( + 26 ) col0 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7825
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * COUNT ( + 26 ) col0 FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL col0 + - ( + col2 + 81 ) FROM tab2 AS cor0
----
-57
-58
-64

query I rowsort
SELECT DISTINCT ( 88 ) FROM tab0 WHERE + 89 - - 5 NOT BETWEEN NULL AND - col0
----
88

query I rowsort
SELECT ALL 14 * + 92 + 62 FROM tab0
----
1350
1350
1350

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = - col1
----

query I rowsort
SELECT DISTINCT + + 61 - 21 AS col1 FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL MAX( DISTINCT - col2 ) col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7831
SELECT ALL MAX ( DISTINCT - col2 ) col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT col2 * - col2 + col1 FROM tab1 AS cor0
----
-3476
-4577
-9202

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7834
SELECT DISTINCT + - col0 DIV 90 + + col2 AS col0 FROM tab1 AS cor0
----
59
67
96

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT + - col0 / 90 + + col2 AS col0 FROM tab1 AS cor0
----
59
67
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7835
SELECT + 67 DIV + 70 + COUNT( DISTINCT 43 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7835
SELECT + 67 / + 70 + COUNT ( DISTINCT 43 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 65 * - col2 < ( col2 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * + 26 FROM tab0 AS cor0
----
2106
26
546

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL - COUNT( + col0 ) * - ( - 90 * COUNT( DISTINCT col1 ) ) AS col1 FROM tab0 AS cor0
----
-810

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL - COUNT ( + col0 ) * - ( - 90 * COUNT ( DISTINCT col1 ) ) AS col1 FROM tab0 AS cor0
----
-810

query I rowsort
SELECT - 96 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - ( + 23 ) AND + 35
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 27 < NULL
----

query I rowsort
SELECT DISTINCT ( + 79 ) FROM tab1
----
79

query III rowsort
SELECT * FROM tab2 WHERE NOT 11 * col1 IN ( 98 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7844
SELECT + col0 - 53 * col1 AS col2 FROM tab2 WHERE NOT col1 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7844
SELECT + col0 - 53 * col1 AS col2 FROM tab2 WHERE NOT col1 + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7845
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - col0 * col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 * col0 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( col1 ) + + 53 * col1 ) = col0 * 23
----

query I rowsort
SELECT DISTINCT - col1 * + + 19 FROM tab0 AS cor0
----
-1539
-19
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT - MAX( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) BETWEEN - col1 AND col0 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7848
SELECT - MAX ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) BETWEEN - col1 AND col0 * col2
----
NULL

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE - 30 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col0 + col2 FROM tab1 AS cor0
----
-366
-4209
-618

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 NOT IN ( + 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT + + COUNT( * ) * ( - 80 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-720

skipif mysql # not compatible
query I rowsort label-7852
SELECT + + COUNT ( * ) * ( - 80 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT + MIN( DISTINCT + - 72 ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-7853
SELECT + MIN ( DISTINCT + - 72 ) AS col0 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-7854
SELECT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col1 FROM tab0 WHERE NOT + + col0 BETWEEN ( - col2 ) AND ( col1 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7856
SELECT ALL col0 DIV + 17 FROM tab1
----
3
5
5

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL col0 / + 17 FROM tab1
----
3
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT + CAST( NULL AS SIGNED ) / + + col0 + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT + CAST ( NULL AS INTEGER ) / + + col0 + + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 23 * + - col2 AS col1 FROM tab0 AS cor0
----
1081
2277
230

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7859
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 ) + - CAST( 8 AS SIGNED ) >= col1
----

skipif mysql # not compatible
query III rowsort label-7859
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 ) + - CAST ( 8 AS INTEGER ) >= col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 40 + - col2 <> ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col0 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE - col0 <> - + 39 * col2 + - 88 * 28
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7863
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE - col0 <> - + 39 * col2 + - 88 * 28
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + col0 + + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-9506
510
957

query I rowsort
SELECT + col1 * + 46 AS col1 FROM tab0 AS cor0
----
3726
46
966

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 65 AS col1 FROM tab0
----
-65

query III rowsort
SELECT * FROM tab1 WHERE - 38 * + - col2 * - 77 + 3 * - ( - col0 ) IS NULL
----

query I rowsort
SELECT ALL col1 + + 69 + col0 FROM tab2
----
166
210
211

query II rowsort
SELECT + 92 * - + 55 AS col2, + 14 FROM tab1
----
-5060
14
-5060
14
-5060
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT - MIN( - + 35 ) AS col0 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-7871
SELECT - MIN ( - + 35 ) AS col0 FROM tab1
----
35

query I rowsort
SELECT ALL - col2 + - 17 AS col1 FROM tab2
----
-40
-57
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT DISTINCT + COUNT( - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT + COUNT ( - col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7874
SELECT COUNT( * ) DIV - + 93 - + - ( 93 ) + MIN( 99 + col1 ) FROM tab0
----
193

skipif mysql # not compatible
query I rowsort label-7874
SELECT COUNT ( * ) / - + 93 - + - ( 93 ) + MIN ( 99 + col1 ) FROM tab0
----
193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7875
SELECT - CAST( NULL AS SIGNED ) * + ( + 28 ) + + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT - CAST ( NULL AS INTEGER ) * + ( + 28 ) + + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT 74 * + + 99 + - - col1 - 71 * col2 FROM tab0 AS cor0
----
298
4070
6637

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT + COUNT( + + col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7878
SELECT + COUNT ( + + col0 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL - 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE - 62 / - - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE - 62 / - - col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 39 > + + ( - col2 ) * 70
----

query II rowsort
SELECT ALL 76 AS col2, col1 * + - col0 AS col0 FROM tab0 AS cor0
----
76
-1215
76
-1827
76
-97

query I rowsort
SELECT ALL 25 * + - col1 + col0 + + 93 FROM tab2 cor0
----
-1136
-1507
-1768

query I rowsort
SELECT DISTINCT - 25 AS col1 FROM tab0 cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT ALL + SUM( DISTINCT - 76 ) AS col2 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + SUM ( DISTINCT - 76 ) AS col2 FROM tab1 AS cor0
----
-76

query I rowsort
SELECT ( + + col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7888
SELECT DISTINCT - + SUM( DISTINCT + ( 16 ) ) AS col2, 51 AS col2 FROM tab1 AS cor0
----
-16
51

skipif mysql # not compatible
query II rowsort label-7888
SELECT DISTINCT - + SUM ( DISTINCT + ( 16 ) ) AS col2, 51 AS col2 FROM tab1 AS cor0
----
-16
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT COUNT( ALL + + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7889
SELECT COUNT ( ALL + + col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 1 * col1 AS col1 FROM tab2 WHERE NOT - col1 + + col2 * col2 * - col1 NOT BETWEEN ( NULL ) AND + 28
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT 69 DIV 35 * + - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7891
SELECT 69 / 35 * + - col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT 94 * SUM( - col0 ) col2 FROM tab0
----
-18706

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7892
SELECT 94 * SUM ( - col0 ) col2 FROM tab0
----
-18706

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT ALL ( + SUM( col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL ( + SUM ( col2 ) ) FROM tab1
----
223

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL >= + 78 + + + col1 * - 90 + - 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT - - COUNT( * ) * + + 66 AS col0 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7895
SELECT - - COUNT ( * ) * + + 66 AS col0 FROM tab2 AS cor0
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7896
SELECT ALL CAST( - COUNT( - 96 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL CAST ( - COUNT ( - 96 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7897
SELECT * FROM tab1 WHERE NOT + + col2 * CAST( NULL AS SIGNED ) * ( + 14 ) + + - 61 + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7897
SELECT * FROM tab1 WHERE NOT + + col2 * CAST ( NULL AS INTEGER ) * ( + 14 ) + + - 61 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7898
SELECT - col1 DIV 69 + 71 FROM tab2 AS cor0
----
70
71
71

skipif mysql # not compatible
query I rowsort label-7898
SELECT - col1 / 69 + 71 FROM tab2 AS cor0
----
70
71
71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col0 col1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT + + col2 * col2 + - col2 FROM tab2 AS cor0
----
1560
3306
506

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT + 97 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-7902
SELECT + 97 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
100

query I rowsort
SELECT col0 + + 95 AS col1 FROM tab2 AS cor0
----
141
159
170

query I rowsort
SELECT + 2 + + col0 AS col1 FROM tab0 cor0
----
17
89
99

query I rowsort
SELECT DISTINCT - 10 + - 93 + + col0 FROM tab2 AS cor0
----
-28
-39
-57

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT ( NULL <> NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7907
SELECT 85 + CAST( CAST( + - col0 AS SIGNED ) AS SIGNED ) + - col0 AS col2 FROM tab0
----
-109
-89
55

skipif mysql # not compatible
query I rowsort label-7907
SELECT 85 + CAST ( CAST ( + - col0 AS INTEGER ) AS INTEGER ) + - col0 AS col2 FROM tab0
----
-109
-89
55

query I rowsort
SELECT DISTINCT col1 + + - col2 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT + ( - + 11 ) * 47 + col1 + + col0 AS col2 FROM tab2
----
-375
-376
-420

query I rowsort
SELECT DISTINCT 21 * + col1 FROM tab1
----
105
294
987

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT MAX( DISTINCT - 73 ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-7911
SELECT MAX ( DISTINCT - 73 ) FROM tab0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7912
SELECT DISTINCT ( + + CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7912
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7913
SELECT DISTINCT - - 3 DIV + col1 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT - - 3 / + col1 FROM tab0 AS cor0
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7914
SELECT * FROM tab0 cor0 WHERE ( NULL ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7914
SELECT * FROM tab0 cor0 WHERE ( NULL ) IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT DISTINCT + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT + col2 / col1 AS col2 FROM tab0 AS cor0
----
0
99

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE - 74 * - + col2 * + - 4 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE - col1 * 76 IS NULL AND NOT col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7918
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) >= - 85 * + CAST( NULL AS SIGNED ) + 27
----

skipif mysql # not compatible
query IIIIII rowsort label-7918
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) >= - 85 * + CAST ( NULL AS INTEGER ) + 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT + 28 > col0
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT + 28 > col0
----
NULL
NULL

query I rowsort
SELECT ALL - + 55 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7921
SELECT DISTINCT - ( + + 23 ) - - CAST( + col0 AS SIGNED ) AS col2 FROM tab2 WHERE NOT ( NOT - col1 NOT BETWEEN - col0 AND NULL )
----
23
41

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT - ( + + 23 ) - - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( NOT - col1 NOT BETWEEN - col0 AND NULL )
----
23
41

query I rowsort
SELECT - 17 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( + 17 * + col2 * + - col0 * col2 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( + 17 * + col2 * + - col0 * col2 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT DISTINCT COUNT( - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT COUNT ( - col1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - 90 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT DISTINCT + ( - + MIN( col2 ) ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT + ( - + MIN ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 > + ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 66 AS col0, - col2 col1 FROM tab0
----
-66
-10
-66
-47
-66
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7929
SELECT col1 DIV - 83 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7929
SELECT col1 / - 83 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 * + 32 * ( 70 ) FROM tab1
----
132160
152320
215040

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + + col1 AND - col2
----

query I rowsort
SELECT ( + 31 ) FROM tab2
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7933
SELECT DISTINCT * FROM tab1 WHERE + col0 <= + + 61 * - - 94 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7933
SELECT DISTINCT * FROM tab1 WHERE + col0 <= + + 61 * - - 94 * - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT - col0, col1 * 27 AS col2 FROM tab0 AS cor0
----
-15
2187
-87
567
-97
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7935
SELECT DISTINCT 19 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT 19 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT DISTINCT + + SUM( - col2 ) * + COUNT( * ) * + + 19 AS col0 FROM tab1 AS cor0
----
-12711

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT + + SUM ( - col2 ) * + COUNT ( * ) * + + 19 AS col0 FROM tab1 AS cor0
----
-12711

onlyif mysql # aggregate syntax: 
query II rowsort label-7937
SELECT ALL + SUM( DISTINCT + col1 ) * + MAX( - + col0 ), + 64 + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) > + - col2
----
-8970
61

skipif mysql # not compatible
query II rowsort label-7937
SELECT ALL + SUM ( DISTINCT + col1 ) * + MAX ( - + col0 ), + 64 + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) > + - col2
----
-8970
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 12 * + 6 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7940
SELECT 88 DIV + col2 col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7940
SELECT 88 / + col2 col2 FROM tab1 cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL - ( + 0 ) * COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - ( + 0 ) * COUNT ( * ) FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * 14 + - col0 NOT BETWEEN - col1 AND - 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT ALL - - 92 * - + CAST( NULL AS SIGNED ) + 82 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL - - 92 * - + CAST ( NULL AS INTEGER ) + 82 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7944
SELECT - ( + - CAST( - COUNT( ALL - - col2 ) AS SIGNED ) ) col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7944
SELECT - ( + - CAST ( - COUNT ( ALL - - col2 ) AS INTEGER ) ) col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + col1 * - 91 * col2 AS col1 FROM tab2 AS cor0
----
-106743
-280280
-353626

query I rowsort
SELECT ALL + col2 + - + col0 + 87 * col2 * col1 FROM tab1 AS cor0
----
116973
25639
278029

query I rowsort
SELECT DISTINCT + col0 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT ALL 51 + + - ( - - col2 ) AS col2 FROM tab1 AS cor0
----
-17
-45
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + col2 + + col2 * 87 col1 FROM tab0
----
4123
8515
881

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL COUNT( * ) + ( - 33 ) AS col2 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL COUNT ( * ) + ( - 33 ) AS col2 FROM tab0
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7951
SELECT ALL CAST( NULL AS DECIMAL ) + - col0 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7951
SELECT ALL CAST ( NULL AS REAL ) + - col0 col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 35 * ( - 50 ) + + - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 - + 53 FROM tab0
----
-38
34
44

query I rowsort
SELECT ALL col0 + - - ( + - col1 ) FROM tab2
----
-13
-5
8

query II rowsort
SELECT DISTINCT col0 * col0, col2 FROM tab1
----
2601
96
7225
59
8281
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT - col0 + + - 27 DIV - - col0 FROM tab0
----
-16
-87
-97

skipif mysql # not compatible
query I rowsort label-7956
SELECT - col0 + + - 27 / - - col0 FROM tab0
----
-16
-87
-97

query I rowsort
SELECT DISTINCT col1 - + col1 + - - col1 AS col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7958
SELECT + CAST( NULL AS SIGNED ) + - 76 + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT + CAST ( NULL AS INTEGER ) + - 76 + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT AVG ( col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT 1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 * + col1 col0 FROM tab1
----
1504
160
448

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT + ( + col1 ) DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7961
SELECT + ( + col1 ) / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - 85 ) FROM tab1
----
85

query I rowsort
SELECT ALL + col2 * 33 * col2 AS col1 FROM tab0
----
323433
3300
72897

query I rowsort
SELECT - + col0 AS col2 FROM tab0 WHERE NOT - + col0 * - col0 IS NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col2 ) NOT BETWEEN col1 AND - + col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND 17
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7967
SELECT ALL + CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7967
SELECT ALL + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - + col2 - - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7969
SELECT - ( + CAST( - col2 AS SIGNED ) ), col0 * + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT 92 + - col2 IS NULL
----
23
-2346
40
-4928
58
-5025

skipif mysql # not compatible
query II rowsort label-7969
SELECT - ( + CAST ( - col2 AS INTEGER ) ), col0 * + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT 92 + - col2 IS NULL
----
23
-2346
40
-4928
58
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT DISTINCT col2 DIV - 76 - col1 FROM tab0 cor0
----
-2
-21
-81

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT col2 / - 76 - col1 FROM tab0 cor0
----
-2
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 62 col1, + col2 FROM tab1 AS cor0
----
-62
59
-62
68
-62
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT + CAST( col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col1 + 52 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7972
SELECT + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col1 + 52 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT - MIN( + + ( col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7974
SELECT - MIN ( + + ( col0 ) ) FROM tab1 AS cor0
----
-51

query II rowsort
SELECT - - 33 AS col1, ( col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
33
-1600
33
-3364
33
-529

onlyif mysql # aggregate syntax: 
query II rowsort label-7976
SELECT + - 34 AS col0, COUNT( * ) AS col2 FROM tab1 cor0
----
-34
3

skipif mysql # not compatible
query II rowsort label-7976
SELECT + - 34 AS col0, COUNT ( * ) AS col2 FROM tab1 cor0
----
-34
3

query I rowsort
SELECT - + col0 * + - col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7978
SELECT + 17 * + 1 * - + SUM( col1 ) AS col0, CAST( NULL AS SIGNED ) col0 FROM tab2
----
-3315
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7978
SELECT + 17 * + 1 * - + SUM ( col1 ) AS col0, CAST ( NULL AS INTEGER ) col0 FROM tab2
----
-3315
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 > 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT ALL 46 + - SUM( + col1 ) * - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL > + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL 46 + - SUM ( + col1 ) * - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL > + 82
----
NULL

query I rowsort
SELECT + 84 * + col2 AS col2 FROM tab2
----
1932
3360
4872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * col0 * + col0 col1 FROM tab1
----
166175
190463
59823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7983
SELECT ALL CAST( + 80 AS SIGNED ) AS col1 FROM tab0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL CAST ( + 80 AS INTEGER ) AS col1 FROM tab0
----
80
80
80

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE + col1 * - col2 IN ( - col0, + col2 / + 44 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7985
SELECT + col1 + + col2 DIV + col2 - col1 DIV - col2 AS col0 FROM tab0
----
2
24
83

skipif mysql # not compatible
query I rowsort label-7985
SELECT + col1 + + col2 / + col2 - col1 / - col2 AS col0 FROM tab0
----
2
24
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL SUM( col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL SUM ( col1 ) AS col1 FROM tab0
----
103

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT - + col0 * - - col2 + - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT - - SUM( ALL + 40 ) AS col0 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-7988
SELECT - - SUM ( ALL + 40 ) AS col0 FROM tab0 AS cor0
----
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 0 * col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 86 + - col1 + + col1 * + 40 * - col0 FROM tab1 AS cor0
----
-16919
-171041
-28488

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT + COUNT( * ) * - - ( - - 22 ) FROM tab0, tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7991
SELECT + COUNT ( * ) * - - ( - - 22 ) FROM tab0, tab0 AS cor0
----
198

query I rowsort
SELECT DISTINCT col2 + + 21 AS col0 FROM tab1
----
117
80
89

query I rowsort
SELECT - + 13 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7995
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) * - 80 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif mysql # not compatible
query IIIIII rowsort label-7995
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) * - 80 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7996
SELECT DISTINCT - 11, col1 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN - - col0 AND + 59 * - 34
----

skipif mysql # not compatible
query II rowsort label-7996
SELECT DISTINCT - 11, col1 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN - - col0 AND + 59 * - 34
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7997
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) * - col0 <> + + ( - col1 ) * - 70
----

skipif mysql # not compatible
query III rowsort label-7997
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) * - col0 <> + + ( - col1 ) * - 70
----

query I rowsort
SELECT + + col1 * + - 91 + 99 FROM tab2 AS cor0
----
-4542
-5998
-6908

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7999
SELECT - col2 + - - 27 * + + col0 / + col0, - col0 * + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7999
SELECT - col2 + - - 27 * + + col0 / + col0, - col0 * + CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT ALL col1 DIV col1 + col2 AS col0 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL col1 / col1 + col2 AS col0 FROM tab0 AS cor0
----
100
11
48

query II rowsort
SELECT ALL - - 62 AS col0, col1 + - 52 FROM tab1 AS cor0
----
62
-38
62
-47
62
-5

query I rowsort
SELECT + ( - - col2 ) + col0 AS col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT DISTINCT - SUM( + - col0 ) + + MIN( 37 ) * COUNT( * ) FROM tab0 AS cor0
----
310

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT - SUM ( + - col0 ) + + MIN ( 37 ) * COUNT ( * ) FROM tab0 AS cor0
----
310

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE col1 <> - + col0 * - + col1
----
14
47
5

query III rowsort
SELECT DISTINCT col2 * + 5 / + col1, 60, - col1 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT + col1 + - 98 FROM tab1 AS cor0
----
-51
-84
-93

query I rowsort
SELECT ALL col1 * - - 88 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT - + COUNT( * ) col0 FROM tab0 WHERE + + 16 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8008
SELECT - + COUNT ( * ) col0 FROM tab0 WHERE + + 16 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT 78 * + 49 + col1 FROM tab0
----
3823
3843
3903

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, + 46 * - col2 col0 FROM tab2 AS cor0
----
51
-1058
67
-2668
77
-1840

onlyif mysql # DIV for integer division: 
query II rowsort label-8013
SELECT ALL col2 DIV - 48 AS col0, - 5 AS col2 FROM tab1
----
-1
-5
-1
-5
-2
-5

skipif mysql # not compatible
query II rowsort label-8013
SELECT ALL col2 / - 48 AS col0, - 5 AS col2 FROM tab1
----
-1
-5
-1
-5
-2
-5

query I rowsort
SELECT DISTINCT - col0 * 86 AS col0 FROM tab0 AS cor0
----
-1290
-7482
-8342

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN - ( col1 ) AND - - ( + col2 ) - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT col0 >= 28 ) )
----
15
81
47

query I rowsort
SELECT ALL 87 * - - 51 * col1 + - - col0 FROM tab0
----
359412
4534
93264

query I rowsort
SELECT 40 * 47 FROM tab1
----
1880
1880
1880

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8019
SELECT - CAST( NULL AS DECIMAL ) / + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT - CAST ( NULL AS REAL ) / + + col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( ( + 26 IS NOT NULL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT ALL - COUNT( DISTINCT + - col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL - COUNT ( DISTINCT + - col1 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT - + MAX( - + col1 ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8022
SELECT - + MAX ( - + col1 ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT ALL col0, + 2 + + 74 * + 32 AS col2 FROM tab1
----
51
2370
85
2370
91
2370

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ( - - MAX( + col0 ) ) * SUM( - + 79 ) FROM tab1
----
-21567

skipif mysql # not compatible
query I rowsort label-8024
SELECT ( - - MAX ( + col0 ) ) * SUM ( - + 79 ) FROM tab1
----
-21567

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT 28 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT ALL + col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN - - 44 AND CAST( NULL AS SIGNED ) + ( + ( - col2 ) ) * - 7 + + col0
----

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL + col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN - - 44 AND CAST ( NULL AS INTEGER ) + ( + ( - col2 ) ) * - 7 + + col0
----

query I rowsort
SELECT DISTINCT - 78 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

query II rowsort
SELECT + col0 + col2 AS col1, col2 + col2 FROM tab0
----
196
198
62
94
97
20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 >= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT DISTINCT + COUNT( DISTINCT + col0 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8030
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8032
SELECT ALL - + 88 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL <> CAST( + 37 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL - + 88 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL <> CAST ( + 37 AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8033
SELECT DISTINCT 39 + + 2 + col0 DIV + col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT 39 + + 2 + col0 / + col0 FROM tab1 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + col1 col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8035
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - col1 - + 50 FROM tab2
----
-101
-117
-127

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 3 * col2 IS NULL
----

query I rowsort
SELECT ALL - 32 - + ( - col0 ) AS col0 FROM tab1
----
19
53
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8039
SELECT DISTINCT col1 + - col0 - - - CAST( 33 AS SIGNED ) - - + col1 AS col0 FROM tab2
----
23
26
57

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT col1 + - col0 - - - CAST ( 33 AS INTEGER ) - - + col1 AS col0 FROM tab2
----
23
26
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL - - COUNT( * ) FROM tab0 WHERE NULL NOT IN ( col0, 54 )
----
0

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL - - COUNT ( * ) FROM tab0 WHERE NULL NOT IN ( col0, 54 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + + 56 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8042
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) + + col1 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8042
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) ) + + col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT DISTINCT + + SUM( + 62 ) FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT + + SUM ( + 62 ) FROM tab0 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL - - ( + MIN( + col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - - ( + MIN ( + col0 ) ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL 11 * + col2 * - col0 AS col1 FROM tab1
----
-53856
-55165
-68068

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT 23 * MIN( - 4 ) FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-8046
SELECT 23 * MIN ( - 4 ) FROM tab2
----
-92

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 39 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL - 34 * COUNT( * ) FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL - 34 * COUNT ( * ) FROM tab1 AS cor0
----
-102

query II rowsort
SELECT - 99 AS col1, + col2 AS col2 FROM tab2 AS cor0
----
-99
23
-99
40
-99
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + col1 col2, + 60 FROM tab1 AS cor0
----
-196
60
-2209
60
-25
60

query II rowsort
SELECT ALL + + col1 AS col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL 11 * + SUM( ALL col2 ) AS col1 FROM tab2 AS cor0
----
1331

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL 11 * + SUM ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
1331

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 23 col0, col2 AS col2 FROM tab1 AS cor0
----
23
59
23
68
23
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT + - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8054
SELECT + - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8055
SELECT CAST( col1 AS SIGNED ) + + col2, col0 AS col2 FROM tab1
----
110
51
115
91
64
85

skipif mysql # not compatible
query II rowsort label-8055
SELECT CAST ( col1 AS INTEGER ) + + col2, col0 AS col2 FROM tab1
----
110
51
115
91
64
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT - MAX( col2 ) * 48 AS col2 FROM tab2
----
-2784

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT - MAX ( col2 ) * 48 AS col2 FROM tab2
----
-2784

query I rowsort
SELECT - + 69 FROM tab2 WHERE 4 IS NOT NULL
----
-69
-69
-69

query I rowsort
SELECT 99 + ( + col1 ) * + 41 AS col0 FROM tab1
----
2026
304
673

query I rowsort
SELECT DISTINCT - 85 AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
-85

query I rowsort
SELECT ( + - col2 ) * - + col2 * col0 + col1 AS col0 FROM tab0 AS cor0 WHERE col2 IN ( - col2 - + 25, + col1 )
----

query II rowsort
SELECT DISTINCT + + 7 + col0, col2 AS col1 FROM tab1 cor0
----
58
96
92
59
98
68

query I rowsort
SELECT DISTINCT - + 13 + - - 10 FROM tab2 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8063
SELECT ALL - 85 * + col2 + - 92, - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-5107
NULL
-5872
NULL
-8252
NULL

skipif mysql # not compatible
query II rowsort label-8063
SELECT ALL - 85 * + col2 + - 92, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-5107
NULL
-5872
NULL
-8252
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8064
SELECT * FROM tab0 WHERE - 8 >= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8064
SELECT * FROM tab0 WHERE - 8 >= + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT ALL MAX( - + col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL MAX ( - + col1 ) FROM tab2 cor0
----
-51

query I rowsort
SELECT + - col0 + - 44 AS col2 FROM tab2 AS cor0
----
-108
-119
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT 1 + - ( + SUM( ALL + col2 ) ) FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-8067
SELECT 1 + - ( + SUM ( ALL + col2 ) ) FROM tab1 AS cor0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT ALL - MIN( + + col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL - MIN ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT - - 70 + + COUNT( * ) FROM tab0 cor0
----
73

skipif mysql # not compatible
query I rowsort label-8069
SELECT - - 70 + + COUNT ( * ) FROM tab0 cor0
----
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - col1 ) + + + 58 + + 36 <> + + col0 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 17 + 23 + - col0 FROM tab1 AS cor0
----
-11
-45
-51

query I rowsort
SELECT + - 1 + - col0 AS col2 FROM tab0 AS cor0
----
-16
-88
-98

query I rowsort
SELECT - 78 * - - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-1092
-3666
-390

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 >= + col2 * ( - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT DISTINCT - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT ALL + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * + 3 col1 FROM tab1
----
264
264
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8080
SELECT ALL - CAST( + - 86 AS SIGNED ) FROM tab2
----
86
86
86

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL - CAST ( + - 86 AS INTEGER ) FROM tab2
----
86
86
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8081
SELECT COUNT( * ) * + COUNT( - col1 ) + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT COUNT ( * ) * + COUNT ( - col1 ) + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL < + - col1 )
----

query I rowsort
SELECT ALL - col2 * + col1 * col2 AS col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

query I rowsort
SELECT ALL - - 61 * + 96 AS col2 FROM tab0 AS cor0
----
5856
5856
5856

query I rowsort
SELECT + 94 AS col2 FROM tab2 cor0 WHERE NOT + 12 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 10 col2, 49 AS col1 FROM tab0 AS cor0
----
10
49
10
49
10
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL + + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL col0 * - col0 + - 69 AS col1 FROM tab0 cor0
----
-294
-7638
-9478

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT ALL - COUNT( * ) + MIN( - - 5 ) AS col2 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL - COUNT ( * ) + MIN ( - - 5 ) AS col2 FROM tab2
----
2

query I rowsort
SELECT 89 * - 56 FROM tab2
----
-4984
-4984
-4984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8092
SELECT ALL 42 + - CAST( - COUNT( * ) AS SIGNED ) + - - COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL 42 + - CAST ( - COUNT ( * ) AS INTEGER ) + - - COUNT ( * ) FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT DISTINCT MIN( DISTINCT - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT MIN ( DISTINCT - col0 ) FROM tab1
----
-91

query I rowsort
SELECT 37 * col0 AS col0 FROM tab1
----
1887
3145
3367

query I rowsort
SELECT + 88 + - 60 * - + ( 6 ) FROM tab2
----
448
448
448

query I rowsort
SELECT ALL 27 * - 74 AS col2 FROM tab2
----
-1998
-1998
-1998

onlyif mysql # DIV for integer division: 
query I rowsort label-8097
SELECT ALL + - col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL + - col0 / - col2 AS col1 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8098
SELECT DISTINCT + - 32 + + COUNT( * ) * + CAST( + - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT + - 32 + + COUNT ( * ) * + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-41

query I rowsort
SELECT ALL 39 + - - col2 + - col2 - + col1 + + 65 + - col2 * 58 FROM tab0
----
-2703
-497
-5639

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NOT 91 IS NOT NULL
----

query I rowsort
SELECT - col0 * + - col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8102
SELECT CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8102
SELECT CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL
0

query I rowsort
SELECT 5 * col2 + 91 * - + col0 FROM tab2 cor0
----
-4071
-5624
-6535

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + 72 col0 FROM tab1 AS cor0
----
3672
6120
6552

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + + col2 AND + 51 / - col1
----

query I rowsort
SELECT - col0 * + 41 AS col0 FROM tab1
----
-2091
-3485
-3731

onlyif mysql # aggregate syntax: 
query II rowsort label-8107
SELECT ALL + 3, COUNT( 99 ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-8107
SELECT ALL + 3, COUNT ( 99 ) AS col0 FROM tab2
----
3
3

query II rowsort
SELECT - 21, col0 FROM tab2
----
-21
46
-21
64
-21
75

query I rowsort
SELECT - + col0 FROM tab1 WHERE NOT ( - 58 * + col0 / - 57 * - col2 - 68 + col1 ) > col2
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 87 + + col2 - + col0 * - - col2 * col0 <= - col0 + - col1
----

query II rowsort
SELECT ALL + col2 AS col1, - 37 * - 61 * - col0 FROM tab1
----
59
-191845
68
-205387
96
-115107

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 < NULL
----

query II rowsort
SELECT ALL - - ( + 48 ) AS col2, - col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 + - - col2 * - 56 + - + col0 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8116
SELECT DISTINCT COUNT( * ) AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8116
SELECT DISTINCT COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8117
SELECT col0 * col1 DIV - 62 AS col2 FROM tab2
----
-37
-79
-81

skipif mysql # not compatible
query I rowsort label-8117
SELECT col0 * col1 / - 62 AS col2 FROM tab2
----
-37
-79
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT + SUM( DISTINCT + - ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8120
SELECT + SUM ( DISTINCT + - ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL + + 42 * + + col1 AS col0 FROM tab1 AS cor0
----
1974
210
588

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT ALL col1 DIV + col0 + 5 AS col1 FROM tab0 AS cor0
----
10
5
5

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL col1 / + col0 + 5 AS col1 FROM tab0 AS cor0
----
10
5
5

query I rowsort
SELECT - col2 * - + col2 * - 15 + + col1 + 51 FROM tab0 AS cor0
----
-1428
-146963
-33003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + + 43 col1 FROM tab2 AS cor0
----
114
114
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8125
SELECT DISTINCT + - 86 * - COUNT( * ) AS col0, 16 DIV 2 FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
258
8

skipif mysql # not compatible
query II rowsort label-8125
SELECT DISTINCT + - 86 * - COUNT ( * ) AS col0, 16 / 2 FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
258
8

query I rowsort
SELECT DISTINCT 51 + - col2 * - 47 AS col2 FROM tab1 AS cor0
----
2824
3247
4563

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT DISTINCT + MAX( col1 ) + - 87 * - COUNT( * ) FROM tab1
----
308

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT + MAX ( col1 ) + - 87 * - COUNT ( * ) FROM tab1
----
308

query I rowsort
SELECT ALL col2 * + col0 * + 41 FROM tab0
----
28905
35670
393723

query III rowsort
SELECT * FROM tab0 WHERE 57 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8130
SELECT ALL - - 39 DIV + COUNT( DISTINCT col1 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL - - 39 / + COUNT ( DISTINCT col1 ) FROM tab2 AS cor0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8131
SELECT - col1 DIV - 70 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8131
SELECT - col1 / - 70 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 - + 84 + - col1 FROM tab0
----
-84
-84
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8133
SELECT ALL + col2 * - - col1 + col2 DIV + col1 + + col1 FROM tab1 AS cor0
----
1364
311
3244

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL + col2 * - - col1 + col2 / + col1 + + col1 FROM tab1 AS cor0
----
1364
311
3244

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 89 * 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2, - col0 AS col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT MAX( col0 ) * 59 AS col2 FROM tab2 AS cor0
----
4425

skipif mysql # not compatible
query I rowsort label-8136
SELECT MAX ( col0 ) * 59 AS col2 FROM tab2 AS cor0
----
4425

query I rowsort
SELECT - 62 * - - 50 * + col2 FROM tab0 AS cor0
----
-145700
-306900
-31000

query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 / - col2 col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - col2 * 40 AS col1 FROM tab1 AS cor0
----
-2360
-2720
-3840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8141
SELECT DISTINCT COUNT( - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT COUNT ( - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col1 AND ( + col1 )
----

query I rowsort
SELECT DISTINCT col0 * + 92 * - - col1 AS col2 FROM tab2
----
215832
453376
462300

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT ALL COUNT( * ) * 8 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL COUNT ( * ) * 8 FROM tab2
----
24

query II rowsort
SELECT ALL 95 * + - 60, - col1 AS col2 FROM tab1
----
-5700
-14
-5700
-47
-5700
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8146
SELECT ALL * FROM tab1 WHERE NOT + ( + CAST( NULL AS SIGNED ) ) * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8146
SELECT ALL * FROM tab1 WHERE NOT + ( + CAST ( NULL AS INTEGER ) ) * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8147
SELECT + CAST( + MIN( DISTINCT - - col0 ) AS SIGNED ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8147
SELECT + CAST ( + MIN ( DISTINCT - - col0 ) AS INTEGER ) FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 = NULL
----

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-8150
SELECT DISTINCT + COUNT( * ) * + - AVG ( - 26 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 91 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT + COUNT ( * ) * + - AVG ( - 26 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 91 <= NULL
----
NULL

query I rowsort
SELECT ALL + + 74 + col2 * + col2 FROM tab2 AS cor0
----
1674
3438
603

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT ALL + ( - - ( - COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL + ( - - ( - COUNT ( * ) ) ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - col1 IS NULL
----

query I rowsort
SELECT ALL col2 * ( col1 ) FROM tab0 AS cor0 WHERE - col1 / + col2 IS NOT NULL
----
210
3807
99

query I rowsort
SELECT ALL + col2 + + 15 FROM tab2
----
38
55
73

query I rowsort
SELECT 89 - + col2 AS col0 FROM tab1
----
-7
21
30

query II rowsort
SELECT + col1 - col0 AS col2, col0 * - col1 AS col0 FROM tab2
----
-8
-5025
13
-4928
5
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT - SUM( DISTINCT + + col2 ) + - + 56 AS col0 FROM tab1 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8158
SELECT - SUM ( DISTINCT + + col2 ) + - + 56 AS col0 FROM tab1 cor0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT ALL SUM( - 64 ) FROM tab2 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL SUM ( - 64 ) FROM tab2 cor0
----
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 47 AS col0, + col1 col2 FROM tab1 AS cor0
----
-47
14
-47
47
-47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8161
SELECT - MIN( col2 ) * + + ( + - COUNT( * ) ) + - COUNT( * ), + COUNT( * ) col1 FROM tab0 AS cor0
----
27
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8161
SELECT - MIN ( col2 ) * + + ( + - COUNT ( * ) ) + - COUNT ( * ), + COUNT ( * ) col1 FROM tab0 AS cor0
----
27
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8162
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT DISTINCT ( + - COUNT( * ) ) * 90 AS col1 FROM tab0 cor0
----
-270

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT ( + - COUNT ( * ) ) * 90 AS col1 FROM tab0 cor0
----
-270

query I rowsort
SELECT + 36 * - - col0 * + col2 * + 7 FROM tab1 AS cor0
----
1233792
1263780
1559376

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT col1 DIV 7 * + + col2 FROM tab2 AS cor0
----
161
440
522

skipif mysql # not compatible
query I rowsort label-8165
SELECT col1 / 7 * + + col2 FROM tab2 AS cor0
----
161
440
522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 36 col2 FROM tab1 AS cor0
----
-1692
-180
-504

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 66 + 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT + COUNT( + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8168
SELECT + COUNT ( + col1 ) AS col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8169
SELECT DISTINCT - ( - col0 ) DIV + col2 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT - ( - col0 ) / + col2 FROM tab2
----
1
2

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 95 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8171
SELECT ALL CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col1 FROM tab0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL - - COUNT( * ) col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8173
SELECT ALL - - COUNT ( * ) col2 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8174
SELECT 18 DIV - CAST( + 7 AS SIGNED ), col2 + 88 AS col2 FROM tab0 WHERE 73 + col1 IS NOT NULL
----
-2
135
-2
187
-2
98

skipif mysql # not compatible
query II rowsort label-8174
SELECT 18 / - CAST ( + 7 AS INTEGER ), col2 + 88 AS col2 FROM tab0 WHERE 73 + col1 IS NOT NULL
----
-2
135
-2
187
-2
98

query II rowsort
SELECT col1 * + col1, col1 / - col0 FROM tab1 AS cor0 WHERE col2 < - 19
----

query I rowsort
SELECT DISTINCT + - 22 FROM tab0 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8177
SELECT - col1 + - 93 AS col2, col0 - CAST( col1 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
-144
45
-160
74
-170
63

skipif mysql # not compatible
query II rowsort label-8177
SELECT - col1 + - 93 AS col2, col0 - CAST ( col1 AS INTEGER ) / col1 FROM tab2 AS cor0
----
-144
45
-160
74
-170
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8178
SELECT + 3 + + CAST( + SUM( + col2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-8178
SELECT + 3 + + CAST ( + SUM ( + col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
226

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 81
----

query I rowsort
SELECT + 8 + + + 79 * - 9 FROM tab1 AS cor0
----
-703
-703
-703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8181
SELECT + CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + 4 AS col1 FROM tab0
----
-17
-77
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT DISTINCT - COUNT( - 89 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT - COUNT ( - 89 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL + COUNT( - + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL + COUNT ( - + col1 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT AVG ( DISTINCT col1 ) FROM tab0 WHERE NOT col0 + - - 61 NOT IN ( + col0, col1 * + + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8186
SELECT + COUNT( * ), 48 AS col1 FROM tab0
----
3
48

skipif mysql # not compatible
query II rowsort label-8186
SELECT + COUNT ( * ), 48 AS col1 FROM tab0
----
3
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT + SUM( ALL col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8187
SELECT + SUM ( ALL col0 ) FROM tab0
----
199

query I rowsort
SELECT ALL 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col0 FROM tab2
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT + COUNT( - ( + col2 ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8190
SELECT + COUNT ( - ( + col2 ) ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8191
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < ( + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8191
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < ( + CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT - CAST( - 15 AS SIGNED ) FROM tab2 cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-8192
SELECT - CAST ( - 15 AS INTEGER ) FROM tab2 cor0
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8193
SELECT DISTINCT - ( + CAST( + - CAST( + + 29 AS DECIMAL ) AS SIGNED ) ) * + - ( 9 ) AS col0 FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT - ( + CAST ( + - CAST ( + + 29 AS REAL ) AS INTEGER ) ) * + - ( 9 ) AS col0 FROM tab2 AS cor0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT ALL 27 * MIN( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
621

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL 27 * MIN ( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT + SUM( DISTINCT col1 ) * + + 86 FROM tab0 AS cor0
----
8858

skipif mysql # not compatible
query I rowsort label-8195
SELECT + SUM ( DISTINCT col1 ) * + + 86 FROM tab0 AS cor0
----
8858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - col0 col2 FROM tab1 AS cor0 WHERE NULL <= 81 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8197
SELECT + - col1 * - - ( CAST( + + 78 AS SIGNED ) ) * + 43 + - col0 + 38, 67 AS col1 FROM tab2 AS cor0
----
-171062
67
-224755
67
-258284
67

skipif mysql # not compatible
query II rowsort label-8197
SELECT + - col1 * - - ( CAST ( + + 78 AS INTEGER ) ) * + 43 + - col0 + 38, 67 AS col1 FROM tab2 AS cor0
----
-171062
67
-224755
67
-258284
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 * + 89 * - 55 col2 FROM tab0 cor0
----
34265
34265
34265

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT - + col1 + - col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8201
SELECT 20 DIV - col1 AS col0 FROM tab0
----
-20
0
0

skipif mysql # not compatible
query I rowsort label-8201
SELECT 20 / - col1 AS col0 FROM tab0
----
-20
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT + MIN( col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8202
SELECT + MIN ( col0 ) FROM tab2 AS cor0
----
46

query II rowsort
SELECT + col2 AS col0, + 98 FROM tab1 AS cor0
----
59
98
68
98
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8204
SELECT ALL - col2 * + ( - CAST( NULL AS SIGNED ) ) * + col2 - col2 + - col1 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-8204
SELECT ALL - col2 * + ( - CAST ( NULL AS INTEGER ) ) * + col2 - col2 + - col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8205
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) >= - - 81
----

skipif mysql # not compatible
query III rowsort label-8205
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= - - 81
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT DISTINCT + 4 * - COUNT( ALL + - CAST( - 78 AS SIGNED ) ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT + 4 * - COUNT ( ALL + - CAST ( - 78 AS INTEGER ) ) FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT DISTINCT MAX( + 95 ) AS col1 FROM tab0 cor0
----
95

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT MAX ( + 95 ) AS col1 FROM tab0 cor0
----
95

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 * - 70 + - col0 * + 55 + + col2 > - col1 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 39 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT ALL + COUNT( - - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL + COUNT ( - - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8211
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - + col2 NOT BETWEEN NULL AND - col0 + - CAST( NULL AS SIGNED ) + - - CAST( + - 60 AS DECIMAL ) + ( + 39 )
----

skipif mysql # not compatible
query III rowsort label-8211
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - + col2 NOT BETWEEN NULL AND - col0 + - CAST ( NULL AS INTEGER ) + - - CAST ( + - 60 AS REAL ) + ( + 39 )
----

query II rowsort
SELECT + col1 AS col0, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT - col0 + + - 26 FROM tab2 AS cor0
----
-101
-72
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT ALL + SUM( col0 ) + + 7 AS col1 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL + SUM ( col0 ) + + 7 AS col1 FROM tab2 AS cor0
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8215
SELECT - col0 - - - CAST( - col0 AS SIGNED ) * 30 FROM tab2 AS cor0
----
1334
1856
2175

skipif mysql # not compatible
query I rowsort label-8215
SELECT - col0 - - - CAST ( - col0 AS INTEGER ) * 30 FROM tab2 AS cor0
----
1334
1856
2175

query I rowsort
SELECT ALL col0 * col1 - + 81 FROM tab0
----
1134
16
1746

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT ALL + col1 DIV ( - - 63 ) + + 71 + col1 FROM tab1
----
118
76
85

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + col1 / ( - - 63 ) + + 71 + col1 FROM tab1
----
118
76
85

query I rowsort
SELECT ALL + col2 + - + ( + col2 ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col1 * - col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT DISTINCT - + ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT - + ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 + - + col1 + - + 64 AND + - 13 * col2 + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8222
SELECT - COUNT( DISTINCT - ( - - col2 ) ) col1, 86 FROM tab2
----
-3
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8222
SELECT - COUNT ( DISTINCT - ( - - col2 ) ) col1, 86 FROM tab2
----
-3
86

query II rowsort
SELECT DISTINCT - col2 AS col2, + ( - 0 ) FROM tab2
----
-23
0
-40
0
-58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT MIN( DISTINCT col0 ) col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8224
SELECT MIN ( DISTINCT col0 ) col1 FROM tab2 cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT ALL - COUNT( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL - COUNT ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL < + ( 69 )
----

query II rowsort
SELECT col1 * - - col1, col1 FROM tab2
----
2601
51
4489
67
5929
77

query I rowsort
SELECT DISTINCT - ( - 55 ) FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT COUNT( * ) + - MAX( DISTINCT + col1 ) AS col2 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-8231
SELECT COUNT ( * ) + - MAX ( DISTINCT + col1 ) AS col2 FROM tab2
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 33 + + + 99 col1, 17 col2 FROM tab0
----
132
17
132
17
132
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT ALL - + col2 * 37 DIV col2 AS col2 FROM tab1 WHERE NOT + - 60 = ( + - col0 )
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL - + col2 * 37 / col2 AS col2 FROM tab1 WHERE NOT + - 60 = ( + - col0 )
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT 51 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT 51 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 18 AS col0 FROM tab1
----
18

query I rowsort
SELECT - col0 + col1 FROM tab2 WHERE NOT NULL < - col1
----

query I rowsort
SELECT 51 + + 24 AS col2 FROM tab2
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 37 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8240
SELECT + CAST( - MAX( col1 ) AS SIGNED ) DIV - + COUNT( * ) FROM tab2 cor0
----
25

skipif mysql # not compatible
query I rowsort label-8240
SELECT + CAST ( - MAX ( col1 ) AS INTEGER ) / - + COUNT ( * ) FROM tab2 cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT + + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8241
SELECT + + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT - + MAX( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8242
SELECT - + MAX ( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL SUM( DISTINCT - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL SUM ( DISTINCT - col0 ) FROM tab0
----
-199

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + col2 * - + col0 AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT + - ( - 97 ) + + - col0 DIV 96 FROM tab2 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-8246
SELECT + - ( - 97 ) + + - col0 / 96 FROM tab2 AS cor0
----
97
97
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 95 * + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 83 + + ( 48 ) FROM tab2 cor0
----
131
131
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT - - COUNT( * ) + + 36 * + 4 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-8249
SELECT - - COUNT ( * ) + + 36 * + 4 FROM tab1 AS cor0
----
147

query I rowsort
SELECT + 91 + 75 AS col0 FROM tab2 AS cor0
----
166
166
166

query I rowsort
SELECT ALL + col0 * + + col2 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL + - 88 + col0 FROM tab1 AS cor0
----
-3
-37
3

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT - ( col1 ) IS NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8254
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col0 * - col2 + - col1 AS col1 FROM tab2 AS cor0
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL col1 + - 54 AS col1 FROM tab2
----
-3
13
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + 81 ), - col1 col1 FROM tab2 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 <= ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT MAX( - + 13 ) col1 FROM tab1 WHERE - col2 <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8260
SELECT MAX ( - + 13 ) col1 FROM tab1 WHERE - col2 <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - 6 col2 FROM tab1
----
354
408
576

query II rowsort
SELECT DISTINCT col0, 97 FROM tab2
----
46
97
64
97
75
97

query II rowsort
SELECT 14, + col0 AS col2 FROM tab2
----
14
46
14
64
14
75

query II rowsort
SELECT col2, ( + - col1 ) AS col0 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT - - ( - + COUNT( * ) ) FROM tab1 WHERE NULL >= col2
----
0

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT - - ( - + COUNT ( * ) ) FROM tab1 WHERE NULL >= col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT 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-8266
SELECT MAX ( - col0 ) col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - + 29 AS col2 FROM tab2 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 98 col1 FROM tab1 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT COUNT( ALL + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8269
SELECT COUNT ( ALL + col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL ( + ( col2 ) ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - col1 * - col0 NOT BETWEEN - + 54 / + 46 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT MAX( ALL + ( - 52 ) ) - - SUM( ALL col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
143

skipif mysql # not compatible
query I rowsort label-8272
SELECT MAX ( ALL + ( - 52 ) ) - - SUM ( ALL col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
143

query I rowsort
SELECT ALL - - ( + col2 ) * col2 * + 8 AS col1 FROM tab1 AS cor0
----
27848
36992
73728

query I rowsort
SELECT - 53 * 43 AS col1 FROM tab1 WHERE col2 * - col1 - + 43 <= + col1 + + col1
----
-2279
-2279
-2279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8275
SELECT CAST( - COUNT( * ) AS SIGNED ) * + COUNT( 52 ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8275
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( 52 ) AS col0 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT 13 * + + COUNT( * ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-8276
SELECT 13 * + + COUNT ( * ) FROM tab0
----
39

query I rowsort
SELECT ALL - 62 * - col1 FROM tab1
----
2914
310
868

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT IN ( col2 + - col0 )
----

query II rowsort
SELECT col0 AS col2, + 94 - - + col0 FROM tab2
----
46
140
64
158
75
169

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT - 70 + + + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE col0 * - col0 IS NULL
----
-70

skipif mysql # not compatible
query I rowsort label-8280
SELECT - 70 + + + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 * - col0 IS NULL
----
-70

query I rowsort
SELECT - + col2 + col0 * col1 * - - col2 FROM tab1 AS cor0
----
25016
290768
68448

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + 24 * + COUNT( col0 ) AS col0 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-8283
SELECT + 24 * + COUNT ( col0 ) AS col0 FROM tab0
----
72

query I rowsort
SELECT ALL - 99 * + col2 FROM tab0
----
-4653
-9801
-990

query I rowsort
SELECT DISTINCT - ( col0 ) * 55 AS col1 FROM tab2
----
-2530
-3520
-4125

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT + ( col2 ) + + col2 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8287
SELECT - MAX( - 30 ) DIV COUNT( * ) + 91 * 8 FROM tab1 WHERE NOT NULL IS NOT NULL
----
738

skipif mysql # not compatible
query I rowsort label-8287
SELECT - MAX ( - 30 ) / COUNT ( * ) + 91 * 8 FROM tab1 WHERE NOT NULL IS NOT NULL
----
738

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8288
SELECT * FROM tab0 WHERE + col0 IN ( col2 - col2 / CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8288
SELECT * FROM tab0 WHERE + col0 IN ( col2 - col2 / CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT col1 * + 43 AS col1 FROM tab1
----
2021
215
602

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT ALL - ( ( + 49 ) ) DIV + ( 86 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL - ( ( + 49 ) ) / + ( 86 ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT 1 * COUNT( * ) AS col2 FROM tab0 WHERE NOT 41 BETWEEN ( NULL ) AND ( + col1 )
----
2

skipif mysql # not compatible
query I rowsort label-8291
SELECT 1 * COUNT ( * ) AS col2 FROM tab0 WHERE NOT 41 BETWEEN ( NULL ) AND ( + col1 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8292
SELECT ALL * FROM tab2 WHERE NOT - ( 20 ) >= CAST( - 4 AS SIGNED ) * 62
----

skipif mysql # not compatible
query III rowsort label-8292
SELECT ALL * FROM tab2 WHERE NOT - ( 20 ) >= CAST ( - 4 AS INTEGER ) * 62
----

query I rowsort
SELECT DISTINCT 28 - 8 AS col0 FROM tab0
----
20

query I rowsort
SELECT ALL 93 AS col2 FROM tab1 WHERE NULL NOT BETWEEN - 41 * - 39 AND + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8295
SELECT - COUNT( * ) DIV 25 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8295
SELECT - COUNT ( * ) / 25 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * col1 - + 30 FROM tab0
----
-1245
-127
-1857

onlyif mysql # DIV for integer division: 
query I rowsort label-8298
SELECT + 24 DIV col1 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8298
SELECT + 24 / col1 FROM tab1
----
0
1
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8299
SELECT * FROM tab1 WHERE NOT NULL < - CAST( col1 AS SIGNED ) * + col0
----

skipif mysql # not compatible
query III rowsort label-8299
SELECT * FROM tab1 WHERE NOT NULL < - CAST ( col1 AS INTEGER ) * + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8300
SELECT + CAST( - 47 AS SIGNED ) DIV col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8300
SELECT + CAST ( - 47 AS INTEGER ) / col2 FROM tab2
----
-1
-2
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8301
SELECT DISTINCT + COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE + col0 * col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT + COUNT ( * ) * - CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE + col0 * col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 42 + 5 AS col2 FROM tab1
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT ALL + 6 * CAST( 89 * - 49 AS SIGNED ) + + col2 AS col0 FROM tab0
----
-26067
-26119
-26156

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL + 6 * CAST ( 89 * - 49 AS INTEGER ) + + col2 AS col0 FROM tab0
----
-26067
-26119
-26156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8304
SELECT DISTINCT * FROM tab0 WHERE ( - col0 * CAST( NULL AS SIGNED ) + + col2 / col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8304
SELECT DISTINCT * FROM tab0 WHERE ( - col0 * CAST ( NULL AS INTEGER ) + + col2 / col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * - col0 + + col2 FROM tab0
----
1262
1837
196

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 46 * - col2 NOT BETWEEN ( + ( ( - 15 ) ) + - col1 ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL MIN( - 29 ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL MIN ( - 29 ) FROM tab1
----
-29

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IN ( ( + 77 ) * + 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE col0 >= col1
----
75
67
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND col2
----

query I rowsort
SELECT 7 FROM tab0 AS cor0 WHERE NOT ( 19 * + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8312
SELECT + MIN( DISTINCT 62 ) * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8312
SELECT + MIN ( DISTINCT 62 ) * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8313
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8313
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 / + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
65

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( - col2 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 31 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8320
SELECT ALL col1 FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) * - col2 + + col2 < + 47
----

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL col1 FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) * - col2 + + col2 < + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT + - ( COUNT( DISTINCT - 73 ) ) col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8321
SELECT + - ( COUNT ( DISTINCT - 73 ) ) col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - AVG ( ALL col0 ) - 82 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT + + COUNT( ALL 73 ) * COUNT( * ) + + MIN( col1 ) * 62 FROM tab1 AS cor0
----
319

skipif mysql # not compatible
query I rowsort label-8323
SELECT + + COUNT ( ALL 73 ) * COUNT ( * ) + + MIN ( col1 ) * 62 FROM tab1 AS cor0
----
319

query I rowsort
SELECT DISTINCT - col1 * 81 AS col0 FROM tab0 AS cor0
----
-1701
-6561
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8325
SELECT ALL + CAST( 53 AS SIGNED ) col2 FROM tab0 AS cor0 WHERE ( col1 * col0 + col1 ) < col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8325
SELECT ALL + CAST ( 53 AS INTEGER ) col2 FROM tab0 AS cor0 WHERE ( col1 * col0 + col1 ) < col0
----

query I rowsort
SELECT + + col0 + + 88 AS col1 FROM tab1 cor0
----
139
173
179

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( - col0 ) / col0 ) NOT BETWEEN - col0 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 44 * col0 + + col0 ) IS NULL
----

query I rowsort
SELECT 92 + - col2 + - col1 FROM tab1
----
-18
-23
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8330
SELECT ALL - COUNT( * ) DIV 39 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL - COUNT ( * ) / 39 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT DISTINCT + col1 * - col2 + + col2 FROM tab1
----
-1248
-236
-3128

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8333
SELECT DISTINCT * FROM tab0 WHERE NULL < CAST( NULL AS SIGNED ) OR ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8333
SELECT DISTINCT * FROM tab0 WHERE NULL < CAST ( NULL AS INTEGER ) OR ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) BETWEEN - 80 * + col2 AND ( col2 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab2 WHERE NOT ( NULL ) <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT - MIN( 52 ) * + 80 AS col2 FROM tab0 WHERE NULL IS NULL
----
-4160

skipif mysql # not compatible
query I rowsort label-8336
SELECT - MIN ( 52 ) * + 80 AS col2 FROM tab0 WHERE NULL IS NULL
----
-4160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8337
SELECT ALL CAST( + 54 AS SIGNED ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL CAST ( + 54 AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 78 <= ( col0 * col2 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - 3 FROM tab1 AS cor0
----
-141
-15
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8340
SELECT ALL + + 49 + + COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL + + 49 + + COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT + COUNT( * ) - - 65 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
74

skipif mysql # not compatible
query I rowsort label-8341
SELECT + COUNT ( * ) - - 65 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
74

query IIIIII rowsort
SELECT ALL * FROM ( tab2 cor0 CROSS JOIN tab2 cor1 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 15 <> NULL
----

query I rowsort
SELECT 13 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT - COUNT( * ) + 87 AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8345
SELECT - COUNT ( * ) + 87 AS col0 FROM tab0 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8346
SELECT * FROM tab2 AS cor0 WHERE CAST( - col2 AS SIGNED ) + + 2 * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8346
SELECT * FROM tab2 AS cor0 WHERE CAST ( - col2 AS INTEGER ) + + 2 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab1 AS cor0
----
95

query II rowsort
SELECT DISTINCT + 64, + col1 AS col2 FROM tab0 AS cor0
----
64
1
64
21
64
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 ) BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8351
SELECT DISTINCT CAST( + MAX( - 68 ) AS SIGNED ) FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT CAST ( + MAX ( - 68 ) AS INTEGER ) FROM tab2
----
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-8352
SELECT ALL 24 DIV - col0, col0 AS col2 FROM tab0
----
-1
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-8352
SELECT ALL 24 / - col0, col0 AS col2 FROM tab0
----
-1
15
0
87
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT ALL COUNT( ALL - ( - 24 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL COUNT ( ALL - ( - 24 ) ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8354
SELECT ALL * FROM tab2 WHERE NOT + - 87 + 7 + CAST( NULL AS SIGNED ) < + col1 + ( 61 )
----

skipif mysql # not compatible
query III rowsort label-8354
SELECT ALL * FROM tab2 WHERE NOT + - 87 + 7 + CAST ( NULL AS INTEGER ) < + col1 + ( 61 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8355
SELECT DISTINCT col1 DIV 15, + col1 AS col1 FROM tab2
----
3
51
4
67
5
77

skipif mysql # not compatible
query II rowsort label-8355
SELECT DISTINCT col1 / 15, + col1 AS col1 FROM tab2
----
3
51
4
67
5
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8356
SELECT - SUM( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + ( ( + col0 ) ) * - + 3 FROM tab2 AS cor0
----
-138
-192
-225

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col0 * 47 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT ALL + MIN( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col1 ) * - col1 + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL + MIN ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col1 ) * - col1 + col2 AND NULL
----
NULL

query I rowsort
SELECT col1 + 63 * col2 - + 94 AS col1 FROM tab2
----
1406
2503
3627

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT DISTINCT + MIN( + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT + MIN ( + col0 ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT + - col2 + + + 72 FROM tab0 AS cor0
----
-27
25
62

query I rowsort
SELECT DISTINCT col2 * + col2 FROM tab1 AS cor0 WHERE NOT col0 * + 3 - - col2 NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 70 < ( - col0 )
----

query I rowsort
SELECT DISTINCT + col1 + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT ALL - - 57 + + - 89 + + col2 DIV - 76 + + + col0 AS col2 FROM tab2 AS cor0
----
14
32
43

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL - - 57 + + - 89 + + col2 / - 76 + + + col0 AS col2 FROM tab2 AS cor0
----
14
32
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + ( - - col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8368
SELECT DISTINCT - col1 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT - col1 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT DISTINCT + + SUM( DISTINCT - - col1 ) AS col2 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT + + SUM ( DISTINCT - - col1 ) AS col2 FROM tab0 cor0
----
103

query I rowsort
SELECT DISTINCT 31 + col2 FROM tab0
----
130
41
78

query II rowsort
SELECT 42 AS col2, 91 AS col2 FROM tab1
----
42
91
42
91
42
91

query II rowsort
SELECT ALL + col2, col1 AS col0 FROM tab2
----
23
51
40
77
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab2 WHERE - - col1 = 72
----

query I rowsort
SELECT 55 * + col0 - - 72 FROM tab2
----
2602
3592
4197

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 90 BETWEEN + + col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 + - col1 + + + col2 + + col1 col0 FROM tab1
----
29
38
66

query I rowsort
SELECT DISTINCT + col1 - - - col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8378
SELECT CAST( NULL AS SIGNED ) + - 96 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT CAST ( NULL AS INTEGER ) + - 96 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL - MIN( col0 ) AS col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL - MIN ( col0 ) AS col0 FROM tab2 cor0
----
-46

query I rowsort
SELECT DISTINCT + - col1 + - 88 AS col2 FROM tab0 AS cor0
----
-109
-169
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8381
SELECT * FROM tab2 AS cor0 WHERE 73 NOT IN ( + CAST( NULL AS DECIMAL ) + - 74 + col1 )
----

skipif mysql # not compatible
query III rowsort label-8381
SELECT * FROM tab2 AS cor0 WHERE 73 NOT IN ( + CAST ( NULL AS REAL ) + - 74 + col1 )
----

query I rowsort
SELECT ALL - col0 + + - 84 * + col0 AS col0 FROM tab2 AS cor0
----
-3910
-5440
-6375

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE - 34 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT 73 FROM tab0 AS cor0 WHERE NOT ( 41 ) BETWEEN - 26 AND NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT col0 <> - - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 68 < 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 40 IN ( ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + + 9 ) * col2 AS col0 FROM tab1
----
531
612
864

query II rowsort
SELECT col1 * + col1 * + + col2, + col2 FROM tab2
----
237160
40
260362
58
59823
23

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - 14 * 21 / - - 47, 87 * + + 88 + - 39 + 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8393
SELECT CAST( NULL AS SIGNED ) * - - 86 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT CAST ( NULL AS INTEGER ) * - - 86 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 8 * col2 FROM tab2
----
184
320
464

query I rowsort
SELECT col2 * + 17 AS col1 FROM tab2
----
391
680
986

query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL SUM( - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL SUM ( - col1 ) AS col2 FROM tab0
----
-103

query I rowsort
SELECT ALL + col2 * + 94 + + col1 + - - col2 * - col1 AS col0 FROM tab0 AS cor0
----
692
751
9208

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 >= col1
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - col1 + col2 / + col2 * 36 + + - col2 + - ( - 24 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT DISTINCT - 88 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL ( - COUNT( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL ( - COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 + + 44 * - 82 col0 FROM tab1
----
-3596
-3596
-3596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8404
SELECT + + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8404
SELECT + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT + COUNT( * ) * - + 37 FROM tab0 AS cor0 WHERE ( NULL ) <= col0 / - 53
----
0

skipif mysql # not compatible
query I rowsort label-8405
SELECT + COUNT ( * ) * - + 37 FROM tab0 AS cor0 WHERE ( NULL ) <= col0 / - 53
----
0

query II rowsort
SELECT DISTINCT - + col2 * + - col2, - 49 AS col1 FROM tab1 AS cor0
----
3481
-49
4624
-49
9216
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT - SUM( ALL + + col0 ) + + COUNT( * ) FROM tab0 cor0
----
-196

skipif mysql # not compatible
query I rowsort label-8407
SELECT - SUM ( ALL + + col0 ) + + COUNT ( * ) FROM tab0 cor0
----
-196

query I rowsort
SELECT DISTINCT + 72 + + col0 FROM tab0 AS cor0
----
159
169
87

query I rowsort
SELECT - col2 * - + col0 FROM tab2 AS cor0 WHERE 85 IS NULL
----

query I rowsort
SELECT + col2 + + 85 + - col2 AS col2 FROM tab0 AS cor0
----
85
85
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 - + col1 IS NOT NULL
----

query I rowsort
SELECT + col0 + 99 * + + 75 AS col1 FROM tab1 AS cor0
----
7476
7510
7516

query I rowsort
SELECT DISTINCT + col1 + - + col1 + + - 60 + - + 86 * col0 AS col1 FROM tab2 cor0
----
-4016
-5564
-6510

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL 13 - + + COUNT( * ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL 13 - + + COUNT ( * ) FROM tab1
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col2 FROM tab1 WHERE + - 38 IS NOT NULL
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 + - + col2 col0 FROM tab0
----
-40
12
49

query I rowsort
SELECT ALL col0 * + 94 FROM tab2
----
4324
6016
7050

query I rowsort
SELECT DISTINCT 14 * 36 FROM tab1
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT - - 67 * COUNT( * ) - + - 35 FROM tab2 AS cor0
----
236

skipif mysql # not compatible
query I rowsort label-8419
SELECT - - 67 * COUNT ( * ) - + - 35 FROM tab2 AS cor0
----
236

query II rowsort
SELECT ALL col2, + col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT - 8 AS col1 FROM tab2
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8422
SELECT 42 * + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8422
SELECT 42 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 66 + - ( - col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8424
SELECT MIN( col1 ), COUNT( * ) * + 59 AS col2 FROM tab1 AS cor0
----
5
177

skipif mysql # not compatible
query II rowsort label-8424
SELECT MIN ( col1 ), COUNT ( * ) * + 59 AS col2 FROM tab1 AS cor0
----
5
177

query I rowsort
SELECT + ( 13 ) AS col1 FROM tab2 cor0
----
13
13
13

query II rowsort
SELECT - col0 AS col1, + 34 AS col0 FROM tab1 AS cor0
----
-51
34
-85
34
-91
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT - - MAX( ALL - - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8427
SELECT - - MAX ( ALL - - col2 ) FROM tab0 AS cor0
----
99

query II rowsort
SELECT ALL + col0, + 51 FROM tab0 AS cor0
----
15
51
87
51
97
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT ALL CAST( + ( - col1 ) AS SIGNED ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL CAST ( + ( - col1 ) AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 BETWEEN NULL AND + - 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 16 * + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT 65 * - COUNT( * ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8432
SELECT 65 * - COUNT ( * ) AS col2 FROM tab2
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT + 52 DIV + - ( + - 99 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8433
SELECT + 52 / + - ( + - 99 ) FROM tab2
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT DISTINCT + 35 + + CAST( - + col1 AS SIGNED ) - + 15 FROM tab0 AS cor0
----
-1
-61
19

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT + 35 + + CAST ( - + col1 AS INTEGER ) - + 15 FROM tab0 AS cor0
----
-1
-61
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT - + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( - 69 * - + 92, col1 + + + 38, - - col2, ( + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8436
SELECT - + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( - 69 * - + 92, col1 + + + 38, - - col2, ( + col2 ) )
----
0

query II rowsort
SELECT - 47 * + - 65 + + 71, + 42 AS col2 FROM tab2
----
3126
42
3126
42
3126
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8438
SELECT 41 + - + col0 + - CAST( + - 95 AS SIGNED ) col2, - 1 FROM tab0
----
121
-1
39
-1
49
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8438
SELECT 41 + - + col0 + - CAST ( + - 95 AS INTEGER ) col2, - 1 FROM tab0
----
121
-1
39
-1
49
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT - ( COUNT( * ) ) * + SUM( DISTINCT col0 ) + - - 37 col0 FROM tab0 AS cor0
----
-560

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8439
SELECT - ( COUNT ( * ) ) * + SUM ( DISTINCT col0 ) + - - 37 col0 FROM tab0 AS cor0
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT + COUNT( * ) * 30 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8441
SELECT + COUNT ( * ) * 30 FROM tab1 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8442
SELECT DISTINCT 61 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT 61 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8443
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT + + 46 * + 18 * - COUNT( * ) * + - 52 AS col2 FROM tab1 AS cor0
----
129168

skipif mysql # not compatible
query I rowsort label-8444
SELECT + + 46 * + 18 * - COUNT ( * ) * + - 52 AS col2 FROM tab1 AS cor0
----
129168

onlyif mysql # DIV for integer division: 
query III rowsort label-8445
SELECT ALL col0 DIV - col0 + ( - col0 ) AS col1, - 46 col0, - - col2 FROM tab2
----
9 values hashing to 8236a12698b121c3207bff6b34c4cbf0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8445
SELECT ALL col0 / - col0 + ( - col0 ) AS col1, - 46 col0, - - col2 FROM tab2
----
9 values hashing to 8236a12698b121c3207bff6b34c4cbf0

query I rowsort
SELECT DISTINCT - col2 * col0 * + col1 + + 92 + + + col0 AS col0 FROM tab1
----
-24898
-290653
-68401

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8447
SELECT - col1 + + CAST( NULL AS SIGNED ) + + col1 / + + col1, col1 * - ( col0 ) * + - col0 AS col2 FROM tab0
----
NULL
158949
NULL
18225
NULL
9409

skipif mysql # not compatible
query II rowsort label-8447
SELECT - col1 + + CAST ( NULL AS INTEGER ) + + col1 / + + col1, col1 * - ( col0 ) * + - col0 AS col2 FROM tab0
----
NULL
158949
NULL
18225
NULL
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8448
SELECT DISTINCT - MAX( ALL - CAST( NULL AS SIGNED ) ) - 79 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) - 79 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col1 - - 34 AS col1 FROM tab0
----
115
35
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8450
SELECT - COUNT( DISTINCT col1 ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT - COUNT ( DISTINCT col1 ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 32 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT DISTINCT - + col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT - + col1 / + col1 AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - - 57 FROM tab2 cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col2 FROM tab1 AS cor0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8455
SELECT + CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8455
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + + 38 * - col1 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 77 * ( + col2 ) AS col0 FROM tab1 AS cor0
----
4543
5236
7392

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8458
SELECT - - col2, CAST( 74 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
74
68
74
96
74

skipif mysql # not compatible
query II rowsort label-8458
SELECT - - col2, CAST ( 74 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
74
68
74
96
74

query I rowsort
SELECT col2 * + - col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( - col1 ) * 7 * - col2 * - col2 AS col2 FROM tab1
----
121835
1521296
903168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8462
SELECT COUNT( * ) DIV - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8462
SELECT COUNT ( * ) / - COUNT ( * ) FROM tab0
----
-1

query I rowsort
SELECT - 40 * ( + - 99 ) AS col0 FROM tab1
----
3960
3960
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT DISTINCT + ( - MIN( + col2 ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT + ( - MIN ( + col2 ) ) AS col0 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL MAX( ALL - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL MAX ( ALL - col1 ) AS col2 FROM tab1
----
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * + ( - col1 ) BETWEEN col1 * + - 38 * col2 AND - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( + 10 ) * + - col2 AS col0 FROM tab1 AS cor0
----
-590
-680
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT - - SUM( ALL - + col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8470
SELECT - - SUM ( ALL - + col1 ) AS col2 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT DISTINCT - - col1 + + CAST( NULL AS SIGNED ) + + + 35 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT - - col1 + + CAST ( NULL AS INTEGER ) + + + 35 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8473
SELECT DISTINCT - ( - - COUNT( * ) ) + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8473
SELECT DISTINCT - ( - - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

query I rowsort
SELECT + 34 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8475
SELECT ( - CAST( - 87 AS SIGNED ) ) + 30 + - 52 * - - col2 - + 88 AS col1, col0 FROM tab1 cor0
----
-3039
85
-3507
91
-4963
51

skipif mysql # not compatible
query II rowsort label-8475
SELECT ( - CAST ( - 87 AS INTEGER ) ) + 30 + - 52 * - - col2 - + 88 AS col1, col0 FROM tab1 cor0
----
-3039
85
-3507
91
-4963
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT 74 - + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
74

skipif mysql # not compatible
query I rowsort label-8476
SELECT 74 - + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 51 * - 80 * - - 7 * + 42 * + col0 IS NULL
----

query II rowsort
SELECT + 14 + + col2 AS col1, col1 - + col2 AS col2 FROM tab2 AS cor0
----
37
28
54
37
72
9

onlyif mysql # DIV for integer division: 
query II rowsort label-8479
SELECT + col1 * + 17 AS col2, + col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
1377
-1
17
-1
357
-1

skipif mysql # not compatible
query II rowsort label-8479
SELECT + col1 * + 17 AS col2, + col0 / - col0 AS col2 FROM tab0 AS cor0
----
1377
-1
17
-1
357
-1

query I rowsort
SELECT ALL - 57 + + 57 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE 62 BETWEEN NULL AND - col1 + - 0
----

query III rowsort
SELECT * FROM tab1 WHERE + 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col2, + 13 FROM tab1
----
14
13
47
13
5
13

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( - 70 * + - col0 * + col0 * - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 47 col1, + 96 FROM tab2
----
47
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT DISTINCT - + ( + SUM( DISTINCT col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT - + ( + SUM ( DISTINCT col0 ) ) FROM tab0 AS cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 col1 FROM tab1
----
27
27
27

query I rowsort
SELECT + 26 AS col2 FROM tab1 cor0
----
26
26
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - ( + col0 ) ) * col1 + 36 AS col0 FROM tab1
----
-389
-4241
-678

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + + ( + 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT + + COUNT( - - col0 ) - + 66 FROM tab2 WHERE NOT + col0 * + + col2 * - col0 NOT BETWEEN + + col2 AND NULL
----
-66

skipif mysql # not compatible
query I rowsort label-8494
SELECT + + COUNT ( - - col0 ) - + 66 FROM tab2 WHERE NOT + col0 * + + col2 * - col0 NOT BETWEEN + + col2 AND NULL
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8495
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab2 WHERE col2 IS NOT NULL OR NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 WHERE col2 IS NOT NULL OR NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 30 AS col0, + ( col2 ) col2 FROM tab2
----
30
23
30
40
30
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL - SUM( + + col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL - SUM ( + + col1 ) AS col1 FROM tab0
----
-103

query I rowsort
SELECT col2 * - - ( col0 ) AS col0 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8499
SELECT CAST( NULL AS DECIMAL ) / + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT CAST ( NULL AS REAL ) / + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + + 25 ) FROM tab1 AS cor0
----
25

query II rowsort
SELECT ALL + 53 AS col0, - col1 AS col1 FROM tab0 cor0
----
53
-1
53
-21
53
-81

query II rowsort
SELECT DISTINCT col0 * - ( - - col2 ) + + - 50 AS col2, 57 FROM tab0
----
-755
57
-920
57
-9653
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT DISTINCT COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8504
SELECT ALL col1 + CAST( - col0 AS SIGNED ) FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL col1 + CAST ( - col0 AS INTEGER ) FROM tab2
----
-8
13
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8506
SELECT ALL - CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT - COUNT( 16 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - COUNT ( 16 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT DISTINCT - 69 - - - COUNT( * ) AS col2 FROM tab1 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT - 69 - - - COUNT ( * ) AS col2 FROM tab1 cor0
----
-72

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col2 - - + col1
----

query II rowsort
SELECT ALL - col0 AS col2, 45 FROM tab0 AS cor0
----
-15
45
-87
45
-97
45

query I rowsort
SELECT ALL + 49 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
49
49
49

query I rowsort
SELECT + col1 - 67 AS col1 FROM tab0 AS cor0
----
-46
-66
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 + col0 col2 FROM tab1 AS cor0 WHERE NOT col0 + + - ( col0 ) IS NULL
----
113
119
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 16 + col1 AND + - col0 + - ( - + ( col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8515
SELECT + 83 - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT + 83 - + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 * + col0 + + + col1 AS col2 FROM tab2 AS cor0
----
-1007
-2483
-4283

query I rowsort
SELECT - 20 - - 30 FROM tab1 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT col1 + + 85 + - col2 AS col2 FROM tab2
----
113
122
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL + COUNT( * ) + + MAX( DISTINCT - col0 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL + COUNT ( * ) + + MAX ( DISTINCT - col0 ) FROM tab2
----
-43

query II rowsort
SELECT col1 + col1 AS col1, - 67 FROM tab0
----
162
-67
2
-67
42
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8521
SELECT 69 + + + MIN( ALL + CAST( - col2 AS SIGNED ) ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-8521
SELECT 69 + + + MIN ( ALL + CAST ( - col2 AS INTEGER ) ) FROM tab1
----
-27

query I rowsort
SELECT 42 * col0 + - col2 FROM tab1
----
2046
3511
3754

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT DISTINCT 30 + + - COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT 30 + + - COUNT ( * ) FROM tab1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8524
SELECT ALL COUNT( * ) DIV 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL COUNT ( * ) / 99 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT MAX( + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8525
SELECT MAX ( + col0 ) AS col0 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT DISTINCT CAST( + + col0 AS SIGNED ) * - col0 * + 80 * - 82 FROM tab2 AS cor0
----
13880960
26869760
36900000

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) * - col0 * + 80 * - 82 FROM tab2 AS cor0
----
13880960
26869760
36900000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col2 FROM tab0 AS cor0 WHERE col2 * - col1 IS NULL
----

query I rowsort
SELECT ALL - - 84 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query II rowsort
SELECT DISTINCT col2 AS col1, + 24 FROM tab1
----
59
24
68
24
96
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + 16 col0 FROM tab1
----
-1360
-1456
-816

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT ALL + MIN( ALL + 58 ) AS col0 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL + MIN ( ALL + 58 ) AS col0 FROM tab1 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT ALL MIN( ALL 87 ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL MIN ( ALL 87 ) FROM tab1 AS cor0
----
87

query II rowsort
SELECT - + col2 AS col0, col2 * + col1 AS col2 FROM tab1 cor0
----
-59
295
-68
3196
-96
1344

query I rowsort
SELECT ALL + - col2 + + 96 AS col1 FROM tab2 AS cor0
----
38
56
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT ALL 36 DIV + + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL 36 / + + col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * col0 * - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + + 9 AS col1 FROM tab1
----
-50
-59
-87

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( col1 * col2 * - ( + + col2 ) * + + col1 + col2 / - col1 * + - col2 * col0 + 71 IS NULL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8541
SELECT ALL * FROM tab1 WHERE NOT + + col1 * - + col1 + - + CAST( NULL AS DECIMAL ) + - + col2 BETWEEN ( - col0 ) AND 40
----

skipif mysql # not compatible
query III rowsort label-8541
SELECT ALL * FROM tab1 WHERE NOT + + col1 * - + col1 + - + CAST ( NULL AS REAL ) + - + col2 BETWEEN ( - col0 ) AND 40
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8542
SELECT DISTINCT + col2 DIV + col2 AS col1, 61 FROM tab2
----
1
61

skipif mysql # not compatible
query II rowsort label-8542
SELECT DISTINCT + col2 / + col2 AS col1, 61 FROM tab2
----
1
61

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT ALL + 29 * + - MAX( col2 ) FROM tab0
----
-2871

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL + 29 * + - MAX ( col2 ) FROM tab0
----
-2871

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT ALL - COUNT( * ) + - 60 AS col1 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - COUNT ( * ) + - 60 AS col1 FROM tab1 AS cor0
----
-63

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 - - + 76 - + col0 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col2 * 11 + - col0 + col0 col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8548
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8548
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8549
SELECT - ( + 64 ) DIV - - 63 + + 45 FROM tab2 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-8549
SELECT - ( + 64 ) / - - 63 + + 45 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT col1 - + - col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT + 89 + - col0 + - col1 * col1 AS col2 FROM tab0 cor0
----
-439
-6487
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= 92 * - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT 14 + + MAX( ALL col1 ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8553
SELECT 14 + + MAX ( ALL col1 ) FROM tab2 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8554
SELECT + col0 + + col1 * - ( + col1 ) * - CAST( col2 AS SIGNED ), 41 AS col0 FROM tab0 AS cor0
----
196
41
308382
41
4497
41

skipif mysql # not compatible
query II rowsort label-8554
SELECT + col0 + + col1 * - ( + col1 ) * - CAST ( col2 AS INTEGER ), 41 AS col0 FROM tab0 AS cor0
----
196
41
308382
41
4497
41

query I rowsort
SELECT 15 + - + col0 AS col1 FROM tab1 AS cor0
----
-36
-70
-76

query I rowsort
SELECT - col1 * - 37 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0 * 30, + 67 + + col0 / + - 62 + + - col0 )
----

query II rowsort
SELECT - col1, - col1 * - - 87 FROM tab2 AS cor0 WHERE 33 NOT BETWEEN - col1 * + 10 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT DISTINCT 79 + + + MIN( - + col0 ) - - 21 AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT 79 + + + MIN ( - + col0 ) - - 21 AS col0 FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT ALL - 56 + - ( - col1 ) DIV col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-51
-56
-56

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL - 56 + - ( - col1 ) / col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-51
-56
-56

query I rowsort
SELECT + - col0 + - col2 FROM tab0 WHERE NOT + col2 NOT BETWEEN + col1 - - col0 - + 84 + - col0 / + - col0 * + 94 * - 24 * - + 77 AND NULL
----

query I rowsort
SELECT ALL + 41 AS col1 FROM tab0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT ALL MAX( + col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL MAX ( + col2 ) AS col2 FROM tab2
----
58

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT + COUNT( DISTINCT + 20 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8564
SELECT + COUNT ( DISTINCT + 20 ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col2 col0 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT + 96 AS col0, 85 AS col2 FROM tab1
----
96
85
96
85
96
85

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - - col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 25 AS col1, - 74 col1 FROM tab0
----
25
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8569
SELECT DISTINCT AVG ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT AVG ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 - 41 + - 35 / - col2 - + col1 + + col1 FROM tab0 WHERE - col2 IN ( - 17 * col1, col0 + col1, 21 * + - col0 + - col0 * - - col1 * + - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + 94
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8572
SELECT DISTINCT 17 AS col0, CAST( + MIN( - col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
-75

skipif mysql # not compatible
query II rowsort label-8572
SELECT DISTINCT 17 AS col0, CAST ( + MIN ( - col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT ALL MAX( + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL MAX ( + col2 ) FROM tab1 AS cor0
----
96

query II rowsort
SELECT + col1 AS col0, 23 AS col0 FROM tab0 AS cor0
----
1
23
21
23
81
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8575
SELECT - 38 AS col2, - COUNT( * ) FROM tab2 AS cor0
----
-38
-3

skipif mysql # not compatible
query II rowsort label-8575
SELECT - 38 AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
-38
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + 42 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT - - SUM( DISTINCT - 21 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-21

skipif mysql # not compatible
query I rowsort label-8577
SELECT - - SUM ( DISTINCT - 21 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-21

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + - + 16 - - 55 = + 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT 60 * - - ( - - COUNT( * ) ) FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-8579
SELECT 60 * - - ( - - COUNT ( * ) ) FROM tab2
----
180

query I rowsort
SELECT + col0 * ( - + 30 ) + 13 + 20 AS col0 FROM tab1
----
-1497
-2517
-2697

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= col1 + - - 99
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 82 = 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8583
SELECT - 84 / - col2 * CAST( NULL AS DECIMAL ) + + 79 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT - 84 / - col2 * CAST ( NULL AS REAL ) + + 79 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 BETWEEN NULL AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT + 4 + MIN( DISTINCT - ( - - ( + 43 ) ) ) * - 43 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
5551

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT + 4 + MIN ( DISTINCT - ( - - ( + 43 ) ) ) * - 43 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
5551

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 32 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8587
SELECT DISTINCT + + 92 + - COUNT( * ) DIV + MIN( - 66 ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT + + 92 + - COUNT ( * ) / + MIN ( - 66 ) FROM tab0 AS cor0
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8588
SELECT ALL + CAST( NULL AS DECIMAL ) + + - 48 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL + CAST ( NULL AS REAL ) + + - 48 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + - col1 / + + ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8590
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( + + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8590
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( + + col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT + ( + COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8591
SELECT + ( + COUNT ( * ) ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE + - 2 IS NULL
----

query I rowsort
SELECT ALL - 82 * + col0 + 52 FROM tab2
----
-3720
-5196
-6098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8594
SELECT ALL MIN( ALL - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL MIN ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT - 31 * - - COUNT( * ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-8595
SELECT - 31 * - - COUNT ( * ) FROM tab2
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 * - ( - 75 ) col2 FROM tab2
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT + 98 + - MAX( + col0 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8597
SELECT + 98 + - MAX ( + col0 ) AS col1 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT DISTINCT COUNT( ALL - - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT COUNT ( ALL - - col0 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT 82 + + COUNT( * ) col0 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8600
SELECT 82 + + COUNT ( * ) col0 FROM tab0 AS cor0
----
85

query I rowsort
SELECT ALL - + col2 * - - col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL 1 FROM tab1 AS cor0 WHERE NOT 35 NOT BETWEEN + col1 AND + 92
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT - MIN( - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT - MIN ( - col2 ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8604
SELECT + - COUNT( * ) * COUNT( + + col0 ) DIV - 13 + - - 29 AS col2 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8604
SELECT + - COUNT ( * ) * COUNT ( + + col0 ) / - 13 + - - 29 AS col2 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT - MAX( ALL + 27 ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-8606
SELECT - MAX ( ALL + 27 ) FROM tab0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT DISTINCT COUNT( * ) * + COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8607
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) col1 FROM tab2
----
9

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT ALL + MIN( + col1 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8609
SELECT ALL + MIN ( + col1 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT + 72 * col1, - col2 AS col2 FROM tab2 AS cor0
----
3672
-23
4824
-58
5544
-40

query I rowsort
SELECT - - col2 * + 95 * - col0 AS col0 FROM tab0 cor0
----
-66975
-82650
-912285

query I rowsort
SELECT + ( - - col0 ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8613
SELECT ALL + COUNT( + col2 ), + 24 * + + COUNT( ALL - + col0 ) AS col0 FROM tab0 AS cor0
----
3
72

skipif mysql # not compatible
query II rowsort label-8613
SELECT ALL + COUNT ( + col2 ), + 24 * + + COUNT ( ALL - + col0 ) AS col0 FROM tab0 AS cor0
----
3
72

query I rowsort
SELECT ALL - ( + + 58 ) FROM tab1
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT - COUNT( * ) FROM tab0, tab0 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8615
SELECT - COUNT ( * ) FROM tab0, tab0 AS cor0 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT + ( - 58 ) AS col0 FROM tab1
----
-58
-58
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 44 * - 44 <= NULL
----

query II rowsort
SELECT col1 AS col2, - col1 FROM tab1
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT - SUM( + - 50 ) FROM tab2, tab0 AS cor0
----
450

skipif mysql # not compatible
query I rowsort label-8619
SELECT - SUM ( + - 50 ) FROM tab2, tab0 AS cor0
----
450

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 70 + col2 < NULL
----

query I rowsort
SELECT DISTINCT + ( + + col2 ) AS col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT - 88 AS col0 FROM tab0 WHERE NOT - col1 NOT IN ( 29, CAST( NULL AS SIGNED ), + + col1 * + - 84 * + col2 * - + 26 / col1 + - + col0, col1, - 55 )
----

skipif mysql # not compatible
query I rowsort label-8622
SELECT - 88 AS col0 FROM tab0 WHERE NOT - col1 NOT IN ( 29, CAST ( NULL AS INTEGER ), + + col1 * + - 84 * + col2 * - + 26 / col1 + - + col0, col1, - 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT + ( + - ( - MAX( + 92 ) ) ) FROM tab0 cor0
----
92

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT + ( + - ( - MAX ( + 92 ) ) ) FROM tab0 cor0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 61 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT 81 + + - ( - - COUNT( * ) ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8625
SELECT 81 + + - ( - - COUNT ( * ) ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT AVG ( - + CAST( NULL AS SIGNED ) ) * - 59 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT AVG ( - + CAST ( NULL AS INTEGER ) ) * - 59 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8627
SELECT - 92 AS col1, + COUNT( * ) AS col0 FROM tab2
----
-92
3

skipif mysql # not compatible
query II rowsort label-8627
SELECT - 92 AS col1, + COUNT ( * ) AS col0 FROM tab2
----
-92
3

query II rowsort
SELECT ALL - col0, col1 FROM tab2
----
-46
51
-64
77
-75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col2 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 22 - col1 - 92 * + col0 * - col2 - + col2 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8631
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT - MAX( - - col1 ) * + COUNT( * ) * + 59 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT - MAX ( - - col1 ) * + COUNT ( * ) * + 59 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8633
SELECT ALL + AVG ( ALL - - 97 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL + AVG ( ALL - - 97 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT + COUNT( * ) + - 24 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT + COUNT ( * ) + - 24 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT ALL 53 + + col1 + + 19 * + + col0 + - + ( - col2 ) * - + col0 AS col0 FROM tab1 AS cor0
----
-3342
-3860
-4359

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT 60 + - MAX( - col0 ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-8636
SELECT 60 + - MAX ( - col0 ) FROM tab0
----
75

query II rowsort
SELECT DISTINCT 29 + - col0 + - col0, + 69 AS col0 FROM tab0
----
-1
69
-145
69
-165
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL COUNT( * ) + - COUNT( DISTINCT + - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT + - col0 ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE - - 48 * + col2 >= - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + ( - col2 ) * + col1 col1 FROM tab0
----
308367
4410
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8641
SELECT DISTINCT - ( 87 ) DIV MAX( - col1 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT - ( 87 ) / MAX ( - col1 ) AS col1 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT ALL + - 80 * + 2 + - col2 FROM tab1 AS cor0
----
-219
-228
-256

query I rowsort
SELECT + col1 * + + 26 AS col0 FROM tab1 AS cor0
----
1222
130
364

query I rowsort
SELECT ALL + col2 * + 38 FROM tab1 AS cor0
----
2242
2584
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ( COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8647
SELECT ( COUNT ( * ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT - + 38 * + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-342

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT - + 38 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-342

query I rowsort
SELECT - 88 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # DIV for integer division: 
query I rowsort label-8650
SELECT ALL - - 65 DIV - + col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL - - 65 / - + col0 FROM tab0 AS cor0
----
-4
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8651
SELECT DISTINCT - 72 AS col0, COUNT( * ) FROM tab2 AS cor0
----
-72
3

skipif mysql # not compatible
query II rowsort label-8651
SELECT DISTINCT - 72 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-72
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT DISTINCT ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL 64, col1 AS col2 FROM tab1 AS cor0
----
64
14
64
47
64
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - + 64 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8656
SELECT * FROM tab1 cor0 WHERE NOT 11 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8656
SELECT * FROM tab1 cor0 WHERE NOT 11 * + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT - + ( - COUNT( + + col1 ) ) * + - SUM( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-8657
SELECT - + ( - COUNT ( + + col1 ) ) * + - SUM ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
363

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 43 BETWEEN NULL AND 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8659
SELECT ALL + 52 * - 81 AS col2, - MIN( + col2 ) * - - MIN( DISTINCT col1 ) * - COUNT( * ) + - 58 * + + 92 AS col0 FROM tab2
----
-4212
-1817

skipif mysql # not compatible
query II rowsort label-8659
SELECT ALL + 52 * - 81 AS col2, - MIN ( + col2 ) * - - MIN ( DISTINCT col1 ) * - COUNT ( * ) + - 58 * + + 92 AS col0 FROM tab2
----
-4212
-1817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8660
SELECT ALL - CAST( - 31 AS SIGNED ) FROM tab0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - CAST ( - 31 AS INTEGER ) FROM tab0
----
31
31
31

query II rowsort
SELECT 30 * - col0 AS col1, - col1 AS col2 FROM tab2
----
-1380
-51
-1920
-77
-2250
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT ALL + COUNT( DISTINCT + - 28 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL + COUNT ( DISTINCT + - 28 ) AS col2 FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 22 * - 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8665
SELECT ALL + - COUNT( * ) DIV - + ( + 60 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL + - COUNT ( * ) / - + ( + 60 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT ALL SUM( ALL - + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL SUM ( ALL - + col0 ) FROM tab0
----
-199

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT 32 + 87 AS col0 FROM tab2
----
119
119
119

query I rowsort
SELECT DISTINCT + + 28 * + col1 AS col1 FROM tab0 AS cor0
----
2268
28
588

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8672
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - - CAST( - col1 AS SIGNED ) ) <> ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8672
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - - CAST ( - col1 AS INTEGER ) ) <> ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 56 * + col0 AS col1 FROM tab2 AS cor0
----
2576
3584
4200

query I rowsort
SELECT + - ( - - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8675
SELECT + col1 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) * 22 * + + CAST( + col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8675
SELECT + col1 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) * 22 * + + CAST ( + col2 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NULL = 19
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8677
SELECT ALL - + 12, - COUNT( DISTINCT + + col0 ) AS col1 FROM tab0 AS cor0
----
-12
-3

skipif mysql # not compatible
query II rowsort label-8677
SELECT ALL - + 12, - COUNT ( DISTINCT + + col0 ) AS col1 FROM tab0 AS cor0
----
-12
-3

query I rowsort
SELECT ALL col1 * - 80 * + col2 * - - 13 FROM tab2 AS cor0 WHERE - 68 IS NOT NULL
----
-1219920
-3203200
-4041440

query I rowsort
SELECT DISTINCT 17 + - col1 AS col0 FROM tab2 AS cor0
----
-34
-50
-60

query I rowsort
SELECT - 98 + + 92 FROM tab1 AS cor0 WHERE col1 * + col0 < NULL
----

query II rowsort
SELECT col1 AS col0, + 88 AS col2 FROM tab0
----
1
88
21
88
81
88

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 88 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 64 + + 82 FROM tab0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + 19 + - SUM( ALL col2 ) col0 FROM tab0
----
-137

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8684
SELECT + 19 + - SUM ( ALL col2 ) col0 FROM tab0
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT ALL - CAST( NULL AS SIGNED ) - 59 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL - CAST ( NULL AS INTEGER ) - 59 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8686
SELECT DISTINCT col0 DIV - 64 col0 FROM tab1
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8686
SELECT DISTINCT col0 / - 64 col0 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT + - col1 * + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8688
SELECT + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL - ( + 32 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT ALL - ( - 97 ) FROM tab2 cor0 WHERE NULL NOT IN ( - col2, 15 + - 83, 98 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8691
SELECT CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8691
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 96 AS col2 FROM tab2 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col0 FROM tab1 AS cor0 WHERE NOT NULL <= col2 * - 82 / col0
----

query I rowsort
SELECT + ( 61 ) * col2 FROM tab0 AS cor0
----
2867
6039
610

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT ALL 88 * ( + + 75 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6603

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL 88 * ( + + 75 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6603

query I rowsort
SELECT col2 * - - col2 * 46 AS col1 FROM tab1
----
160126
212704
423936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8697
SELECT MAX( ALL + ( - CAST( NULL AS SIGNED ) ) ) * + MIN( + 82 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT MAX ( ALL + ( - CAST ( NULL AS INTEGER ) ) ) * + MIN ( + 82 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8698
SELECT 21 AS col2, COUNT( * ) DIV + 46 FROM tab2
----
21
0

skipif mysql # not compatible
query II rowsort label-8698
SELECT 21 AS col2, COUNT ( * ) / + 46 FROM tab2
----
21
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8699
SELECT + 39, COUNT( * ) AS col2 FROM tab2
----
39
3

skipif mysql # not compatible
query II rowsort label-8699
SELECT + 39, COUNT ( * ) AS col2 FROM tab2
----
39
3

query II rowsort
SELECT ALL + + col0, + col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT col0 + + col2 + - 80 - + 16 - - + col0 FROM tab1 AS cor0
----
102
133
154

query II rowsort
SELECT DISTINCT + - 54 AS col1, col2 AS col0 FROM tab1 AS cor0
----
-54
59
-54
68
-54
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT - - MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8703
SELECT - - MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8704
SELECT - SUM( ALL + + CAST( + 40 AS SIGNED ) ) col2, - COUNT( * ) * 26 + - COUNT( * ) + + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-120
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8704
SELECT - SUM ( ALL + + CAST ( + 40 AS INTEGER ) ) col2, - COUNT ( * ) * 26 + - COUNT ( * ) + + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-120
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT ALL - COUNT( * ) + + 81 * + + SUM( DISTINCT + 79 ) AS col2 FROM tab0 AS cor0
----
6396

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL - COUNT ( * ) + + 81 * + + SUM ( DISTINCT + 79 ) AS col2 FROM tab0 AS cor0
----
6396

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT - MIN( + - 62 ) AS col0 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-8706
SELECT - MIN ( + - 62 ) AS col0 FROM tab0 AS cor0
----
62

query I rowsort
SELECT - - 27 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT 71 + col1 + 54 AS col0 FROM tab2 AS cor0
----
176
192
202

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2 + - col2 + + - col1
----

query II rowsort
SELECT DISTINCT ( - col0 ), col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT 86 + - SUM( ALL - col0 ) FROM tab2 AS cor0
----
271

skipif mysql # not compatible
query I rowsort label-8711
SELECT 86 + - SUM ( ALL - col0 ) FROM tab2 AS cor0
----
271

query I rowsort
SELECT - - 89 + col2 FROM tab1 cor0
----
148
157
185

query I rowsort
SELECT - 78 + col2 + col0 FROM tab2 cor0
----
-9
26
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8714
SELECT * FROM tab2 AS cor0 WHERE ( 99 / CAST( + col1 AS SIGNED ) ) >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8714
SELECT * FROM tab2 AS cor0 WHERE ( 99 / CAST ( + col1 AS INTEGER ) ) >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT DISTINCT + ( 90 ) + - COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT + ( 90 ) + - COUNT ( * ) FROM tab0
----
87

query I rowsort
SELECT DISTINCT + col2 - + 5 AS col0 FROM tab2
----
18
35
53

query I rowsort
SELECT ALL ( + col2 ) + - + col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT ( SUM( - col0 ) ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT ( SUM ( - col0 ) ) AS col1 FROM tab0
----
-199

query III rowsort
SELECT * FROM tab0 WHERE + 34 / ( col1 ) * - - col0 + + - col0 + col0 / - col1 + - 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL MAX( + 65 ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL MAX ( + 65 ) FROM tab2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT DISTINCT 29 DIV + col0 - + col0 FROM tab0
----
-14
-87
-97

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT 29 / + col0 - + col0 FROM tab0
----
-14
-87
-97

query I rowsort
SELECT col0 - + col1 * - - 74 FROM tab0 AS cor0
----
-1467
-5979
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT + ( - 40 ) * + MIN( - col1 ) + 13 FROM tab2 AS cor0
----
3093

skipif mysql # not compatible
query I rowsort label-8723
SELECT + ( - 40 ) * + MIN ( - col1 ) + 13 FROM tab2 AS cor0
----
3093

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL > + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 24 * - + col2 + + + col0 AS col2, + col0 - col1 col1 FROM tab2 AS cor0
----
-1317
8
-506
-5
-896
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT DISTINCT - COUNT( * ) * - SUM( + col0 ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT - COUNT ( * ) * - SUM ( + col0 ) FROM tab0
----
597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 10, col1 col2 FROM tab1
----
10
14
10
47
10
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT + COUNT( ALL col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8728
SELECT + COUNT ( ALL col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL - - MIN( - 38 ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL - - MIN ( - 38 ) FROM tab0 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-8730
SELECT DISTINCT + - 87, - COUNT( * ) col2 FROM tab2 AS cor0
----
-87
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8730
SELECT DISTINCT + - 87, - COUNT ( * ) col2 FROM tab2 AS cor0
----
-87
-3

query I rowsort
SELECT 32 * 35 * 2 FROM tab1 AS cor0
----
2240
2240
2240

query I rowsort
SELECT ALL + + col2 * 69 FROM tab0 AS cor0
----
3243
6831
690

query I rowsort
SELECT ALL col0 * + 10 - + col0 FROM tab2 AS cor0
----
414
576
675

query II rowsort
SELECT DISTINCT + + col0, - col1 FROM tab2 cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL + col2 * + + col1 * + col0 * col0 FROM tab2 cor0
----
12615680
21858750
2482068

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT DISTINCT 8 DIV + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT 8 / + col0 FROM tab1
----
0

query I rowsort
SELECT 38 * - + col2 * - col1 AS col1 FROM tab2
----
117040
147668
44574

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT ALL - ( + 39 ) * SUM( DISTINCT - 37 ) FROM tab0
----
1443

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL - ( + 39 ) * SUM ( DISTINCT - 37 ) FROM tab0
----
1443

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT ALL + + 68 * + + 23 * COUNT( * ) FROM tab0 AS cor0
----
4692

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL + + 68 * + + 23 * COUNT ( * ) FROM tab0 AS cor0
----
4692

onlyif mysql # aggregate syntax: 
query II rowsort label-8740
SELECT DISTINCT SUM( col2 ) AS col0, ( - MAX( DISTINCT 45 ) ) FROM tab2 AS cor0
----
121
-45

skipif mysql # not compatible
query II rowsort label-8740
SELECT DISTINCT SUM ( col2 ) AS col0, ( - MAX ( DISTINCT 45 ) ) FROM tab2 AS cor0
----
121
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT + + 37 + ( COUNT( + 34 ) ) AS col1 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT + + 37 + ( COUNT ( + 34 ) ) AS col1 FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT COUNT( * ) + - COUNT( - col1 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT COUNT ( * ) + - COUNT ( - col1 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT - - COUNT( * ) * + SUM( - - 77 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
6237

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT - - COUNT ( * ) * + SUM ( - - 77 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
6237

query II rowsort
SELECT ALL 87, 78 AS col2 FROM tab0
----
87
78
87
78
87
78

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * - - 8 FROM tab1 AS cor0
----
112
376
40

query I rowsort
SELECT ALL + 36 FROM tab1 AS cor0 WHERE NOT + ( + 69 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8748
SELECT ALL + CAST( NULL AS SIGNED ) * + - 46 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 46 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 78 * + - col0 + - col0 AS col1 FROM tab0 AS cor0
----
1155
6699
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT + 77 - 76 * - + ( + - COUNT( * ) ) FROM tab0 AS cor0
----
-151

skipif mysql # not compatible
query I rowsort label-8750
SELECT + 77 - 76 * - + ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
-151

query II rowsort
SELECT + 78 - - + col0, col0 FROM tab1
----
129
51
163
85
169
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( - col2 ) ) + + col0 + - col2 col0 FROM tab1
----
-141
-33
-45

query I rowsort
SELECT - col0 + + - 93 FROM tab2
----
-139
-157
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8754
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col0 FROM tab1
----
NULL

query I rowsort
SELECT + + col0 * + col2 + - 80 AS col0 FROM tab2 AS cor0
----
2480
4270
978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8756
SELECT - CAST( - 17 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif mysql # not compatible
query I rowsort label-8756
SELECT - CAST ( - 17 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT col0 DIV + 4 FROM tab2
----
11
16
18

skipif mysql # not compatible
query I rowsort label-8757
SELECT col0 / + 4 FROM tab2
----
11
16
18

query II rowsort
SELECT - col2 AS col0, - col0 AS col0 FROM tab0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT DISTINCT + MIN( DISTINCT - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT + MIN ( DISTINCT - col2 ) FROM tab1 cor0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8760
SELECT DISTINCT + 48 * - COUNT( * ) + COUNT( ALL CAST( - col2 AS SIGNED ) ) + - - 36 AS col2 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + 48 * - COUNT ( * ) + COUNT ( ALL CAST ( - col2 AS INTEGER ) ) + - - 36 AS col2 FROM tab2 AS cor0
----
-105

query I rowsort
SELECT ALL - 37 AS col2 FROM tab2 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT + 53 * - + MIN( ALL + + 60 ) * 77 AS col1 FROM tab2 AS cor0
----
-244860

skipif mysql # not compatible
query I rowsort label-8762
SELECT + 53 * - + MIN ( ALL + + 60 ) * 77 AS col1 FROM tab2 AS cor0
----
-244860

query I rowsort
SELECT DISTINCT col0 + ( - ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL ( - ( - + col2 ) ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8765
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2, + ( + 22 ) FROM tab1
----
NULL
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8765
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2, + ( + 22 ) FROM tab1
----
NULL
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8766
SELECT DISTINCT 46, MAX( DISTINCT - + col0 ) col0 FROM tab0 WHERE NOT 86 IS NOT NULL
----
46
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8766
SELECT DISTINCT 46, MAX ( DISTINCT - + col0 ) col0 FROM tab0 WHERE NOT 86 IS NOT NULL
----
46
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 * - - 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8768
SELECT ALL - col2 + + col1 DIV + col0 + - + 99 FROM tab0 AS cor0
----
-109
-141
-198

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL - col2 + + col1 / + col0 + - + 99 FROM tab0 AS cor0
----
-109
-141
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT - ( - SUM( col0 ) ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8769
SELECT - ( - SUM ( col0 ) ) AS col0 FROM tab1 AS cor0
----
227

query II rowsort
SELECT 47 AS col0, - 21 + + 21 FROM tab0 AS cor0
----
47
0
47
0
47
0

query I rowsort
SELECT ALL + ( col2 ) + + + col0 AS col1 FROM tab2 AS cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 * - - col1 col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT 93 DIV - ( + - col0 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8773
SELECT 93 / - ( + - col0 ) FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT + - MAX( ALL + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8774
SELECT + - MAX ( ALL + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT ALL + CAST( - - col1 AS SIGNED ) * - 3 * - - 59 FROM tab2
----
-11859
-13629
-9027

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + CAST ( - - col1 AS INTEGER ) * - 3 * - - 59 FROM tab2
----
-11859
-13629
-9027

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT DISTINCT COUNT( * ) * - - SUM( - + col0 ) AS col0 FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT COUNT ( * ) * - - SUM ( - + col0 ) AS col0 FROM tab1
----
-681

query I rowsort
SELECT 4 + + ( ( - col2 ) ) AS col1 FROM tab2
----
-19
-36
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8778
SELECT DISTINCT CAST( NULL AS DECIMAL ) - col0 + - 41 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT CAST ( NULL AS REAL ) - col0 + - 41 AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT + + col2 + + - 30 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8779
SELECT + + col2 + + - 30 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + + 99 + - - 93 FROM tab2 AS cor0
----
4647
6429
7518

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - 63 + + col1 AS col0, 61 AS col1 FROM tab1 cor0
----
-16
61
-49
61
-58
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL - ( + ( COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL - ( + ( COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT 85 FROM tab0 cor0 WHERE - ( + - col1 ) * - col2 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8785
SELECT 85 FROM tab0 cor0 WHERE - ( + - col1 ) * - col2 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 61 + + + 75 FROM tab2 cor0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8787
SELECT + 22 DIV COUNT( * ) * - 30 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-8787
SELECT + 22 / COUNT ( * ) * - 30 FROM tab1
----
-210

query I rowsort
SELECT ALL + col1 - - + 49 FROM tab0
----
130
50
70

query I rowsort
SELECT DISTINCT + 3 * - - col1 AS col1 FROM tab0
----
243
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT - MAX( + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8790
SELECT - MAX ( + col1 ) FROM tab0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 16 col1 FROM tab0 AS cor0
----
1296
16
336

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 31 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 88 AS col2 FROM tab0 cor0
----
88
88
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8795
SELECT col1 DIV + col2 + + col1 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8795
SELECT col1 / + col2 + + col1 AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT col2 * + col2 FROM tab0 WHERE NULL < 82
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 IN ( col0 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8798
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) * col1 > col2
----

skipif mysql # not compatible
query III rowsort label-8798
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) * col1 > col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( + col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT ALL + SUM( DISTINCT + col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL + SUM ( DISTINCT + col1 ) AS col1 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT 43 - - COUNT( * ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8801
SELECT 43 - - COUNT ( * ) AS col2 FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 * + col1 + col1 col2 FROM tab2
----
-4794
-6298
-7238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( AVG ( DISTINCT 30 ) ) col0 FROM tab0 WHERE NULL NOT IN ( + 20 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT COUNT( * ) AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-8804
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE 1 IN ( 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL COUNT( * ) * 24 col0 FROM tab0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8806
SELECT ALL COUNT ( * ) * 24 col0 FROM tab0
----
72

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + + 63 > ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT ALL MAX( DISTINCT - col2 ) col2 FROM tab0 WHERE ( - col1 ) + 80 >= - col1
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8808
SELECT ALL MAX ( DISTINCT - col2 ) col2 FROM tab0 WHERE ( - col1 ) + 80 >= - col1
----
-10

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col2 * + col2 + col2 * + ( + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT ALL + col2 AS col1 FROM tab2 WHERE - 81 >= - CAST( 87 AS SIGNED )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL + col2 AS col1 FROM tab2 WHERE - 81 >= - CAST ( 87 AS INTEGER )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT DISTINCT SUM( ALL 61 ) FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT SUM ( ALL 61 ) FROM tab1
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT ALL - COUNT( col0 ) * 93 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL - COUNT ( col0 ) * 93 FROM tab1
----
-279

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE ( NULL ) IN ( - ( - col1 ) + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT - ( SUM( col1 ) ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8814
SELECT - ( SUM ( col1 ) ) AS col2 FROM tab2
----
-195

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) <= ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT DISTINCT MAX( DISTINCT 93 ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT MAX ( DISTINCT 93 ) FROM tab2
----
93

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 > + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 43 FROM tab1 WHERE NOT col1 * col1 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT DISTINCT col1 + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT col1 + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 - col2 / 23 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8821
SELECT DISTINCT col0 * - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT col0 * - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8822
SELECT DISTINCT CAST( NULL AS DECIMAL ) * SUM( - 24 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT CAST ( NULL AS REAL ) * SUM ( - 24 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL + 91 * - MIN( ALL 2 ) col2 FROM tab0
----
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8824
SELECT ALL + 91 * - MIN ( ALL 2 ) col2 FROM tab0
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL COUNT( * ) * + COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8825
SELECT ALL COUNT ( * ) * + COUNT ( * ) col1 FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8826
SELECT ALL - COUNT( * ) - + CAST( NULL AS DECIMAL ) * + 15 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL - COUNT ( * ) - + CAST ( NULL AS REAL ) * + 15 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8827
SELECT DISTINCT ( + COUNT( * ) ) DIV + COUNT( * ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8827
SELECT DISTINCT ( + COUNT ( * ) ) / + COUNT ( * ) FROM tab1 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 - col0 col1 FROM tab0 AS cor0
----
-109
-119
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col2 FROM tab0 AS cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col1 FROM tab0 AS cor0 WHERE - 36 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT + + ( + 41 ) - MIN( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-8831
SELECT + + ( + 41 ) - MIN ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8832
SELECT ALL * FROM tab0 AS cor0 WHERE 92 + + col1 <> + col1 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8832
SELECT ALL * FROM tab0 AS cor0 WHERE 92 + + col1 <> + col1 / CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 15 FROM tab0 AS cor0 WHERE NOT - col1 * 79 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 4 AS col1 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8835
SELECT + COUNT( DISTINCT + 35 ) DIV + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8835
SELECT + COUNT ( DISTINCT + 35 ) / + COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8836
SELECT ( - SUM( DISTINCT + CAST( col1 AS SIGNED ) ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8836
SELECT ( - SUM ( DISTINCT + CAST ( col1 AS INTEGER ) ) ) FROM tab0
----
-103

query I rowsort
SELECT DISTINCT - col1 * + col2 * 35 AS col2 FROM tab2
----
-107800
-136010
-41055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8838
SELECT + MIN( - col0 ) DIV COUNT( * ) col1 FROM tab2
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8838
SELECT + MIN ( - col0 ) / COUNT ( * ) col1 FROM tab2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8839
SELECT DISTINCT col1 DIV ( 60 ) * 51 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT col1 / ( 60 ) * 51 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 93 * - col0 FROM tab2
----
-4278
-5952
-6975

onlyif mysql # DIV for integer division: 
query I rowsort label-8841
SELECT ALL ( - - col0 ) DIV col2 AS col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL ( - - col0 ) / col2 AS col0 FROM tab0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT DISTINCT ( + ( + COUNT( ALL col0 ) ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8842
SELECT DISTINCT ( + ( + COUNT ( ALL col0 ) ) ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL + MAX( + col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL + MAX ( + col1 ) AS col0 FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE NOT + ( - 39 ) BETWEEN + col2 AND ( + 17 )
----
14
47
5

query I rowsort
SELECT 32 AS col2 FROM tab2 WHERE NOT + 74 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= col2 * + col2 + 89
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8847
SELECT ALL CAST( NULL AS DECIMAL ) / - 86 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL CAST ( NULL AS REAL ) / - 86 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + 45 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT + COUNT( * ) + + 41 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
50

skipif mysql # not compatible
query I rowsort label-8849
SELECT + COUNT ( * ) + + 41 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
50

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 - col2 BETWEEN - col2 * - col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( 95 + + 7 * + col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col2 / + col1 * col0 + 70
----

query I rowsort
SELECT ALL + - ( + 22 ) * - 89 AS col0 FROM tab2 AS cor0
----
1958
1958
1958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8854
SELECT - CAST( 29 AS SIGNED ) FROM tab0 AS cor0
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-8854
SELECT - CAST ( 29 AS INTEGER ) FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT 89 * 64 + - MAX( ALL col1 ) AS col1 FROM tab2 AS cor0
----
5619

skipif mysql # not compatible
query I rowsort label-8855
SELECT 89 * 64 + - MAX ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
5619

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - - ( col0 ) - - col2 / + 39 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + - + 65 FROM tab0 AS cor0
----
-112
-164
-75

query I rowsort
SELECT + - col1 + col2 + - col0 FROM tab0 AS cor0
----
-49
-98
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND ( col1 * col0 )
----

query I rowsort
SELECT ALL ( + - col0 ) + + 80 * + col0 AS col0 FROM tab0 AS cor0
----
1185
6873
7663

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + col0 ) + + col1 * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + - col2 AS col1 FROM tab2
----
28
37
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 BETWEEN - col2 AND 90
----

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-8865
SELECT + 50 DIV - 97 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8865
SELECT + 50 / - 97 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8866
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + 5 * 31 - 39 AS col1 FROM tab0 AS cor0 WHERE 7 IS NOT NULL
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8868
SELECT col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND CAST( + ( CAST( - 96 AS SIGNED ) ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8868
SELECT col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND CAST ( + ( CAST ( - 96 AS INTEGER ) ) AS INTEGER )
----

query I rowsort
SELECT 17 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 - + col1 * + + col1 ) IS NULL
----

query II rowsort
SELECT + col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT DISTINCT + MIN( + 85 ) col1 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8873
SELECT DISTINCT + MIN ( + 85 ) col1 FROM tab1 AS cor0
----
85

query II rowsort
SELECT DISTINCT col0, col2 AS col0 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 11 > ( NULL )
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( col2 )
----

query II rowsort
SELECT ALL + 10, col2 AS col2 FROM tab2 AS cor0
----
10
23
10
40
10
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8878
SELECT ALL + CAST( NULL AS DECIMAL ) * - 23 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL + CAST ( NULL AS REAL ) * - 23 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + + col2 col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8881
SELECT COUNT( * ) - + + 94 AS col1 FROM tab0 WHERE NOT ( + CAST( col2 AS SIGNED ) ) IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-8881
SELECT COUNT ( * ) - + + 94 AS col1 FROM tab0 WHERE NOT ( + CAST ( col2 AS INTEGER ) ) IS NULL
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 - 93 * - col2 <> col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 - + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 48 * + 42 FROM tab2
----
2016
2016
2016

query I rowsort
SELECT 28 * 96 AS col2 FROM tab2
----
2688
2688
2688

query I rowsort
SELECT col2 * col2 * - ( col0 ) * + - col1 FROM tab1
----
1479425
19776848
6580224

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL + MAX( - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL + MAX ( - col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT 61 * + + 4 * - COUNT( col0 ) FROM tab0 AS cor0
----
-732

skipif mysql # not compatible
query I rowsort label-8888
SELECT 61 * + + 4 * - COUNT ( col0 ) FROM tab0 AS cor0
----
-732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8889
SELECT - CAST( + col0 AS SIGNED ) * 29 AS col1 FROM tab0 AS cor0
----
-2523
-2813
-435

skipif mysql # not compatible
query I rowsort label-8889
SELECT - CAST ( + col0 AS INTEGER ) * 29 AS col1 FROM tab0 AS cor0
----
-2523
-2813
-435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8890
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col0 - col2 IS NOT NULL OR NOT - col2 >= 1 + CAST( 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col0 - col2 IS NOT NULL OR NOT - col2 >= 1 + CAST ( 3 AS INTEGER )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8891
SELECT col2 FROM tab1 AS cor0 WHERE NOT 98 / + - col0 BETWEEN - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AND - + col2
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8891
SELECT col2 FROM tab1 AS cor0 WHERE NOT 98 / + - col0 BETWEEN - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AND - + col2
----
59
68
96

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT MIN( + col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT MIN ( + col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8894
SELECT - COUNT( ALL + + col1 ) AS col2, - AVG ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8894
SELECT - COUNT ( ALL + + col1 ) AS col2, - AVG ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
-3
NULL

query I rowsort
SELECT ALL col2 * - col0 * 19 + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT ALL + + 15 AS col0 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT ALL - - 36 * + col0 + 67 + + + col2 AS col2 FROM tab0 AS cor0
----
3209
3658
654

query I rowsort
SELECT - + 11 * + ( - 67 ) AS col2 FROM tab2 AS cor0
----
737
737
737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 AS cor0 WHERE NULL >= 28 / ( + col0 )
----

query I rowsort
SELECT - 95 * + col0 AS col0 FROM tab0 cor0
----
-1425
-8265
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col2 FROM tab2 AS cor0 WHERE - 63 + + + col0 > - col0 * + - 19 * - col0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8902
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) = - + col2
----

skipif mysql # not compatible
query III rowsort label-8902
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) = - + col2
----

query I rowsort
SELECT DISTINCT - - 73 * - 54 + - col1 + + col2 FROM tab0 cor0
----
-3844
-3953
-3976

query I rowsort
SELECT col1 - col2 - + col2 * 26 FROM tab1 WHERE NULL BETWEEN - 47 * col2 AND + 28
----

query I rowsort
SELECT DISTINCT - 99 + col2 * + - col0 AS col1 FROM tab0
----
-804
-969
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL 12 * - MIN( - col2 ) + + 15 FROM tab2
----
711

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL 12 * - MIN ( - col2 ) + + 15 FROM tab2
----
711

query I rowsort
SELECT col1 + - - col2 AS col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + 66 * + MIN( ALL ( 14 ) ) + - COUNT( * ) AS col2 FROM tab0
----
921

skipif mysql # not compatible
query I rowsort label-8908
SELECT + 66 * + MIN ( ALL ( 14 ) ) + - COUNT ( * ) AS col2 FROM tab0
----
921

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT DISTINCT - ( + + 99 ) * + MAX( ALL - ( + - 45 ) ) + - + 84 AS col1 FROM tab1
----
-4539

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT - ( + + 99 ) * + MAX ( ALL - ( + - 45 ) ) + - + 84 AS col1 FROM tab1
----
-4539

query I rowsort
SELECT - col1 + + - 6 FROM tab1
----
-11
-20
-53

query I rowsort
SELECT ALL col0 - + 19 + + + 36 FROM tab0
----
104
114
32

query I rowsort
SELECT ALL col0 + - - col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT + - ( - col0 ) DIV - col2 + - col0 FROM tab1 AS cor0
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-8913
SELECT + - ( - col0 ) / - col2 + - col0 FROM tab1 AS cor0
----
-51
-86
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT - MAX( ALL - - ( col0 ) ) * 19 + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( - 2 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8914
SELECT - MAX ( ALL - - ( col0 ) ) * 19 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( - 2 ) <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 69 col2, col2 AS col0 FROM tab0 AS cor0
----
-69
10
-69
47
-69
99

onlyif mysql # aggregate syntax: 
query III rowsort label-8916
SELECT ALL + SUM( ALL + 79 ), - 67 AS col2, + 97 + + + 96 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
711
-67
193

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8916
SELECT ALL + SUM ( ALL + 79 ), - 67 AS col2, + 97 + + + 96 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
711
-67
193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8917
SELECT ALL + + MAX( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL + + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8918
SELECT ALL + MAX( - col0 ), 10 * + COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL >= - col0
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8918
SELECT ALL + MAX ( - col0 ), 10 * + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL >= - col0
----
NULL
0

query I rowsort
SELECT DISTINCT - 67 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT DISTINCT + + ( + COUNT( + 10 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT + + ( + COUNT ( + 10 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 97 AS col1 FROM tab1 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT DISTINCT + 8 * + COUNT( ALL + + col2 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT + 8 * + COUNT ( ALL + + col2 ) FROM tab1 AS cor0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8923
SELECT ALL - + SUM( ALL CAST( + 58 AS SIGNED ) ) * - - 58 AS col2, 59 AS col0 FROM tab0 AS cor0
----
-10092
59

skipif mysql # not compatible
query II rowsort label-8923
SELECT ALL - + SUM ( ALL CAST ( + 58 AS INTEGER ) ) * - - 58 AS col2, 59 AS col0 FROM tab0 AS cor0
----
-10092
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT 0 * 20 * - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8924
SELECT 0 * 20 * - COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT DISTINCT - MIN( DISTINCT - col2 ) * COUNT( * ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT - MIN ( DISTINCT - col2 ) * COUNT ( * ) FROM tab2
----
174

query I rowsort
SELECT - 59 * col2 FROM tab0
----
-2773
-5841
-590

query I rowsort
SELECT DISTINCT col1 * 19 FROM tab1
----
266
893
95

query I rowsort
SELECT ALL + 97 * - 25 * - 0 AS col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 col1 FROM tab0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8930
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab2 WHERE - col2 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 WHERE - col2 + col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 WHERE ( NULL ) BETWEEN + col0 AND 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL ( + MAX( DISTINCT - + col2 ) ) AS col0 FROM tab1 WHERE + 76 + + 67 IS NOT NULL
----
-59

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL ( + MAX ( DISTINCT - + col2 ) ) AS col0 FROM tab1 WHERE + 76 + + 67 IS NOT NULL
----
-59

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 >= ( - - 8 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8935
SELECT 77, COUNT( * ) * - - 46 AS col0 FROM tab2 cor0
----
77
138

skipif mysql # not compatible
query II rowsort label-8935
SELECT 77, COUNT ( * ) * - - 46 AS col0 FROM tab2 cor0
----
77
138

query II rowsort
SELECT - col0 AS col2, col1 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT DISTINCT COUNT( 70 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT COUNT ( 70 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT MIN( - 75 ) + + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT MIN ( - 75 ) + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT - MIN( - col2 ) + - COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8941
SELECT - MIN ( - col2 ) + - COUNT ( * ) FROM tab0 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 10 * ( - col2 ) + + col0 col0 FROM tab2 AS cor0
----
-184
-336
-505

query I rowsort
SELECT col0 + + - 46 AS col2 FROM tab2 AS cor0
----
0
18
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8944
SELECT COUNT( * ), - COUNT( * ) + + + 79 AS col2 FROM tab1 AS cor0 WHERE 15 * 86 IS NOT NULL
----
3
76

skipif mysql # not compatible
query II rowsort label-8944
SELECT COUNT ( * ), - COUNT ( * ) + + + 79 AS col2 FROM tab1 AS cor0 WHERE 15 * 86 IS NOT NULL
----
3
76

query I rowsort
SELECT ALL + 98 * col0 * 95 + + - col0 FROM tab1
----
474759
791265
847119

query I rowsort
SELECT DISTINCT col1 + col2 + - col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT + MIN( ALL ( col0 ) ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8947
SELECT + MIN ( ALL ( col0 ) ) AS col2 FROM tab0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT ALL col1 + col0 DIV - 72 AS col2 FROM tab1
----
14
4
46

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL col1 + col0 / - 72 AS col2 FROM tab1
----
14
4
46

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE - 13 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE - col0 * + 91 + - col0 IN ( + col1, col1 - - - 2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 WHERE + 99 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8952
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT DISTINCT 44 * + COUNT( + - col2 ) - + 98 AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT 44 * + COUNT ( + - col2 ) - + 98 AS col1 FROM tab1
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 92 col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + 10 - + 24 AS col2 FROM tab2 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT - ( + 56 ) - - MIN( ALL + 64 ) AS col2 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8957
SELECT - ( + 56 ) - - MIN ( ALL + 64 ) AS col2 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL 20 * 64 AS col2 FROM tab2 AS cor0
----
1280
1280
1280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT ALL - CAST( - + col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL - CAST ( - + col0 AS INTEGER ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT MIN( + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8960
SELECT MIN ( + col0 ) FROM tab1
----
51

query II rowsort
SELECT col0, 14 * col1 FROM tab2 cor0
----
46
714
64
1078
75
938

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT SUM( - 56 ) FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-8962
SELECT SUM ( - 56 ) FROM tab1 AS cor0
----
-168

query I rowsort
SELECT + col2 * - 39 * + 1 + + col2 + + col1 AS col0 FROM tab2 AS cor0
----
-1443
-2137
-823

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8964
SELECT ALL + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT 35 + CAST( + col2 AS DECIMAL ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT 35 + CAST ( + col2 AS REAL ) IS NULL )
----

query II rowsort
SELECT DISTINCT - 33 AS col1, - col0 AS col2 FROM tab2 AS cor0
----
-33
-46
-33
-64
-33
-75

query I rowsort
SELECT + ( 98 ) AS col2 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8968
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 NOT IN ( + col0 * - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8968
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 NOT IN ( + col0 * - + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8970
SELECT + col2 DIV 57 * + 39 * + - col1 AS col1, - col1 AS col2 FROM tab2
----
-2613
-67
0
-51
0
-77

skipif mysql # not compatible
query II rowsort label-8970
SELECT + col2 / 57 * + 39 * + - col1 AS col1, - col1 AS col2 FROM tab2
----
-2613
-67
0
-51
0
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - - col2 ) + + - ( + + col0 ) - 42 * - 92 * + - col1 * + 71 / - 81 / col0 * col0 + + - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT MIN( ALL + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT MIN ( ALL + col1 ) FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8973
SELECT - 43 DIV - col0 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8973
SELECT - 43 / - col0 AS col0 FROM tab0
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT CAST( NULL AS SIGNED ) / - + 18 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT CAST ( NULL AS INTEGER ) / - + 18 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT + 75 * + COUNT( * ) FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-8975
SELECT + 75 * + COUNT ( * ) FROM tab1
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8976
SELECT ALL * FROM tab0 WHERE - + 96 NOT BETWEEN + col0 * - - 78 AND - ( CAST( NULL AS SIGNED ) ) + ( - 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8976
SELECT ALL * FROM tab0 WHERE - + 96 NOT BETWEEN + col0 * - - 78 AND - ( CAST ( NULL AS INTEGER ) ) + ( - 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 41 * - col0 AS col1 FROM tab2
----
1886
2624
3075

query I rowsort
SELECT - 33 - + col0 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 >= 5 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT + + col1 * - col0 + - 23 AS col0 FROM tab0 AS cor0
----
-120
-1238
-1850

query II rowsort
SELECT + col2 * + 40 * - - 22, col2 AS col1 FROM tab2 cor0
----
20240
23
35200
40
51040
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8983
SELECT + 7 + COUNT( ALL col2 ) * + SUM( ALL - + col1 ) AS col1, + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2, - col2 + + col0, - col2 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8983
SELECT + 7 + COUNT ( ALL col2 ) * + SUM ( ALL - + col1 ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2, - col2 + + col0, - col2 )
----
NULL
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 87 * + 56 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - - 21 FROM tab2
----
72
88
98

query I rowsort
SELECT DISTINCT col1 + - 93 AS col2 FROM tab1
----
-46
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT + COUNT( * ) + + + COUNT( * ) col1 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8987
SELECT + COUNT ( * ) + + + COUNT ( * ) col1 FROM tab2
----
6

query I rowsort
SELECT DISTINCT 0 + + col2 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8989
SELECT ALL - 15 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL - 15 / + col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 + col1 col2 FROM tab2
----
131
147
157

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NULL > + col1 * + 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8992
SELECT - 28 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT - 28 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - + 51 AS col2 FROM tab1
----
-2397
-255
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL + 72 - COUNT( * ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL + 72 - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8995
SELECT DISTINCT 91 DIV col0 AS col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT 91 / col0 AS col2 FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8996
SELECT MIN( DISTINCT - col1 ), + 45 AS col2 FROM tab1
----
-47
45

skipif mysql # not compatible
query II rowsort label-8996
SELECT MIN ( DISTINCT - col1 ), + 45 AS col2 FROM tab1
----
-47
45

query I rowsort
SELECT DISTINCT 34 * + 54 AS col0 FROM tab1
----
1836

onlyif mysql # aggregate syntax: 
query II rowsort label-8998
SELECT DISTINCT MAX( - col0 ) AS col2, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-8998
SELECT DISTINCT MAX ( - col0 ) AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15
3

query I rowsort
SELECT + 95 + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 35 * 26 + - - col0 col1 FROM tab1 AS cor0
----
1001
961
995

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT DISTINCT ( + - col2 ) DIV - col1 AS col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT ( + - col2 ) / - col1 AS col1 FROM tab1 AS cor0
----
1
11
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9003
SELECT - 17 * ( ( - MIN( ALL + CAST( + 42 AS SIGNED ) ) ) ) * - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT - 17 * ( ( - MIN ( ALL + CAST ( + 42 AS INTEGER ) ) ) ) * - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 89 FROM tab2 AS cor0 WHERE NOT - col0 * col2 NOT IN ( col2 * + 56, + col0 + + col0, - + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9005
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT 85 * - + col1 FROM tab0
----
-1785
-6885
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9007
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) <> + + 83
----

skipif mysql # not compatible
query III rowsort label-9007
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) <> + + 83
----

query I rowsort
SELECT 41 * - - col0 * - 40 + - col2 FROM tab0
----
-142690
-159179
-24647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 * + col0 col0 FROM tab1
----
36125
36414
389207

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - 47 NOT BETWEEN NULL AND ( 80 * - - col2 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9012
SELECT ALL + col2, CAST( NULL AS SIGNED ) / - - ( - - 68 ) / col1 + - col1 + - col0 * - 63 + - 18 - 89 AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9012
SELECT ALL + col2, CAST ( NULL AS INTEGER ) / - - ( - - 68 ) / col1 + - col1 + - col0 * - 63 + - 18 - 89 AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9013
SELECT - col2 AS col1, + col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-9013
SELECT - col2 AS col1, + col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT DISTINCT + 40 + - 98 * - - col0 * 21 FROM tab1 AS cor0
----
-104918
-174890
-187238

query I rowsort
SELECT - col0 * - 87 AS col0 FROM tab0 AS cor0
----
1305
7569
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT DISTINCT - 92 + MAX( ALL + - 23 ) FROM tab2
----
-115

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT - 92 + MAX ( ALL + - 23 ) FROM tab2
----
-115

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT + - 49 + + COUNT( * ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9018
SELECT + - 49 + + COUNT ( * ) FROM tab2 cor0
----
-46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * + - col1 * + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 col2 FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT - 30 + + + ( - 29 ) FROM tab2 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - col1 + - col2 * + 17 * + + 43 col0 FROM tab2 AS cor0
----
-16813
-29240
-42398

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT + 0 DIV - col0 + + 72 FROM tab2 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-9023
SELECT + 0 / - col0 + + 72 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT ALL + col1 + col2 * - + col0 AS col2 FROM tab2 AS cor0
----
-1007
-2483
-4283

query I rowsort
SELECT col2 * - 89 + - col2 AS col1 FROM tab1 AS cor0
----
-5310
-6120
-8640

query I rowsort
SELECT + - ( + col0 ) AS col1 FROM tab2 cor0
----
-46
-64
-75

query II rowsort
SELECT 83, 64 AS col0 FROM tab2
----
83
64
83
64
83
64

query III rowsort
SELECT ALL * FROM tab1 WHERE + 54 / + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL 57 + + + COUNT( * ) AS col0 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL 57 + + + COUNT ( * ) AS col0 FROM tab2
----
60

query I rowsort
SELECT ALL ( + ( - col0 ) ) - 1 AS col0 FROM tab1
----
-52
-86
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT DISTINCT 45 DIV + - col2 AS col1 FROM tab0
----
-4
0

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT 45 / + - col2 AS col1 FROM tab0
----
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT + COUNT( * ) - + 86 AS col0 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT + COUNT ( * ) - + 86 AS col0 FROM tab1
----
-83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 > col0
----
51
14
96

query II rowsort
SELECT DISTINCT - col2, - col0 * - col1 + + ( + col1 ) * - - col1 - - 55 AS col2 FROM tab2 AS cor0
----
-23
5002
-40
10912
-58
9569

query I rowsort
SELECT DISTINCT + + 93 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT - ( ( - - COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9036
SELECT - ( ( - - COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + col2 AS col0, 12 * + col1 * - col2 * col0 FROM tab0 AS cor0
----
10
-219240
47
-685260
99
-115236

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT - + MIN( + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT - + MIN ( + col1 ) FROM tab2 AS cor0
----
-51

query II rowsort
SELECT - + col1 AS col2, + col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL + 87 - + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
29
47
64

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT 82 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9042
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( ALL + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT - 1 DIV + 94 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9043
SELECT - 1 / + 94 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - ( - - col2 ) * 58 - + col1 + + 34 + + col2 AS col2 FROM tab2 WHERE - 81 IS NULL
----

query I rowsort
SELECT col1 * - - col2 AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT MIN( DISTINCT + - 64 ) AS col1 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-9046
SELECT MIN ( DISTINCT + - 64 ) AS col1 FROM tab0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT COUNT( + + col2 ) * - + ( + 91 ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-9047
SELECT COUNT ( + + col2 ) * - + ( + 91 ) FROM tab1
----
-273

query I rowsort
SELECT 56 * 93 + - - col2 FROM tab2 WHERE - 14 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - 28 col1 FROM tab1 AS cor0
----
-14
-23
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT COUNT( * ) + + - 51 FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT COUNT ( * ) + + - 51 FROM tab2 cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT DISTINCT + ( + 87 ) * + MAX( - col2 ) + 13 AS col0 FROM tab1 AS cor0
----
-5120

skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT + ( + 87 ) * + MAX ( - col2 ) + 13 AS col0 FROM tab1 AS cor0
----
-5120

query III rowsort
SELECT * FROM tab0 WHERE NULL > + col0 * + 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT MAX( DISTINCT + + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9053
SELECT MAX ( DISTINCT + + col1 ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL + MIN( + 3 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL + MIN ( + 3 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ALL + MIN( DISTINCT + col0 ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9055
SELECT ALL + MIN ( DISTINCT + col0 ) col1 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL - + MAX( DISTINCT 69 ) AS col1 FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL - + MAX ( DISTINCT 69 ) AS col1 FROM tab2 cor0
----
-69

query I rowsort
SELECT ALL + + col2 + + - 35 AS col0 FROM tab1 AS cor0
----
24
33
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT DISTINCT 87 + - + col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT 87 + - + col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 46 AS col1 FROM tab2
----
-18
-29
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9060
SELECT DISTINCT - ( + col1 ) - + CAST( col0 AS SIGNED ) AS col2, + 34 FROM tab1
----
-138
34
-65
34
-90
34

skipif mysql # not compatible
query II rowsort label-9060
SELECT DISTINCT - ( + col1 ) - + CAST ( col0 AS INTEGER ) AS col2, + 34 FROM tab1
----
-138
34
-65
34
-90
34

query I rowsort
SELECT 53 + - col0 - + col0 AS col0 FROM tab2
----
-39
-75
-97

query I rowsort
SELECT col2 * - 40 + + + col2 + col2 * - col1 AS col2 FROM tab1
----
-2596
-5088
-5848

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT DISTINCT COUNT( * ) * - + ( - - 84 ) * + 12 AS col0 FROM tab0
----
-3024

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT COUNT ( * ) * - + ( - - 84 ) * + 12 AS col0 FROM tab0
----
-3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9064
SELECT + MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT ( - col0 / 3 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT ( - col0 / 3 IS NOT NULL )
----
NULL

query I rowsort
SELECT DISTINCT - 26 * - ( col1 ) FROM tab0
----
2106
26
546

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT ALL COUNT( * ) * + + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
9

query II rowsort
SELECT DISTINCT + 69 AS col0, ( 96 ) AS col0 FROM tab1 AS cor0 WHERE NULL <= ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9068
SELECT DISTINCT - SUM( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT - SUM ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 * + col2 - - + col1 + col0 - - - ( + col1 ) col0 FROM tab1 cor0
----
2858
3287
4563

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT DISTINCT + + SUM( + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT + + SUM ( + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9071
SELECT - CAST( + - 59 AS SIGNED ) col1 FROM tab0
----
59
59
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9071
SELECT - CAST ( + - 59 AS INTEGER ) col1 FROM tab0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT DISTINCT COUNT( ALL - - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT COUNT ( ALL - - col0 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9073
SELECT + CAST( - ( - col1 ) AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9073
SELECT + CAST ( - ( - col1 ) AS INTEGER ) AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT + - 63 AS col1 FROM tab2 cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL + + COUNT( * ) * 61 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL + + COUNT ( * ) * 61 FROM tab0 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT 80 + + ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-9076
SELECT 80 + + ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
83

query I rowsort
SELECT + - col2 + 15 FROM tab1 AS cor0
----
-44
-53
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9078
SELECT ALL 79 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL 79 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT ALL + - col1 + + - 87 * col2 AS col0 FROM tab2 AS cor0
----
-2052
-3557
-5113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT 50 + - COUNT( * ) AS col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9081
SELECT 50 + - COUNT ( * ) AS col0 FROM tab1 cor0
----
47

query I rowsort
SELECT DISTINCT - col1 + 69 + + col0 + + + col0 * - 61 + col2 AS col0 FROM tab1 AS cor0
----
-2909
-4977
-5370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + - 73 + - - 66 * col2 - + + 73 * ( + - 64 ) * col1 col2 FROM tab1
----
224084
27266
71756

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= + 22 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT DISTINCT ( - MAX( DISTINCT + col1 ) ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT ( - MAX ( DISTINCT + col1 ) ) AS col2 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT + COUNT( * ) * - ( - 85 ) + + - 19 FROM tab1 WHERE col2 IS NOT NULL
----
236

skipif mysql # not compatible
query I rowsort label-9086
SELECT + COUNT ( * ) * - ( - 85 ) + + - 19 FROM tab1 WHERE col2 IS NOT NULL
----
236

onlyif mysql # DIV for integer division: 
query I rowsort label-9087
SELECT DISTINCT - col2 DIV + - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT - col2 / + - col0 FROM tab2
----
0

query I rowsort
SELECT col0 * + col2 * - 0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - ( + col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT DISTINCT - - CAST( + 17 AS SIGNED ) * - CAST( NULL AS SIGNED ) / - col2 + col2 + + 79 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT - - CAST ( + 17 AS INTEGER ) * - CAST ( NULL AS INTEGER ) / - col2 + col2 + + 79 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + ( + 76 ) + - col1 + 8 FROM tab0 AS cor0
----
-149
-69
-89

query I rowsort
SELECT - + col2 - + 12 * + - col1 FROM tab0 AS cor0
----
-87
242
925

query I rowsort
SELECT ALL + - ( - + 30 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query II rowsort
SELECT ALL col2 + - col0 * + col1 * 35 * col2, col2 AS col2 FROM tab1
----
-10179192
68
-2398944
96
-877566
59

query I rowsort
SELECT DISTINCT - + ( 28 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-28

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT - col0 + + 62 AS col0 FROM tab0
----
-25
-35
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT 44 + COUNT( ALL - 39 ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9098
SELECT 44 + COUNT ( ALL - 39 ) FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT MIN( - + 66 ) + + + MIN( ALL - 28 ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-9099
SELECT MIN ( - + 66 ) + + + MIN ( ALL - 28 ) FROM tab2 AS cor0
----
-94

query I rowsort
SELECT - 94 * - - col0 AS col2 FROM tab0 AS cor0
----
-1410
-8178
-9118

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9101
SELECT * FROM tab0 AS cor0 WHERE 83 + + col2 * + CAST( NULL AS SIGNED ) BETWEEN + col0 AND + 76 + - - col1
----

skipif mysql # not compatible
query III rowsort label-9101
SELECT * FROM tab0 AS cor0 WHERE 83 + + col2 * + CAST ( NULL AS INTEGER ) BETWEEN + col0 AND + 76 + - - col1
----

query I rowsort
SELECT 29 * 39 AS col2 FROM tab0 AS cor0
----
1131
1131
1131

query I rowsort
SELECT DISTINCT - - 5 * col2 * + + col1 FROM tab1 cor0
----
1475
15980
6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * - col2 col2 FROM tab1 cor0
----
-2950
-3400
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT ALL - COUNT( * ) * - 90 AS col0 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL - COUNT ( * ) * - 90 AS col0 FROM tab0 AS cor0
----
270

query III rowsort
SELECT * FROM tab2 WHERE NOT + 56 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 + col0 * - 20 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col0 FROM tab0
----
13

query I rowsort
SELECT + ( - + col2 ) FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) + + col1 = NULL
----

query II rowsort
SELECT ALL + col0, col2 * 51 FROM tab0 AS cor0
----
15
2397
87
510
97
5049

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - col0 + - col1 IS NULL ) )
----
-3

skipif mysql # not compatible
query I rowsort label-9113
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - col0 + - col1 IS NULL ) )
----
-3

query I rowsort
SELECT DISTINCT - 8 * + col1 FROM tab2 AS cor0
----
-408
-536
-616

query I rowsort
SELECT DISTINCT + - col2 * + 44 AS col0 FROM tab1 AS cor0
----
-2596
-2992
-4224

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - + 88 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT + MAX( DISTINCT - + ( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT + MAX ( DISTINCT - + ( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT - MAX( ALL + 7 ) AS col1 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9118
SELECT - MAX ( ALL + 7 ) AS col1 FROM tab1 AS cor0
----
-7

query I rowsort
SELECT + - col2 * - col1 * - col1 / col2 + + 32 + - 93 / + col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND - 92
----

query I rowsort
SELECT ALL 38 + - + col0 AS col0 FROM tab1 AS cor0
----
-13
-47
-53

query I rowsort
SELECT ALL - + 52 AS col2 FROM tab2 AS cor0
----
-52
-52
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 23 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + col1 IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT DISTINCT - SUM( ALL + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT - SUM ( ALL + col1 ) FROM tab1
----
-66

query I rowsort
SELECT - - col2 + + - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
-23
-26
45

query I rowsort
SELECT ALL + 40 FROM tab1, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT COUNT( * ) + + COUNT( + + col0 ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT COUNT ( * ) + + COUNT ( + + col0 ) AS col2 FROM tab1
----
6

query I rowsort
SELECT DISTINCT + col0 - + 71 FROM tab2 AS cor0
----
-25
-7
4

onlyif mysql # DIV for integer division: 
query II rowsort label-9129
SELECT + col0 AS col2, - col1 DIV col0 * - col0 FROM tab0
----
15
75
87
0
97
0

skipif mysql # not compatible
query II rowsort label-9129
SELECT + col0 AS col2, - col1 / col0 * - col0 FROM tab0
----
15
75
87
0
97
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9130
SELECT - COUNT( * ), + 33 + - CAST( NULL AS SIGNED ) + - 57 AS col1 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9130
SELECT - COUNT ( * ), + 33 + - CAST ( NULL AS INTEGER ) + - 57 AS col1 FROM tab0
----
-3
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 71 + col0 + + col1 + - ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT DISTINCT - + ( + - 37 ) * - 9 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND - - CAST( - col0 AS SIGNED ) - 81 + + 60
----

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT - + ( + - 37 ) * - 9 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND - - CAST ( - col0 AS INTEGER ) - 81 + + 60
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT col2 = ( - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT + - 95 * - col1 FROM tab2 AS cor0
----
4845
6365
7315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9136
SELECT COUNT( + CAST( NULL AS SIGNED ) ) * - 51 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9136
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) * - 51 AS col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9137
SELECT - SUM( DISTINCT + 3 ) AS col1, - 80 AS col2 FROM tab0
----
-3
-80

skipif mysql # not compatible
query II rowsort label-9137
SELECT - SUM ( DISTINCT + 3 ) AS col1, - 80 AS col2 FROM tab0
----
-3
-80

query I rowsort
SELECT ALL - 35 AS col0 FROM tab1
----
-35
-35
-35

query I rowsort
SELECT ALL ( - - col0 ) AS col0 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + col2 * col0 + - + 12 / ( + + 41 ) / + 41 + + col2 * - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9142
SELECT - col1 DIV col2 * 93 AS col0 FROM tab2
----
-186
-93
-93

skipif mysql # not compatible
query I rowsort label-9142
SELECT - col1 / col2 * 93 AS col0 FROM tab2
----
-186
-93
-93

query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab1 WHERE col2 + - 59 * - 3 / + + 76 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= 52 * - - 3 - - col0 + + col2 + - 51 + - col0 * col2 * col1 + + - col1
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE col2 * - col1 BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - ( col0 ), + col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT DISTINCT - COUNT( DISTINCT - 8 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT - COUNT ( DISTINCT - 8 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * - col0 col1 FROM tab2
----
-2852
-3968
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT ALL + - MAX( ALL col1 ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL + - MAX ( ALL col1 ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
141

query I rowsort
SELECT ALL col2 * + 99 - + col1 AS col0 FROM tab1 AS cor0
----
5836
6685
9490

query I rowsort
SELECT DISTINCT - col1 + - - col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT - - col1 + + 64 AS col0 FROM tab0 AS cor0
----
145
65
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT DISTINCT + + COUNT( * ) + + 74 AS col2 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT + + COUNT ( * ) + + 74 AS col2 FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL - col1 * + 51 * - 68 * - col0 + col0 FROM tab2
----
-17090240
-17426625
-8135882

query I rowsort
SELECT col0 * + col2 + col1 AS col2 FROM tab0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT - SUM( - + col2 ) FROM tab0 WHERE NULL BETWEEN + col2 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT - SUM ( - + col2 ) FROM tab0 WHERE NULL BETWEEN + col2 AND col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT DISTINCT - CAST( + - 68 AS SIGNED ) + - 80 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT - CAST ( + - 68 AS INTEGER ) + - 80 FROM tab1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9159
SELECT ALL - CAST( NULL AS SIGNED ) / + AVG ( DISTINCT - - col2 ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9159
SELECT ALL - CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT - - col2 ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT + + COUNT( * ) FROM tab0 WHERE 79 * + + 49 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9160
SELECT + + COUNT ( * ) FROM tab0 WHERE 79 * + + 49 > NULL
----
0

query I rowsort
SELECT + col2 * col1 * 8 FROM tab2
----
24640
31088
9384

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT DISTINCT COUNT( * ) + + 68 * + + 48 FROM tab0 AS cor0
----
3267

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT COUNT ( * ) + + 68 * + + 48 FROM tab0 AS cor0
----
3267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - + 84 col0, - 1 FROM tab0 AS cor0
----
-171
-1
-181
-1
-99
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9164
SELECT ALL - + COUNT( * ) DIV + + 91 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL - + COUNT ( * ) / + + 91 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 13 * col1 + - col1 FROM tab0 AS cor0
----
-1134
-14
-294

query I rowsort
SELECT ALL col1 * - + 34 + - + col1 FROM tab2 AS cor0
----
-1785
-2345
-2695

query I rowsort
SELECT DISTINCT + ( - col0 ) + - col0 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9168
SELECT ALL COUNT( * ) DIV - SUM( DISTINCT - col0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL COUNT ( * ) / - SUM ( DISTINCT - col0 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT - ( - - col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT DISTINCT - + col1 AS col1, 32 FROM tab0 AS cor0
----
-1
32
-21
32
-81
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - 39 ) + - - col0 + - - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9172
SELECT - + 67 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 + + col2, + CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9172
SELECT - + 67 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 + + col2, + CAST ( - col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 cor0 WHERE NOT - col2 + - col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT - - 21 * + - 99 AS col0 FROM tab0 AS cor0
----
-2079
-2079
-2079

query I rowsort
SELECT - - ( - 20 ) FROM tab1 AS cor0
----
-20
-20
-20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 86 * - col2 IS NOT NULL
----

query I rowsort
SELECT - 39 * - col0 + 87 * + col1 AS col1 FROM tab0 cor0
----
3870
5220
7632

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 + - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * col0 * + - col2 IS NOT NULL
----

query I rowsort
SELECT - ( col2 ) FROM tab0 WHERE NOT ( col0 <= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= 22 / col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + ( col1 ) >= - - col0 * 30 + + + col1 - - 89 + + + col0 + - col0 + - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( ( NOT + + 6 = + 92 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 84 col0, col2 AS col0 FROM tab1
----
84
59
84
68
84
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9185
SELECT DISTINCT col1 DIV - + col1 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT col1 / - + col1 AS col0 FROM tab2
----
-1

query II rowsort
SELECT ALL + col0 AS col0, + 18 AS col2 FROM tab1
----
51
18
85
18
91
18

query II rowsort
SELECT col0 AS col1, - 31 + + col2 AS col2 FROM tab2
----
46
-8
64
9
75
27

query II rowsort
SELECT 0 AS col0, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT - SUM( 43 ) AS col1 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-9189
SELECT - SUM ( 43 ) AS col1 FROM tab1 AS cor0
----
-129

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - - col0 + + - col0 * 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT 98 + + + COUNT( * ) + - ( - COUNT( * ) ) FROM tab1
----
104

skipif mysql # not compatible
query I rowsort label-9192
SELECT 98 + + + COUNT ( * ) + - ( - COUNT ( * ) ) FROM tab1
----
104

query I rowsort
SELECT ALL - ( ( col0 ) ) FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9194
SELECT DISTINCT - ( + - ( col1 ) ) * - col2 + col0 + + ( + col0 ) - 78 / + + 31 + col2 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT - ( + - ( col1 ) ) * - col2 + col0 + + ( + col0 ) - 78 / + + 31 + col2 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT COUNT( DISTINCT + + col0 ) * + COUNT( * ) - + - 94 FROM tab2 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9196
SELECT COUNT ( DISTINCT + + col0 ) * + COUNT ( * ) - + - 94 FROM tab2 AS cor0
----
103

query I rowsort
SELECT DISTINCT - ( ( 93 ) ) + - 1 + 22 AS col0 FROM tab2 cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - - 28 col0 FROM tab1
----
-31
-40
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9199
SELECT ALL ( - MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) ) + + 14 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL ( - MIN ( DISTINCT + CAST ( NULL AS REAL ) ) ) + + 14 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL 14 * - + MIN( + - col0 ) AS col0 FROM tab0
----
1358

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL 14 * - + MIN ( + - col0 ) AS col0 FROM tab0
----
1358

query I rowsort
SELECT - 29 + - col0 - - col2 FROM tab0
----
-106
-27
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL + MAX( + col0 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9202
SELECT ALL + MAX ( + col0 ) col0 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT col0 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT col0 + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9204
SELECT - CAST( col0 AS SIGNED ), 90 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-15
90
-87
90
-97
90

skipif mysql # not compatible
query II rowsort label-9204
SELECT - CAST ( col0 AS INTEGER ), 90 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-15
90
-87
90
-97
90

query II rowsort
SELECT 55, + 45 * 3 + col2 * - col2 - ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 9 + - col0, col2, - col1, - col0 * - 50 + - col1 + - col2 + + + col1 * + - col1 + - col0 + 36, + - col2, + col0 )
----

query I rowsort
SELECT ALL - + 48 FROM tab2 cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT ALL - 93 * - - COUNT( * ) AS col0 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL - 93 * - - COUNT ( * ) AS col0 FROM tab1
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9209
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - 60 col1, - col0 * - col2 + + col2 FROM tab1
----
-2820
6256
-300
5074
-840
4992

query I rowsort
SELECT + 25 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - + col0 * col0 * col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT + 8 * - COUNT( * ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9215
SELECT + 8 * - COUNT ( * ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT ALL - + 83 AS col1 FROM tab1 AS cor0
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9217
SELECT ALL + 6 * - ( col2 ) + - col1 DIV - - col0 FROM tab0 AS cor0
----
-287
-594
-60

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + 6 * - ( col2 ) + - col1 / - - col0 FROM tab0 AS cor0
----
-287
-594
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9218
SELECT - col0 * - col0 - CAST( - col1 AS SIGNED ) AS col1, - col0 AS col1 FROM tab2 cor0
----
2167
-46
4173
-64
5692
-75

skipif mysql # not compatible
query II rowsort label-9218
SELECT - col0 * - col0 - CAST ( - col1 AS INTEGER ) AS col1, - col0 AS col1 FROM tab2 cor0
----
2167
-46
4173
-64
5692
-75

query I rowsort
SELECT + ( + + col1 ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT + ( - col2 ) * - col0 * 89 AS col0 FROM tab1
----
435744
446335
550732

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT - COUNT( * ) * + 80 AS col1 FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-9221
SELECT - COUNT ( * ) * + 80 AS col1 FROM tab2
----
-240

query I rowsort
SELECT - col1 * 89 AS col1 FROM tab2
----
-4539
-5963
-6853

query I rowsort
SELECT DISTINCT col1 * - - 47 FROM tab2
----
2397
3149
3619

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT ALL - MAX( - col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL - MAX ( - col2 ) AS col1 FROM tab0
----
10

query III rowsort
SELECT * FROM tab0 WHERE NOT 81 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - 42 + - col2 FROM tab2 AS cor0
----
-100
-65
-82

query II rowsort
SELECT DISTINCT 48 AS col2, col0 FROM tab0
----
48
15
48
87
48
97

query I rowsort
SELECT + col2 * - col1 + - col0 FROM tab1 AS cor0
----
-1395
-3287
-380

query I rowsort
SELECT - - col0 + + 81 + - + col1 + + 64 + col2 * + 55 * - col1 AS col0 FROM tab0 AS cor0
----
-11339
-209306
-5204

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT - - 6 + 81 + - COUNT( * ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9231
SELECT - - 6 + 81 + - COUNT ( * ) FROM tab2 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9232
SELECT - 34 * + + col1 * - col1 DIV + col1 + - col0 + 96 + - 89 FROM tab2 AS cor0
----
1695
2210
2561

skipif mysql # not compatible
query I rowsort label-9232
SELECT - 34 * + + col1 * - col1 / + col1 + - col0 + 96 + - 89 FROM tab2 AS cor0
----
1695
2210
2561

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE col2 <> + col2 - + col2 + - col2 + + 27
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 17 + - 55 / - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 79 + - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-11
-59
14

query I rowsort
SELECT DISTINCT - col1 + 81 FROM tab2 AS cor0
----
14
30
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9237
SELECT + ( CAST( - + MIN( ALL + - col1 ) AS SIGNED ) ) AS col0, COUNT( * ) DIV + SUM( - 83 ) FROM tab2 AS cor0
----
77
0

skipif mysql # not compatible
query II rowsort label-9237
SELECT + ( CAST ( - + MIN ( ALL + - col1 ) AS INTEGER ) ) AS col0, COUNT ( * ) / + SUM ( - 83 ) FROM tab2 AS cor0
----
77
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9238
SELECT COUNT( * ), + COUNT( * ) AS col0 FROM tab2, tab1 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-9238
SELECT COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0
----
9
9

query I rowsort
SELECT 84 AS col2 FROM tab1 WHERE - + 25 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( + 6 ) col1 FROM tab1
----
57
91
97

query I rowsort
SELECT ALL - 55 - + col1 FROM tab2
----
-106
-122
-132

query I rowsort
SELECT DISTINCT - col0 + + + col2 AS col0 FROM tab0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9243
SELECT - col1 DIV - col0 FROM tab0 WHERE + 68 IS NOT NULL
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9243
SELECT - col1 / - col0 FROM tab0 WHERE + 68 IS NOT NULL
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT + - ( 32 ) + - COUNT( * ) FROM tab0 WHERE 80 IS NULL
----
-32

skipif mysql # not compatible
query I rowsort label-9244
SELECT + - ( 32 ) + - COUNT ( * ) FROM tab0 WHERE 80 IS NULL
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL MIN( DISTINCT + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL MIN ( DISTINCT + col1 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL SUM( ALL - - 24 ) FROM tab2, tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL SUM ( ALL - - 24 ) FROM tab2, tab2 AS cor0
----
216

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9247
SELECT DISTINCT + + CAST( - 48 AS SIGNED ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT + + CAST ( - 48 AS INTEGER ) * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT DISTINCT + + SUM( + ( 20 ) ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT + + SUM ( + ( 20 ) ) FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT - MIN( 76 ) FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-9249
SELECT - MIN ( 76 ) FROM tab2
----
-76

query III rowsort
SELECT * FROM tab2 WHERE NOT - 86 + + col1 + + col0 * - ( + col2 ) NOT BETWEEN NULL AND - ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT ALL + - AVG ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL + - AVG ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 90 * - + col1 - - col0 FROM tab0 cor0
----
-1803
-7275
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9253
SELECT CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9253
SELECT CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - ( + col0 ) * - col2 + 29 + + - col0 AS col0 FROM tab0 AS cor0
----
719
812
9535

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT - 79 * - 40 + MIN( ALL - 27 ) + 98 * - ( - + 29 ) FROM tab0 AS cor0
----
5975

skipif mysql # not compatible
query I rowsort label-9255
SELECT - 79 * - 40 + MIN ( ALL - 27 ) + 98 * - ( - + 29 ) FROM tab0 AS cor0
----
5975

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT DISTINCT + 19 * - + COUNT( * ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT + 19 * - + COUNT ( * ) FROM tab2 AS cor0
----
-57

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT - 30 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9259
SELECT ALL - CAST( NULL AS SIGNED ) / + COUNT( * ) AS col0, 47 FROM tab0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-9259
SELECT ALL - CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col0, 47 FROM tab0
----
NULL
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9260
SELECT COUNT( * ) DIV - 21 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9260
SELECT COUNT ( * ) / - 21 AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NOT NULL OR + col1 + + 51 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * 12 AS col0 FROM tab0
----
12
252
972

query I rowsort
SELECT - col1 * col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT - COUNT( DISTINCT - - col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9264
SELECT - COUNT ( DISTINCT - - col1 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT + COUNT( * ) - - + MAX( DISTINCT + 62 ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9265
SELECT + COUNT ( * ) - - + MAX ( DISTINCT + 62 ) FROM tab0 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9266
SELECT ALL - ( + col1 ) + col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL - ( + col1 ) + col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * - col1 + col0 FROM tab0
----
-123
-2
-3792

query I rowsort
SELECT ALL - ( col0 ) + - col0 + - - col0 + + col2 AS col1 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT MAX( + col2 ) FROM tab0 WHERE + + 32 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT MAX ( + col2 ) FROM tab0 WHERE + + 32 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT - MIN( - ( + 40 ) ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-9271
SELECT - MIN ( - ( + 40 ) ) FROM tab1
----
40

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 97 AS col1, col0 FROM tab1 cor0
----
97
51
97
85
97
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9274
SELECT ALL col0 col2, 19 * - CAST( - 20 AS SIGNED ) col1 FROM tab0 AS cor0
----
15
380
87
380
97
380

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9274
SELECT ALL col0 col2, 19 * - CAST ( - 20 AS INTEGER ) col1 FROM tab0 AS cor0
----
15
380
87
380
97
380

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NULL ) BETWEEN NULL AND 13 * col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT ALL + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 60 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 * + + col1 * col1 FROM tab2 AS cor0
----
-132651
-300763
-456533

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col2 * - - 91 * - col2 FROM tab1 AS cor0
----
-316771
-420784
-838656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE + 45 - - col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE + 45 - - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9282
SELECT ALL ( - col1 ) + + CAST( + + ( - 44 ) AS SIGNED ) DIV - - col1 - 36 + - col2 FROM tab0 AS cor0
----
-164
-180
-69

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL ( - col1 ) + + CAST ( + + ( - 44 ) AS INTEGER ) / - - col1 - 36 + - col2 FROM tab0 AS cor0
----
-164
-180
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT + 20 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9283
SELECT + 20 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
17

query I rowsort
SELECT ALL col0 + 44 FROM tab0
----
131
141
59

query II rowsort
SELECT ALL + 83 AS col2, + 60 * - col0 FROM tab2
----
83
-2760
83
-3840
83
-4500

query I rowsort
SELECT + 68 * - - ( - 45 ) + - - 11 AS col2 FROM tab2
----
-3049
-3049
-3049

onlyif mysql # DIV for integer division: 
query I rowsort label-9287
SELECT DISTINCT col1 DIV col0 + + 43 FROM tab2
----
43
44

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT col1 / col0 + + 43 FROM tab2
----
43
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT COUNT( * ) + - 8 AS col1 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-9288
SELECT COUNT ( * ) + - 8 AS col1 FROM tab0
----
-5

query II rowsort
SELECT + col0, + 92 FROM tab1
----
51
92
85
92
91
92

query I rowsort
SELECT - - 82 FROM tab2 WHERE - ( - col0 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN 93 AND NULL
----

query I rowsort
SELECT + + ( - 38 ) FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT ALL col0 * col1 + - col1 + + col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT col2 AS col0, + col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query II rowsort
SELECT + + col2 AS col0, 26 * - col1 FROM tab2 AS cor0
----
23
-1326
40
-2002
58
-1742

query I rowsort
SELECT DISTINCT + 70 * col1 FROM tab1
----
3290
350
980

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = ( + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9300
SELECT ALL - col2 + - 57 * ( 55 ) FROM tab2 WHERE CAST( NULL AS DECIMAL ) + + col2 * - col0 IS NULL
----
-3158
-3175
-3193

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL - col2 + - 57 * ( 55 ) FROM tab2 WHERE CAST ( NULL AS REAL ) + + col2 * - col0 IS NULL
----
-3158
-3175
-3193

query I rowsort
SELECT - col2 * + 86 FROM tab1
----
-5074
-5848
-8256

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + 1 IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * 37 col2 FROM tab1
----
-3256
-3256
-3256

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT - 40 - - COUNT( * ) AS col1 FROM tab1 WHERE NULL BETWEEN col0 AND NULL
----
-40

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT - 40 - - COUNT ( * ) AS col1 FROM tab1 WHERE NULL BETWEEN col0 AND NULL
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL MAX( DISTINCT col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL MAX ( DISTINCT col0 ) AS col1 FROM tab0
----
97

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9309
SELECT DISTINCT + MIN( ALL col0 ) DIV + MIN( col2 DIV col2 ) col1 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9309
SELECT DISTINCT + MIN ( ALL col0 ) / + MIN ( col2 / col2 ) col1 FROM tab1
----
51

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT MAX( col2 ) * COUNT( * ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-9311
SELECT MAX ( col2 ) * COUNT ( * ) FROM tab0
----
297

query I rowsort
SELECT col2 * ( + col0 ) AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT 92 * - col0 FROM tab1
----
-4692
-7820
-8372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab1 WHERE NOT ( + 16 / 92 ) <= 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT 29 * + CAST( 57 AS SIGNED ) AS col0 FROM tab0
----
1653
1653
1653

skipif mysql # not compatible
query I rowsort label-9315
SELECT 29 * + CAST ( 57 AS INTEGER ) AS col0 FROM tab0
----
1653
1653
1653

query I rowsort
SELECT + col2 * col1 - - 50 AS col2 FROM tab0
----
149
260
3857

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL 81 * SUM( ALL col0 ) + + 8 col0 FROM tab0 WHERE NOT ( col0 * col0 ) NOT BETWEEN + col1 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9317
SELECT ALL 81 * SUM ( ALL col0 ) + + 8 col0 FROM tab0 WHERE NOT ( col0 * col0 ) NOT BETWEEN + col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT MIN( - 46 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9318
SELECT MIN ( - 46 ) AS col1 FROM tab2
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 * + 23 col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT 34 + - SUM( col2 ) FROM tab2 WHERE NOT col0 + 84 * col1 NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT 34 + - SUM ( col2 ) FROM tab2 WHERE NOT col0 + 84 * col1 NOT BETWEEN NULL AND ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * - col2 > NULL
----

query I rowsort
SELECT ALL col0 + 78 FROM tab0
----
165
175
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9323
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NULL > ( NULL )
----
0

query I rowsort
SELECT ( 96 ) FROM tab0
----
96
96
96

query I rowsort
SELECT ALL 50 - col0 * 90 AS col2 FROM tab2
----
-4090
-5710
-6700

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col1 AND 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT MIN( DISTINCT 19 ) AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-9327
SELECT MIN ( DISTINCT 19 ) AS col0 FROM tab2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9328
SELECT col2 DIV + col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9328
SELECT col2 / + col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9329
SELECT * FROM tab1 cor0 WHERE NOT col0 * 12 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9329
SELECT * FROM tab1 cor0 WHERE NOT col0 * 12 <= + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 13 + - col0 * 78 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT + 0 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9331
SELECT + 0 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( - 66 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9333
SELECT - 39 DIV + COUNT( * ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-9333
SELECT - 39 / + COUNT ( * ) FROM tab2
----
-13

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( 3 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT ALL - 80 AS col1 FROM tab2 cor0 WHERE NOT ( - 66 ) NOT IN ( 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT ALL - + SUM( DISTINCT + 47 ) * + ( - COUNT( * ) + + ( 85 ) ) FROM tab1 AS cor0
----
-3854

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL - + SUM ( DISTINCT + 47 ) * + ( - COUNT ( * ) + + ( 85 ) ) FROM tab1 AS cor0
----
-3854

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 78 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9339
SELECT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT COUNT( 66 ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9340
SELECT COUNT ( 66 ) col2 FROM tab0 cor0
----
3

query I rowsort
SELECT - col1 * 43 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2193
-2881
-3311

query I rowsort
SELECT AVG ( ALL 37 ) FROM tab1 cor0 WHERE NOT NULL IN ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ( COUNT( + 99 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9343
SELECT ( COUNT ( + 99 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 56 IS NULL
----

query I rowsort
SELECT ALL - 79 + 44 FROM tab2 cor0
----
-35
-35
-35

query I rowsort
SELECT ALL + col0 + col0 FROM tab1 AS cor0 WHERE NOT col0 <> ( 64 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9347
SELECT 48 col1 FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) * col2 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9347
SELECT 48 col1 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) * col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 33 + + - 30 + ( + col1 ) FROM tab1
----
-16
-49
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT DISTINCT - MIN( - col2 ) + 42 col0 FROM tab0
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9349
SELECT DISTINCT - MIN ( - col2 ) + 42 col0 FROM tab0
----
141

query I rowsort
SELECT col0 * 52 AS col0 FROM tab0
----
4524
5044
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
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-9351
SELECT + CAST ( + col0 AS INTEGER ) col1 FROM tab0
----
15
87
97

query I rowsort
SELECT - 71 + + col0 + 49 AS col2 FROM tab0
----
-7
65
75

query I rowsort
SELECT ( 22 ) FROM tab0 WHERE NULL <= + ( 30 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col0 ) * - col1 > ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 / + 81 <= 85 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT - col1 + + 41 DIV + 88 AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9356
SELECT - col1 + + 41 / + 88 AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - col2 + 57 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-42
10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE - + col1 * - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE - + col1 * - col2 <> NULL
----
0

query I rowsort
SELECT ALL - - ( - 9 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT 51 AS col2 FROM tab2 AS cor0 WHERE ( 46 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT COUNT( * ) - - - MIN( 72 ) AS col2 FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9361
SELECT COUNT ( * ) - - - MIN ( 72 ) AS col2 FROM tab2 cor0
----
-69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * 86 + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4123
8515
881

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN ( col1 ) AND NULL
----
21
81

query I rowsort
SELECT ALL - col0 * + col2 + - 21 FROM tab0 cor0
----
-726
-891
-9624

query I rowsort
SELECT ALL 19 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
19
19
19

query II rowsort
SELECT DISTINCT - 15 AS col2, 2 AS col1 FROM tab0 AS cor0
----
-15
2

query I rowsort
SELECT DISTINCT - - 20 * 70 FROM tab2 AS cor0
----
1400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col0 FROM tab0
----
63
63
63

query I rowsort
SELECT ALL 29 * - col0 FROM tab2
----
-1334
-1856
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT 88 + - COUNT( * ) AS col2 FROM tab0 WHERE NOT + - col0 <= ( NULL )
----
88

skipif mysql # not compatible
query I rowsort label-9371
SELECT 88 + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + - col0 <= ( NULL )
----
88

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 < 49 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9373
SELECT CAST( - 88 AS SIGNED ), + 27 * + + col1 col1 FROM tab0
----
-88
2187
-88
27
-88
567

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9373
SELECT CAST ( - 88 AS INTEGER ), + 27 * + + col1 col1 FROM tab0
----
-88
2187
-88
27
-88
567

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab2 WHERE NULL IN ( + col0 )
----

query I rowsort
SELECT - 98 + 27 AS col1 FROM tab0 cor0 WHERE NOT ( NOT NULL IS NULL )
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT + CAST( 42 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 + + ( + + col1 ) IS NULL
----
42
42
42

skipif mysql # not compatible
query I rowsort label-9376
SELECT + CAST ( 42 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 + + ( + + col1 ) IS NULL
----
42
42
42

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9377
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT NULL <= - CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-9377
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT NULL <= - CAST ( NULL AS REAL ) ) )
----

query I rowsort
SELECT - col1 * - 10 * - 62 * - 18 FROM tab1 AS cor0
----
156240
524520
55800

query I rowsort
SELECT 11 FROM tab2 WHERE NOT col1 * + col1 + + col1 >= ( NULL )
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( col0 + + 29 ) AND 41
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE 8 = NULL
----

query I rowsort
SELECT + col2 + - 94 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT - 95 + + ( + 71 ) - COUNT( * ) FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9383
SELECT - 95 + + ( + 71 ) - COUNT ( * ) FROM tab0 cor0
----
-27

query I rowsort
SELECT + - 51 + 1 FROM tab1 AS cor0
----
-50
-50
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9385
SELECT + CAST( - MIN( DISTINCT + col0 ) AS SIGNED ) + 95 FROM tab2 AS cor0 WHERE ( 69 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT + CAST ( - MIN ( DISTINCT + col0 ) AS INTEGER ) + 95 FROM tab2 AS cor0 WHERE ( 69 ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + col2 + + col1 + + ( + 0 ) col2 FROM tab0 AS cor0
----
-2128
-79
-9800

onlyif mysql # DIV for integer division: 
query I rowsort label-9387
SELECT + col0 * - + col1 - col2 + + - ( - + col1 ) + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-2317
-4890
-5015

skipif mysql # not compatible
query I rowsort label-9387
SELECT + col0 * - + col1 - col2 + + - ( - + col1 ) + col1 / col1 AS col2 FROM tab2 AS cor0
----
-2317
-4890
-5015

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 85 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT - SUM( DISTINCT + col2 ) + - 98 AS col2 FROM tab0 AS cor0
----
-254

skipif mysql # not compatible
query I rowsort label-9389
SELECT - SUM ( DISTINCT + col2 ) + - 98 AS col2 FROM tab0 AS cor0
----
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT - + COUNT( * ) + + 53 AS col2 FROM tab1, tab1 AS cor0 WHERE ( + 61 ) < ( NULL )
----
53

skipif mysql # not compatible
query I rowsort label-9390
SELECT - + COUNT ( * ) + + 53 AS col2 FROM tab1, tab1 AS cor0 WHERE ( + 61 ) < ( NULL )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9391
SELECT ALL 35 + - ( + + COUNT( * ) ) + 87 * + + COUNT( * ) * + - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL 35 + - ( + + COUNT ( * ) ) + 87 * + + COUNT ( * ) * + - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT 57 FROM tab1 WHERE ( NOT col0 IS NULL )
----
57
57
57

query II rowsort
SELECT DISTINCT - col2, col0 AS col2 FROM tab1
----
-59
85
-68
91
-96
51

query III rowsort
SELECT * FROM tab0 WHERE + 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9395
SELECT + col1 DIV CAST( col2 AS SIGNED ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9395
SELECT + col1 / CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT - COUNT( * ) - - ( + 41 ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9396
SELECT - COUNT ( * ) - - ( + 41 ) FROM tab2 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-9397
SELECT ALL + col1 AS col2, 63 DIV + col1 AS col0 FROM tab2 AS cor0
----
51
1
67
0
77
0

skipif mysql # not compatible
query II rowsort label-9397
SELECT ALL + col1 AS col2, 63 / + col1 AS col0 FROM tab2 AS cor0
----
51
1
67
0
77
0

query I rowsort
SELECT ALL - 48 + + 66 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT 31 - 51 AS col2 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL + 32 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9401
SELECT * FROM tab0 WHERE - - CAST( - 39 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9401
SELECT * FROM tab0 WHERE - - CAST ( - 39 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL - - MAX( ALL + 13 ) FROM tab2 AS cor0 WHERE - col0 / - - 72 > + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL - - MAX ( ALL + 13 ) FROM tab2 AS cor0 WHERE - col0 / - - 72 > + 69
----
NULL

query I rowsort
SELECT col1 * + 35 AS col1 FROM tab1 cor0
----
1645
175
490

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 67 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - - 11 IS NOT NULL
----

query I rowsort
SELECT ALL ( - + col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col0 * + ( + 69 ) FROM tab2 AS cor0
----
3174
4416
5175

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT ALL + 38 * MIN( 56 ) FROM tab2 AS cor0
----
2128

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL + 38 * MIN ( 56 ) FROM tab2 AS cor0
----
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL < NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT DISTINCT + COUNT( DISTINCT col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT + COUNT ( DISTINCT col1 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9411
SELECT ALL col1 DIV col1 * - col0, + 81 * + col1 * - col2 + + col2 * col2 AS col2 FROM tab1
----
-51
-99648
-85
-20414
-91
-254252

skipif mysql # not compatible
query II rowsort label-9411
SELECT ALL col1 / col1 * - col0, + 81 * + col1 * - col2 + + col2 * col2 AS col2 FROM tab1
----
-51
-99648
-85
-20414
-91
-254252

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + col1 + - ( + - col2 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 7, col2 col0 FROM tab2
----
-7
23
-7
40
-7
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT ALL 29 AS col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) >= - 6
----

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL 29 AS col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) >= - 6
----

query I rowsort
SELECT - 32 * - - col1 AS col0 FROM tab1 AS cor0
----
-1504
-160
-448

query I rowsort
SELECT DISTINCT + col2 * + - col2 FROM tab0 cor0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 20 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 79 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT col0 / + ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT col0 / + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - ( - col1 ) ) * - col0 + + + col0 FROM tab0 AS cor0
----
-1200
-1740
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT DISTINCT + MAX( DISTINCT + - 96 ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + MAX ( DISTINCT + - 96 ) AS col0 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT DISTINCT 97 + + col1 FROM tab2 AS cor0
----
148
164
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT - 0 * - + col1 - col1 * + - CAST( col1 AS SIGNED ) - + + col1 FROM tab1 AS cor0
----
182
20
2162

skipif mysql # not compatible
query I rowsort label-9423
SELECT - 0 * - + col1 - col1 * + - CAST ( col1 AS INTEGER ) - + + col1 FROM tab1 AS cor0
----
182
20
2162

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE col2 * + + col1 NOT BETWEEN + - col0 * + - col1 AND 91
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-9425
SELECT DISTINCT - col1 + 83 + - + col0 DIV col2 DIV + - col2, + col0 FROM tab1 cor0
----
36
91
69
51
78
85

skipif mysql # not compatible
query II rowsort label-9425
SELECT DISTINCT - col1 + 83 + - + col0 / col2 / + - col2, + col0 FROM tab1 cor0
----
36
91
69
51
78
85

query I rowsort
SELECT ALL + 25 + + col0 + + col0 FROM tab1 AS cor0
----
127
195
207

query I rowsort
SELECT - ( 68 ) * col2 + + col2 AS col2 FROM tab1
----
-3953
-4556
-6432

query I rowsort
SELECT ALL 30 - ( + 93 ) FROM tab2
----
-63
-63
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9429
SELECT DISTINCT - SUM( DISTINCT + + col1 ) + + 3 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT - SUM ( DISTINCT + + col1 ) + + 3 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 + - - 87 AS col2 FROM tab1
----
40
73
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT DISTINCT - 73 * col1 * - col2 - + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT - 73 * col1 * - col2 - + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col1 * - + col0 + - 87 FROM tab2
----
-2433
-5015
-5112

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT DISTINCT + SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT + SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT - 90 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-90

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - 83 NOT IN ( 9 - - - col0, 22 + ( 9 ) * + + col1 * col0 ) OR NOT 43 NOT IN ( - col0 )
----

query II rowsort
SELECT + 9 AS col0, 66 FROM tab1
----
9
66
9
66
9
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9438
SELECT ALL - 86 AS col1, CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-86
46
-86
64
-86
75

skipif mysql # not compatible
query II rowsort label-9438
SELECT ALL - 86 AS col1, CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-86
46
-86
64
-86
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col0 + - - 72 * - - 72 col2 FROM tab2 AS cor0 WHERE NOT - col1 / - col1 IS NULL
----
5034
5056
5092

query II rowsort
SELECT ALL col2, - 78 FROM tab2 cor0
----
23
-78
40
-78
58
-78

query I rowsort
SELECT ALL - col0 * + - 56 + + + col0 * + - col0 FROM tab0 AS cor0
----
-2697
-3977
615

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 69 / - 4 + col0 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * - + 11 * + + col1 - col0 + + 28 + col2 AS col1 FROM tab0 AS cor0
----
-1059
-2359
-41817

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL - - 62 * - MAX( DISTINCT + 52 ) FROM tab0 AS cor0
----
-3224

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL - - 62 * - MAX ( DISTINCT + 52 ) FROM tab0 AS cor0
----
-3224

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col0 >= + 89
----
-21
-81

query III rowsort
SELECT + col0 + 55 + + 15 * - col2, col1 AS col2, - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL <= - col1 * + col2 + - col2 - - col0 + + + col0 + + + col1 + col1 )
----

query I rowsort
SELECT DISTINCT ( - col1 ) * + col0 * - col1 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT ALL - SUM( DISTINCT - col2 ) * + 69 AS col0 FROM tab1
----
15387

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL - SUM ( DISTINCT - col2 ) * + 69 AS col0 FROM tab1
----
15387

query I rowsort
SELECT DISTINCT - col0 * ( - - 31 ) FROM tab0
----
-2697
-3007
-465

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 71 ) >= ( - col1 )
----

query II rowsort
SELECT + col2 * + col2 AS col0, ( col0 ) - - - col2 AS col1 FROM tab1 AS cor0
----
3481
26
4624
23
9216
-45

query I rowsort
SELECT ALL - - 59 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ALL 97 AS col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT DISTINCT MAX( DISTINCT - + col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT MAX ( DISTINCT - + col1 ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT - - col1 + + + 46 FROM tab0 AS cor0
----
127
47
67

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( + col0 IS NOT NULL )
----
51
67
77

query I rowsort
SELECT - + 12 + + col1 FROM tab2 cor0
----
39
55
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT COUNT( * ) FROM tab1 cor0 WHERE - col1 + + + col1 - + + col2 + + - col2 / - col0 < 20 + - 45 * - col2 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT COUNT ( * ) FROM tab1 cor0 WHERE - col1 + + + col1 - + + col2 + + - col2 / - col0 < 20 + - 45 * - col2 * - col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT ALL ( + + CAST( + + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL ( + + CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 + + 4 FROM tab0 AS cor0
----
-17
-77
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT MAX( - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9462
SELECT MAX ( - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT DISTINCT - 89 - MIN( col1 ) AS col0 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT - 89 - MIN ( col1 ) AS col0 FROM tab0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL COUNT( + col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL COUNT ( + col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT 45 - - ( - 7 ) FROM tab1 WHERE ( col2 ) IS NOT NULL
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT DISTINCT MAX( + ( - 73 ) ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT MAX ( + ( - 73 ) ) FROM tab0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-9467
SELECT ALL - ( - col0 ) - - 25 DIV + + 43 * - + col1 * - 54 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL - ( - col0 ) - - 25 / + + 43 * - + col1 * - 54 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - col0 - 43 - + col2 FROM tab2 AS cor0
----
-112
-147
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - SUM( - 88 ) + - 22 AS col2 FROM tab2 cor0
----
242

skipif mysql # not compatible
query I rowsort label-9469
SELECT - SUM ( - 88 ) + - 22 AS col2 FROM tab2 cor0
----
242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL COUNT( * ) * - + 73 FROM tab0, tab0 AS cor0
----
-657

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL COUNT ( * ) * - + 73 FROM tab0, tab0 AS cor0
----
-657

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, 20 FROM tab1 AS cor0
----
51
20
85
20
91
20

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR NOT col2 / + - col0 * - 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT - COUNT( DISTINCT ( - + col1 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9474
SELECT - COUNT ( DISTINCT ( - + col1 ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT - SUM( ALL + col1 ) * - + ( + COUNT( ALL - 25 ) ) FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT - SUM ( ALL + col1 ) * - + ( + COUNT ( ALL - 25 ) ) FROM tab0 AS cor0
----
309

query I rowsort
SELECT ALL - ( - + col1 ) * - - col0 * col0 * ( 29 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT DISTINCT MAX( - + 46 ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT MAX ( - + 46 ) FROM tab1 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT MIN( DISTINCT + ( - col1 ) ) AS col1 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9478
SELECT MIN ( DISTINCT + ( - col1 ) ) AS col1 FROM tab2 cor0
----
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9479
SELECT DISTINCT col1 AS col0, CAST( NULL AS DECIMAL ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-9479
SELECT DISTINCT col1 AS col0, CAST ( NULL AS REAL ) FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT MAX( DISTINCT - 48 ) AS col2 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-9480
SELECT MAX ( DISTINCT - 48 ) AS col2 FROM tab1
----
-48

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT + - col0 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + ( + + col1 ) * + col0 * + 4 * - - col2 FROM tab0
----
228420
38412
73080

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 60 + 81 ) < - col0 - - 3 + 66
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT - MIN( ALL + - ( + col1 ) ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9484
SELECT - MIN ( ALL + - ( + col1 ) ) FROM tab1 cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT + - MIN( - 16 ) + - 18 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9486
SELECT + - MIN ( - 16 ) + - 18 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT - + 85 FROM tab0 WHERE + - col2 IS NOT NULL
----
-85
-85
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT ALL + 16 + - - CAST( col2 AS SIGNED ) FROM tab1
----
112
75
84

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL + 16 + - - CAST ( col2 AS INTEGER ) FROM tab1
----
112
75
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9489
SELECT DISTINCT - 51 * - col0, CAST( NULL AS SIGNED ) col0 FROM tab0
----
4437
NULL
4947
NULL
765
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9489
SELECT DISTINCT - 51 * - col0, CAST ( NULL AS INTEGER ) col0 FROM tab0
----
4437
NULL
4947
NULL
765
NULL

query I rowsort
SELECT col2 * - - col2 * 48 AS col0 FROM tab0
----
106032
470448
4800

query I rowsort
SELECT - ( - 39 ) * 58 + col0 + col0 FROM tab0 AS cor0
----
2292
2436
2456

query I rowsort
SELECT ALL - + col0 * - - col0 * - col2 FROM tab0 AS cor0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ALL - 30 + SUM( - col2 ) FROM tab2 AS cor0
----
-151

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL - 30 + SUM ( - col2 ) FROM tab2 AS cor0
----
-151

query I rowsort
SELECT ALL - 75 * - - col2 FROM tab2 AS cor0
----
-1725
-3000
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT + + COUNT( ALL col1 ) * - + COUNT( * ) col1 FROM tab1 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9495
SELECT DISTINCT + + COUNT ( ALL col1 ) * - + COUNT ( * ) col1 FROM tab1 cor0
----
-9

query II rowsort
SELECT + col0 - col1, 12 AS col2 FROM tab2 AS cor0
----
-13
12
-5
12
8
12

query I rowsort
SELECT + col0 - + - col2 - 38 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL 76 * 58 - col0 AS col0 FROM tab1
----
4317
4323
4357

query I rowsort
SELECT 70 + + col1 + - - 72 - - col0 FROM tab2
----
239
283
284

query I rowsort
SELECT DISTINCT - col0 + - col1 AS col2 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT DISTINCT - ( col2 ) - - 29 FROM tab1
----
-30
-39
-67

query I rowsort
SELECT ALL 84 * col2 + col0 FROM tab1
----
5041
5803
8115

query III rowsort
SELECT * FROM tab1 WHERE NULL > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT + col2 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT + col2 + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - 57 * - + ( + col2 ) > NULL
----

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE NOT - col1 - col0 * - col0 + + - ( - col0 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 62 AS col2, + col0 FROM tab1 AS cor0
----
62
51
62
85
62
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT DISTINCT + 52 * + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT + 52 * + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-468

onlyif mysql # aggregate syntax: 
query II rowsort label-9509
SELECT ALL ( - + COUNT( * ) ) AS col0, 50 AS col0 FROM tab2 cor0
----
-3
50

skipif mysql # not compatible
query II rowsort label-9509
SELECT ALL ( - + COUNT ( * ) ) AS col0, 50 AS col0 FROM tab2 cor0
----
-3
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT DISTINCT + MIN( + 92 ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT + MIN ( + 92 ) FROM tab1 AS cor0
----
92

query I rowsort
SELECT + 23 + - col0 FROM tab0 AS cor0
----
-64
-74
8

query I rowsort
SELECT ALL + + 47 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
47
47
47

query I rowsort
SELECT + 7 AS col0 FROM tab0 WHERE NOT + col0 < + col1
----
7
7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + col2 * - - col2 * 61 + + + col0 * - + col1 )
----

query I rowsort
SELECT - col1 + 72 AS col0 FROM tab1
----
25
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT + COUNT( * ) FROM tab0 WHERE NOT + col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9516
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + col1 <> NULL
----
0

query I rowsort
SELECT + col0 * + + 91 FROM tab2
----
4186
5824
6825

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - 87
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9519
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + 93 + - - CAST( - col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + 93 + - - CAST ( - col0 AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9520
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - + CAST( + col1 AS SIGNED ) + + + col1 BETWEEN - + CAST( 18 AS SIGNED ) AND + 65
----
51
14
96

skipif mysql # not compatible
query III rowsort label-9520
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - + CAST ( + col1 AS INTEGER ) + + + col1 BETWEEN - + CAST ( 18 AS INTEGER ) AND + 65
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT DISTINCT 7 * + COUNT( DISTINCT + + col1 ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT 7 * + COUNT ( DISTINCT + + col1 ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 33 + - 31 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT DISTINCT - 40 * col2 FROM tab2
----
-1600
-2320
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT - 16 + 6 * COUNT( * ) FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-9524
SELECT - 16 + 6 * COUNT ( * ) FROM tab0 cor0
----
2

query I rowsort
SELECT ALL 87 * col0 AS col1 FROM tab1 AS cor0
----
4437
7395
7917

query III rowsort
SELECT * FROM tab1 cor0 WHERE 59 IS NULL
----

query I rowsort
SELECT + - col1 * - 99 + col1 FROM tab2 AS cor0
----
5100
6700
7700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 37 ) * + 9 * + + col2 col2, col0 AS col2 FROM tab0 AS cor0
----
-15651
15
-32967
97
-3330
87

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + ( 63 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 9 + + 41 FROM tab1 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT DISTINCT - 18 * - COUNT( * ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT - 18 * - COUNT ( * ) FROM tab0 AS cor0
----
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col1 ) + + + col0 / - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL + - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL + - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL - ( MAX( DISTINCT - col1 ) ) + - COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL - ( MAX ( DISTINCT - col1 ) ) + - COUNT ( * ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT COUNT( - + 54 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9537
SELECT COUNT ( - + 54 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9538
SELECT DISTINCT + ( + ( + col1 ) ), - col0 + col0 + + 67 * - + col1 * - + ( - col2 ) - CAST( ( col0 ) AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9538
SELECT DISTINCT + ( + ( + col1 ) ), - col0 + col0 + + 67 * - + col1 * - + ( - col2 ) - CAST ( ( col0 ) AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - col0 + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col0 IN ( - 31 * - ( - 61 ) ) )
----

query I rowsort
SELECT DISTINCT col0 * - col1 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9542
SELECT ALL + MAX( col2 ), + MAX( + col1 ) AS col1 FROM tab2 AS cor0
----
58
77

skipif mysql # not compatible
query II rowsort label-9542
SELECT ALL + MAX ( col2 ), + MAX ( + col1 ) AS col1 FROM tab2 AS cor0
----
58
77

query II rowsort
SELECT DISTINCT col1, + 78 AS col0 FROM tab1
----
14
78
47
78
5
78

query II rowsort
SELECT + col2 AS col0, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query II rowsort
SELECT - + 54 AS col1, 55 AS col2 FROM tab0 AS cor0
----
-54
55
-54
55
-54
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9546
SELECT + - CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT + - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT ALL - MAX( DISTINCT + 71 ) FROM tab2 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL - MAX ( DISTINCT + 71 ) FROM tab2 cor0
----
-71

query I rowsort
SELECT ALL col1 * + - col1 AS col0 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT - ( - 92 ) AS col2 FROM tab0 WHERE NOT + ( col2 ) IS NULL
----
92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NULL >= NULL ) )
----

query I rowsort
SELECT 88 / - + 1 FROM tab0 WHERE + 35 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT + COUNT( * ) + + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9552
SELECT + COUNT ( * ) + + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 BETWEEN col1 AND ( + col2 )
----
97
1
99

query I rowsort
SELECT DISTINCT + col2 * ( + + col2 ) + 76 + - col1 AS col1 FROM tab0 AS cor0 WHERE - 70 + 39 < ( - col2 )
----
155

query I rowsort
SELECT DISTINCT - col0 + + 36 AS col0 FROM tab2
----
-10
-28
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT MIN( + 14 ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-9556
SELECT MIN ( + 14 ) FROM tab0
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-9557
SELECT 22 AS col1, + col2 - + 9 DIV col1 AS col2 FROM tab0
----
22
10
22
47
22
90

skipif mysql # not compatible
query II rowsort label-9557
SELECT 22 AS col1, + col2 - + 9 / col1 AS col2 FROM tab0
----
22
10
22
47
22
90

query I rowsort
SELECT + 83 - - - col1 * - - 52 AS col1 FROM tab0 AS cor0
----
-1009
-4129
31

query I rowsort
SELECT col0 - - 81 + - + col2 FROM tab0 AS cor0
----
158
49
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9560
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 36 >= CAST( + ( col2 ) AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9560
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 36 >= CAST ( + ( col2 ) AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( NOT + col0 * - + 92 - 45 IS NOT NULL )
----

query I rowsort
SELECT - - col0 * 85 + - - 61 * col2 + - - ( + col2 ) + + - col2 + + + col0 AS col1 FROM tab0 AS cor0
----
14381
4157
8092

query I rowsort
SELECT ALL col0 + col0 * - 52 * - + col1 * + ( - col2 ) + - col1 * col0 * - 36 AS col0 FROM tab2 AS cor0
----
-10072768
-14974425
-2721314

query I rowsort
SELECT DISTINCT col0 + + 83 FROM tab1
----
134
168
174

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 21 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9566
SELECT COUNT( * ) AS col1, + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-9566
SELECT COUNT ( * ) AS col1, + COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT - MIN( DISTINCT + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9567
SELECT - MIN ( DISTINCT + col0 ) FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 col1 FROM tab1
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 30, col0 col2 FROM tab1
----
30
51
30
85
30
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9570
SELECT ALL 32 DIV - ( + COUNT( * ) ) AS col1 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL 32 / - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-10

query I rowsort
SELECT - ( - 59 ) AS col1 FROM tab1 cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT ALL - COUNT( ( - 40 ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL - COUNT ( ( - 40 ) ) AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT 46 * - ( + col2 ) FROM tab1
----
-2714
-3128
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT MAX( DISTINCT - - 93 ) AS col0 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-9574
SELECT MAX ( DISTINCT - - 93 ) AS col0 FROM tab0
----
93

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 12 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9576
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 = CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9576
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 = CAST ( - col2 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 AND - 8 + col0 * + - 29
----

query I rowsort
SELECT - - col1 + + - col0 AS col1 FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT - 49 + + MIN( ALL - 46 ) col1 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9580
SELECT - 49 + + MIN ( ALL - 46 ) col1 FROM tab0 AS cor0
----
-95

query I rowsort
SELECT - - col2 * + + col2 + - col0 FROM tab0 AS cor0
----
13
2194
9704

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9582
SELECT DISTINCT ( - col1 ) + + CAST( NULL AS DECIMAL ), + col2 AS col1, + col2 FROM tab1
----
9 values hashing to b59e0c57417893bacbd8bdd86d9d21eb

skipif mysql # not compatible
query III rowsort label-9582
SELECT DISTINCT ( - col1 ) + + CAST ( NULL AS REAL ), + col2 AS col1, + col2 FROM tab1
----
9 values hashing to b59e0c57417893bacbd8bdd86d9d21eb

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9583
SELECT DISTINCT 36 DIV col1 DIV CAST( - col1 AS SIGNED ) FROM tab0
----
-36
0

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT 36 / col1 / CAST ( - col1 AS INTEGER ) FROM tab0
----
-36
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9584
SELECT * FROM tab0 WHERE + CAST( ( 39 ) AS SIGNED ) NOT BETWEEN NULL AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9584
SELECT * FROM tab0 WHERE + CAST ( ( 39 ) AS INTEGER ) NOT BETWEEN NULL AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE col2 / - 61 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 11 FROM tab2 WHERE NOT + col0 + - + ( - + col0 ) IS NULL
----
11
11
11

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - ( col1 ) ) NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT ALL + col2, col2 * + col0 AS col1 FROM tab0
----
10
870
47
705
99
9603

query I rowsort
SELECT ALL - + col2 * - + 4 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - + 86
----

query I rowsort
SELECT ( + col1 ) FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9591
SELECT + col2 DIV + + col2 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9591
SELECT + col2 / + + col2 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9592
SELECT 93 * - 64 * + - CAST( NULL AS SIGNED ) - - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT 93 * - 64 * + - CAST ( NULL AS INTEGER ) - - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( + + col2 ) - + ( + + col0 ) FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + col1 + - - 19 FROM tab2 WHERE col2 + col2 NOT BETWEEN NULL AND - col2
----
70
86
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9595
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( + + CAST( - col1 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9595
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( + + CAST ( - col1 AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT DISTINCT + - ( - 68 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
68

query I rowsort
SELECT ALL + 32 AS col0 FROM tab0 AS cor0
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT + 62 DIV col2 * - + col1 * col2 DIV col1 * - col2 AS col1 FROM tab0 AS cor0
----
0
2209
600

skipif mysql # not compatible
query I rowsort label-9598
SELECT + 62 / col2 * - + col1 * col2 / col1 * - col2 AS col1 FROM tab0 AS cor0
----
0
2209
600

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT + - COUNT( * ) * - COUNT( * ) col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9599
SELECT + - COUNT ( * ) * - COUNT ( * ) col1 FROM tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 < + col1 + + 54
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT DISTINCT MAX( - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT MAX ( - col2 ) AS col0 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT + SUM( + 64 ) AS col1 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT + SUM ( + 64 ) AS col1 FROM tab1
----
192

query I rowsort
SELECT ALL ( 29 ) AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9604
SELECT DISTINCT * FROM tab2 WHERE - col0 * col2 + - CAST( + ( col1 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9604
SELECT DISTINCT * FROM tab2 WHERE - col0 * col2 + - CAST ( + ( col1 ) AS INTEGER ) IS NULL
----

query II rowsort
SELECT col0 AS col2, - col0 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9606
SELECT DISTINCT - 62 AS col0, MAX( - ( + 97 ) ) col0 FROM tab2
----
-62
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9606
SELECT DISTINCT - 62 AS col0, MAX ( - ( + 97 ) ) col0 FROM tab2
----
-62
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - 23
----

query I rowsort
SELECT + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 * 55
----

query I rowsort
SELECT DISTINCT + + 30 * - col0 AS col0 FROM tab1 AS cor0
----
-1530
-2550
-2730

query I rowsort
SELECT DISTINCT col2 + - ( + + col2 ) FROM tab2 AS cor0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * - + col1 col1 FROM tab2
----
-1005
-1155
-765

query I rowsort
SELECT ALL 79 * col1 FROM tab2 WHERE NOT - 68 + + + col2 * + 26 IS NULL
----
4029
5293
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT SUM( col2 ) * - + 65 FROM tab2
----
-7865

skipif mysql # not compatible
query I rowsort label-9613
SELECT SUM ( col2 ) * - + 65 FROM tab2
----
-7865

onlyif mysql # aggregate syntax: 
query II rowsort label-9614
SELECT COUNT( * ), - COUNT( * ) AS col0 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9614
SELECT COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0
----
3
-3

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT - MAX( + + ( + col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9617
SELECT - MAX ( + + ( + col2 ) ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT col2 * 45 * - 66 FROM tab2 AS cor0
----
-118800
-172260
-68310

onlyif mysql # DIV for integer division: 
query I rowsort label-9619
SELECT + col1 DIV - 12 AS col1 FROM tab2 AS cor0
----
-4
-5
-6

skipif mysql # not compatible
query I rowsort label-9619
SELECT + col1 / - 12 AS col1 FROM tab2 AS cor0
----
-4
-5
-6

query I rowsort
SELECT ALL - - 83 + + col0 AS col1 FROM tab0 AS cor0
----
170
180
98

query I rowsort
SELECT ALL - - col2 + - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( + col1 ) * col0 + - + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 33 + - 21 * 39 + + col2 FROM tab1
----
-690
-718
-727

query II rowsort
SELECT + 60 + - ( - col0 ) AS col0, 31 FROM tab0 WHERE - 20 + - - col2 IS NOT NULL
----
147
31
157
31
75
31

query I rowsort
SELECT - col2 * + col0 + - - col2 FROM tab2
----
-1035
-2520
-4292

query II rowsort
SELECT - col0 + col0, + col2 AS col1 FROM tab0
----
0
10
0
47
0
99

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT SUM( ALL - - col2 ) + - - MIN( ALL - col2 ) * + + 88 FROM tab0
----
-8556

skipif mysql # not compatible
query I rowsort label-9628
SELECT SUM ( ALL - - col2 ) + - - MIN ( ALL - col2 ) * + + 88 FROM tab0
----
-8556

query I rowsort
SELECT ALL + 33 * - + ( - ( - + 95 ) ) FROM tab0
----
-3135
-3135
-3135

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT - ( - + ( + COUNT( * ) ) ) + + 21 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-9630
SELECT - ( - + ( + COUNT ( * ) ) ) + + 21 FROM tab2
----
24

query I rowsort
SELECT + col1 + - col0 + - + col2 * + + col2 FROM tab0 AS cor0
----
-166
-2143
-9897

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 / - + 44 * + + col0 BETWEEN NULL AND - ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - + ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9633
SELECT - + ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col0 - - 27 FROM tab1
----
112
118
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9635
SELECT COUNT( * ) DIV COUNT( * ) - + + COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-9635
SELECT COUNT ( * ) / COUNT ( * ) - + + COUNT ( * ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9636
SELECT DISTINCT + + 54 col0, COUNT( * ) FROM tab1 cor0
----
54
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9636
SELECT DISTINCT + + 54 col0, COUNT ( * ) FROM tab1 cor0
----
54
3

query II rowsort
SELECT DISTINCT + col0 AS col1, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT DISTINCT - col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9639
SELECT DISTINCT - COUNT( * ) AS col2, MAX( - 42 ) FROM tab2 AS cor0
----
-3
-42

skipif mysql # not compatible
query II rowsort label-9639
SELECT DISTINCT - COUNT ( * ) AS col2, MAX ( - 42 ) FROM tab2 AS cor0
----
-3
-42

query I rowsort
SELECT DISTINCT + + 10 AS col0 FROM tab2 AS cor0
----
10

query II rowsort
SELECT ALL - + 23, col2 FROM tab0 cor0
----
-23
10
-23
47
-23
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT - COUNT( DISTINCT + - col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9642
SELECT - COUNT ( DISTINCT + - col2 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT - col0 * - + 58 FROM tab1
----
2958
4930
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT COUNT( DISTINCT + + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9644
SELECT COUNT ( DISTINCT + + col0 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9645
SELECT DISTINCT ( CAST( + col1 AS SIGNED ) ) col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9645
SELECT DISTINCT ( CAST ( + col1 AS INTEGER ) ) col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL 49 * + COUNT( * ) FROM tab0 WHERE - - ( - col2 ) / + + 51 - + 55 IS NOT NULL
----
147

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL 49 * + COUNT ( * ) FROM tab0 WHERE - - ( - col2 ) / + + 51 - + 55 IS NOT NULL
----
147

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - 86 ) * + col2 + - col0 * - col1 FROM tab1 AS cor0
----
-1571
-4649
-7542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9649
SELECT DISTINCT col1 + ( + 56 ) FROM tab0 AS cor0 WHERE 30 + + 17 - col2 / - CAST( col1 AS SIGNED ) <> + col0
----
137
57
77

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT col1 + ( + 56 ) FROM tab0 AS cor0 WHERE 30 + + 17 - col2 / - CAST ( col1 AS INTEGER ) <> + col0
----
137
57
77

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ALL - 68 * - COUNT( * ) - - 56 AS col1 FROM tab2 AS cor0
----
260

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL - 68 * - COUNT ( * ) - - 56 AS col1 FROM tab2 AS cor0
----
260

query I rowsort
SELECT - 1 + col1 AS col2 FROM tab1 AS cor0
----
13
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT MIN( - + col2 ) + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT MIN ( - + col2 ) + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT col0 + + 96 AS col1 FROM tab2 AS cor0
----
142
160
171

query I rowsort
SELECT DISTINCT col2 + + 7 FROM tab0 AS cor0
----
106
17
54

query I rowsort
SELECT ALL - col1 + - 61 AS col0 FROM tab0 AS cor0
----
-142
-62
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL 42 * - SUM( ALL + + col2 ) AS col2 FROM tab1
----
-9366

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL 42 * - SUM ( ALL + + col2 ) AS col2 FROM tab1
----
-9366

query I rowsort
SELECT ALL + col0 + - 19 AS col1 FROM tab2
----
27
45
56

query I rowsort
SELECT 22 * 93 AS col0 FROM tab1
----
2046
2046
2046

query I rowsort
SELECT DISTINCT - col0 - - ( - + col0 ) FROM tab0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9662
SELECT - 67 * + 10 + COUNT( + 72 ) / 86 * - SUM( ALL - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT - 67 * + 10 + COUNT ( + 72 ) / 86 * - SUM ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + + 24 / + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col0 + + 90 AS col0 FROM tab0 AS cor0
----
-7
3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT ALL + ( - - COUNT( * ) ) FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL + ( - - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9666
SELECT 14, + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
14
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9666
SELECT 14, + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
14
3

query I rowsort
SELECT DISTINCT 61 + - + col1 FROM tab1
----
14
47
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9668
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col2 * col1 + - - CAST( - col0 AS SIGNED ) BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query III rowsort label-9668
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col2 * col1 + - - CAST ( - col0 AS INTEGER ) BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT - col1 * CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-9669
SELECT - col1 * CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 BETWEEN - - col0 / - + col1 * + col0 + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 AS col0, 80 FROM tab1
----
51
80
85
80
91
80

query II rowsort
SELECT DISTINCT - ( - + col0 ) * 60, col0 AS col1 FROM tab0
----
5220
87
5820
97
900
15

query I rowsort
SELECT DISTINCT + ( + - 5 ) FROM tab2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT + COUNT( - ( + col2 ) ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9674
SELECT + COUNT ( - ( + col2 ) ) * + COUNT ( * ) FROM tab0
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL - + ( - MAX( col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - + ( - MAX ( col1 ) ) FROM tab0 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2
----

query II rowsort
SELECT DISTINCT + - col0 AS col1, + col0 + + col2 AS col0 FROM tab1 AS cor0
----
-51
147
-85
144
-91
159

query I rowsort
SELECT + col2 * + + col0 + - col0 * - + col2 + - - col2 FROM tab0 AS cor0 WHERE NOT 33 * + 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL + SUM( ALL + 64 ) FROM tab2 cor0
----
192

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + SUM ( ALL + 64 ) FROM tab2 cor0
----
192

query I rowsort
SELECT 92 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL 88 + - + col1 FROM tab1 AS cor0
----
41
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT - SUM( - + 88 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT - SUM ( - + 88 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + - col1 * col0 + + 36 FROM tab1 AS cor0
----
-389
-4241
-678

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT COUNT( * ) + COUNT( * ) + + 82 * - ( + COUNT( * ) ) FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-9685
SELECT COUNT ( * ) + COUNT ( * ) + + 82 * - ( + COUNT ( * ) ) FROM tab2
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT ALL - CAST( - 20 AS SIGNED ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN col2 / - col0 AND + col2 AND + CAST( NULL AS SIGNED ) > - - col1 + - + 86 * + - col1
----

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL - CAST ( - 20 AS INTEGER ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN col2 / - col0 AND + col2 AND + CAST ( NULL AS INTEGER ) > - - col1 + - + 86 * + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9687
SELECT ALL - 50 DIV - col0 + + 81 FROM tab0
----
81
81
84

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL - 50 / - col0 + + 81 FROM tab0
----
81
81
84

query I rowsort
SELECT DISTINCT col0 * - 48 AS col2 FROM tab1
----
-2448
-4080
-4368

query I rowsort
SELECT + col0 + - - col0 * + + col1 FROM tab0
----
1230
1914
194

query III rowsort
SELECT * FROM tab2 WHERE col2 = ( NULL )
----

query I rowsort
SELECT - col0 * + - 70 + col1 * - - col1 + 36 FROM tab0
----
6567
6827
7647

query I rowsort
SELECT DISTINCT 7 * col1 AS col2 FROM tab0
----
147
567
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 + col1 col1 FROM tab0
----
106
166
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT DISTINCT + SUM( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT + SUM ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT + - col2 + - 17 AS col1 FROM tab0 cor0
----
-116
-27
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9696
SELECT COUNT( * ) AS col0, COUNT( + - col1 ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9696
SELECT COUNT ( * ) AS col0, COUNT ( + - col1 ) FROM tab2 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 88 col2 FROM tab0 AS cor0
----
-88

query I rowsort
SELECT ALL - ( - + 55 ) AS col2 FROM tab1 AS cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9699
SELECT DISTINCT + COUNT( * ), 68 AS col1 FROM tab1 AS cor0
----
3
68

skipif mysql # not compatible
query II rowsort label-9699
SELECT DISTINCT + COUNT ( * ), 68 AS col1 FROM tab1 AS cor0
----
3
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + - col0, + col1 * + col1 * - + col1 AS col2, - 68 + + + col1 col0 FROM tab2 AS cor0
----
9 values hashing to 698175840bad87976fd8e7b0f499ef4f

query I rowsort
SELECT + col2 * + ( + + col2 ) AS col1 FROM tab2 AS cor0
----
1600
3364
529

query II rowsort
SELECT DISTINCT 59 * + + col2 AS col2, + col2 * - col2 + col0 - - + 70 FROM tab2
----
1357
-413
2360
-1466
3422
-3219

query I rowsort
SELECT 75 * 12 AS col1 FROM tab0
----
900
900
900

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9704
SELECT DISTINCT * FROM tab0 WHERE + col2 / ( col0 ) + 89 - - CAST( NULL AS SIGNED ) BETWEEN 99 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9704
SELECT DISTINCT * FROM tab0 WHERE + col2 / ( col0 ) + 89 - - CAST ( NULL AS INTEGER ) BETWEEN 99 AND NULL
----

query I rowsort
SELECT ALL - col1 * - col0 * + col2 * + col1 * col0 FROM tab0
----
33379290
69382575
931491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9706
SELECT ALL - CAST( NULL AS SIGNED ) * - MIN( + - CAST( + 21 AS DECIMAL ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9706
SELECT ALL - CAST ( NULL AS INTEGER ) * - MIN ( + - CAST ( + 21 AS REAL ) ) col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 * 5 FROM tab2
----
230
320
375

onlyif mysql # DIV for integer division: 
query I rowsort label-9708
SELECT DISTINCT - 46 DIV + + 36 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT - 46 / + + 36 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + ( + 42 ) AS col2 FROM tab2
----
42

query I rowsort
SELECT + + col1 + col1 * - col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) < - col1
----

query I rowsort
SELECT DISTINCT + col1 + 50 * col1 FROM tab2 AS cor0
----
2601
3417
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT COUNT( * ) + - + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9712
SELECT COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT 94 + - 53 - col1 * - col0 AS col1 FROM tab2 AS cor0
----
2387
4969
5066

onlyif mysql # DIV for integer division: 
query II rowsort label-9714
SELECT ALL + - 94 AS col2, - col0 DIV col0 FROM tab2 AS cor0
----
-94
-1
-94
-1
-94
-1

skipif mysql # not compatible
query II rowsort label-9714
SELECT ALL + - 94 AS col2, - col0 / col0 FROM tab2 AS cor0
----
-94
-1
-94
-1
-94
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT DISTINCT + COUNT( DISTINCT + - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT + COUNT ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 67 + + col0 + + 56 * - + col0 * + col1 FROM tab0 AS cor0
----
-102158
-5268
-67958

query I rowsort
SELECT col2 + col2 FROM tab2 AS cor0 WHERE ( NOT + col0 * 51 IS NULL )
----
116
46
80

query II rowsort
SELECT 65 AS col2, col1 FROM tab1 AS cor0
----
65
14
65
47
65
5

query I rowsort
SELECT DISTINCT + + col1 + 67 AS col2 FROM tab0 AS cor0
----
148
68
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( - 1 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - 29 col2 FROM tab1 AS cor0
----
-30
-39
-67

query I rowsort
SELECT - ( - ( + ( + col2 ) ) ) AS col1 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9724
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9724
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9725
SELECT DISTINCT col0 - 4 * - col1 DIV - + col1 AS col1 FROM tab0
----
11
83
93

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT col0 - 4 * - col1 / - + col1 AS col1 FROM tab0
----
11
83
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT + 2 - - - 52 + + - COUNT( * ) * 2 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-9726
SELECT + 2 - - - 52 + + - COUNT ( * ) * 2 FROM tab0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 - + col0 col2 FROM tab0
----
-101
-19
-91

query I rowsort
SELECT - ( - 85 ) FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT 1 * - col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col0 * 59 * ( + 8 ) * + - 79 FROM tab0
----
3244056
3616936
559320

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9732
SELECT + 62, + MIN( ALL + col2 ) AS col0 FROM tab1
----
62
59

skipif mysql # not compatible
query II rowsort label-9732
SELECT + 62, + MIN ( ALL + col2 ) AS col0 FROM tab1
----
62
59

query I rowsort
SELECT - + 75 AS col1 FROM tab2 cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ALL - ( + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - MIN( - 10 ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9735
SELECT - MIN ( - 10 ) FROM tab2 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT DISTINCT - 77 * - + SUM( DISTINCT + - 57 ) FROM tab1 AS cor0
----
-4389

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT - 77 * - + SUM ( DISTINCT + - 57 ) FROM tab1 AS cor0
----
-4389

query I rowsort
SELECT ALL 8 * + col0 FROM tab0
----
120
696
776

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + + 35 / 92 AND + col2 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 + 25 + + col0 * - - col1 col1 FROM tab1
----
4358
506
795

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT - 26 + col1 - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9741
SELECT - 41 DIV COUNT( * ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-9741
SELECT - 41 / COUNT ( * ) FROM tab0
----
-13

query I rowsort
SELECT - ( - - col1 ) FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT + MAX( DISTINCT CAST( + col0 AS SIGNED ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9743
SELECT + MAX ( DISTINCT CAST ( + col0 AS INTEGER ) ) FROM tab2
----
75

query I rowsort
SELECT + 71 * + col0 + + col2 AS col1 FROM tab2
----
3289
4584
5383

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE ( + - 44 ) IS NULL
----

query II rowsort
SELECT DISTINCT 79, 79 FROM tab2 AS cor0
----
79
79

query I rowsort
SELECT + 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> - - 82
----

query I rowsort
SELECT - 89 * ( - 93 ) + - - ( - 17 ) FROM tab1 AS cor0
----
8260
8260
8260

query I rowsort
SELECT ALL col0 * - 55 + col2 AS col0 FROM tab0
----
-4775
-5236
-778

query I rowsort
SELECT ALL + col1 - col1 - - col1 AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL + 52 + col2 FROM tab2
----
110
75
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9753
SELECT col0 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT col0 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 3 - 41 FROM tab1
----
-38
-38
-38

query I rowsort
SELECT DISTINCT + col2 - - + 24 + - + 74 FROM tab0
----
-3
-40
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT - MAX( - 35 ) AS col2 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-9757
SELECT - MAX ( - 35 ) AS col2 FROM tab1
----
35

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT + 6 AS col0, 19 AS col1 FROM tab0 AS cor0
----
6
19
6
19
6
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT ALL CAST( col2 AS SIGNED ) + 23 * 64 FROM tab1
----
1531
1540
1568

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL CAST ( col2 AS INTEGER ) + 23 * 64 FROM tab1
----
1531
1540
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ( MIN( DISTINCT - col0 ) ) col1 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9761
SELECT ( MIN ( DISTINCT - col0 ) ) col1 FROM tab0
----
-97

query I rowsort
SELECT ALL ( ( 29 ) ) AS col0 FROM tab0
----
29
29
29

query I rowsort
SELECT ALL - 70 + 11 * 90 FROM tab2
----
920
920
920

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL - SUM( ALL 65 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL - SUM ( ALL 65 ) FROM tab2
----
-195

query I rowsort
SELECT DISTINCT col2 * + 46 AS col0 FROM tab1 WHERE NOT ( - 66 ) > 20
----
2714
3128
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL - COUNT( * ) + - 30 AS col2 FROM tab0 WHERE NOT ( col1 ) <= + 46 * col0
----
-30

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL - COUNT ( * ) + - 30 AS col2 FROM tab0 WHERE NOT ( col1 ) <= + 46 * col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT + MIN( ALL - 59 ) AS col2 FROM tab0 WHERE col2 + 13 > - 76
----
-59

skipif mysql # not compatible
query I rowsort label-9767
SELECT + MIN ( ALL - 59 ) AS col2 FROM tab0 WHERE col2 + 13 > - 76
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 * col0 col2 FROM tab1
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT SUM( - col2 ) / 97 - AVG ( + 86 ) * COUNT( * ) FROM tab2 WHERE NOT - col1 NOT BETWEEN ( - col2 / + col1 ) AND + ( col1 ) - + col0 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT SUM ( - col2 ) / 97 - AVG ( + 86 ) * COUNT ( * ) FROM tab2 WHERE NOT - col1 NOT BETWEEN ( - col2 / + col1 ) AND + ( col1 ) - + col0 * col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT SUM( col0 ) - - COUNT( * ) AS col2 FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-9770
SELECT SUM ( col0 ) - - COUNT ( * ) AS col2 FROM tab0
----
202

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9771
SELECT * FROM tab0 WHERE NOT + 28 * + CAST( 42 * col2 AS SIGNED ) - - col1 < + col2 * - 87 + - col1 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9771
SELECT * FROM tab0 WHERE NOT + 28 * + CAST ( 42 * col2 AS INTEGER ) - - col1 < + col2 * - 87 + - col1 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 78 - col0 AS col2 FROM tab2
----
14
3
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9773
SELECT ALL COUNT( * ) * 90 col2 FROM tab2 WHERE NOT CAST( col2 AS SIGNED ) - - col2 BETWEEN NULL AND ( - col1 - + ( col0 - col0 ) * col2 )
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9773
SELECT ALL COUNT ( * ) * 90 col2 FROM tab2 WHERE NOT CAST ( col2 AS INTEGER ) - - col2 BETWEEN NULL AND ( - col1 - + ( col0 - col0 ) * col2 )
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT ALL 15 AS col0 FROM tab1 WHERE NOT ( - 45 / + 56 ) BETWEEN CAST( NULL AS SIGNED ) AND ( + 99 )
----

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL 15 AS col0 FROM tab1 WHERE NOT ( - 45 / + 56 ) BETWEEN CAST ( NULL AS INTEGER ) AND ( + 99 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + col1 * - col2 NOT IN ( + 28 + + col0 )
----

query I rowsort
SELECT DISTINCT col2 * - 8 AS col1 FROM tab0
----
-376
-792
-80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 14 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT - COUNT( * ) FROM tab1 WHERE NOT + col0 NOT IN ( - col2 + - ( ( 82 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9778
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + col0 NOT IN ( - col2 + - ( ( 82 ) ) )
----
0

query I rowsort
SELECT DISTINCT + 86 * col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 77 * 7 FROM tab2
----
539
539
539

query I rowsort
SELECT - 58 * + 93 FROM tab1
----
-5394
-5394
-5394

query I rowsort
SELECT 82 * col2 AS col1 FROM tab0
----
3854
8118
820

query I rowsort
SELECT 57 - 93 AS col1 FROM tab0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE col2 NOT BETWEEN NULL AND + col1 * - col0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT DISTINCT - COUNT( * ) + ( - COUNT( * ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT - COUNT ( * ) + ( - COUNT ( * ) ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT DISTINCT - MIN( + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT - MIN ( + col0 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT + 20 * + COUNT( * ) + - COUNT( * ) * - 80 FROM tab2 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9787
SELECT + 20 * + COUNT ( * ) + - COUNT ( * ) * - 80 FROM tab2 WHERE - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT - SUM( 30 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-9788
SELECT - SUM ( 30 ) FROM tab1
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 col1 FROM tab1 cor0
----
3481
4624
9216

query I rowsort
SELECT + col2 * + 85 AS col1 FROM tab2 AS cor0
----
1955
3400
4930

onlyif mysql # DIV for integer division: 
query I rowsort label-9791
SELECT + 90 DIV col1 AS col2 FROM tab0 AS cor0
----
1
4
90

skipif mysql # not compatible
query I rowsort label-9791
SELECT + 90 / col1 AS col2 FROM tab0 AS cor0
----
1
4
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT ALL + COUNT( * ) + 2 AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL + COUNT ( * ) + 2 AS col0 FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN 18 * + 83 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col1 FROM tab0 cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) NOT IN ( - col2 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * col1 AS col1 FROM tab1 WHERE - col0 IS NOT NULL
----
1344
295
3196

query I rowsort
SELECT - 86 * 60 FROM tab0 cor0 CROSS JOIN tab1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to c2e0c16ac7739e2043c8cbd145286139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * col1 + + 15 col1 FROM tab1
----
-200
-2006
-587

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT + 89 NOT BETWEEN ( NULL ) AND 32
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9800
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9801
SELECT - 31 DIV - col1 FROM tab0 AS cor0
----
0
1
31

skipif mysql # not compatible
query I rowsort label-9801
SELECT - 31 / - col1 FROM tab0 AS cor0
----
0
1
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 / 27 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 + + col1 * + col1 BETWEEN col0 AND col2 * col1 + - col1 / 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL - 55 * + COUNT( * ) FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL - 55 * + COUNT ( * ) FROM tab1 AS cor0
----
-165

query I rowsort
SELECT ALL + col2 + 26 AS col0 FROM tab0 AS cor0
----
125
36
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9806
SELECT DISTINCT - - 55 DIV - MAX( 20 ) col2 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9806
SELECT DISTINCT - - 55 / - MAX ( 20 ) col2 FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9807
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT COUNT( + 3 ) FROM tab1 AS cor0 WHERE ( ( - 91 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9808
SELECT COUNT ( + 3 ) FROM tab1 AS cor0 WHERE ( ( - 91 ) ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 + col1 ) NOT IN ( 24 + - col2 )
----
91
47
68

query III rowsort
SELECT ALL * FROM tab2 WHERE - 50 > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9811
SELECT DISTINCT - CAST( - col2 AS SIGNED ) col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9811
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL - 17 * - col1 FROM tab2
----
1139
1309
867

query I rowsort
SELECT ALL 2 * - col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT - ( - COUNT( ALL col0 ) ) * COUNT( col2 / + col0 ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9814
SELECT - ( - COUNT ( ALL col0 ) ) * COUNT ( col2 / + col0 ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT + 53 * - MIN( DISTINCT + 90 ) FROM tab0 cor0
----
-4770

skipif mysql # not compatible
query I rowsort label-9815
SELECT + 53 * - MIN ( DISTINCT + 90 ) FROM tab0 cor0
----
-4770

query I rowsort
SELECT ALL + col0 + 64 AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
151
161
79

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT + + col2 + + col0 <= + col0 + 43 * - col2
----
-51
-85
-91

query I rowsort
SELECT - ( + 50 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 6 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT ALL - COUNT( * ) * + 10 * MIN( ALL + col1 ) col0 FROM tab1
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9820
SELECT ALL - COUNT ( * ) * + 10 * MIN ( ALL + col1 ) col0 FROM tab1
----
-150

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT DISTINCT + - MAX( - - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT + - MAX ( - - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - - col0 + - 7 + + col2 AS col0 FROM tab2 AS cor0
----
126
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9824
SELECT DISTINCT - - col0 + + col0 + - col2 DIV 11 AS col2 FROM tab1 AS cor0
----
165
176
94

skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT - - col0 + + col0 + - col2 / 11 AS col2 FROM tab1 AS cor0
----
165
176
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 41 + - col1 / + 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL - COUNT( * ) + + MIN( + 41 ) + - SUM( ALL + 43 ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL - COUNT ( * ) + + MIN ( + 41 ) + - SUM ( ALL + 43 ) FROM tab0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + - - 72 > ( + col1 )
----

query I rowsort
SELECT + col2 + + ( - ( col0 ) ) AS col1 FROM tab1
----
-23
-26
45

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - - col0 + + col0 NOT BETWEEN NULL AND NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT 36 + - - col2 AS col1 FROM tab2
----
59
76
94

query I rowsort
SELECT ALL ( + 8 ) AS col0 FROM tab1
----
8
8
8

query I rowsort
SELECT DISTINCT + col0 * + - col0 * + + col0 AS col1 FROM tab2
----
-262144
-421875
-97336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col2 ) + + col1 col1 FROM tab1
----
110
115
64

query I rowsort
SELECT - 60 + - col1 + - 58 FROM tab0
----
-119
-139
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT COUNT( * ) + - - COUNT( * ) + + COUNT( + 32 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9835
SELECT COUNT ( * ) + - - COUNT ( * ) + + COUNT ( + 32 ) AS col2 FROM tab0
----
9

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - + 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT MAX( ALL + 90 ) AS col0 FROM tab2 WHERE NULL > - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT MAX ( ALL + 90 ) AS col0 FROM tab2 WHERE NULL > - + col1
----
NULL

query I rowsort
SELECT 35 + + 91 FROM tab1 AS cor0
----
126
126
126

query I rowsort
SELECT ALL + col2 * 52 FROM tab1 AS cor0
----
3068
3536
4992

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col0 + + 36 AS col1, ( 22 ) FROM tab2 AS cor0
----
-10
22
-28
22
-39
22

query I rowsort
SELECT DISTINCT + col0 + - - col2 + col0 FROM tab2 cor0
----
115
168
208

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE 46 - + col2 > + 3
----

query I rowsort
SELECT ALL col0 + 11 AS col2 FROM tab0
----
108
26
98

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE + 31 + - 97 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 46 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL - 79 * - COUNT( * ) FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - 79 * - COUNT ( * ) FROM tab0
----
237

query I rowsort
SELECT ALL 17 * + ( col2 ) FROM tab2 AS cor0
----
391
680
986

query I rowsort
SELECT DISTINCT - col0 - - 20 FROM tab0 AS cor0
----
-67
-77
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9851
SELECT 78 DIV 72 AS col0 FROM tab1 AS cor0 WHERE ( - + col2 ) + col1 + col0 - + 40 DIV + col0 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9851
SELECT 78 / 72 AS col0 FROM tab1 AS cor0 WHERE ( - + col2 ) + col1 + col0 - + 40 / + col0 IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT SUM( DISTINCT - 5 ) AS col2 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT SUM ( DISTINCT - 5 ) AS col2 FROM tab2 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9853
SELECT - - col2 + 27 AS col2 FROM tab1 cor0 WHERE NOT 72 + + 36 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
123
86
95

skipif mysql # not compatible
query I rowsort label-9853
SELECT - - col2 + 27 AS col2 FROM tab1 cor0 WHERE NOT 72 + + 36 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
123
86
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9854
SELECT + + CAST( - + ( - 29 ) AS SIGNED ) FROM tab1 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-9854
SELECT + + CAST ( - + ( - 29 ) AS INTEGER ) FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT - 96 + - col2 * - col0 * col2 * + ( col0 ) + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
497010
756825
92217514

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 >= ( 9 )
----

query II rowsort
SELECT ALL col1, - col2 AS col2 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT + ( 31 ) AS col0 FROM tab1
----
31
31
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9859
SELECT + col1 FROM tab2 WHERE NOT CAST( + col1 AS DECIMAL ) > col1 / col1 * + 99
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9859
SELECT + col1 FROM tab2 WHERE NOT CAST ( + col1 AS REAL ) > col1 / col1 * + 99
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9860
SELECT ALL 90 * col0 FROM tab0 WHERE ( - col2 + - col2 + - + col2 + - + CAST( col0 AS SIGNED ) ) IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL 90 * col0 FROM tab0 WHERE ( - col2 + - col2 + - + col2 + - + CAST ( col0 AS INTEGER ) ) IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9861
SELECT + 97 AS col2, SUM( DISTINCT + col1 ) AS col0 FROM tab2
----
97
195

skipif mysql # not compatible
query II rowsort label-9861
SELECT + 97 AS col2, SUM ( DISTINCT + col1 ) AS col0 FROM tab2
----
97
195

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9863
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9863
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL + 84, col1 * + col1 AS col1 FROM tab1 AS cor0
----
84
196
84
2209
84
25

query I rowsort
SELECT DISTINCT col2 - - 92 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
151
160
188

query II rowsort
SELECT ALL - - col0, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT - - col1 FROM tab2 WHERE NOT NULL <= - - col0 - - 72 + col2 / + col1
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - - 37 FROM tab1 AS cor0 WHERE NOT 47 * - + col2 * - 81 + + 13 IS NULL
----
37
37
37

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col0 + + - 59 + + - col0 * - 41 * + col2 <= - + col1
----

query I rowsort
SELECT - col1 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT + - col0 + - CAST( col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-9872
SELECT + - col0 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-108
-96
-98

query II rowsort
SELECT ALL - col1 + 34 AS col0, + col2 + + - 4 FROM tab2 AS cor0
----
-17
19
-33
54
-43
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, col1 FROM tab0
----
15
81
87
21
97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 4 col2 FROM tab1
----
1
10
43

query II rowsort
SELECT 11, ( + + 31 ) AS col2 FROM tab2
----
11
31
11
31
11
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 33 AS col2, col1 col2 FROM tab0
----
33
1
33
21
33
81

query III rowsort
SELECT * FROM tab0 WHERE ( 5 ) IS NULL
----

query II rowsort
SELECT ALL + col2, - 32 + - ( + 19 ) - 38 FROM tab2 AS cor0
----
23
-89
40
-89
58
-89

query II rowsort
SELECT ALL - col1 AS col0, ( + - col2 ) + + col2 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

query II rowsort
SELECT col0, col1 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
51
14
85
5
91
47

query I rowsort
SELECT col0 * - 68 + + 46 * - 53 FROM tab2 AS cor0
----
-5566
-6790
-7538

query I rowsort
SELECT DISTINCT + ( - - 42 ) + + - 16 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9884
SELECT ALL COUNT( * ), - MIN( 64 ) AS col2 FROM tab2, tab2 AS cor0
----
9
-64

skipif mysql # not compatible
query II rowsort label-9884
SELECT ALL COUNT ( * ), - MIN ( 64 ) AS col2 FROM tab2, tab2 AS cor0
----
9
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 + - + 2 col1 FROM tab2
----
-61
-61
-61

query I rowsort
SELECT + 25 + + col1 - - + col2 + col2 * - + col1 AS col1 FROM tab0
----
-154
-3654
26

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( NOT - 85 * - col2 + - col2 * 53 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 96 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 78 > - 90
----

query I rowsort
SELECT + + 54 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT 82 * + + col1 FROM tab1 AS cor0
----
1148
3854
410

query I rowsort
SELECT - + 34 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9894
SELECT + 76 DIV col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9894
SELECT + 76 / col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT DISTINCT + 61 * + col2, col1 + - + col0 AS col0 FROM tab1 AS cor0
----
3599
-80
4148
-44
5856
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT DISTINCT + COUNT( col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT + COUNT ( col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 37 + - ( + ( 78 ) ) NOT IN ( ( + - col0 ) )
----

query I rowsort
SELECT ALL 49 * - + 2 FROM tab2
----
-98
-98
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9899
SELECT ALL + COUNT( * ) DIV - + COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL + COUNT ( * ) / - + COUNT ( * ) FROM tab2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9900
SELECT ALL col0 * + 33 col0 FROM tab1 WHERE - + 72 * + + col2 + + - 97 * - col1 * + - col1 NOT BETWEEN - + CAST( NULL AS DECIMAL ) AND col0 * - col0
----
2805

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9900
SELECT ALL col0 * + 33 col0 FROM tab1 WHERE - + 72 * + + col2 + + - 97 * - col1 * + - col1 NOT BETWEEN - + CAST ( NULL AS REAL ) AND col0 * - col0
----
2805

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - - col1 / - + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9902
SELECT ALL col1 DIV + - 95 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL col1 / + - 95 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9903
SELECT DISTINCT + COUNT( * ) DIV + ( 83 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT + COUNT ( * ) / + ( 83 ) AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 30 col1 FROM tab2
----
1200
1740
690

query I rowsort
SELECT - ( + 38 ) AS col0 FROM tab0
----
-38
-38
-38

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 > NULL
----

query I rowsort
SELECT + + 85 AS col2 FROM tab2 AS cor0
----
85
85
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = + col1 / + 66
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT + 71 DIV - 4 FROM tab0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-9909
SELECT + 71 / - 4 FROM tab0
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT CAST( + col1 AS SIGNED ) * + 85 AS col0 FROM tab2
----
4335
5695
6545

skipif mysql # not compatible
query I rowsort label-9910
SELECT CAST ( + col1 AS INTEGER ) * + 85 AS col0 FROM tab2
----
4335
5695
6545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, + 55 col0 FROM tab1
----
-59
55
-68
55
-96
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9912
SELECT ALL - - 54 DIV + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1
-16
-80

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL - - 54 / + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1
-16
-80

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 3 < NULL
----

query I rowsort
SELECT DISTINCT + ( + - 74 ) AS col1 FROM tab0 AS cor0
----
-74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 89 / + col2 + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9916
SELECT - + 42 AS col0, - MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
-42
-99

skipif mysql # not compatible
query II rowsort label-9916
SELECT - + 42 AS col0, - MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-42
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL MAX( - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL MAX ( - col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9918
SELECT - col0 * 60 * + CAST( + CAST( - 50 AS SIGNED ) AS SIGNED ) + + - 72 + - 81 FROM tab1
----
152847
254847
272847

skipif mysql # not compatible
query I rowsort label-9918
SELECT - col0 * 60 * + CAST ( + CAST ( - 50 AS INTEGER ) AS INTEGER ) + + - 72 + - 81 FROM tab1
----
152847
254847
272847

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT DISTINCT COUNT( * ) + 72 AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT COUNT ( * ) + 72 AS col1 FROM tab1
----
75

query III rowsort
SELECT * FROM tab2 WHERE + + col2 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9921
SELECT + 26 DIV col2 + col2 + col0 AS col2 FROM tab2
----
104
133
70

skipif mysql # not compatible
query I rowsort label-9921
SELECT + 26 / col2 + col2 + col0 AS col2 FROM tab2
----
104
133
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9922
SELECT col1 * + 71 + - CAST( NULL AS DECIMAL ) / + 92 - - + 66 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT col1 * + 71 + - CAST ( NULL AS REAL ) / + 92 - - + 66 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT ALL - 87 + col1 + + - col2 * + - col0 * + col0 * - + CAST( - ( col1 ) AS SIGNED ) * - col2 AS col2 FROM tab0
----
-15894966
-40259031
-92217695

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL - 87 + col1 + + - col2 * + - col0 * + col0 * - + CAST ( - ( col1 ) AS INTEGER ) * - col2 AS col2 FROM tab0
----
-15894966
-40259031
-92217695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 + - col0 col2 FROM tab2
----
-11
-29
-40

query II rowsort
SELECT DISTINCT col0 - - 21 AS col0, - 13 FROM tab0
----
108
-13
118
-13
36
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9926
SELECT ALL col0 / - - 31 - - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL col0 / - - 31 - - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL + COUNT( + + 2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL + COUNT ( + + 2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - ( - col1 ) + + 97 FROM tab1 AS cor0
----
102
111
144

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IS NOT NULL AND col1 IS NULL
----

query I rowsort
SELECT + + 53 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT DISTINCT MAX( DISTINCT + - 45 ) AS col0 FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT MAX ( DISTINCT + - 45 ) AS col0 FROM tab2 cor0
----
-45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL
----

query II rowsort
SELECT ALL 5, + col1 AS col2 FROM tab1 cor0
----
5
14
5
47
5
5

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - 19 AND - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT DISTINCT COUNT( * ) * 44 col0 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9936
SELECT DISTINCT COUNT ( * ) * 44 col0 FROM tab1 AS cor0
----
132

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 - + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 49 col0 FROM tab0 AS cor0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 85 * - col1 col0 FROM tab2 AS cor0
----
-4335
-5695
-6545

query I rowsort
SELECT DISTINCT + - 91 * + 89 FROM tab2 AS cor0 WHERE NOT - 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL COUNT( ALL - 33 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL COUNT ( ALL - 33 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 70 * + col2 FROM tab1 AS cor0
----
-4130
-4760
-6720

query I rowsort
SELECT DISTINCT + 4 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT ALL CAST( + - 43 AS SIGNED ) FROM tab0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL CAST ( + - 43 AS INTEGER ) FROM tab0
----
-43
-43
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-9945
SELECT + ( col0 ) * - 47 + 72 DIV col2 FROM tab0
----
-4082
-4559
-704

skipif mysql # not compatible
query I rowsort label-9945
SELECT + ( col0 ) * - 47 + 72 / col2 FROM tab0
----
-4082
-4559
-704

query I rowsort
SELECT + - 6 AS col2 FROM tab2 WHERE NOT - col1 * + 81 IS NULL
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT + MIN( - col2 ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9947
SELECT + MIN ( - col2 ) col2 FROM tab0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9948
SELECT - 74 * + - col2 DIV + col2 FROM tab2
----
74
74
74

skipif mysql # not compatible
query I rowsort label-9948
SELECT - 74 * + - col2 / + col2 FROM tab2
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT MIN( DISTINCT - 81 ) AS col1 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9949
SELECT MIN ( DISTINCT - 81 ) AS col1 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT + 99 * + + col2 * - + col1 AS col2 FROM tab2
----
-116127
-304920
-384714

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL NOT IN ( + + 48 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, - col1 col0 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT + ( - col1 ) + + col2 + - 19 + - + col2 - + col1 * 59 * - - col0 * col0 + + col1 - CAST( - ( - col1 ) AS SIGNED ) * + col2 FROM tab2 cor0
----
-18611227
-22239530
-6368236

skipif mysql # not compatible
query I rowsort label-9953
SELECT + ( - col1 ) + + col2 + - 19 + - + col2 - + col1 * 59 * - - col0 * col0 + + col1 - CAST ( - ( - col1 ) AS INTEGER ) * + col2 FROM tab2 cor0
----
-18611227
-22239530
-6368236

query I rowsort
SELECT - + ( - - col2 ) + + - 44 AS col0 FROM tab1 AS cor0
----
-103
-112
-140

query I rowsort
SELECT + col0 + - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-16
-41
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9956
SELECT 42, - COUNT( * ) col1 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
42
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9956
SELECT 42, - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
42
0

query I rowsort
SELECT DISTINCT - - col1 * - 59 AS col0 FROM tab0 AS cor0
----
-1239
-4779
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT ALL + + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL + + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL - 36 + + + COUNT( * ) * - 26 AS col2 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL - 36 + + + COUNT ( * ) * - 26 AS col2 FROM tab1 AS cor0
----
-114

query I rowsort
SELECT 0 * - - 76 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 FROM tab1 WHERE + col0 * + col2 / - col2 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + ( + 34 ) AS col2 FROM tab0
----
133
44
81

onlyif mysql # DIV for integer division: 
query II rowsort label-9963
SELECT ALL 19 + - col2 col1, col2 DIV 11 col0 FROM tab0
----
-28
4
-80
9
9
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9963
SELECT ALL 19 + - col2 col1, col2 / 11 col0 FROM tab0
----
-28
4
-80
9
9
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT ( + + CAST( - + 70 AS SIGNED ) ) col1 FROM tab1
----
-70
-70
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9964
SELECT ( + + CAST ( - + 70 AS INTEGER ) ) col1 FROM tab1
----
-70
-70
-70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col1 - - col0 IS NULL
----

query I rowsort
SELECT - - col0 FROM tab1 WHERE - col2 + - + col0 IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE ( - + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 75 - ( - col2 ) FROM tab1 AS cor0
----
-16
-7
21

query I rowsort
SELECT - + col0 + + - col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9970
SELECT + col0 + ( + col1 ) DIV + col1 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-9970
SELECT + col0 + ( + col1 ) / + col1 FROM tab0 AS cor0
----
16
88
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - col2
----

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT + COUNT( * ) - - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
18

skipif mysql # not compatible
query I rowsort label-9973
SELECT + COUNT ( * ) - - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT - + COUNT( - - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9974
SELECT - + COUNT ( - - col2 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT + + COUNT( - + col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9975
SELECT + + COUNT ( - + col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9976
SELECT COUNT( ALL 40 ) * + + CAST( 22 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9976
SELECT COUNT ( ALL 40 ) * + + CAST ( 22 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT DISTINCT + MAX( col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT + MAX ( col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT DISTINCT + 26 AS col1 FROM tab2 AS cor0
----
26

query II rowsort
SELECT + - col1 * - ( ( - col0 ) ), 90 + col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 3 + + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL 40 FROM tab2, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT + 77 * - col0 FROM tab0
----
-1155
-6699
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT + MIN( 19 ) * + 9 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-9984
SELECT + MIN ( 19 ) * + 9 FROM tab2
----
171

query I rowsort
SELECT ALL 23 * col0 * - col2 AS col0 FROM tab1
----
-112608
-115345
-142324

query I rowsort
SELECT ( + + 78 ) AS col2 FROM tab1
----
78
78
78

query I rowsort
SELECT - col1 * - + 5 FROM tab2
----
255
335
385

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT DISTINCT - + MIN( DISTINCT + ( 64 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-64

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT - + MIN ( DISTINCT + ( 64 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT DISTINCT COUNT( * ) + 39 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT COUNT ( * ) + 39 FROM tab0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col2 FROM tab1 WHERE NOT col2 <> + - col0
----

query I rowsort
SELECT ALL col0 + - + 82 FROM tab2
----
-18
-36
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9993
SELECT DISTINCT - ( + col2 ) * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT - ( + col2 ) * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT + 90 * + 41 FROM tab2
----
3690
3690
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT MIN( - - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9995
SELECT MIN ( - - col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT ALL - - 57 * + COUNT( - + col2 ) FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL - - 57 * + COUNT ( - + col2 ) FROM tab2 AS cor0
----
171

query I rowsort
SELECT ALL + 48 * + 13 AS col0 FROM tab1 cor0
----
624
624
624

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * + col2 + col0 * - + col2 * + - 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9999
SELECT DISTINCT + ( + - col2 ) DIV col1 FROM tab0 AS cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT + ( + - col2 ) / col1 FROM tab0 AS cor0
----
-99
0

