sqllogictest
Artifact Content
Not logged in

Artifact 29ea842fa7d8ad54e42639f6cfb7e04151957d19:


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
S