sqllogictest
Artifact Content
Not logged in

Artifact 3c6e2896a29cce1dc7e6ddce3e5cea728ee4a60a:


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 + col1 * - + 26 AS col2 FROM tab2 AS cor0
----
-1326
-1742
-2002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1
SELECT CAST( + SUM( ALL - 37 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-1
SELECT CAST ( + SUM ( ALL - 37 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-111

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

query I rowsort
SELECT - AVG ( ALL col2 ) FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 >= + + ( - - col0 ) + col0 + + - 67
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT DISTINCT + ( - COUNT( * ) ) + 31 AS col2 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7
SELECT DISTINCT + ( - COUNT ( * ) ) + 31 AS col2 FROM tab0 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT - ( - MAX( DISTINCT - 40 ) ) AS col2 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8
SELECT - ( - MAX ( DISTINCT - 40 ) ) AS col2 FROM tab1 AS cor0
----
-40

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

query I rowsort
SELECT + col1 * + 30 - + col0 FROM tab0
----
-67
2415
543

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT 33 + - COUNT( * ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-11
SELECT 33 + - COUNT ( * ) FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL COUNT( * ) * 92 col2 FROM tab2
----
276

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

query I rowsort
SELECT ALL col2 + - 59 FROM tab1
----
0
37
9

query I rowsort
SELECT + col0 + + - 75 + + col0 FROM tab0 AS cor0
----
-45
119
99

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT + - 25 * + MIN( ALL - col0 ) FROM tab0 AS cor0
----
2425

skipif mysql # not compatible
query I rowsort label-19
SELECT + - 25 * + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
2425

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

query I rowsort
SELECT - + col2 * 67 FROM tab1 AS cor0
----
-3953
-4556
-6432

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL - SUM( + - 48 ) FROM tab0 cor0
----
144

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL - SUM ( + - 48 ) FROM tab0 cor0
----
144

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

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

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

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL + COUNT ( DISTINCT + - 85 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT 38 FROM tab0 WHERE NOT + 27 <> col1
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 11 * + 63 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-29
SELECT - COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT col1 + - - col2 AS col0 FROM tab2
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT DISTINCT 34 DIV - col1 FROM tab0
----
-1
-34
0

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT 34 / - col1 FROM tab0
----
-1
-34
0

query II rowsort
SELECT DISTINCT - - 9 + + col0 AS col0, 71 FROM tab2 AS cor0
----
55
71
73
71
84
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT DISTINCT - COUNT( * ) + SUM( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT - COUNT ( * ) + SUM ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
196

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

query I rowsort
SELECT col1 * + 27 AS col2 FROM tab2
----
1377
1809
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT COUNT( * ) + - 52 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-43

skipif mysql # not compatible
query I rowsort label-37
SELECT COUNT ( * ) + - 52 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-43

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 97 + + ( - 79 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-42
SELECT DISTINCT MIN( DISTINCT - - 27 ) + + - 50 AS col2, 4 + + 15 * - 47 AS col2 FROM tab2 AS cor0
----
-23
-701

skipif mysql # not compatible
query II rowsort label-42
SELECT DISTINCT MIN ( DISTINCT - - 27 ) + + - 50 AS col2, 4 + + 15 * - 47 AS col2 FROM tab2 AS cor0
----
-23
-701

onlyif mysql # DIV for integer division: 
query I rowsort label-43
SELECT DISTINCT + 30 DIV + col1 + - - 90 AS col1 FROM tab1 AS cor0
----
90
92
96

skipif mysql # not compatible
query I rowsort label-43
SELECT DISTINCT + 30 / + col1 + - - 90 AS col1 FROM tab1 AS cor0
----
90
92
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-44
SELECT - COUNT( * ) * + ( + + COUNT( * ) ) DIV - + 42 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-44
SELECT - COUNT ( * ) * + ( + + COUNT ( * ) ) / - + 42 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

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

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

skipif mysql # not compatible
query I rowsort label-46
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-47
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 52 * - col1 * + 92 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT CAST ( NULL AS REAL ) * - 52 * - col1 * + 92 AS col1 FROM tab1
----
NULL

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

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

query I rowsort
SELECT ALL 93 * - col2 FROM tab1
----
-5487
-6324
-8928

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + - col1 col1, 38 * + ( - 32 ), - + 92 FROM tab1 AS cor0 WHERE + 29 IS NULL
----

query I rowsort
SELECT ALL - ( - + col1 ) * ( - 5 ) AS col0 FROM tab2 cor0
----
-255
-335
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT - - 94 DIV + col1 AS col1 FROM tab1 AS cor0
----
18
2
6

skipif mysql # not compatible
query I rowsort label-54
SELECT - - 94 / + col1 AS col1 FROM tab1 AS cor0
----
18
2
6

query II rowsort
SELECT ALL 76, 50 * - col0 AS col2 FROM tab2 AS cor0
----
76
-2300
76
-3200
76
-3750

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> ( + 70 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT ALL MAX( ALL - col0 ) col1 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-60
SELECT ALL MAX ( ALL - col0 ) col1 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT 97 + + col0 AS col2 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL AVG ( - 37 ) * MAX( DISTINCT 3 ) FROM tab2 WHERE NOT NULL BETWEEN - 15 AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL AVG ( - 37 ) * MAX ( DISTINCT 3 ) FROM tab2 WHERE NOT NULL BETWEEN - 15 AND - col0
----
NULL

query I rowsort
SELECT - 21 FROM tab0 WHERE NOT ( + col0 * + 2 + + col2 / - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL + SUM( col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + SUM ( col0 ) AS col1 FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-65
SELECT col0 FROM tab0 WHERE NOT col2 - + 87 IN ( CAST( - col1 AS SIGNED ) * - col2 )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-65
SELECT col0 FROM tab0 WHERE NOT col2 - + 87 IN ( CAST ( - col1 AS INTEGER ) * - col2 )
----
15
87
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE 79 / + 49 NOT IN ( - 15 )
----
-3

skipif mysql # not compatible
query I rowsort label-68
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE 79 / + 49 NOT IN ( - 15 )
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-69
SELECT ALL * FROM tab2 WHERE CAST( col1 AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-69
SELECT ALL * FROM tab2 WHERE CAST ( col1 AS REAL ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 88 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-71
SELECT MIN ( DISTINCT col0 ) AS col1 FROM tab0
----
15

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 + + 80 FROM tab0
----
-1
59
79

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

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

query I rowsort
SELECT ALL + col2 + 99 * + col2 AS col0 FROM tab2
----
2300
4000
5800

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

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

query I rowsort
SELECT DISTINCT + 58 + col2 FROM tab1
----
117
126
154

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 32 * col1 BETWEEN 99 AND NULL
----
97
1
99

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

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

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

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

query I rowsort
SELECT 3 * col0 AS col0 FROM tab1 WHERE NOT col2 <> ( NULL )
----

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

query I rowsort
SELECT DISTINCT ( + col0 ) * - col0 AS col2 FROM tab2
----
-2116
-4096
-5625

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-89
SELECT CAST( + col2 AS SIGNED ) + - 49 AS col1 FROM tab1
----
10
19
47

skipif mysql # not compatible
query I rowsort label-89
SELECT CAST ( + col2 AS INTEGER ) + - 49 AS col1 FROM tab1
----
10
19
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT - 41 + SUM( DISTINCT col0 ) * 27 AS col1 FROM tab0
----
5332

skipif mysql # not compatible
query I rowsort label-91
SELECT - 41 + SUM ( DISTINCT col0 ) * 27 AS col1 FROM tab0
----
5332

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

query I rowsort
SELECT DISTINCT + col2 * - col1 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-3102
660
9504

query I rowsort
SELECT + 32 * + col1 + - col1 AS col0 FROM tab1 AS cor0
----
1457
155
434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-95
SELECT ( + 0 ) + + ( + ( 4 ) ) DIV ( CAST( - 26 AS SIGNED ) + COUNT( * ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-95
SELECT ( + 0 ) + + ( + ( 4 ) ) / ( CAST ( - 26 AS INTEGER ) + COUNT ( * ) ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-96
SELECT + col2 DIV 66 + + col2 AS col2 FROM tab0 cor0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-96
SELECT + col2 / 66 + + col2 AS col2 FROM tab0 cor0
----
10
100
47

query I rowsort
SELECT DISTINCT col1 * + 31 FROM tab0 AS cor0
----
2511
31
651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 + - col0 * - col1 col1 FROM tab2
----
2315
4897
4994

query I rowsort
SELECT + col0 FROM tab0 WHERE ( NULL ) <= - 3
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 * ( + col0 ) col2 FROM tab0
----
1653
1843
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-101
SELECT DISTINCT + COUNT( * ) * + 3 FROM tab0 WHERE NOT ( + col0 / - ( - CAST( + 75 AS SIGNED ) ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT + COUNT ( * ) * + 3 FROM tab0 WHERE NOT ( + col0 / - ( - CAST ( + 75 AS INTEGER ) ) ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-102
SELECT + 7 DIV 8 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-102
SELECT + 7 / 8 AS col1 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-104
SELECT DISTINCT + ( - COUNT( DISTINCT - col0 ) ) DIV + 30 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT + ( - COUNT ( DISTINCT - col0 ) ) / + 30 AS col0 FROM tab2 AS cor0
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-107
SELECT ALL - 45 + + CAST( col0 AS SIGNED ) DIV - col0 FROM tab1 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL - 45 + + CAST ( col0 AS INTEGER ) / - col0 FROM tab1 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT DISTINCT MAX( DISTINCT col0 ) + 85 FROM tab0 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT MAX ( DISTINCT col0 ) + 85 FROM tab0 AS cor0
----
182

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

query I rowsort
SELECT - ( - 26 ) - - col2 FROM tab1 cor0
----
122
85
94

query I rowsort
SELECT DISTINCT 97 + col1 FROM tab0 AS cor0
----
118
178
98

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL = ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-112
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL = ( col2 )
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col2 + - 81 FROM tab0 AS cor0
----
-34
-71
18

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT ALL - + COUNT( * ) + 23 col2 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-115
SELECT ALL - + COUNT ( * ) + 23 col2 FROM tab2 AS cor0
----
20

query I rowsort
SELECT ( col1 ) FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT col0 * - 36 FROM tab1 AS cor0 WHERE col2 + - col0 * 16 IS NOT NULL
----
-1836
-3060
-3276

onlyif mysql # DIV for integer division: 
query I rowsort label-118
SELECT DISTINCT col1 DIV col0 + + col1 * + col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT col1 / col0 + + col1 * + col0 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-119
SELECT DISTINCT - 3 - + ( CAST( ( - ( col0 ) ) AS SIGNED ) ) FROM tab0
----
12
84
94

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT - 3 - + ( CAST ( ( - ( col0 ) ) AS INTEGER ) ) FROM tab0
----
12
84
94

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT - ( - COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-123
SELECT - ( - COUNT ( * ) ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 31 col1 FROM tab1
----
-1457
-155
-434

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 77 * col1 = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-126
SELECT + MAX( ALL - 24 ) col0 FROM tab0 WHERE NOT CAST( + 54 AS SIGNED ) IS NULL
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-126
SELECT + MAX ( ALL - 24 ) col0 FROM tab0 WHERE NOT CAST ( + 54 AS INTEGER ) IS NULL
----
-24

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 >= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT DISTINCT + - COUNT( ALL + 53 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT + - COUNT ( ALL + 53 ) FROM tab0 AS cor0
----
-3

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

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

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

query I rowsort
SELECT + 76 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-135
SELECT ( CAST( col1 AS SIGNED ) ) + 94 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
115
175
95

skipif mysql # not compatible
query I rowsort label-135
SELECT ( CAST ( col1 AS INTEGER ) ) + 94 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
115
175
95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 * - 65 ) = ( 47 )
----

query I rowsort
SELECT col0 * - - col2 * - + 46 FROM tab0 AS cor0
----
-32430
-40020
-441738

query II rowsort
SELECT DISTINCT - 92 AS col2, - col1 FROM tab0 AS cor0
----
-92
-1
-92
-21
-92
-81

query I rowsort
SELECT ALL - ( - - col0 ) * - 92 + col1 FROM tab1 cor0
----
4706
7825
8419

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-141
SELECT ALL col0 + 30 DIV - col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + col0 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL col0 + 30 / - col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL - + col2 * + 30 * - col2 FROM tab1 AS cor0
----
104430
138720
276480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-143
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND + CAST( NULL AS SIGNED ) / + col1 OR NOT NULL NOT IN ( col2 - col0 )
----

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND + CAST ( NULL AS INTEGER ) / + col1 OR NOT NULL NOT IN ( col2 - col0 )
----

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

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

skipif mysql # not compatible
query I rowsort label-145
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col2 > - col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT + col0 + + 86 + 21 DIV + col2 + 7 FROM tab1
----
144
178
184

skipif mysql # not compatible
query I rowsort label-146
SELECT + col0 + + 86 + 21 / + col2 + 7 FROM tab1
----
144
178
184

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + - + 41 IN ( col1 )
----

query I rowsort
SELECT ALL - - 91 * col1 * - 22 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-10010
-28028
-94094

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

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

query I rowsort
SELECT + col1 * - 62 + col0 * col0 AS col0 FROM tab1
----
1733
5367
6915

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-152
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 24 + SUM( DISTINCT - ( - col0 ) ) - 23 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-152
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 24 + SUM ( DISTINCT - ( - col0 ) ) - 23 col0 FROM tab2
----
NULL

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

query I rowsort
SELECT + col0 * - 13 * - col1 FROM tab2 cor0
----
30498
64064
65325

query I rowsort
SELECT - ( - - 43 ) * ( 35 ) AS col0 FROM tab1 WHERE + 9 IS NOT NULL
----
-1505
-1505
-1505

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL <= 30 * + + col1 + col0
----

query I rowsort
SELECT ALL col0 * + col1 * 37 * col2 + + 62 AS col2 FROM tab0 AS cor0
----
2112947
355373
676052

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-158
SELECT DISTINCT + 38 DIV COUNT( DISTINCT + ( - + col0 ) ) - - 13 + COUNT( * ) FROM tab2 cor0
----
28

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT + 38 / COUNT ( DISTINCT + ( - + col0 ) ) - - 13 + COUNT ( * ) FROM tab2 cor0
----
28

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-161
SELECT - + 14 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-161
SELECT - + 14 / - col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) > ( + 2 + + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT DISTINCT COUNT( * ) - - - 86 * - - COUNT( * ) FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT COUNT ( * ) - - - 86 * - - COUNT ( * ) FROM tab2
----
-255

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

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

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

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

query I rowsort
SELECT 30 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT 87 * - col1 + - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - - 40 ) AS col0 FROM tab1
----
40
40
40

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

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - - 40 ) AS col1, - col2 col2 FROM tab0
----
40
-10
40
-47
40
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-178
SELECT 30 DIV + 22, + col2 FROM tab2
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-178
SELECT 30 / + 22, + col2 FROM tab2
----
1
23
1
40
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT + SUM( + 17 ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-179
SELECT + SUM ( + 17 ) FROM tab0
----
51

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

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

query I rowsort
SELECT - - col2 * col0 * + col1 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT DISTINCT col2 + - - 88 - + 70 FROM tab1 AS cor0
----
114
77
86

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

query I rowsort
SELECT - + col1 * + - col0 + - ( + - col0 ) * - col1 * 99 - 23 AS col2 FROM tab2 AS cor0
----
-229931
-482967
-492473

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 / - col1 * + col0 ) < + 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-191
SELECT DISTINCT + col1, - col1 DIV - 91 - 67 * - 81 FROM tab2
----
51
5427
67
5427
77
5427

skipif mysql # not compatible
query II rowsort label-191
SELECT DISTINCT + col1, - col1 / - 91 - 67 * - 81 FROM tab2
----
51
5427
67
5427
77
5427

onlyif mysql # DIV for integer division: 
query I rowsort label-192
SELECT DISTINCT - col0 DIV - col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT ( NULL ) NOT IN ( ( - col1 ) DIV + col1 )
----
0
4
97

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT - col0 / - col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT ( NULL ) NOT IN ( ( - col1 ) / + col1 )
----
0
4
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-193
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT DISTINCT + MIN( DISTINCT - - 41 ) * 28 FROM tab2 WHERE NOT ( + col1 * + col2 ) NOT BETWEEN NULL AND + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT + MIN ( DISTINCT - - 41 ) * 28 FROM tab2 WHERE NOT ( + col1 * + col2 ) NOT BETWEEN NULL AND + 32
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT ALL + COUNT( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col0 + + col0, col1 * col0 ) AND NOT + col1 * col2 <> - col1 - - 60
----
0

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL + COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col0 + + col0, col1 * col0 ) AND NOT + col1 * col2 <> - col1 - - 60
----
0

query I rowsort
SELECT col0 + - 92 + + + 5 - + col0 AS col0 FROM tab0 AS cor0
----
-87
-87
-87

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

query I rowsort
SELECT - col2 + 1 FROM tab0 AS cor0
----
-46
-9
-98

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT - 79 + - COUNT( * ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-203
SELECT - 79 + - COUNT ( * ) FROM tab2 AS cor0
----
-82

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

query I rowsort
SELECT - + 42 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 - + 68 col2, col1 + col1 AS col0 FROM tab1 AS cor0
----
-17
28
17
10
23
94

query II rowsort
SELECT DISTINCT + col1 + + - col0 AS col1, 9 FROM tab1 AS cor0
----
-37
9
-44
9
-80
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-208
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) * + - COUNT( ALL + - CAST( + 64 AS SIGNED ) ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) * + - COUNT ( ALL + - CAST ( + 64 AS INTEGER ) ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT + 52 - + 34 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT + + col1 - + col2 AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-211
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( 41 AS SIGNED ) NOT IN ( col2 * + + CAST( col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-211
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( 41 AS INTEGER ) NOT IN ( col2 * + + CAST ( col0 AS REAL ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= + col0 * 82 * - 10
----

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

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

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

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

query I rowsort
SELECT - + 12 AS col2 FROM tab1 AS cor0
----
-12
-12
-12

query I rowsort
SELECT - col2 * - col1 FROM tab2 WHERE NOT - - col2 IS NULL
----
1173
3080
3886

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

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL col2 / + 98 AS col2 FROM tab1
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-220
SELECT ALL + + 59 AS col2 FROM tab1 WHERE + CAST( NULL AS SIGNED ) + + 3 IN ( + col2, col2 / + - 18 * col0 )
----

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL + + 59 AS col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + + 3 IN ( + col2, col2 / + - 18 * col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-221
SELECT + + col1 DIV - col0, + 8 + - + 25 AS col0 FROM tab1 WHERE NOT 49 < 41
----
0
-17
0
-17
0
-17

skipif mysql # not compatible
query II rowsort label-221
SELECT + + col1 / - col0, + 8 + - + 25 AS col0 FROM tab1 WHERE NOT 49 < 41
----
0
-17
0
-17
0
-17

query II rowsort
SELECT ALL col0 AS col1, + col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT COUNT( DISTINCT 52 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-223
SELECT COUNT ( DISTINCT 52 ) AS col1 FROM tab1
----
1

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

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

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

query I rowsort
SELECT + col2 * - + col2 + + col0 FROM tab0 AS cor0
----
-13
-2194
-9704

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-230
SELECT 48, 22 + - MIN( DISTINCT + CAST( - 34 AS SIGNED ) ) AS col1 FROM tab2
----
48
56

skipif mysql # not compatible
query II rowsort label-230
SELECT 48, 22 + - MIN ( DISTINCT + CAST ( - 34 AS INTEGER ) ) AS col1 FROM tab2
----
48
56

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

query II rowsort
SELECT - col0 AS col0, - 40 FROM tab1 AS cor0 WHERE NOT ( + col1 ) IN ( - col2, + col0, + + col2 )
----
-51
-40
-85
-40
-91
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT DISTINCT - 15 DIV col1 + - 60 AS col2 FROM tab0 AS cor0
----
-60
-75

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT - 15 / col1 + - 60 AS col2 FROM tab0 AS cor0
----
-60
-75

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

query I rowsort
SELECT + - 12 * - 26 * 32 AS col2 FROM tab0 AS cor0
----
9984
9984
9984

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IN ( + ( + 66 ) / 55 + + + col1, col2 )
----

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

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

query I rowsort
SELECT + - 77 AS col0 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT col2 + 71 FROM tab2
----
111
129
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-240
SELECT - 2 + - CAST( + col0 AS SIGNED ) FROM tab1
----
-53
-87
-93

skipif mysql # not compatible
query I rowsort label-240
SELECT - 2 + - CAST ( + col0 AS INTEGER ) FROM tab1
----
-53
-87
-93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - col0
----

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

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT - COUNT ( ALL + - ( 32 ) ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT ( + + col2 ) * + - 33 + col2 FROM tab0
----
-1504
-3168
-320

query I rowsort
SELECT col2 * - col0 * + - col1 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query II rowsort label-245
SELECT SUM( DISTINCT col2 ) AS col1, 31 AS col2 FROM tab2
----
121
31

skipif mysql # not compatible
query II rowsort label-245
SELECT SUM ( DISTINCT col2 ) AS col1, 31 AS col2 FROM tab2
----
121
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) + + + 46 col0 FROM tab1
----
-1
32
41

query I rowsort
SELECT 93 * - 90 FROM tab2 AS cor0 WHERE ( NULL ) < 58
----

query I rowsort
SELECT DISTINCT col1 * + col2 * 40 - - + col1 + + 20 + + - 8 FROM tab1 cor0
----
11817
127899
53786

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-249
SELECT DISTINCT col0 - - col0 * - CAST( NULL AS SIGNED ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-249
SELECT DISTINCT col0 - - col0 * - CAST ( NULL AS INTEGER ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 5 AS col0 FROM tab1
----
-5
-5
-5

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

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

query I rowsort
SELECT ALL - 68 AS col1 FROM tab2 WHERE NULL IS NULL
----
-68
-68
-68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <= 56 * - col0
----

query I rowsort
SELECT ALL - ( col2 ) * + 34 + - col2 + - col0 + - col0 FROM tab2
----
-1528
-2180
-897

onlyif mysql # DIV for integer division: 
query I rowsort label-262
SELECT ALL + ( - col0 ) DIV col2 AS col0 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL + ( - col0 ) / col2 AS col0 FROM tab0 AS cor0
----
-8
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT + + col2 DIV + col1 - 73 AS col1 FROM tab1 AS cor0
----
-62
-67
-72

skipif mysql # not compatible
query I rowsort label-265
SELECT + + col2 / + col1 - 73 AS col1 FROM tab1 AS cor0
----
-62
-67
-72

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 87 > NULL
----

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

query I rowsort
SELECT ALL 12 + - col2 AS col1 FROM tab1 AS cor0
----
-47
-56
-84

query I rowsort
SELECT DISTINCT + ( 45 ) * + col1 + - - col2 FROM tab1 AS cor0
----
2183
284
726

query II rowsort
SELECT DISTINCT - - 26, col1 FROM tab2 AS cor0
----
26
51
26
67
26
77

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT + MAX( ALL + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-271
SELECT + MAX ( ALL + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-272
SELECT ALL + AVG ( + 74 ) + + 57 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL + AVG ( + 74 ) + + 57 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL MIN( DISTINCT + col2 ) + - 80 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL MIN ( DISTINCT + col2 ) + - 80 FROM tab0 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT + SUM( + 41 ) AS col2 FROM tab1 cor0
----
123

skipif mysql # not compatible
query I rowsort label-274
SELECT + SUM ( + 41 ) AS col2 FROM tab1 cor0
----
123

query I rowsort
SELECT - 2 * + col0 * + col2 FROM tab2 AS cor0
----
-2116
-5120
-8700

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 35 col2 FROM tab1
----
16
50
56

query III rowsort
SELECT * FROM tab2 WHERE - col0 - + + 7 * 69 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-281
SELECT DISTINCT COUNT( * ), 3 AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-281
SELECT DISTINCT COUNT ( * ), 3 AS col2 FROM tab0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT - 80 * col0 - - col1 + - col2 + + col2 DIV - ( - col0 ) col0 FROM tab1
----
-4161
-6854
-7301

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-282
SELECT - 80 * col0 - - col1 + - col2 + + col2 / - ( - col0 ) col0 FROM tab1
----
-4161
-6854
-7301

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

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

query II rowsort
SELECT DISTINCT + col2 * + col1, - 62 + - col0 AS col1 FROM tab1
----
1344
-113
295
-147
3196
-153

query I rowsort
SELECT col0 * + col0 + + col0 + + - col0 AS col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT SUM( - + col2 ) + + + COUNT( * ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-286
SELECT SUM ( - + col2 ) + + + COUNT ( * ) FROM tab0
----
-153

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

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT 98 IS NULL
----
10
47
99

query I rowsort
SELECT ( + 46 ) FROM tab0
----
46
46
46

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT 37 NOT BETWEEN col2 AND - 81
----

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

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

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

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

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

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

query I rowsort
SELECT ALL - 63 * + + 92 AS col1 FROM tab1
----
-5796
-5796
-5796

query I rowsort
SELECT - col0 * - 56 FROM tab2
----
2576
3584
4200

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

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL - COUNT ( DISTINCT col0 ) FROM tab2
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-299
SELECT DISTINCT - + 15 AS col2, COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
-15
1

skipif mysql # not compatible
query II rowsort label-299
SELECT DISTINCT - + 15 AS col2, COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT SUM( DISTINCT + col1 ) + + 76 FROM tab2
----
271

skipif mysql # not compatible
query I rowsort label-300
SELECT SUM ( DISTINCT + col1 ) + + 76 FROM tab2
----
271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-301
SELECT - - 74 * 99 * - 64 - 84 * + CAST( NULL AS SIGNED ) + + col2 + + 90 / col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-301
SELECT - - 74 * 99 * - 64 - 84 * + CAST ( NULL AS INTEGER ) + + col2 + + 90 / col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT MAX( DISTINCT - - col2 ) + + 73 AS col2 FROM tab0 AS cor0 WHERE ( + + col1 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT MAX ( DISTINCT - - col2 ) + + 73 AS col2 FROM tab0 AS cor0 WHERE ( + + col1 IS NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT + COUNT( - - col1 ) + - 12 AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-304
SELECT + COUNT ( - - col1 ) + - 12 AS col2 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL + 18 + - + col1 FROM tab1 AS cor0
----
-29
13
4

query I rowsort
SELECT DISTINCT - col0 * - col2 + col0 + + - 19 AS col0 FROM tab1 AS cor0
----
4928
5081
6260

query I rowsort
SELECT ALL - 83 FROM tab0 cor0
----
-83
-83
-83

query I rowsort
SELECT ALL - col2 + - col2 + - col1 * + 47 + + col2 FROM tab0 cor0
----
-146
-3854
-997

query I rowsort
SELECT ALL + col0 + + ( - - col0 ) - + col2 AS col1 FROM tab2
----
69
88
92

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 46
----

onlyif mysql # DIV for integer division: 
query I rowsort label-311
SELECT ALL col0 - + col2 + - col0 DIV col2 AS col2 FROM tab1
----
-45
22
25

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL col0 - + col2 + - col0 / col2 AS col2 FROM tab1
----
-45
22
25

onlyif mysql # DIV for integer division: 
query I rowsort label-312
SELECT - 55 DIV + + col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-312
SELECT - 55 / + + col2 FROM tab0
----
-1
-5
0

query I rowsort
SELECT - 95 * - + 27 * + - col2 FROM tab0
----
-120555
-253935
-25650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + col1 ) col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT - - MIN( 8 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
8

skipif mysql # not compatible
query I rowsort label-315
SELECT - - MIN ( 8 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT DISTINCT 27 * + - MAX( + + col0 ) FROM tab1
----
-2457

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT 27 * + - MAX ( + + col0 ) FROM tab1
----
-2457

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

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

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

query I rowsort
SELECT ALL + - 85 AS col0 FROM tab1 cor0
----
-85
-85
-85

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

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

query I rowsort
SELECT DISTINCT - col1 * + - ( + - 66 ) FROM tab2 AS cor0
----
-3366
-4422
-5082

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-325
SELECT + col2 DIV - 40 col0 FROM tab1 cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-325
SELECT + col2 / - 40 col0 FROM tab1 cor0
----
-1
-1
-2

query I rowsort
SELECT ALL + 46 * + col0 AS col2 FROM tab1 AS cor0
----
2346
3910
4186

query I rowsort
SELECT - col1 * + 14 FROM tab2
----
-1078
-714
-938

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

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

query I rowsort
SELECT ALL + ( - col0 ) * 70 + - + col0 FROM tab2
----
-3266
-4544
-5325

query II rowsort
SELECT DISTINCT 1 * 23 AS col2, 0 AS col2 FROM tab2
----
23
0

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

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

query I rowsort
SELECT ALL - + ( - 54 ) AS col2 FROM tab0 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 * + col2 * + 63 col2, col2 AS col1 FROM tab0 AS cor0
----
-44415
47
-54810
10
-604989
99

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

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

query I rowsort
SELECT 4 + + col1 AS col1 FROM tab1
----
18
51
9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 96 col2 FROM tab0 AS cor0
----
-1
81
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-340
SELECT - + CAST( NULL AS SIGNED ) - - ( col1 ) + - col0 + - + col0 * + 30 * + - 11 col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-340
SELECT - + CAST ( NULL AS INTEGER ) - - ( col1 ) + - col0 + - + col0 * + 30 * + - 11 col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - col0 * + - 5 - + col1 FROM tab1 AS cor0
----
255
425
455

query I rowsort
SELECT + ( - 72 ) - + 7 * - 32 + - - col1 FROM tab0
----
153
173
233

query I rowsort
SELECT - 6 + + - col1 AS col2 FROM tab0
----
-27
-7
-87

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

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

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

query I rowsort
SELECT 82 * 87 * col2 FROM tab2
----
164082
285360
413772

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 44 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 25 ) FROM tab2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT + col2 DIV - col1 + col2 + + col2 + + - col1 * col2 * - + 82 AS col0 FROM tab0
----
17240
312268
8217

skipif mysql # not compatible
query I rowsort label-355
SELECT + col2 / - col1 + col2 + + col2 + + - col1 * col2 * - + 82 AS col0 FROM tab0
----
17240
312268
8217

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT + + 17 IS NULL
----
-15
-87
-97

query I rowsort
SELECT col1 * col1 * - 37 * + - col1 * - 43 + col1 AS col2 FROM tab1
----
-165182346
-198870
-4365690

onlyif mysql # aggregate syntax: 
query II rowsort label-358
SELECT ALL 75 AS col0, - COUNT( * ) * + - 73 AS col2 FROM tab1
----
75
219

skipif mysql # not compatible
query II rowsort label-358
SELECT ALL 75 AS col0, - COUNT ( * ) * + - 73 AS col2 FROM tab1
----
75
219

query II rowsort
SELECT DISTINCT col2, + col0 FROM tab2
----
23
46
40
64
58
75

query II rowsort
SELECT DISTINCT - col2, col1 FROM tab0 WHERE NOT col2 * - 26 + - + 56 IS NULL
----
-10
21
-47
81
-99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-361
SELECT - col1 DIV 37 + - - col2 FROM tab0
----
10
45
99

skipif mysql # not compatible
query I rowsort label-361
SELECT - col1 / 37 + - - col2 FROM tab0
----
10
45
99

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 26 - + + col0 > + col2 + 87
----

onlyif mysql # aggregate syntax: 
query II rowsort label-365
SELECT DISTINCT + COUNT( * ) col2, COUNT( * ) + + MIN( - + col2 ) FROM tab1 AS cor0 WHERE col2 / + 67 IS NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-365
SELECT DISTINCT + COUNT ( * ) col2, COUNT ( * ) + + MIN ( - + col2 ) FROM tab1 AS cor0 WHERE col2 / + 67 IS NULL
----
0
NULL

query I rowsort
SELECT 50 - + col2 FROM tab0
----
-49
3
40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 46 BETWEEN NULL AND NULL
----

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

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

query II rowsort
SELECT ALL - col0 * + col0 AS col1, - col1 * + 1 - - - col0 * col1 FROM tab2 AS cor0
----
-2116
-2397
-4096
-5005
-5625
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT + 49 + SUM( DISTINCT - 14 ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-370
SELECT + 49 + SUM ( DISTINCT - 14 ) FROM tab2 AS cor0
----
35

query I rowsort
SELECT + - 24 + - - 94 * + col2 + 25 AS col0 FROM tab1 AS cor0
----
5547
6393
9025

query II rowsort
SELECT ALL - + ( - col2 ) + - col0 AS col2, - col2 * + + col0 AS col2 FROM tab0 AS cor0
----
-77
-870
2
-9603
32
-705

query II rowsort
SELECT DISTINCT - col2 + 71 AS col2, 87 * - 24 * - + 85 + - col2 + - 35 * - col2 - - 25 AS col2 FROM tab2 AS cor0
----
13
179477
31
178865
48
178287

query I rowsort
SELECT DISTINCT - col1 + 1 FROM tab1 AS cor0 WHERE 21 - - col1 IS NOT NULL
----
-13
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL 29 - - SUM( + col0 ) AS col2 FROM tab1
----
256

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL 29 - - SUM ( + col0 ) AS col2 FROM tab1
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT - SUM( ALL - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-376
SELECT - SUM ( ALL - col1 ) FROM tab1
----
66

query I rowsort
SELECT col0 * - - col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT ALL - col1 - - 42 + + col1 * + col2 FROM tab0
----
140
231
3768

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT ALL - SUM( ALL - - 52 ) * - - 84 + + 50 FROM tab2
----
-13054

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL - SUM ( ALL - - 52 ) * - - 84 + + 50 FROM tab2
----
-13054

query I rowsort
SELECT 96 * - 20 FROM tab2
----
-1920
-1920
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT DISTINCT COUNT( * ) - 55 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT COUNT ( * ) - 55 FROM tab0
----
-52

query II rowsort
SELECT ALL + col0, + col2 FROM tab2
----
46
23
64
40
75
58

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

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

query II rowsort
SELECT - col1 AS col2, col1 + - - col2 FROM tab1
----
-14
110
-47
115
-5
64

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT SUM( - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-385
SELECT SUM ( - col0 ) FROM tab2
----
-185

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

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL MIN ( ALL + col2 ) FROM tab1
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-387
SELECT CAST( NULL AS DECIMAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + + 68 <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-390
SELECT ALL * FROM tab2 WHERE NULL <> + col2 - - col0 * col0 * + - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-390
SELECT ALL * FROM tab2 WHERE NULL <> + col2 - - col0 * col0 * + - CAST ( col2 AS INTEGER )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-391
SELECT ALL - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT + ( - 58 ) * + + COUNT( * ) FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-392
SELECT + ( - 58 ) * + + COUNT ( * ) FROM tab1 AS cor0
----
-174

query I rowsort
SELECT DISTINCT - + 73 + - 43 FROM tab2 AS cor0
----
-116

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-396
SELECT DISTINCT + CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE + col0 NOT BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query II rowsort label-398
SELECT ALL - ( COUNT ( * ) ) + - COUNT ( * ) AS col1, 95 FROM tab1 AS cor0
----
-6
95

query I rowsort
SELECT 88 + - col2 FROM tab1 AS cor0
----
-8
20
29

query I rowsort
SELECT DISTINCT + col1 + - + 53 * + col0 FROM tab1 AS cor0
----
-2689
-4500
-4776

query I rowsort
SELECT - col2 + - 4 FROM tab0 cor0
----
-103
-14
-51

query I rowsort
SELECT 39 + - + col0 FROM tab2 AS cor0
----
-25
-36
-7

query I rowsort
SELECT + 42 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + col2 * col2 + + - col2 AS col2 FROM tab0
----
2162
90
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT COUNT( * ) - - MAX( - - col0 ) AS col0 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-405
SELECT COUNT ( * ) - - MAX ( - - col0 ) AS col0 FROM tab1 AS cor0
----
94

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

query I rowsort
SELECT - - 41 * col0 - + + col0 FROM tab2 AS cor0
----
1840
2560
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT DISTINCT + COUNT( * ) + - 27 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT + COUNT ( * ) + - 27 FROM tab2 AS cor0
----
-24

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

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

query I rowsort
SELECT DISTINCT col1 * + col1 + col2 * col0 FROM tab0 AS cor0
----
1311
7266
9604

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-412
SELECT DISTINCT - MIN( + - ( col2 ) ) AS col2, + CAST( NULL AS SIGNED ) col2 FROM tab0 cor0 WHERE NOT + col1 * 48 * col2 IS NULL
----
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-412
SELECT DISTINCT - MIN ( + - ( col2 ) ) AS col2, + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0 WHERE NOT + col1 * 48 * col2 IS NULL
----
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT COUNT( * ) * - ( + ( - - 57 ) ) FROM tab2 cor0
----
-171

skipif mysql # not compatible
query I rowsort label-413
SELECT COUNT ( * ) * - ( + ( - - 57 ) ) FROM tab2 cor0
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-414
SELECT ALL + ( - + COUNT( * ) ) DIV 61 AS col2, + COUNT( * ) FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-414
SELECT ALL + ( - + COUNT ( * ) ) / 61 AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
0
3

query I rowsort
SELECT + 44 * col1 * col1 AS col1 FROM tab2 AS cor0
----
114444
197516
260876

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

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

query I rowsort
SELECT DISTINCT - col2 * - + col2 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-418
SELECT DISTINCT + MIN( - 63 ) * + 42 * ( - - CAST( + + COUNT( * ) AS SIGNED ) ) - - 89 AS col2 FROM tab2
----
-7849

skipif mysql # not compatible
query I rowsort label-418
SELECT DISTINCT + MIN ( - 63 ) * + 42 * ( - - CAST ( + + COUNT ( * ) AS INTEGER ) ) - - 89 AS col2 FROM tab2
----
-7849

query I rowsort
SELECT ALL ( + - 79 ) FROM tab0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT + ( 67 ) AS col2 FROM tab2 AS cor0
----
67

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

query I rowsort
SELECT 76 + + col0 + - col2 FROM tab2 AS cor0 WHERE NOT + col1 * col2 IS NULL
----
100
93
99

onlyif mysql # DIV for integer division: 
query I rowsort label-423
SELECT ALL - + col0 * col2 DIV - 88 + + 46 FROM tab1 AS cor0
----
101
102
116

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL - + col0 * col2 / - 88 + + 46 FROM tab1 AS cor0
----
101
102
116

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT ALL - 91 * - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL - 91 * - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( ( + 79 ) ) FROM tab2
----
-79

query I rowsort
SELECT + col2 * - ( - col1 ) FROM tab0
----
210
3807
99

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

query I rowsort
SELECT ALL + + 82 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab2 WHERE 29 >= - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT DISTINCT + SUM( - + col2 ) * - - COUNT( * ) AS col0 FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT + SUM ( - + col2 ) * - - COUNT ( * ) AS col0 FROM tab0
----
-468

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 ) IN ( + col1, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query II rowsort label-437
SELECT + COUNT( * ) AS col2, 91 FROM tab0 AS cor0 WHERE NOT 60 IS NOT NULL
----
0
91

skipif mysql # not compatible
query II rowsort label-437
SELECT + COUNT ( * ) AS col2, 91 FROM tab0 AS cor0 WHERE NOT 60 IS NOT NULL
----
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT - MIN( 58 ) col1 FROM tab2 cor0
----
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT DISTINCT COUNT( * ) * + + ( + + 90 ) AS col0 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT COUNT ( * ) * + + ( + + 90 ) AS col0 FROM tab0
----
270

query I rowsort
SELECT ALL + col0 * ( + - 61 ) AS col0 FROM tab1
----
-3111
-5185
-5551

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-441
SELECT ALL * FROM tab2 WHERE - + col1 = + 64 * CAST( ( + ( + + 73 ) ) AS DECIMAL ) + ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-441
SELECT ALL * FROM tab2 WHERE - + col1 = + 64 * CAST ( ( + ( + + 73 ) ) AS REAL ) + ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-442
SELECT col0, + 23 + + CAST( + col1 AS SIGNED ) FROM tab2
----
46
74
64
100
75
90

skipif mysql # not compatible
query II rowsort label-442
SELECT col0, + 23 + + CAST ( + col1 AS INTEGER ) FROM tab2
----
46
74
64
100
75
90

query I rowsort
SELECT DISTINCT 24 * + col2 AS col0 FROM tab1
----
1416
1632
2304

onlyif mysql # aggregate syntax: 
query II rowsort label-444
SELECT - COUNT( DISTINCT + - 83 ) AS col1, 72 + - 47 FROM tab0
----
-1
25

skipif mysql # not compatible
query II rowsort label-444
SELECT - COUNT ( DISTINCT + - 83 ) AS col1, 72 + - 47 FROM tab0
----
-1
25

query I rowsort
SELECT - 72 * - col0 * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
16200
544968
677448

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT - col2 DIV 30 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-446
SELECT - col2 / 30 AS col0 FROM tab2 AS cor0
----
-1
-1
0

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

query II rowsort
SELECT ALL - 39 AS col2, 38 FROM tab2 cor0
----
-39
38
-39
38
-39
38

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-451
SELECT - col1 + + CAST( 50 AS DECIMAL ) + + col0 + - + 77 * - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-451
SELECT - col1 + + CAST ( 50 AS REAL ) + + col0 + - + 77 * - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ALL + 52 + - COUNT( * ) AS col1 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL + 52 + - COUNT ( * ) AS col1 FROM tab0
----
49

query I rowsort
SELECT DISTINCT - col0 + - 42 AS col1 FROM tab2 AS cor0
----
-106
-117
-88

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 80 * - col0 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT - col0 * 34 AS col2 FROM tab1 AS cor0
----
-1734
-2890
-3094

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col0 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-458
SELECT - MIN ( 33 ) AS col0 FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT ALL MAX( - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL MAX ( - col0 ) AS col1 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-460
SELECT col2 * + ( - - CAST( NULL AS SIGNED ) ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-460
SELECT col2 * + ( - - CAST ( NULL AS INTEGER ) ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # DIV for integer division: 
query I rowsort label-461
SELECT ALL ( + 17 ) DIV - col2 * col2 * - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL ( + 17 ) / - col2 * col2 * - col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-462
SELECT DISTINCT 15 DIV + + COUNT( * ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT 15 / + + COUNT ( * ) FROM tab0
----
5

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

onlyif mysql # DIV for integer division: 
query II rowsort label-464
SELECT DISTINCT - - 9 AS col1, + col0 DIV + - ( - 54 ) AS col0 FROM tab0 AS cor0 WHERE 57 IS NOT NULL
----
9
0
9
1

skipif mysql # not compatible
query II rowsort label-464
SELECT DISTINCT - - 9 AS col1, + col0 / + - ( - 54 ) AS col0 FROM tab0 AS cor0 WHERE 57 IS NOT NULL
----
9
0
9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT MIN( + - col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-465
SELECT MIN ( + - col1 ) FROM tab0 cor0
----
-81

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE ( NULL IS NULL )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT - 50 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
2550
3350
3850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-468
SELECT - COUNT( * ) DIV - COUNT( * ) + + 57 + 94 + - COUNT( * ) FROM tab1 cor0
----
149

skipif mysql # not compatible
query I rowsort label-468
SELECT - COUNT ( * ) / - COUNT ( * ) + + 57 + 94 + - COUNT ( * ) FROM tab1 cor0
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-469
SELECT - + 2 * - ( + CAST( + 41 AS SIGNED ) ) FROM tab2 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-469
SELECT - + 2 * - ( + CAST ( + 41 AS INTEGER ) ) FROM tab2 AS cor0
----
82
82
82

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT DISTINCT - COUNT( * ) * + - ( + 18 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT - COUNT ( * ) * + - ( + 18 ) FROM tab2 AS cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 / - 87 NOT BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-477
SELECT 59, col2 + + + col2 DIV col1 * - 58 AS col2 FROM tab1
----
59
-252
59
-579
59
10

skipif mysql # not compatible
query II rowsort label-477
SELECT 59, col2 + + + col2 / col1 * - 58 AS col2 FROM tab1
----
59
-252
59
-579
59
10

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

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

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

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

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

query I rowsort
SELECT + col1 * 74 AS col2 FROM tab2 cor0
----
3774
4958
5698

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

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

query I rowsort
SELECT + col1 * - 2 * - col2 * 90 + + + col1 * col0 AS col0 FROM tab0 AS cor0
----
17917
39627
686475

query I rowsort
SELECT DISTINCT + col1 + 52 - + - col0 * + col1 FROM tab0 AS cor0
----
1348
150
1900

query I rowsort
SELECT DISTINCT ( col1 ) + + + col1 - 84 FROM tab1 AS cor0
----
-56
-74
10

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

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

query I rowsort
SELECT DISTINCT 37 + col0 * - col0 FROM tab2 AS cor0
----
-2079
-4059
-5588

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT DISTINCT - 70 + COUNT( * ) FROM tab2 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT - 70 + COUNT ( * ) FROM tab2 cor0
----
-67

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

query I rowsort
SELECT 69 * + col2 FROM tab2
----
1587
2760
4002

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

query I rowsort
SELECT ALL 24 * 75 FROM tab1
----
1800
1800
1800

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

query I rowsort
SELECT ALL + col2 * + - ( col1 ) - - - col2 AS col0 FROM tab2 AS cor0
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT + - SUM( - col2 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-497
SELECT + - SUM ( - col2 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT DISTINCT + ( - COUNT( ALL - ( + 63 ) ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT + ( - COUNT ( ALL - ( + 63 ) ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT DISTINCT col0 * 71 * - + col2 * - 74 * + + 69 FROM tab2
----
1576988100
383552508
928066560

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

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT + - col0 BETWEEN - col2 AND - 74 - + col1 )
----
1

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT + - col0 BETWEEN - col2 AND - 74 - + col1 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-502
SELECT DISTINCT - COUNT( * ), 22 AS col2 FROM tab0 AS cor0
----
-3
22

skipif mysql # not compatible
query II rowsort label-502
SELECT DISTINCT - COUNT ( * ), 22 AS col2 FROM tab0 AS cor0
----
-3
22

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-503
SELECT MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-505
SELECT 73 * 45 * + 50, - col0 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
164250
NULL
164250
NULL
164250
NULL

skipif mysql # not compatible
query II rowsort label-505
SELECT 73 * 45 * + 50, - col0 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
164250
NULL
164250
NULL
164250
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-507
SELECT - - 96 DIV - col2 + + col1 DIV - col0 + + col1 AS col1 FROM tab0 AS cor0
----
1
12
74

skipif mysql # not compatible
query I rowsort label-507
SELECT - - 96 / - col2 + + col1 / - col0 + + col1 AS col1 FROM tab0 AS cor0
----
1
12
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 96 BETWEEN col0 * + col1 - + 62 AND 26
----
0

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 96 BETWEEN col0 * + col1 - + 62 AND 26
----
0

query I rowsort
SELECT col2 * + - col1 + + 20 FROM tab0 AS cor0 WHERE NOT + 84 * + 64 + - col1 / + - 46 IS NULL
----
-190
-3787
-79

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

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

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

query II rowsort
SELECT + ( col0 ), col1 FROM tab0
----
15
81
87
21
97
1

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

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

query I rowsort
SELECT - 44 * + 46 FROM tab1 WHERE NOT - 46 = + + 12
----
-2024
-2024
-2024

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

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

query I rowsort
SELECT + - col2 + + + col0 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT - 63 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-519
SELECT - 63 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT ALL + COUNT( * ) * - COUNT( + 96 ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
729

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL + COUNT ( * ) * - COUNT ( + 96 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL MAX( + col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL MAX ( + col0 ) AS col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-523
SELECT - 82 DIV + COUNT( * ) - 70 AS col0, + ( - 93 ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-79
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-523
SELECT - 82 / + COUNT ( * ) - 70 AS col0, + ( - 93 ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-79
-93

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

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT - 46 * + - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + - ( + + COUNT ( * ) ) + - - COUNT ( * ) FROM tab2 AS cor0
----
-138

query I rowsort
SELECT DISTINCT - 2 + - - col0 FROM tab1 AS cor0
----
49
83
89

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

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

query I rowsort
SELECT ALL col0 * - - 51 AS col2 FROM tab2
----
2346
3264
3825

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT 22 * ( COUNT( ALL + col2 ) ) AS col2 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-531
SELECT 22 * ( COUNT ( ALL + col2 ) ) AS col2 FROM tab2 AS cor0
----
66

query I rowsort
SELECT 26 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + col0 OR NULL >= NULL
----

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

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

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

query I rowsort
SELECT 32 * - col2 + + + col2 AS col0 FROM tab1 cor0
----
-1829
-2108
-2976

query I rowsort
SELECT ALL + - 75 * col2 - - + col2 AS col2 FROM tab1 AS cor0
----
-4366
-5032
-7104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT DISTINCT + - MAX( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - 44 / - CAST( 63 AS SIGNED ) * 8 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT + - MAX ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - 44 / - CAST ( 63 AS INTEGER ) * 8 IS NOT NULL
----
NULL

query II rowsort
SELECT + col2 * + col2 * + 29, + col1 AS col1 FROM tab2 AS cor0
----
15341
51
46400
77
97556
67

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-540
SELECT DISTINCT + + SUM ( ALL - col0 ) col1 FROM tab2 AS cor0
----
-185

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

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

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

query I rowsort
SELECT ALL + ( 61 ) AS col0 FROM tab1
----
61
61
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NOT ( NOT 39 + 23 * + col0 IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-546
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NOT ( NOT 39 + 23 * + col0 IS NOT NULL ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 64 col0, 89 FROM tab1
----
-64
89
-64
89
-64
89

query I rowsort
SELECT ALL + col1 * + col2 + + col0 * + 24 AS col2 FROM tab2
----
2277
4616
5686

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL - COUNT( col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL - COUNT ( col1 ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT col0 NOT BETWEEN ( - 77 + - col1 ) AND col0
----
-51
-85
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT 71 * + SUM( DISTINCT - col2 ) AS col0 FROM tab0
----
-11076

skipif mysql # not compatible
query I rowsort label-552
SELECT 71 * + SUM ( DISTINCT - col2 ) AS col0 FROM tab0
----
-11076

query I rowsort
SELECT DISTINCT col0 * - 26 + col1 FROM tab2
----
-1145
-1587
-1883

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * col1 col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT ALL + COUNT( * ) * + ( 10 ) - 85 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL + COUNT ( * ) * + ( 10 ) - 85 FROM tab2
----
-55

query I rowsort
SELECT 83 - 99 FROM tab0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL 74 * COUNT( * ) + 56 AS col1 FROM tab1 WHERE col2 IS NOT NULL
----
278

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL 74 * COUNT ( * ) + 56 AS col1 FROM tab1 WHERE col2 IS NOT NULL
----
278

query I rowsort
SELECT DISTINCT ( ( 43 ) ) AS col1 FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT SUM( DISTINCT - col1 ) - - ( + MAX( DISTINCT + 62 ) ) FROM tab2
----
-133

skipif mysql # not compatible
query I rowsort label-559
SELECT SUM ( DISTINCT - col1 ) - - ( + MAX ( DISTINCT + 62 ) ) FROM tab2
----
-133

query III rowsort
SELECT * FROM tab1 WHERE NOT 53 * - col1 - + col0 / + col2 <> ( + 42 + + ( - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 + col2 * - col2 col0 FROM tab1
----
-3426
-4569
-9161

query III rowsort
SELECT * FROM tab2 WHERE - 50 >= - 79 * 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 38 + col1 AS col2 FROM tab0
----
119
39
59

query I rowsort
SELECT DISTINCT col2 * 88 AS col2 FROM tab1
----
5192
5984
8448

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT DISTINCT - COUNT( * ) + 98 AS col1 FROM tab2 WHERE + 43 NOT IN ( col1 )
----
95

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT - COUNT ( * ) + 98 AS col1 FROM tab2 WHERE + 43 NOT IN ( col1 )
----
95

query I rowsort
SELECT - ( + col1 ) * - ( - 47 ) FROM tab0
----
-3807
-47
-987

query I rowsort
SELECT + 45 * 92 FROM tab1
----
4140
4140
4140

query I rowsort
SELECT + 68 * - col0 AS col0 FROM tab1
----
-3468
-5780
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-569
SELECT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) BETWEEN + CAST( NULL AS SIGNED ) * 26 + + col1 AND ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-569
SELECT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) BETWEEN + CAST ( NULL AS INTEGER ) * 26 + + col1 AND ( - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 BETWEEN 89 AND ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT ALL + SUM( ALL ( col2 ) ) * 28 AS col2 FROM tab1 WHERE NOT ( + 13 ) NOT BETWEEN ( col1 / + ( 29 * - 68 ) ) AND ( - 20 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL + SUM ( ALL ( col2 ) ) * 28 AS col2 FROM tab1 WHERE NOT ( + 13 ) NOT BETWEEN ( col1 / + ( 29 * - 68 ) ) AND ( - 20 * + col1 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-573
SELECT DISTINCT + SUM( ALL + col2 ) DIV MAX( col2 - col1 DIV 91 ) AS col1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT + SUM ( ALL + col2 ) / MAX ( col2 - col1 / 91 ) AS col1 FROM tab2
----
2

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

onlyif mysql # DIV for integer division: 
query I rowsort label-575
SELECT ALL col0 DIV 41 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL col0 / 41 FROM tab1
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT SUM( ( - ( 85 ) ) ) AS col0 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-576
SELECT SUM ( ( - ( 85 ) ) ) AS col0 FROM tab2
----
-255

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL NOT IN ( + col1 * col0 + 97 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT DISTINCT + 36 * COUNT( * ) - COUNT( * ) FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT + 36 * COUNT ( * ) - COUNT ( * ) FROM tab2
----
105

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

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

skipif mysql # not compatible
query I rowsort label-582
SELECT CAST ( ( ( col1 ) ) AS INTEGER ) / - col0 AS col1 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-583
SELECT CAST( 47 AS SIGNED ) * 18 AS col1 FROM tab1 AS cor0
----
846
846
846

skipif mysql # not compatible
query I rowsort label-583
SELECT CAST ( 47 AS INTEGER ) * 18 AS col1 FROM tab1 AS cor0
----
846
846
846

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

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

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

query I rowsort
SELECT 91 * - col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

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

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-591
SELECT ALL COUNT ( * ) col2 FROM tab1 cor0 CROSS JOIN tab0
----
9

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

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT + col0 * 95 IS NULL
----
59
68
96

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

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

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 38 col1 FROM tab0 AS cor0 WHERE NOT ( 44 / ( col0 * + 47 ) + + col2 ) > ( - 30 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-598
SELECT * FROM tab1 cor0 WHERE NOT + col0 * - col0 - - CAST( 64 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-598
SELECT * FROM tab1 cor0 WHERE NOT + col0 * - col0 - - CAST ( 64 AS INTEGER ) IS NOT NULL
----

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

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

query I rowsort
SELECT - ( - 20 ) * - col1 FROM tab1
----
-100
-280
-940

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

skipif mysql # not compatible
query I rowsort label-601
SELECT MIN ( DISTINCT col0 ) FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 3 <> - 81
----

query I rowsort
SELECT ALL - 34 AS col2 FROM tab0 WHERE NULL NOT IN ( - 21 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT ALL 90 DIV + + 8 AS col0 FROM tab0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL 90 / + + 8 AS col0 FROM tab0
----
11
11
11

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-608
SELECT DISTINCT MAX( + - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-609
SELECT col0 / - 46 - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-609
SELECT col0 / - 46 - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-611
SELECT - + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT ( col2 NOT BETWEEN col1 + + 60 AND - ( col2 ) )
----

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

query II rowsort
SELECT - - col2 AS col1, + col1 * - ( 25 ) AS col1 FROM tab2 AS cor0
----
23
-1275
40
-1925
58
-1675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-615
SELECT ALL - CAST( NULL AS SIGNED ) col0, col0 AS col2 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-615
SELECT ALL - CAST ( NULL AS INTEGER ) col0, col0 AS col2 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL - 58 * - 59 - 35 + + ( 79 ) * - 94 FROM tab1 AS cor0
----
-4039
-4039
-4039

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-618
SELECT + SUM( + - col1 ) DIV - COUNT( * ) - - 32 * COUNT( * ) FROM tab0 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-618
SELECT + SUM ( + - col1 ) / - COUNT ( * ) - - 32 * COUNT ( * ) FROM tab0 AS cor0
----
130

query I rowsort
SELECT ALL + col2 + + 41 AS col1 FROM tab0 AS cor0
----
140
51
88

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT - COUNT( * ) - - MIN( DISTINCT - - 72 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-622
SELECT - COUNT ( * ) - - MIN ( DISTINCT - - 72 ) FROM tab2 AS cor0
----
69

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-624
SELECT ALL + 57 / + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL + 57 / + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT DISTINCT + 59 + + + CAST( + - COUNT( * ) AS SIGNED ) col2 FROM tab0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-625
SELECT DISTINCT + 59 + + + CAST ( + - COUNT ( * ) AS INTEGER ) col2 FROM tab0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ALL COUNT( * ) - - 8 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL COUNT ( * ) - - 8 FROM tab0
----
11

query II rowsort
SELECT 22 * - + col2 AS col0, col0 FROM tab0
----
-1034
15
-2178
97
-220
87

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - col0 * - + 89 * - 24
----

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

query II rowsort
SELECT col0 * col2, col2 FROM tab1
----
4896
96
5015
59
6188
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 42 * + col0 + - 66 < ( NULL )
----

query II rowsort
SELECT DISTINCT 14 * - - col2 AS col1, col1 AS col0 FROM tab1
----
1344
14
826
5
952
47

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT DISTINCT SUM( DISTINCT + - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT SUM ( DISTINCT + - col2 ) FROM tab0
----
-156

query II rowsort
SELECT ALL + 66 * - + col2 AS col2, col1 FROM tab1
----
-3894
5
-4488
47
-6336
14

query I rowsort
SELECT ALL 41 * + 61 AS col2 FROM tab0
----
2501
2501
2501

query I rowsort
SELECT - col0 - col0 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 <> - col0 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT ALL + 82 * COUNT( * ) AS col0 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL + 82 * COUNT ( * ) AS col0 FROM tab1
----
246

query I rowsort
SELECT ALL 14 * 51 FROM tab1
----
714
714
714

onlyif mysql # DIV for integer division: 
query II rowsort label-639
SELECT - ( col1 ) DIV 15, col1 DIV + col2 AS col2 FROM tab2
----
-3
2
-4
1
-5
1

skipif mysql # not compatible
query II rowsort label-639
SELECT - ( col1 ) / 15, col1 / + col2 AS col2 FROM tab2
----
-3
2
-4
1
-5
1

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab1 AS cor0 WHERE NULL IN ( col0 * - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-644
SELECT + CAST( + - 77 AS SIGNED ) * + + col1 FROM tab2 AS cor0
----
-3927
-5159
-5929

skipif mysql # not compatible
query I rowsort label-644
SELECT + CAST ( + - 77 AS INTEGER ) * + + col1 FROM tab2 AS cor0
----
-3927
-5159
-5929

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

query I rowsort
SELECT ALL + - 33 * - + col0 + + col0 FROM tab2 cor0
----
1564
2176
2550

query I rowsort
SELECT DISTINCT col2 * - 56 * + col2 * + col2 AS col2 FROM tab1 AS cor0
----
-11501224
-17608192
-49545216

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

query I rowsort
SELECT DISTINCT col0 * - 58 AS col1 FROM tab0 AS cor0 WHERE NOT ( + ( + col0 ) ) NOT BETWEEN - 17 AND 83
----
-870

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

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

query III rowsort
SELECT * FROM tab2 WHERE 51 * 36 NOT BETWEEN + - 9 / - 41 AND - 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 17 * - 16 + - - 86 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT col1 * + - 42 + col0 AS col2 FROM tab1
----
-125
-1883
-537

onlyif mysql # DIV for integer division: 
query II rowsort label-654
SELECT ALL 20 DIV + 84 AS col0, ( - ( + col0 ) ) FROM tab1
----
0
-51
0
-85
0
-91

skipif mysql # not compatible
query II rowsort label-654
SELECT ALL 20 / + 84 AS col0, ( - ( + col0 ) ) FROM tab1
----
0
-51
0
-85
0
-91

query I rowsort
SELECT + 99 + 69 AS col1 FROM tab2
----
168
168
168

query I rowsort
SELECT DISTINCT + ( + ( - col2 ) ) * - 59 + + col0 AS col1 FROM tab2
----
1403
2424
3497

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-658
SELECT ALL 87 DIV + col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL 87 / + col2 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT + col2 * - 95 * - col0 * + col2 FROM tab1
----
28109075
39974480
44651520

query I rowsort
SELECT DISTINCT + + 29 AS col1 FROM tab2 AS cor0
----
29

query I rowsort
SELECT ALL + + col2 + + + col1 * - 33 AS col2 FROM tab0 AS cor0
----
-2626
-683
66

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

skipif mysql # not compatible
query I rowsort label-662
SELECT col2 * + col1 - + 21 / CAST ( NULL AS INTEGER ) * ( - col1 ) FROM tab2
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL + col1 + + 0 * - 83 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT 48 + - + 29 * - + COUNT( * ) + + 59 AS col1 FROM tab2
----
194

skipif mysql # not compatible
query I rowsort label-666
SELECT 48 + - + 29 * - + COUNT ( * ) + + 59 AS col1 FROM tab2
----
194

query I rowsort
SELECT DISTINCT - col0 + 31 * - col2 + - 10 FROM tab1 cor0
----
-1924
-2209
-3037

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL MIN( DISTINCT - + col1 ) col2 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-668
SELECT ALL MIN ( DISTINCT - + col1 ) col2 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT DISTINCT COUNT( DISTINCT + 79 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-669
SELECT DISTINCT COUNT ( DISTINCT + 79 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT + 4 * col1 FROM tab0
----
324
4
84

query III rowsort
SELECT * FROM tab1 WHERE NOT + 28 / - col1 - - 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 96, col1 FROM tab0
----
96
1
96
21
96
81

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

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

query I rowsort
SELECT DISTINCT - 24 FROM tab2 cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL MIN( DISTINCT 72 ) col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-676
SELECT ALL MIN ( DISTINCT 72 ) col0 FROM tab2 AS cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT + 92 DIV 83 DIV + + 67 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-677
SELECT + 92 / 83 / + + 67 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE + + 96 <= ( + col2 )
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT - SUM( + col2 ) + + 46 + + 88 FROM tab1 WHERE NOT + 63 + + - 7 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-680
SELECT - SUM ( + col2 ) + + 46 + + 88 FROM tab1 WHERE NOT + 63 + + - 7 IS NOT NULL
----
NULL

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

query I rowsort
SELECT 25 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
124
2072
535

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT ALL COUNT( * ) * MIN( + - col2 ) * - COUNT( * ) * + 55 FROM tab1
----
47520

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL COUNT ( * ) * MIN ( + - col2 ) * - COUNT ( * ) * + 55 FROM tab1
----
47520

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

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

query I rowsort
SELECT - 15 + - - 17 + col0 FROM tab1
----
53
87
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, col2 * + col1 / + ( + - 74 ) + - ( - - 76 ) col1 FROM tab2 AS cor0 WHERE NULL < - 31
----

query I rowsort
SELECT DISTINCT + - col0 + - 88 FROM tab2 AS cor0
----
-134
-152
-163

query I rowsort
SELECT + 54 + - col2 FROM tab0 AS cor0
----
-45
44
7

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

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

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

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

skipif mysql # not compatible
query I rowsort label-693
SELECT CAST ( + 33 AS INTEGER ) FROM tab1
----
33
33
33

query I rowsort
SELECT col2 FROM tab2 WHERE ( - + col0 ) IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-695
SELECT ALL col0 * + ( - + col1 ) - + col2 + - + 90 + - 44 * + CAST( NULL AS SIGNED ) / - + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL col0 * + ( - + col1 ) - + col2 + - + 90 + - 44 * + CAST ( NULL AS INTEGER ) / - + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-698
SELECT ALL - ( 93 ) / + CAST( - col1 AS SIGNED ) AS col0, col2 FROM tab0 AS cor0 WHERE NOT + 35 NOT IN ( col2 )
----

skipif mysql # not compatible
query II rowsort label-698
SELECT ALL - ( 93 ) / + CAST ( - col1 AS INTEGER ) AS col0, col2 FROM tab0 AS cor0 WHERE NOT + 35 NOT IN ( col2 )
----

query I rowsort
SELECT - col1 * + 6 + + 82 FROM tab0 AS cor0
----
-404
-44
76

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT - 68 + + col1 < + col0
----

query I rowsort
SELECT ALL 96 * ( col2 ) + - col2 FROM tab2 AS cor0
----
2185
3800
5510

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT col2 DIV + 10 FROM tab2 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-702
SELECT col2 / + 10 FROM tab2 AS cor0
----
2
4
5

query I rowsort
SELECT ALL + - 74 * - + col1 FROM tab2 AS cor0
----
3774
4958
5698

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT - SUM( + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-707
SELECT - SUM ( + col0 ) FROM tab2
----
-185

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

onlyif mysql # DIV for integer division: 
query II rowsort label-709
SELECT 30 * - 7 AS col2, col1 DIV + col1 AS col0 FROM tab0
----
-210
1
-210
1
-210
1

skipif mysql # not compatible
query II rowsort label-709
SELECT 30 * - 7 AS col2, col1 / + col1 AS col0 FROM tab0
----
-210
1
-210
1
-210
1

query I rowsort
SELECT ( - 48 ) FROM tab2
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-711
SELECT ALL + COUNT( ALL - ( - - col1 ) ), 73 AS col1 FROM tab2
----
3
73

skipif mysql # not compatible
query II rowsort label-711
SELECT ALL + COUNT ( ALL - ( - - col1 ) ), 73 AS col1 FROM tab2
----
3
73

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

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

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

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

query I rowsort
SELECT ALL 88 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT SUM( - 45 ) col1 FROM tab1
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-716
SELECT SUM ( - 45 ) col1 FROM tab1
----
-135

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

query II rowsort
SELECT ALL - col2 + col1 - - col2 AS col2, col2 * + 95 AS col0 FROM tab2 AS cor0
----
51
2185
67
5510
77
3800

query I rowsort
SELECT 30 + 51 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT ALL - + col0 + + - col0 FROM tab1 AS cor0
----
-102
-170
-182

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + 84 * + col1 * + col2 * - ( + 81 ) + - 12 > NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 59 IN ( - - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-723
SELECT ALL col1 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL col1 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-725
SELECT 93 * - col1 * - col1 * + - col1 AS col1, - CAST( NULL AS SIGNED ) FROM tab2
----
-12336543
NULL
-27970959
NULL
-42457569
NULL

skipif mysql # not compatible
query II rowsort label-725
SELECT 93 * - col1 * - col1 * + - col1 AS col1, - CAST ( NULL AS INTEGER ) FROM tab2
----
-12336543
NULL
-27970959
NULL
-42457569
NULL

query III rowsort
SELECT * FROM tab0 WHERE 10 + col2 > + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT 85 * MIN( - col2 ) AS col2 FROM tab0
----
-8415

skipif mysql # not compatible
query I rowsort label-727
SELECT 85 * MIN ( - col2 ) AS col2 FROM tab0
----
-8415

query II rowsort
SELECT ALL + - 81, col2 FROM tab2 WHERE NOT - 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-729
SELECT - COUNT( * ) DIV 91 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-729
SELECT - COUNT ( * ) / 91 FROM tab2
----
0

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

query I rowsort
SELECT ALL + ( - - col1 ) + + col2 FROM tab1
----
110
115
64

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-734
SELECT + col1 * + col0 + col0 / ( - + col1 ) * - col2 + 49 - ( + CAST( NULL AS SIGNED ) ) * + col2, - 27 AS col2 FROM tab0 cor0
----
NULL
-27
NULL
-27
NULL
-27

skipif mysql # not compatible
query II rowsort label-734
SELECT + col1 * + col0 + col0 / ( - + col1 ) * - col2 + 49 - ( + CAST ( NULL AS INTEGER ) ) * + col2, - 27 AS col2 FROM tab0 cor0
----
NULL
-27
NULL
-27
NULL
-27

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

query I rowsort
SELECT ALL - - 47 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query II rowsort
SELECT DISTINCT 42 AS col1, + 18 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
42
18

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT - 12 + - SUM( DISTINCT + + col1 ) FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-738
SELECT - 12 + - SUM ( DISTINCT + + col1 ) FROM tab2
----
-207

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

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

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

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

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

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

query I rowsort
SELECT + 92 AS col1 FROM tab2
----
92
92
92

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

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

skipif mysql # not compatible
query II rowsort label-745
SELECT - COUNT ( * ) AS col0, - 6 FROM tab0
----
-3
-6

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-747
SELECT DISTINCT 31 * - - col2 * + CAST( NULL AS SIGNED ) * + 76 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT 31 * - - col2 * + CAST ( NULL AS INTEGER ) * + 76 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 AS col1, - col2 col0, - col0 + col2 * col0 FROM tab0
----
9 values hashing to 915adad8373050b79213f21e4eaea88c

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-749
SELECT ALL - 48 / - CAST( NULL AS DECIMAL ) * MIN( - 22 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL - 48 / - CAST ( NULL AS REAL ) * MIN ( - 22 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT ALL + 81 + - COUNT( * ) FROM tab2 WHERE - 10 NOT BETWEEN + col1 AND + - 23 + + col2
----
78

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL + 81 + - COUNT ( * ) FROM tab2 WHERE - 10 NOT BETWEEN + col1 AND + - 23 + + col2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT ALL col0 DIV + - 3 FROM tab1
----
-17
-28
-30

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL col0 / + - 3 FROM tab1
----
-17
-28
-30

query II rowsort
SELECT DISTINCT - - 34, - col0 + 64 AS col2 FROM tab0 AS cor0
----
34
-23
34
-33
34
49

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

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

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

query I rowsort
SELECT DISTINCT - 89 * - + 30 AS col2 FROM tab2 AS cor0
----
2670

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT DISTINCT ( - + 67 ) + + + COUNT( * ) FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT ( - + 67 ) + + + COUNT ( * ) FROM tab2 AS cor0
----
-64

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-760
SELECT - + COUNT ( * ) col0 FROM tab2 AS cor0
----
-3

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

query II rowsort
SELECT - ( col2 ), ( col2 ) FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

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

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

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

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

query I rowsort
SELECT - col1 - - ( col1 ) FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT + MIN( DISTINCT - col2 ) * + 25 + + - 13 - - 21 AS col1 FROM tab1
----
-2392

skipif mysql # not compatible
query I rowsort label-767
SELECT + MIN ( DISTINCT - col2 ) * + 25 + + - 13 - - 21 AS col1 FROM tab1
----
-2392

query I rowsort
SELECT + col2 + + col2 + - col2 + col1 * + 97 FROM tab0
----
196
2047
7904

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE ( NOT ( - 32 ) <= NULL )
----

query I rowsort
SELECT - col2 * + 53 * col2 + 43 - + col0 + 68 + + 96 * + ( - 84 ) FROM tab2
----
-186320
-36036
-92817

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

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

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

query I rowsort
SELECT DISTINCT - ( 54 ) AS col2 FROM tab0
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-774
SELECT ALL - + CAST( NULL AS DECIMAL ) * 64 + - col1 AS col2, - 1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-774
SELECT ALL - + CAST ( NULL AS REAL ) * 64 + - col1 AS col2, - 1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT ALL - COUNT( * ) * 57 + COUNT( * ) AS col2 FROM tab2 cor0
----
-168

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL - COUNT ( * ) * 57 + COUNT ( * ) AS col2 FROM tab2 cor0
----
-168

query I rowsort
SELECT col1 + 41 * + col0 FROM tab2 AS cor0
----
1937
2701
3142

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT DISTINCT - 84 - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT - 84 - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT DISTINCT + col0 * - col2 * + col0 + + col1 AS col0 FROM tab0 AS cor0
----
-10494
-75669
-931490

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

query I rowsort
SELECT DISTINCT + 43 - ( - col1 ) + col0 + + col2 + + + 40 FROM tab1
----
232
244
289

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

query I rowsort
SELECT 66 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

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

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

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

query I rowsort
SELECT DISTINCT col0 * - 64 FROM tab0 AS cor0
----
-5568
-6208
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT + + COUNT( * ) * 10 * - ( + 18 ) FROM tab2 AS cor0
----
-540

skipif mysql # not compatible
query I rowsort label-787
SELECT + + COUNT ( * ) * 10 * - ( + 18 ) FROM tab2 AS cor0
----
-540

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-789
SELECT 11 AS col2 FROM tab0 WHERE NOT - col1 * ( - 36 ) <= ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-789
SELECT 11 AS col2 FROM tab0 WHERE NOT - col1 * ( - 36 ) <= ( + CAST ( NULL AS INTEGER ) )
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 99 = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-792
SELECT - 95 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-792
SELECT - 95 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT ALL - 21 * col0 DIV col1 * - - col1 AS col0 FROM tab1
----
-1064
-1785
-1880

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL - 21 * col0 / col1 * - - col1 AS col0 FROM tab1
----
-1064
-1785
-1880

query I rowsort
SELECT 70 * col1 FROM tab0 WHERE NOT ( + + 98 ) <> ( col0 )
----

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

query I rowsort
SELECT ALL col0 * - + col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-797
SELECT ALL MIN( + col2 ) DIV - + COUNT( * ) col2 FROM tab0
----
-3

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

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

query I rowsort
SELECT - 95 * - col0 AS col2 FROM tab0
----
1425
8265
9215

query II rowsort
SELECT + 7, + col1 * - col1 * col1 AS col0 FROM tab0 AS cor0
----
7
-1
7
-531441
7
-9261

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

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

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

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

query I rowsort
SELECT ALL - 71 * + col1 AS col1 FROM tab1 AS cor0
----
-3337
-355
-994

query I rowsort
SELECT ALL - + 82 + - col0 * - - col1 AS col2 FROM tab2 AS cor0
----
-2428
-5010
-5107

query II rowsort
SELECT ALL - col0 * - col0, 6 + - col2 AS col0 FROM tab1
----
2601
-90
7225
-53
8281
-62

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

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

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT - col1 = + col0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col2 * 94 + 11 AS col0 FROM tab0
----
4429
9317
951

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= - 58
----
0

skipif mysql # not compatible
query I rowsort label-809
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= - 58
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + col2 * + 66 + + + 3 col1 FROM tab1 cor0
----
-3886
-4438
-6319

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-812
SELECT + COUNT( ALL - 95 ) AS col2, + 52 FROM tab1
----
3
52

skipif mysql # not compatible
query II rowsort label-812
SELECT + COUNT ( ALL - 95 ) AS col2, + 52 FROM tab1
----
3
52

query I rowsort
SELECT ALL 1 - col1 AS col2 FROM tab0
----
-20
-80
0

query II rowsort
SELECT col0 * - - col2 AS col1, 11 FROM tab2
----
1058
11
2560
11
4350
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-815
SELECT + 35 * + CAST( - col1 AS SIGNED ) - - - col2 AS col0 FROM tab2
----
-1808
-2403
-2735

skipif mysql # not compatible
query I rowsort label-815
SELECT + 35 * + CAST ( - col1 AS INTEGER ) - - - col2 AS col0 FROM tab2
----
-1808
-2403
-2735

query I rowsort
SELECT ( + col2 ) - - + col1 + 52 - + - 92 + + 47 FROM tab2 cor0
----
265
308
316

query I rowsort
SELECT ALL + col2 + + + col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query II rowsort label-818
SELECT + SUM( DISTINCT - + col2 ) AS col1, + 23 FROM tab0 AS cor0
----
-156
23

skipif mysql # not compatible
query II rowsort label-818
SELECT + SUM ( DISTINCT - + col2 ) AS col1, + 23 FROM tab0 AS cor0
----
-156
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT COUNT( DISTINCT + 26 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-820
SELECT COUNT ( DISTINCT + 26 ) AS col1 FROM tab1
----
1

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

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

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

query I rowsort
SELECT ALL + col1 * 35 AS col0 FROM tab2
----
1785
2345
2695

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-825
SELECT ALL * FROM tab0 cor0 WHERE NOT + 38 IN ( - + CAST( NULL AS SIGNED ), col1 / - + col0, + 94, + 40 + + + col0 )
----

skipif mysql # not compatible
query III rowsort label-825
SELECT ALL * FROM tab0 cor0 WHERE NOT + 38 IN ( - + CAST ( NULL AS INTEGER ), col1 / - + col0, + 94, + 40 + + + col0 )
----

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

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

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

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

query II rowsort
SELECT ALL + 60 * - col1, col1 AS col2 FROM tab0
----
-1260
21
-4860
81
-60
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 10 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-831
SELECT DISTINCT + col2 * col1 AS col0, + CAST( NULL AS SIGNED ) / - + col1 + + col0 FROM tab2
----
1173
NULL
3080
NULL
3886
NULL

skipif mysql # not compatible
query II rowsort label-831
SELECT DISTINCT + col2 * col1 AS col0, + CAST ( NULL AS INTEGER ) / - + col1 + + col0 FROM tab2
----
1173
NULL
3080
NULL
3886
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 32 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-833
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( 96, + 42 + CAST( - 33 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-833
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( 96, + 42 + CAST ( - 33 AS INTEGER ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT + + 45 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # DIV for integer division: 
query I rowsort label-835
SELECT - - col2 + + col1 DIV + + 10 AS col2 FROM tab1 AS cor0
----
59
72
97

skipif mysql # not compatible
query I rowsort label-835
SELECT - - col2 + + col1 / + + 10 AS col2 FROM tab1 AS cor0
----
59
72
97

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

query I rowsort
SELECT ALL + - ( + - 32 ) + - + col0 AS col0 FROM tab2 AS cor0
----
-14
-32
-43

query I rowsort
SELECT + ( + col0 ) + - + 35 FROM tab0 AS cor0
----
-20
52
62

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

skipif mysql # not compatible
query II rowsort label-839
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2, 38 FROM tab2 AS cor0
----
NULL
38

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT ALL + 95 DIV ( + 50 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL + 95 / ( + 50 ) FROM tab1 AS cor0
----
1
1
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-842
SELECT DISTINCT + 56 + + COUNT( * ) + - COUNT( * ) col2, COUNT( * ) AS col0 FROM tab1 WHERE NOT 91 - + ( + col0 ) IS NULL
----
56
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-842
SELECT DISTINCT + 56 + + COUNT ( * ) + - COUNT ( * ) col2, COUNT ( * ) AS col0 FROM tab1 WHERE NOT 91 - + ( + col0 ) IS NULL
----
56
3

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

query I rowsort
SELECT - + col2 * 3 FROM tab1 cor0
----
-177
-204
-288

query II rowsort
SELECT ALL - col2, - 68 * 22 AS col1 FROM tab0 AS cor0
----
-10
-1496
-47
-1496
-99
-1496

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 50 >= NULL
----

query I rowsort
SELECT ALL - 44 + - - col2 + - col0 FROM tab2 AS cor0
----
-61
-67
-68

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

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

query I rowsort
SELECT ALL + 0 - col0 FROM tab0 AS cor0
----
-15
-87
-97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT ( 33 ) + + col0 DIV col0 AS col1 FROM tab2
----
34
34
34

skipif mysql # not compatible
query I rowsort label-852
SELECT ( 33 ) + + col0 / col0 AS col1 FROM tab2
----
34
34
34

onlyif mysql # aggregate syntax: 
query II rowsort label-853
SELECT ALL 56 - - COUNT( * ) col2, - 3 col1 FROM tab2
----
59
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-853
SELECT ALL 56 - - COUNT ( * ) col2, - 3 col1 FROM tab2
----
59
-3

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE + col0 / 94 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 IS NULL
----

query II rowsort
SELECT ALL + col0, ( + 36 ) AS col2 FROM tab2
----
46
36
64
36
75
36

query I rowsort
SELECT DISTINCT ( 31 ) AS col0 FROM tab0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-861
SELECT 51 DIV col1 - col2 AS col1 FROM tab1 WHERE + 0 * col2 * - col1 IS NOT NULL
----
-49
-67
-93

skipif mysql # not compatible
query I rowsort label-861
SELECT 51 / col1 - col2 AS col1 FROM tab1 WHERE + 0 * col2 * - col1 IS NOT NULL
----
-49
-67
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT CAST( NULL AS SIGNED ) / + - 66 * 52 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-862
SELECT CAST ( NULL AS INTEGER ) / + - 66 * 52 AS col0 FROM tab2
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT + + col1 * col1 * - col2 * + 62 FROM tab2 cor0
----
-14703920
-16142444
-3709026

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 94, + 68 col2 FROM tab2 AS cor0
----
-94
68
-94
68
-94
68

query II rowsort
SELECT DISTINCT + col2 AS col0, + ( 80 ) FROM tab0 AS cor0
----
10
80
47
80
99
80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 14 - - + 58 - 67 >= ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-869
SELECT + CAST ( - 46 AS INTEGER ) FROM tab1
----
-46
-46
-46

query II rowsort
SELECT DISTINCT + col0 * - col1 AS col2, + col0 FROM tab1 AS cor0
----
-425
85
-4277
91
-714
51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-873
SELECT ALL + + 19 AS col0 FROM tab1 WHERE NOT - col0 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL + + 19 AS col0 FROM tab1 WHERE NOT - col0 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT - col2 * + 4 + col2 + + col1 AS col0, col0 * - - 90 + + 33 FROM tab2
----
-107
6783
-18
4173
-43
5793

query II rowsort
SELECT ALL - col0 * + 34 * + col1 AS col2, - col2 * + col0 * - + 92 AS col1 FROM tab1
----
-14450
461380
-145418
569296
-24276
450432

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

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE - col1 - col1 * - 43 * 15 * 31 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-879
SELECT MAX ( + 72 ) FROM tab2 AS cor0
----
72

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-883
SELECT ALL 65 DIV 66 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL 65 / 66 FROM tab0 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT ALL ( - - 87 ) FROM tab1
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-886
SELECT CAST( NULL AS SIGNED ) + - + 22 AS col2, CAST( NULL AS SIGNED ) + ( - 74 ) * + ( + 83 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 3c495c23af03b1a76a498e8361417159

skipif mysql # not compatible
query II rowsort label-886
SELECT CAST ( NULL AS INTEGER ) + - + 22 AS col2, CAST ( NULL AS INTEGER ) + ( - 74 ) * + ( + 83 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 3c495c23af03b1a76a498e8361417159

query I rowsort
SELECT + 12 + col1 - - col2 * + col0 FROM tab2 AS cor0
----
1121
2649
4429

onlyif mysql # DIV for integer division: 
query I rowsort label-888
SELECT ALL ( + - 69 ) * + 70 + - col2 DIV - 63 FROM tab1 AS cor0
----
-4829
-4829
-4830

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL ( + - 69 ) * + 70 + - col2 / - 63 FROM tab1 AS cor0
----
-4829
-4829
-4830

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 NOT IN ( - - 20 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-890
SELECT ALL - col0 + - col2 DIV - - 32 FROM tab0 AS cor0
----
-100
-16
-87

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL - col0 + - col2 / - - 32 FROM tab0 AS cor0
----
-100
-16
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + MIN( ALL + + 27 ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-891
SELECT + MIN ( ALL + + 27 ) AS col1 FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT col1 - + - col2 AS col0 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-893
SELECT ALL + COUNT( DISTINCT - CAST( + col0 AS SIGNED ) ) + - ( - 30 ) - + 28 AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL + COUNT ( DISTINCT - CAST ( + col0 AS INTEGER ) ) + - ( - 30 ) - + 28 AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT - 13 - - col1 * - - 42 AS col1 FROM tab0 AS cor0
----
29
3389
869

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 66 col0 FROM tab1
----
3366
5610
6006

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

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

query II rowsort
SELECT ALL 26, col0 AS col1 FROM tab2
----
26
46
26
64
26
75

query I rowsort
SELECT DISTINCT 79 + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-17
11
20

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL + 10 * + COUNT( * ) AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL + 10 * + COUNT ( * ) AS col0 FROM tab1
----
30

query I rowsort
SELECT - ( + col0 ) * 60 FROM tab2
----
-2760
-3840
-4500

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

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT + + ( - + SUM( DISTINCT - col2 ) ) FROM tab2 AS cor0 WHERE NOT 75 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT + + ( - + SUM ( DISTINCT - col2 ) ) FROM tab2 AS cor0 WHERE NOT 75 <> NULL
----
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 47 AS col1, + ( col1 ) * - col1 col0 FROM tab0
----
47
-1
47
-441
47
-6561

query II rowsort
SELECT ALL - col2 AS col2, 55 FROM tab2
----
-23
55
-40
55
-58
55

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-909
SELECT DISTINCT COUNT( * ), ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-909
SELECT DISTINCT COUNT ( * ), ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT ALL 47 DIV + ( 75 ) + - 53 + - col0 + col1 * - col2 FROM tab1 AS cor0
----
-1448
-3340
-433

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL 47 / + ( 75 ) + - 53 + - col0 + col1 * - col2 FROM tab1 AS cor0
----
-1448
-3340
-433

query II rowsort
SELECT ALL - col0, col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT + + 51 * - - 30 AS col0 FROM tab1 AS cor0
----
1530

onlyif mysql # DIV for integer division: 
query II rowsort label-914
SELECT 17 DIV + col1, col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-914
SELECT 17 / + col1, col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT - col0 * + col2 * + + 43 AS col0 FROM tab1
----
-210528
-215645
-266084

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

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

query I rowsort
SELECT ALL + 77 + 73 AS col0 FROM tab0
----
150
150
150

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 10 + - + ( + col2 ) * - col1 col1 FROM tab0 AS cor0
----
200
3797
89

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-922
SELECT ALL CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----
NULL

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

query I rowsort
SELECT - col2 - - 78 FROM tab1 AS cor0
----
-18
10
19

query II rowsort
SELECT ALL col2 * + + col0 + + + 43, - 52 AS col1 FROM tab2 cor0
----
1101
-52
2603
-52
4393
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT 90 - - + MAX( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-926
SELECT 90 - - + MAX ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-927
SELECT - + CAST( NULL AS SIGNED ) * + + 75 - - - 98 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-927
SELECT - + CAST ( NULL AS INTEGER ) * + + 75 - - - 98 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-929
SELECT ALL + CAST( col1 AS SIGNED ) * - + col2 AS col2, - col2 AS col1 FROM tab2 AS cor0
----
-1173
-23
-3080
-40
-3886
-58

skipif mysql # not compatible
query II rowsort label-929
SELECT ALL + CAST ( col1 AS INTEGER ) * - + col2 AS col2, - col2 AS col1 FROM tab2 AS cor0
----
-1173
-23
-3080
-40
-3886
-58

query I rowsort
SELECT DISTINCT + 35 + 33 AS col0 FROM tab1 AS cor0
----
68

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

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT ALL col2 * - ( - 78 ) FROM tab1
----
4602
5304
7488

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

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

query I rowsort
SELECT DISTINCT + 2 * + col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT CAST( + 74 AS SIGNED ) AS col2 FROM tab2
----
74
74
74

skipif mysql # not compatible
query I rowsort label-936
SELECT CAST ( + 74 AS INTEGER ) AS col2 FROM tab2
----
74
74
74

query I rowsort
SELECT DISTINCT - col0 * - 57 * col0 FROM tab1
----
148257
411825
472017

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-940
SELECT COUNT( * ) AS col2, + SUM( - - CAST( + 56 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-940
SELECT COUNT ( * ) AS col2, + SUM ( - - CAST ( + 56 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-941
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + 52 + + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + 52 + + col2 IS NULL
----
NULL

query I rowsort
SELECT + 36 * - - 28 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ede590e9679bcce1c397751b5e723636

query I rowsort
SELECT ALL - 76 * col1 FROM tab2
----
-3876
-5092
-5852

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-946
SELECT ALL * FROM tab2 cor0 WHERE - col2 < - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-946
SELECT ALL * FROM tab2 cor0 WHERE - col2 < - CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT AVG ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col0, 60 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-948
SELECT DISTINCT 67 + - 4 * + col2 AS col2, 35 DIV - col2 AS col1 FROM tab2 AS cor0
----
-165
0
-25
-1
-93
0

skipif mysql # not compatible
query II rowsort label-948
SELECT DISTINCT 67 + - 4 * + col2 AS col2, 35 / - col2 AS col1 FROM tab2 AS cor0
----
-165
0
-25
-1
-93
0

query I rowsort
SELECT + col1 + + + 64 * - 93 FROM tab1 AS cor0
----
-5905
-5938
-5947

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT ALL COUNT( DISTINCT - 73 ) col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-950
SELECT ALL COUNT ( DISTINCT - 73 ) col2 FROM tab2 cor0
----
1

query I rowsort
SELECT DISTINCT - col0 + - + col2 + - + 59 FROM tab2 AS cor0
----
-128
-163
-192

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-954
SELECT ALL CAST( - SUM( 99 ) AS SIGNED ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL CAST ( - SUM ( 99 ) AS INTEGER ) FROM tab0
----
-297

query I rowsort
SELECT + col0 + ( 66 ) + col2 FROM tab0
----
128
163
262

query I rowsort
SELECT + ( - 87 ) FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT + ( col2 ) * + col2 AS col0 FROM tab1
----
3481
4624
9216

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

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

query I rowsort
SELECT + col1 * col1 * 71 AS col1 FROM tab1
----
13916
156839
1775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 98 col2, col0 FROM tab0
----
98
15
98
87
98
97

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

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

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

query I rowsort
SELECT 78 AS col2 FROM tab2 WHERE NOT + col1 = + - col2
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-964
SELECT ALL ( CAST( - col1 AS SIGNED ) ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL ( CAST ( - col1 AS INTEGER ) ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ALL SUM( + 22 ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL SUM ( + 22 ) FROM tab2
----
66

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

query I rowsort
SELECT + 84 * + ( - - col1 ) FROM tab2 AS cor0
----
4284
5628
6468

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-969
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE ( ( col2 * - ( + + col2 ) ) NOT BETWEEN - col1 AND 30 )
----
NULL
NULL
NULL

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

query I rowsort
SELECT - ( - 11 ) AS col2 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT ALL - 14 + - - 6 + - col1 DIV ( - - 83 ) AS col1 FROM tab0 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL - 14 + - - 6 + - col1 / ( - - 83 ) AS col1 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL + - col2 + - col0 + + col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT ALL - 60 * - COUNT( * ) col1 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-974
SELECT ALL - 60 * - COUNT ( * ) col1 FROM tab2 AS cor0
----
180

query I rowsort
SELECT + col0 * - + col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-976
SELECT DISTINCT col1 DIV - + 46 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT col1 / - + 46 AS col0 FROM tab1
----
-1
0

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

skipif mysql # not compatible
query III rowsort label-977
SELECT * FROM tab0 WHERE + - CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT + 58 + + 26 AS col2 FROM tab0
----
84
84
84

query I rowsort
SELECT - col1 * + col0 * + - 60 + + col1 FROM tab0 cor0
----
109641
5821
72981

query I rowsort
SELECT DISTINCT ( - 92 ) AS col2 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT ALL - + 49 + 53 + + 94 * - col0 AS col2 FROM tab1 AS cor0
----
-4790
-7986
-8550

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

query I rowsort
SELECT - 34 FROM tab2 WHERE + col1 * - + 83 * col1 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT + COUNT( * ) * + - SUM( ALL - - col0 ) AS col2 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-985
SELECT + COUNT ( * ) * + - SUM ( ALL - - col0 ) AS col2 FROM tab0
----
-597

query II rowsort
SELECT + col1 * - col2 AS col1, - col0 * 18 FROM tab2 AS cor0
----
-1173
-828
-3080
-1152
-3886
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT - COUNT( * ) * - SUM( + col2 ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-987
SELECT - COUNT ( * ) * - SUM ( + col2 ) FROM tab0 AS cor0
----
468

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 38 * - col1 * - + col1 * + 62 BETWEEN - 77 AND NULL
----

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

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

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

skipif mysql # not compatible
query II rowsort label-991
SELECT DISTINCT + COUNT ( * ) AS col0, - 36 FROM tab1 AS cor0
----
3
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT ALL + col1 * col2 DIV col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL + col1 * col2 / col2 FROM tab0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 + - - 10 + 55 * col2 ) >= - 63 * col0 * col1 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT - COUNT ( + - col1 ) * - CAST ( - + 55 AS INTEGER ) AS col1 FROM tab2
----
-165

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-997
SELECT ALL - CAST ( NULL AS REAL ) col1 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 93 / col2 col1 FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND ( + + col0 )
----

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

query II rowsort
SELECT ALL + 77 * - col1 AS col2, + 67 AS col2 FROM tab0 AS cor0
----
-1617
67
-6237
67
-77
67

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT col2 DIV + 55 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1004
SELECT col2 / + 55 FROM tab2
----
0
0
1

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

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT - COUNT ( * ) * ( 65 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-585

query I rowsort
SELECT - - col0 + - 61 FROM tab2 AS cor0
----
-15
14
3

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

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col2, col1 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1011
SELECT ALL - 83 * + 51 * + + col2 * - CAST( NULL AS SIGNED ) - + + 6 / - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL - 83 * + 51 * + + col2 * - CAST ( NULL AS INTEGER ) - + + 6 / - col1 FROM tab0
----
NULL
NULL
NULL

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col1 FROM tab0
----
4
4
4

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1018
SELECT DISTINCT 35 DIV + COUNT( * ) AS col2 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT 35 / + COUNT ( * ) AS col2 FROM tab0
----
11

query I rowsort
SELECT - ( - - col2 ) FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 * + col0 col2 FROM tab2
----
4554
6336
7425

query I rowsort
SELECT + col2 + ( col2 ) * - col2 FROM tab2 AS cor0 WHERE NOT col1 = + + 16
----
-1560
-3306
-506

query I rowsort
SELECT - - 67 * col2 FROM tab2 cor0
----
1541
2680
3886

query II rowsort
SELECT DISTINCT col0 AS col1, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1024
SELECT DISTINCT + col2 DIV + col2 + ( col1 ) + + col1 DIV - + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT + col2 / + col2 + ( col1 ) + + col1 / - + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 = + + 69 / col0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT + col2 * - + 22 AS col2 FROM tab0
----
-1034
-2178
-220

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

query I rowsort
SELECT + ( + 92 ) FROM tab1
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + 80 AS col0 FROM tab1
----
-4080
-6800
-7280

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - 69 AS col2 FROM tab1 AS cor0
----
51
-69
85
-69
91
-69

query I rowsort
SELECT DISTINCT + col2 * + ( + col1 ) - - 17 AS col1 FROM tab2 AS cor0
----
1190
3097
3903

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT - COUNT( * ) + 76 FROM tab2 cor0
----
73

skipif mysql # not compatible
query I rowsort label-1038
SELECT - COUNT ( * ) + 76 FROM tab2 cor0
----
73

query I rowsort
SELECT ALL + col2 * 3 + + - ( - col1 ) FROM tab1 AS cor0
----
182
251
302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT ALL 87 * 85 / col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL 87 * 85 / col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1041
SELECT ALL + COUNT( * ) - + 67 DIV - 22 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL + COUNT ( * ) - + 67 / - 22 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1042
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + - 7 IS NULL AND - 16 + - CAST( - + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1042
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + - 7 IS NULL AND - 16 + - CAST ( - + col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1043
SELECT DISTINCT + - CAST( + - ( + col1 ) AS SIGNED ) + + - 12 DIV + col2 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT + - CAST ( + - ( + col1 ) AS INTEGER ) + + - 12 / + col2 AS col2 FROM tab2 AS cor0
----
51
67
77

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 26 NOT BETWEEN - - col0 AND + - ( 33 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + ( - col2 ) + + ( + + 36 ) FROM tab2 AS cor0
----
59
76
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1047
SELECT - COUNT( * ) DIV SUM( DISTINCT - + 28 ) + + 86 AS col0 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-1047
SELECT - COUNT ( * ) / SUM ( DISTINCT - + 28 ) + + 86 AS col0 FROM tab2
----
86

query I rowsort
SELECT 47 + - 37 + + col1 * + col1 * + col2 FROM tab0
----
109
308377
4420

onlyif mysql # aggregate syntax: 
query II rowsort label-1049
SELECT DISTINCT - ( - + COUNT( * ) ) - 4 AS col0, 12 * + ( 5 ) AS col2 FROM tab1
----
-1
60

skipif mysql # not compatible
query II rowsort label-1049
SELECT DISTINCT - ( - + COUNT ( * ) ) - 4 AS col0, 12 * + ( 5 ) AS col2 FROM tab1
----
-1
60

query III rowsort
SELECT ALL * FROM tab0 WHERE - 60 BETWEEN col1 AND + - 20
----

query III rowsort
SELECT * FROM tab1 WHERE + - 88 < NULL
----

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 51 IN ( + 10 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT - - 82 DIV - 23 + 54 AS col0 FROM tab1 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-1057
SELECT - - 82 / - 23 + 54 AS col0 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT - col2 * - 3 - 31 FROM tab1
----
146
173
257

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1059
SELECT DISTINCT 8 * + ( COUNT( * ) ) - - 1 DIV + COUNT( DISTINCT + ( + col1 ) * + col2 - col2 ) FROM tab1 WHERE 33 <= ( 79 )
----
24

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT 8 * + ( COUNT ( * ) ) - - 1 / + COUNT ( DISTINCT + ( + col1 ) * + col2 - col2 ) FROM tab1 WHERE 33 <= ( 79 )
----
24

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT DISTINCT - col0 + + col0 DIV col2 AS col2 FROM tab0
----
-15
-79
-97

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - col0 + + col0 / col2 AS col2 FROM tab0
----
-15
-79
-97

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

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

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

query I rowsort
SELECT - col1 + + 46 * ( col2 * col0 + 60 ) AS col0 FROM tab1 WHERE NOT NULL IN ( - col1 )
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL - MAX ( - col2 ) AS col2 FROM tab2
----
23

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col2 FROM tab2
----
18
18
18

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

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

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

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

query I rowsort
SELECT DISTINCT - 20 - col2 FROM tab0
----
-119
-30
-67

query I rowsort
SELECT - col0 * 65 AS col2 FROM tab2
----
-2990
-4160
-4875

query I rowsort
SELECT col1 * 83 FROM tab0
----
1743
6723
83

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

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

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

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

query I rowsort
SELECT ALL + 61 + + 49 FROM tab2
----
110
110
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL COUNT( * ) FROM tab1 WHERE ( NULL ) > - col1
----
0

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( NULL ) > - col1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 + - ( - 44 ) ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT ALL - COUNT( * ) - 82 * + COUNT( * ) AS col2 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL - COUNT ( * ) - 82 * + COUNT ( * ) AS col2 FROM tab1
----
-249

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * col2 col0 FROM tab0
----
110
2256
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT DISTINCT - 84 + COUNT( * ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT - 84 + COUNT ( * ) FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT DISTINCT + SUM( + 99 ) + SUM( ALL - col0 ) FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT + SUM ( + 99 ) + SUM ( ALL - col0 ) FROM tab0 AS cor0
----
98

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

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

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

query I rowsort
SELECT - col0 + col0 FROM tab2 WHERE ( - 78 ) <= ( col2 * col1 )
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1092
SELECT ALL + col2 FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + col2 FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT + col0 + + 96 * col0 AS col2 FROM tab2 AS cor0
----
4462
6208
7275

query I rowsort
SELECT DISTINCT + - ( 40 ) + 85 * 30 AS col0 FROM tab0 AS cor0
----
2510

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 / + col0 col1 FROM tab0 AS cor0 WHERE 34 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT SUM( + ( 17 ) ) AS col2 FROM tab2 AS cor0 WHERE 75 * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT SUM ( + ( 17 ) ) AS col2 FROM tab2 AS cor0 WHERE 75 * col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab0 AS cor0 WHERE ( 0 ) NOT IN ( - col0 )
----
15
87
97

query I rowsort
SELECT ALL - col2 - - 59 AS col2 FROM tab2 AS cor0
----
1
19
36

query I rowsort
SELECT + 89 * + col0 * col1 FROM tab1
----
37825
380653
63546

query I rowsort
SELECT ALL + ( + 87 ) * col0 - col0 FROM tab2
----
3956
5504
6450

query I rowsort
SELECT ALL col2 * + - col0 - 62 * + col1 AS col1 FROM tab1
----
-5325
-5764
-9102

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT + COUNT( DISTINCT - col1 ) - + MIN( - col2 ) col2 FROM tab2
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1103
SELECT + COUNT ( DISTINCT - col1 ) - + MIN ( - col2 ) col2 FROM tab2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT DISTINCT COUNT( * ) * - - 59 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-1104
SELECT DISTINCT COUNT ( * ) * - - 59 FROM tab0
----
177

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

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

query I rowsort
SELECT + col0 - - 52 FROM tab2
----
116
127
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1107
SELECT + col2 - CAST( - 49 AS SIGNED ) + 78 FROM tab2
----
150
167
185

skipif mysql # not compatible
query I rowsort label-1107
SELECT + col2 - CAST ( - 49 AS INTEGER ) + 78 FROM tab2
----
150
167
185

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT ( col0 ) IN ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( col0 ) IN ( col2 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1110
SELECT ALL 27 DIV 25 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL 27 / 25 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT ALL + - 12 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL + - 12 / - col2 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT ALL 18 * 54 * COUNT( * ) FROM tab2 AS cor0
----
2916

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL 18 * 54 * COUNT ( * ) FROM tab2 AS cor0
----
2916

query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab1 cor0
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT DISTINCT 41 * COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
369

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT 41 * COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
369

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE ( NULL ) <> col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1117
SELECT + 7 DIV 1 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + 5 * + + col1 * 80 > - col2
----
7

skipif mysql # not compatible
query I rowsort label-1117
SELECT + 7 / 1 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + 5 * + + col1 * 80 > - col2
----
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 56 IS NULL
----

query I rowsort
SELECT ALL - 88 + + col1 AS col2 FROM tab2 AS cor0 WHERE col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1120
SELECT DISTINCT 76, - SUM( + - col1 ) col0 FROM tab0 AS cor0
----
76
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1120
SELECT DISTINCT 76, - SUM ( + - col1 ) col0 FROM tab0 AS cor0
----
76
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1121
SELECT - col2 * + col0 col2 FROM tab1 cor0 WHERE + col0 + - col2 IS NULL OR ( + CAST( col1 AS SIGNED ) ) NOT BETWEEN ( + col0 * col2 ) AND + col0
----
-4896
-5015
-6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1121
SELECT - col2 * + col0 col2 FROM tab1 cor0 WHERE + col0 + - col2 IS NULL OR ( + CAST ( col1 AS INTEGER ) ) NOT BETWEEN ( + col0 * col2 ) AND + col0
----
-4896
-5015
-6188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT + COUNT( * ) * - MAX( DISTINCT 48 ) AS col0 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-1124
SELECT + COUNT ( * ) * - MAX ( DISTINCT 48 ) AS col0 FROM tab2 AS cor0
----
-144

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( CAST( + col2 AS SIGNED ) * col2 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( CAST ( + col2 AS INTEGER ) * col2 ) <> NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT ALL MIN( + col0 ) AS col1 FROM tab0 WHERE NOT ( + col2 ) < - col2
----
15

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL MIN ( + col0 ) AS col1 FROM tab0 WHERE NOT ( + col2 ) < - col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT DISTINCT SUM( col1 ) FROM tab2 WHERE NOT ( + col2 * - col1 + 57 ) = ( col0 + ( - col2 ) )
----
195

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT SUM ( col1 ) FROM tab2 WHERE NOT ( + col2 * - col1 + 57 ) = ( col0 + ( - col2 ) )
----
195

query I rowsort
SELECT ALL + 81 * + col1 + + - col1 AS col1 FROM tab1
----
1120
3760
400

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 * - col2 ) IS NOT NULL AND NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT - COUNT( * ) col1, - SUM( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1135
SELECT - COUNT ( * ) col1, - SUM ( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

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

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT + ( - col0 ) / - + 62 FROM tab0 AS cor0
----
0
1

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

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

query III rowsort
SELECT * FROM tab0 WHERE + + 12 > ( + col1 )
----
97
1
99

query I rowsort
SELECT 40 FROM tab1 WHERE NULL IN ( - ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1141
SELECT DISTINCT * FROM tab1 WHERE NULL = ( + CAST( NULL AS SIGNED ) * - 2 + - col2 + col1 )
----

skipif mysql # not compatible
query III rowsort label-1141
SELECT DISTINCT * FROM tab1 WHERE NULL = ( + CAST ( NULL AS INTEGER ) * - 2 + - col2 + col1 )
----

query I rowsort
SELECT - 3 + + + 70 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT + 1 AS col0 FROM tab2
----
1
1
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1145
SELECT - 47 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE col2 * - + 88 * + - col2 NOT IN ( - 64 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT - 47 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE col2 * - + 88 * + - col2 NOT IN ( - 64 )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 + + - 54 FROM tab1 AS cor0
----
-3
31
37

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

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

query II rowsort
SELECT - 49 + - 75 - + col1 AS col0, 62 + - col0 * + col0 FROM tab2 cor0
----
-175
-2054
-191
-5563
-201
-4034

query I rowsort
SELECT + 84 AS col0 FROM tab1 WHERE - col1 / + col0 > NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1151
SELECT DISTINCT ( - 57 ) * - MIN( DISTINCT + + CAST( - col0 AS SIGNED ) ) * + + MAX( ALL col2 ) AS col0 FROM tab2
----
-247950

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT ( - 57 ) * - MIN ( DISTINCT + + CAST ( - col0 AS INTEGER ) ) * + + MAX ( ALL col2 ) AS col0 FROM tab2
----
-247950

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

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

query II rowsort
SELECT ALL col0 * + col1, - col2 AS col1 FROM tab2
----
2346
-23
4928
-40
5025
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 / col0 + + 90 col1 FROM tab1 WHERE NULL IN ( ( col1 ) * col1 - - 61 + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1155
SELECT + 38 * col2 * col1 DIV + col1 FROM tab0
----
1786
3762
380

skipif mysql # not compatible
query I rowsort label-1155
SELECT + 38 * col2 * col1 / + col1 FROM tab0
----
1786
3762
380

onlyif mysql # DIV for integer division: 
query II rowsort label-1156
SELECT ALL + + col0, 43 DIV - - col0 FROM tab0 AS cor0
----
15
2
87
0
97
0

skipif mysql # not compatible
query II rowsort label-1156
SELECT ALL + + col0, 43 / - - col0 FROM tab0 AS cor0
----
15
2
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT + MIN( DISTINCT + - 96 ) * + - COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-1157
SELECT + MIN ( DISTINCT + - 96 ) * + - COUNT ( * ) FROM tab1 AS cor0
----
288

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - SUM( ALL 16 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-1159
SELECT - SUM ( ALL 16 ) FROM tab2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1160
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( + col1 ) BETWEEN + CAST( NULL AS SIGNED ) * + - 36 + + 4 AND col2 )
----

skipif mysql # not compatible
query III rowsort label-1160
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( + col1 ) BETWEEN + CAST ( NULL AS INTEGER ) * + - 36 + + 4 AND col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 41 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT - + 91 >= - col1 * col2 )
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT + SUM( DISTINCT + col1 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-1163
SELECT + SUM ( DISTINCT + col1 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1164
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) + - ( 22 ) DIV 47 col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1164
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + - ( 22 ) / 47 col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 * col0 - + col0 col1 FROM tab0 AS cor0 WHERE NOT - 71 * - - col2 * - ( - col1 ) IS NULL
----
1200
6960
7760

query II rowsort
SELECT DISTINCT + + 61 * - col0 AS col1, - 5 - + ( - 67 ) FROM tab0 AS cor0
----
-5307
62
-5917
62
-915
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1167
SELECT DISTINCT + CAST( + ( col2 ) AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT + CAST ( + ( col2 ) AS REAL ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

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

query I rowsort
SELECT ALL - col2 * - - col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL col2 * - - 25 AS col0 FROM tab1
----
1475
1700
2400

query I rowsort
SELECT ALL + 35 + ( - col2 ) + + 18 * + + col2 - + 20 - ( + col1 ) FROM tab0
----
164
1697
733

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 NOT IN ( + col1 + + col0, 78, - col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1174
SELECT 10 * MAX( + 96 ) col1, MIN( ALL col1 ) AS col0 FROM tab2
----
960
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1174
SELECT 10 * MAX ( + 96 ) col1, MIN ( ALL col1 ) AS col0 FROM tab2
----
960
51

query I rowsort
SELECT DISTINCT + 83 - - col2 AS col1 FROM tab2 AS cor0
----
106
123
141

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT + col1 DIV + col0 - - - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-1176
SELECT + col1 / + col0 - - - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-76

query I rowsort
SELECT + - 84 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

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

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE 61 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + col0 + - col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1181
SELECT - 55 DIV - col0 AS col0, + CAST( + + col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
0
37
0
9
1
28

skipif mysql # not compatible
query II rowsort label-1181
SELECT - 55 / - col0 AS col0, + CAST ( + + col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
0
37
0
9
1
28

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 / - 73 * col1 + + 20 + - col2 IN ( + 76 / - col1 + - - col2 - col2 )
----

query I rowsort
SELECT DISTINCT - + 28 FROM tab1 cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1185
SELECT ALL col1 * - + 39 + + - 85 + + 42 + 13 * + CAST( NULL AS SIGNED ) * - - 28 + 51 * + 81 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL col1 * - + 39 + + - 85 + + 42 + 13 * + CAST ( NULL AS INTEGER ) * - - 28 + 51 * + 81 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 + - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1187
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( + - CAST( + 38 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( + - CAST ( + 38 AS INTEGER ) )
----

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

query I rowsort
SELECT DISTINCT ( + 17 ) * + col2 FROM tab0
----
1683
170
799

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - col1 * + ( + ( + - col2 ) ) FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT - - 79 * 84 + - - col0 FROM tab1 cor0
----
6687
6721
6727

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

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

query I rowsort
SELECT ALL 65 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
65
65
65

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + + col1 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 49 NOT IN ( col1 * - 79 ) )
----

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

query I rowsort
SELECT DISTINCT - 98 * - + col1 - - + col2 AS col0 FROM tab2
----
5021
6624
7586

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL - MIN( DISTINCT - col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL - MIN ( DISTINCT - col1 ) FROM tab1 cor0
----
47

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

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

query I rowsort
SELECT DISTINCT + - col1 * - 69 AS col0 FROM tab0 AS cor0
----
1449
5589
69

query I rowsort
SELECT ALL + ( 50 ) * - col2 FROM tab2 AS cor0
----
-1150
-2000
-2900

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

query I rowsort
SELECT + 72 * + - ( 87 ) AS col0 FROM tab0 WHERE NOT + + col0 IS NULL
----
-6264
-6264
-6264

query II rowsort
SELECT ALL + + col2 AS col1, - ( 63 ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - ( col2 )
----

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1214
SELECT + ( - CAST ( NULL AS REAL ) ) AS col1, col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT + 62 * + 76 FROM tab2 AS cor0
----
4712
4712
4712

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

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

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

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

query II rowsort
SELECT ALL - ( - col1 ) AS col0, col1 * col2 FROM tab2 AS cor0
----
51
1173
67
3886
77
3080

query I rowsort
SELECT ALL - 41 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

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

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

query I rowsort
SELECT ( 23 ) * - col0 * + 99 * - - col0 FROM tab1 AS cor0 WHERE NULL <> col2 * 83 + + - col1
----

query I rowsort
SELECT - 86 + 83 AS col1 FROM tab1 AS cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 48 col0 FROM tab0 AS cor0
----
-33
39
49

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

query II rowsort
SELECT col2, 83 FROM tab1
----
59
83
68
83
96
83

query I rowsort
SELECT DISTINCT - ( ( + col2 ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL - col0 + - + col2 FROM tab2
----
-104
-133
-69

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

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

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

query I rowsort
SELECT + col0 * + 61 AS col0 FROM tab2
----
2806
3904
4575

query I rowsort
SELECT DISTINCT - 13 + + + col1 AS col2 FROM tab1
----
-8
1
34

query II rowsort
SELECT ALL ( - + 37 ), 58 * - 67 AS col0 FROM tab1 AS cor0
----
-37
-3886
-37
-3886
-37
-3886

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

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL - + 64 - + + MIN ( col2 ) * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 + col1 AS col0, - 66 - + + col2 col0 FROM tab1 AS cor0
----
0
-125
0
-134
0
-162

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE - col2 * 58 + - - col2 + col2 IS NULL
----

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

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

query I rowsort
SELECT ALL + 41 - 14 + col1 AS col2 FROM tab1
----
32
41
74

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1238
SELECT COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 24 NOT IN ( - col1 )
----

query I rowsort
SELECT - 80 FROM tab1 AS cor0 WHERE NOT + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + + 70 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col2 FROM tab2 AS cor0
----
15
15
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT + SUM( ( - - ( - 52 ) ) ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1244
SELECT + SUM ( ( - - ( - 52 ) ) ) AS col2 FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 83 col2 FROM tab1 AS cor0
----
-83
-83
-83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL - MIN( + 40 ) col1 FROM tab2
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1247
SELECT ALL - MIN ( + 40 ) col1 FROM tab2
----
-40

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 - col0 < - + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT DISTINCT - COUNT( * ) * 89 AS col1 FROM tab2 cor0
----
-267

skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT - COUNT ( * ) * 89 AS col1 FROM tab2 cor0
----
-267

query I rowsort
SELECT DISTINCT - - 0 + ( + 84 ) FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1253
SELECT - + col2 DIV 18 - 29 + - 2 - col1 + + col0 * - col0 FROM tab2 AS cor0
----
-2199
-4206
-5726

skipif mysql # not compatible
query I rowsort label-1253
SELECT - + col2 / 18 - 29 + - 2 - col1 + + col0 * - col0 FROM tab2 AS cor0
----
-2199
-4206
-5726

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

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT MIN ( + - col0 ) FROM tab2
----
-75

query I rowsort
SELECT + ( + 12 ) AS col1 FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1256
SELECT ALL + col2 AS col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL <= - ( col2 )
----

skipif mysql # not compatible
query II rowsort label-1256
SELECT ALL + col2 AS col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL <= - ( col2 )
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1259
SELECT DISTINCT - MAX( col1 ) + - COUNT( ALL + CAST( + CAST( + + col2 AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT - MAX ( col1 ) + - COUNT ( ALL + CAST ( + CAST ( + + col2 AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-50

query II rowsort
SELECT 70 AS col1, 46 + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
70
113
70
123
70
97

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1263
SELECT ALL * FROM tab0 WHERE - CAST( col1 AS SIGNED ) * - CAST( NULL AS DECIMAL ) > + + col0 + + + 8
----

skipif mysql # not compatible
query III rowsort label-1263
SELECT ALL * FROM tab0 WHERE - CAST ( col1 AS INTEGER ) * - CAST ( NULL AS REAL ) > + + col0 + + + 8
----

query I rowsort
SELECT ( - 50 ) + - 23 AS col0 FROM tab1
----
-73
-73
-73

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

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

query I rowsort
SELECT + 29 FROM tab2 WHERE NULL NOT BETWEEN ( + 37 ) + 64 * 56 / + col1 AND NULL
----

query I rowsort
SELECT ALL - 52 * + 59 * - col2 FROM tab0
----
144196
303732
30680

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT - COUNT( * ) + + - MIN( - col0 ) + + 54 AS col1 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-1268
SELECT - COUNT ( * ) + + - MIN ( - col0 ) + + 54 AS col1 FROM tab2
----
126

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + 84 AND 21 * - 73
----

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

query I rowsort
SELECT + 76 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 15 + + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
16
36
96

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

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

skipif mysql # not compatible
query I rowsort label-1274
SELECT - MIN ( ALL - - 29 ) FROM tab2 AS cor0
----
-29

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

query I rowsort
SELECT ALL - col1 * - - col2 AS col0 FROM tab2
----
-1173
-3080
-3886

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

query I rowsort
SELECT DISTINCT - ( - + col1 ) * + col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT DISTINCT - MIN( - 69 ), 67 AS col0 FROM tab2 AS cor0
----
69
67

skipif mysql # not compatible
query II rowsort label-1279
SELECT DISTINCT - MIN ( - 69 ), 67 AS col0 FROM tab2 AS cor0
----
69
67

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1282
SELECT col2 DIV - 50 - + 5 * - + col2 FROM tab2 AS cor0
----
115
200
289

skipif mysql # not compatible
query I rowsort label-1282
SELECT col2 / - 50 - + 5 * - + col2 FROM tab2 AS cor0
----
115
200
289

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

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

query I rowsort
SELECT + col2 * - + 71 - - col1 FROM tab1 AS cor0
----
-4184
-4781
-6802

query I rowsort
SELECT ALL - 46 * col0 * - col2 AS col0 FROM tab1
----
225216
230690
284648

query II rowsort
SELECT ALL col0 * - - col0 AS col0, 18 * col1 * col2 + - 96 AS col1 FROM tab0
----
225
68430
7569
3684
9409
1686

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

query I rowsort
SELECT - + col0 * - col2 * - col2 AS col0 FROM tab0 AS cor0
----
-33135
-8700
-950697

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

query I rowsort
SELECT DISTINCT - col2 * - + 74 FROM tab2
----
1702
2960
4292

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * col0 * - 61 = + 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT ALL - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-6

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

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

query I rowsort
SELECT ALL - col2 + - + ( col2 ) AS col2 FROM tab2 cor0
----
-116
-46
-80

query I rowsort
SELECT ALL + 51 + + 42 FROM tab2
----
93
93
93

query III rowsort
SELECT * FROM tab2 WHERE col2 <> ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1299
SELECT ALL ( + 37 ) - + col1 DIV + + col0 AS col0 FROM tab0
----
32
37
37

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL ( + 37 ) - + col1 / + + col0 AS col0 FROM tab0
----
32
37
37

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + 46 FROM tab2
----
23
46
40
46
58
46

query I rowsort
SELECT col0 * + 43 AS col2 FROM tab0
----
3741
4171
645

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1304
SELECT DISTINCT * FROM tab1 WHERE CAST( - 59 AS DECIMAL ) <> - 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1304
SELECT DISTINCT * FROM tab1 WHERE CAST ( - 59 AS REAL ) <> - 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-1305
SELECT - COUNT( * ), 42 AS col2 FROM tab0
----
-3
42

skipif mysql # not compatible
query II rowsort label-1305
SELECT - COUNT ( * ), 42 AS col2 FROM tab0
----
-3
42

query I rowsort
SELECT ALL - 30 * col1 FROM tab2 AS cor0
----
-1530
-2010
-2310

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1308
SELECT + MIN( + CAST( col0 AS SIGNED ) ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1308
SELECT + MIN ( + CAST ( col0 AS INTEGER ) ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT DISTINCT - SUM( DISTINCT 44 ) AS col2 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT - SUM ( DISTINCT 44 ) AS col2 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT - 5 * col1 + col2 FROM tab1 AS cor0
----
-167
26
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT ALL + MAX( ALL + 67 ) * + MAX( ALL + + col1 ) FROM tab0
----
5427

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL + MAX ( ALL + 67 ) * + MAX ( ALL + + col1 ) FROM tab0
----
5427

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

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

query II rowsort
SELECT col0, + ( + - ( - + 6 ) ) * - + col1 AS col0 FROM tab1
----
51
-84
85
-30
91
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT + 63 * ( - COUNT( * ) ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-1315
SELECT + 63 * ( - COUNT ( * ) ) FROM tab2
----
-189

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT + - COUNT( * ) + + SUM( ALL + col2 ) + + - COUNT( * ) * + 79 AS col0 FROM tab2 AS cor0
----
-119

skipif mysql # not compatible
query I rowsort label-1317
SELECT + - COUNT ( * ) + + SUM ( ALL + col2 ) + + - COUNT ( * ) * + 79 AS col0 FROM tab2 AS cor0
----
-119

onlyif mysql # DIV for integer division: 
query II rowsort label-1318
SELECT DISTINCT + 13 DIV col2, col0 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-1318
SELECT DISTINCT + 13 / col2, col0 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT ALL + col2 DIV - + col0 * 84 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + col2 / - + col0 * 84 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + - - ( - 90 ) + - col0 * col0 FROM tab0
----
-300
-7572
-9402

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

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

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

query I rowsort
SELECT + ( + - col0 ) - col1 FROM tab1 cor0
----
-138
-65
-90

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

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

query II rowsort
SELECT ALL col2 + - - col1, col0 FROM tab1 AS cor0
----
110
51
115
91
64
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <= col2 - + + col2 + - - 35
----
15
81
47

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

query II rowsort
SELECT - 11 + + col0 AS col0, col1 FROM tab1 AS cor0
----
40
14
74
5
80
47

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT ALL + 90 - + COUNT( * ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL + 90 - + COUNT ( * ) AS col0 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT DISTINCT + SUM( 79 ) FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT + SUM ( 79 ) FROM tab2
----
237

query II rowsort
SELECT DISTINCT 18 AS col0, col2 * - col2 AS col2 FROM tab1 AS cor0
----
18
-3481
18
-4624
18
-9216

onlyif mysql # aggregate syntax: 
query II rowsort label-1337
SELECT COUNT( * ) AS col2, ( - 86 ) + + - 54 FROM tab1 AS cor0
----
3
-140

skipif mysql # not compatible
query II rowsort label-1337
SELECT COUNT ( * ) AS col2, ( - 86 ) + + - 54 FROM tab1 AS cor0
----
3
-140

query II rowsort
SELECT col2, + col2 + + 64 AS col0 FROM tab0 cor0
----
10
74
47
111
99
163

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 11 + ( + - col1 ) <= col2
----

query I rowsort
SELECT 20 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT + 13 * - - COUNT( * ) + + + COUNT( * ) col2 FROM tab2 AS cor0
----
42

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * - - 37 col1 FROM tab0 AS cor0
----
-555
-555
-555

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * 97 - - - 39 IS NOT NULL
----

query I rowsort
SELECT + col0 + - + 76 FROM tab0 AS cor0
----
-61
11
21

query I rowsort
SELECT DISTINCT + 49 * - - 20 - - + col2 FROM tab1 cor0
----
1039
1048
1076

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT COUNT( * ) * - COUNT( ALL - col1 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT COUNT ( * ) * - COUNT ( ALL - col1 ) FROM tab1
----
-9

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

query I rowsort
SELECT - - ( + col2 ) * + - 53 FROM tab0 WHERE + col2 IS NOT NULL
----
-2491
-5247
-530

query I rowsort
SELECT ALL col0 * - + 60 AS col2 FROM tab2
----
-2760
-3840
-4500

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

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

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

query I rowsort
SELECT DISTINCT - + 66 * 72 + - col2 - - 26 * - ( + - 92 ) AS col2 FROM tab2 AS cor0
----
-2383
-2400
-2418

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1356
SELECT CAST( NULL AS SIGNED ), col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1356
SELECT CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1357
SELECT ALL col0 + col1 DIV + 1 FROM tab1 cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL col0 + col1 / + 1 FROM tab1 cor0
----
138
65
90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1359
SELECT ALL + col0 DIV + col2 + - - col2 * 41 AS col2 FROM tab0 AS cor0
----
1927
4059
418

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + col0 / + col2 + - - col2 * 41 AS col2 FROM tab0 AS cor0
----
1927
4059
418

query I rowsort
SELECT col0 * - - 56 * col2 + - col1 AS col1 FROM tab0
----
39399
48699
537767

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 60 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1362
SELECT ALL CAST( + - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 12 FROM tab1 cor0
----
12

query I rowsort
SELECT ALL col0 - 50 - col1 FROM tab1 AS cor0
----
-13
-6
30

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT DISTINCT - + MAX( + + col2 ) + - COUNT( * ) col0 FROM tab1 cor0
----
-99

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

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

query I rowsort
SELECT 82 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT ALL - SUM( 11 ) + + + COUNT( * ) * - COUNT( * ) * - 62 FROM tab0 AS cor0
----
525

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL - SUM ( 11 ) + + + COUNT ( * ) * - COUNT ( * ) * - 62 FROM tab0 AS cor0
----
525

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

query I rowsort
SELECT + ( - - 60 ) AS col1 FROM tab1
----
60
60
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * ( + 10 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT ALL - COUNT( * ) * - + COUNT( * ) * 18 AS col0 FROM tab0 AS cor0 WHERE NOT col2 * - col1 <> - 78
----
0

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) * 18 AS col0 FROM tab0 AS cor0 WHERE NOT col2 * - col1 <> - 78
----
0

query II rowsort
SELECT - 80 AS col2, - 69 AS col1 FROM tab1
----
-80
-69
-80
-69
-80
-69

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT col0 * + - col2 > + col2
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT + col2 DIV - + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1377
SELECT + col2 / - + col0 FROM tab2
----
0
0
0

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

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * + col1 >= 55 * + col1
----
23

query I rowsort
SELECT ALL - ( col0 ) + + - col0 AS col1 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT DISTINCT + col2 + - 24 + 90 AS col0 FROM tab2 cor0
----
106
124
89

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

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

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

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

query I rowsort
SELECT col1 * + 22 AS col1 FROM tab0
----
1782
22
462

query I rowsort
SELECT + col2 * - 73 AS col2 FROM tab2
----
-1679
-2920
-4234

query I rowsort
SELECT - ( - 93 ) + col1 * + col2 + + 1 - + col1 + 43 AS col2 FROM tab2
----
1259
3140
3956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1389
SELECT DISTINCT ( CAST( - 10 AS SIGNED ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT ( CAST ( - 10 AS INTEGER ) ) FROM tab0
----
-10

query I rowsort
SELECT DISTINCT - col1 + 50 + + 27 AS col1 FROM tab2
----
0
10
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1391
SELECT ( + col2 ) + + + col0 + + col0 + ( - col0 ) DIV - + col2 FROM tab0
----
192
293
77

skipif mysql # not compatible
query I rowsort label-1391
SELECT ( + col2 ) + + + col0 + + col0 + ( - col0 ) / - + col2 FROM tab0
----
192
293
77

query I rowsort
SELECT - col2 + 82 * - - col1 FROM tab0 AS cor0
----
-17
1712
6595

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT - 87 - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT - 87 - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - 17 + - col2 * - col2 FROM tab2 AS cor0
----
1583
3347
512

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

query I rowsort
SELECT + + 96 - - 8 + - col2 * - 96 FROM tab1 AS cor0
----
5768
6632
9320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( + col0 ) ) + ( - col2 ) * - 87 col1 FROM tab2 AS cor0
----
2047
3544
5121

query I rowsort
SELECT - col2 - + 75 AS col2 FROM tab2 AS cor0
----
-115
-133
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL + - MIN( - + col0 ) * - 72 AS col1 FROM tab2 AS cor0
----
-5400

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL + - MIN ( - + col0 ) * - 72 AS col1 FROM tab2 AS cor0
----
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT DISTINCT - COUNT( * ) * - 3 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT - COUNT ( * ) * - 3 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT MAX( ALL 76 ) + - MIN( DISTINCT ( + 69 ) ) AS col0 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1401
SELECT MAX ( ALL 76 ) + - MIN ( DISTINCT ( + 69 ) ) AS col0 FROM tab1 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1402
SELECT + col2 + + 10 + - ( + CAST( NULL AS SIGNED ) ) - + - 2 AS col1, CAST( col2 AS SIGNED ) / + CAST( NULL AS SIGNED ) * - 69 - - 4 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1402
SELECT + col2 + + 10 + - ( + CAST ( NULL AS INTEGER ) ) - + - 2 AS col1, CAST ( col2 AS INTEGER ) / + CAST ( NULL AS INTEGER ) * - 69 - - 4 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1403
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1404
SELECT DISTINCT col0 DIV ( - col1 ) FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT col0 / ( - col1 ) FROM tab0 AS cor0
----
-4
-97
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 44 = - + ( + 17 ) * - 54
----

query II rowsort
SELECT DISTINCT 99, 81 + - - 29 AS col1 FROM tab2, tab1 AS cor0
----
99
110

query II rowsort
SELECT + col2, 18 - col0 FROM tab0
----
10
-69
47
3
99
-79

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

query I rowsort
SELECT col2 + - col0 + - 99 AS col1 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1410
SELECT ALL + 80 * + col0 * + CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
-204800
-348000
-84640

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL + 80 * + col0 * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
-204800
-348000
-84640

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

skipif mysql # not compatible
query I rowsort label-1411
SELECT DISTINCT COUNT ( 79 ) AS col0 FROM tab0
----
3

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

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1413
SELECT ALL 88 DIV 21 AS col2 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL 88 / 21 AS col2 FROM tab1 AS cor0
----
4
4
4

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1415
SELECT DISTINCT - - 1 AS col1, MAX( DISTINCT - + 40 ) FROM tab2 AS cor0
----
1
-40

skipif mysql # not compatible
query II rowsort label-1415
SELECT DISTINCT - - 1 AS col1, MAX ( DISTINCT - + 40 ) FROM tab2 AS cor0
----
1
-40

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

query II rowsort
SELECT + col1 + ( col0 ) AS col0, col0 * - 95 AS col1 FROM tab2 AS cor0
----
141
-6080
142
-7125
97
-4370

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

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

query I rowsort
SELECT - 57 + - col1 FROM tab1 AS cor0
----
-104
-62
-71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT DISTINCT + MAX( - 86 ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT + MAX ( - 86 ) FROM tab1 AS cor0
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1422
SELECT DISTINCT - COUNT( ALL 1 ) + 42 AS col2, + COUNT( * ) DIV - - SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
39
0

skipif mysql # not compatible
query II rowsort label-1422
SELECT DISTINCT - COUNT ( ALL 1 ) + 42 AS col2, + COUNT ( * ) / - - SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
39
0

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

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

query I rowsort
SELECT ALL - col2 + - + 23 AS col0 FROM tab1
----
-119
-82
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1425
SELECT CAST( - col0 AS SIGNED ) * + + col2 col2, 73 AS col1 FROM tab1
----
-4896
73
-5015
73
-6188
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1425
SELECT CAST ( - col0 AS INTEGER ) * + + col2 col2, 73 AS col1 FROM tab1
----
-4896
73
-5015
73
-6188
73

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

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

query I rowsort
SELECT DISTINCT col0 + + + col2 * col2 * - + col2 - + - 96 FROM tab2
----
-12025
-194941
-63840

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT COUNT( * ) * + - 85 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-1428
SELECT COUNT ( * ) * + - 85 FROM tab0
----
-255

query I rowsort
SELECT ALL - col2 * - - col2 + col2 * col0 + - 17 FROM tab1 cor0
----
-4337
1517
1547

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 55 col0 FROM tab1
----
-13
-4
-41

query I rowsort
SELECT + 63 FROM tab1, tab0 AS cor0 WHERE NULL IS NULL
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT 87 + - col1 + col1 AS col2 FROM tab0
----
87
87
87

query I rowsort
SELECT - col1 * col2 + + + 23 + + col0 FROM tab2
----
-1104
-2993
-3788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 / + + 90 col0 FROM tab2 WHERE + col2 = - - col1
----

query II rowsort
SELECT + col2 * - col0, - col0 AS col1 FROM tab0
----
-705
-15
-870
-87
-9603
-97

query III rowsort
SELECT * FROM tab1 WHERE col2 * + - col0 < 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT + 48 * + - COUNT( * ) col2 FROM tab2 AS cor0
----
-144

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT MAX( DISTINCT - 48 ) FROM tab0 WHERE NOT - + col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT MAX ( DISTINCT - 48 ) FROM tab0 WHERE NOT - + col0 >= NULL
----
NULL

query II rowsort
SELECT 13 AS col0, - 55 + col1 AS col2 FROM tab1
----
13
-41
13
-50
13
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT + col2 DIV - - 98 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1444
SELECT + col2 / - - 98 col0 FROM tab2
----
0
0
0

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

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

query II rowsort
SELECT DISTINCT 25 * - - ( + col2 ), col2 AS col2 FROM tab1
----
1475
59
1700
68
2400
96

query I rowsort
SELECT ( 27 ) AS col0 FROM tab0
----
27
27
27

onlyif mysql # DIV for integer division: 
query II rowsort label-1448
SELECT ALL - ( + col2 ) DIV + col0 + - + 57 * - col0, - col2 AS col1 FROM tab0
----
4959
-10
5528
-99
852
-47

skipif mysql # not compatible
query II rowsort label-1448
SELECT ALL - ( + col2 ) / + col0 + - + 57 * - col0, - col2 AS col1 FROM tab0
----
4959
-10
5528
-99
852
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT MAX( ALL col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1451
SELECT MAX ( ALL col1 ) AS col1 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT + 85 * + + CAST( - col2 AS SIGNED ) + - + 38 + + - col0 * - - 77 AS col1 FROM tab1 AS cor0
----
-11598
-12125
-12825

skipif mysql # not compatible
query I rowsort label-1452
SELECT + 85 * + + CAST ( - col2 AS INTEGER ) + - + 38 + + - col0 * - - 77 AS col1 FROM tab1 AS cor0
----
-11598
-12125
-12825

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT + SUM( 4 ) * - - 55 FROM tab1 AS cor0
----
660

skipif mysql # not compatible
query I rowsort label-1453
SELECT + SUM ( 4 ) * - - 55 FROM tab1 AS cor0
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL MAX( DISTINCT + col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL MAX ( DISTINCT + col1 ) FROM tab1 cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1455
SELECT DISTINCT + - col0 + + col1 DIV - + 89 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT + - col0 + + col1 / - + 89 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> col0 * - + col0
----

query I rowsort
SELECT DISTINCT + - 15 + col1 FROM tab0 AS cor0
----
-14
6
66

query I rowsort
SELECT DISTINCT col0 * - 3 FROM tab2 AS cor0
----
-138
-192
-225

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT ALL COUNT( * ) * - + MIN( ALL + 45 ) + 17 FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL COUNT ( * ) * - + MIN ( ALL + 45 ) + 17 FROM tab2 AS cor0
----
-118

query I rowsort
SELECT ALL - 23 + + col2 + + + col1 FROM tab2 AS cor0
----
102
51
94

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + - col0 col1 FROM tab2
----
-3
26
8

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

query I rowsort
SELECT - col0 + + + col1 * - 68 FROM tab2
----
-3514
-4631
-5300

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

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

query I rowsort
SELECT - 3 * + + 70 * - + col1 + 23 - 68 + - 69 + - + col1 + + 97 * - col0 * 37 FROM tab0 cor0
----
-307968
-348038
-37020

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1471
SELECT ALL col2 - + 15 - - ( - 61 ) DIV + - col1 AS col2 FROM tab0 AS cor0
----
-3
145
32

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL col2 - + 15 - - ( - 61 ) / + - col1 AS col2 FROM tab0 AS cor0
----
-3
145
32

query I rowsort
SELECT + + 93 AS col2 FROM tab1 cor0
----
93
93
93

query I rowsort
SELECT 26 * + - col0 AS col0 FROM tab1 AS cor0
----
-1326
-2210
-2366

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 > NULL
----

query I rowsort
SELECT col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1173
-3080
-3886

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1476
SELECT - 22 * COUNT ( * ) col1 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT + col0 * + 15 FROM tab2 cor0
----
1125
690
960

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

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

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

query I rowsort
SELECT + 35 * + + 22 * + 11 + - col1 * 10 AS col1 FROM tab0 AS cor0
----
7660
8260
8460

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

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

query I rowsort
SELECT + col2 * + - col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

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

query I rowsort
SELECT ALL - col1 * - - col0 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT - 0 * + col0 + - col2 FROM tab1 cor0 WHERE NOT ( NULL ) <> - col0 * + 82 + - 45 / + - 60
----

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

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL 1 / COUNT ( * ) * - + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL + 71 AS col1 FROM tab2
----
71
71
71

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

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

query I rowsort
SELECT - 94 FROM tab1 WHERE NOT - col0 IS NULL
----
-94
-94
-94

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

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

query I rowsort
SELECT + 66 * 96 FROM tab0 AS cor0
----
6336
6336
6336

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 56 * + col2 col0, col2 + + 31 + col0 + + col1 FROM tab0 cor0
----
-2632
174
-5544
228
-560
149

query I rowsort
SELECT ALL + 50 * - - col0 + + - col1 FROM tab2 AS cor0
----
2249
3123
3683

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

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

query II rowsort
SELECT DISTINCT col1, - 42 FROM tab0
----
1
-42
21
-42
81
-42

query I rowsort
SELECT col0 + - 85 FROM tab2
----
-10
-21
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - COUNT( * ) + - + COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-1500
SELECT - COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab1
----
-6

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1505
SELECT ALL - col1 + - CAST( NULL AS DECIMAL ) - - 5 AS col0, 30 AS col2 FROM tab0 AS cor0
----
NULL
30
NULL
30
NULL
30

skipif mysql # not compatible
query II rowsort label-1505
SELECT ALL - col1 + - CAST ( NULL AS REAL ) - - 5 AS col0, 30 AS col2 FROM tab0 AS cor0
----
NULL
30
NULL
30
NULL
30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1506
SELECT ALL + CAST( NULL AS DECIMAL ), col2 * + + col1 col0 FROM tab2 cor0
----
NULL
1173
NULL
3080
NULL
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1506
SELECT ALL + CAST ( NULL AS REAL ), col2 * + + col1 col0 FROM tab2 cor0
----
NULL
1173
NULL
3080
NULL
3886

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

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

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

query I rowsort
SELECT + + col0 + 54 AS col2 FROM tab1 WHERE NULL IS NULL
----
105
139
145

onlyif mysql # aggregate syntax: 
query II rowsort label-1511
SELECT DISTINCT COUNT( ALL - 15 ), 39 AS col2 FROM tab1
----
3
39

skipif mysql # not compatible
query II rowsort label-1511
SELECT DISTINCT COUNT ( ALL - 15 ), 39 AS col2 FROM tab1
----
3
39

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 - - - 65 col2 FROM tab1
----
-38

query I rowsort
SELECT - 1 AS col2 FROM tab1 WHERE - - col0 IS NOT NULL
----
-1
-1
-1

query I rowsort
SELECT - ( 76 ) FROM tab1
----
-76
-76
-76

query II rowsort
SELECT - 7 * + + col1, 81 AS col0 FROM tab1
----
-329
81
-35
81
-98
81

query I rowsort
SELECT - ( - + col0 ) - - col1 * + col0 AS col0 FROM tab2
----
2392
4992
5100

query II rowsort
SELECT - col0 - 24 AS col0, - 66 AS col1 FROM tab0
----
-111
-66
-121
-66
-39
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1519
SELECT + 73 - ( - col1 ) + + - col2 DIV ( col2 ) FROM tab1
----
119
77
86

skipif mysql # not compatible
query I rowsort label-1519
SELECT + 73 - ( - col1 ) + + - col2 / ( col2 ) FROM tab1
----
119
77
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1520
SELECT ALL - 91 - 91 DIV + 95 AS col1 FROM tab1 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - 91 - 91 / + 95 AS col1 FROM tab1 AS cor0
----
-91
-91
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT ALL + COUNT( 78 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL + COUNT ( 78 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + ( 30 ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
30

query I rowsort
SELECT ALL - ( 73 ) AS col2 FROM tab2 cor0
----
-73
-73
-73

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 63 = NULL
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1529
SELECT DISTINCT 84 * - - 56 + + - 53 * - 36 + COUNT( * ) AS col2, 54 FROM tab2 AS cor0
----
6615
54

skipif mysql # not compatible
query II rowsort label-1529
SELECT DISTINCT 84 * - - 56 + + - 53 * - 36 + COUNT ( * ) AS col2, 54 FROM tab2 AS cor0
----
6615
54

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

query I rowsort
SELECT 17 * + 86 AS col2 FROM tab2
----
1462
1462
1462

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 + col1 FROM tab1
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1533
SELECT - + col0 + + 59 * - col2, col2 FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) IS NOT NULL
----
-3566
59
-4103
68
-5715
96

skipif mysql # not compatible
query II rowsort label-1533
SELECT - + col0 + + 59 * - col2, col2 FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3566
59
-4103
68
-5715
96

query I rowsort
SELECT + ( - - 60 ) FROM tab1
----
60
60
60

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

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

query I rowsort
SELECT DISTINCT + col1 + - - 47 FROM tab0 cor0
----
128
48
68

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

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

query I rowsort
SELECT + col0 + + 21 FROM tab0 cor0
----
108
118
36

query I rowsort
SELECT 70 * col0 FROM tab1
----
3570
5950
6370

query I rowsort
SELECT 38 * col1 AS col1 FROM tab2
----
1938
2546
2926

query I rowsort
SELECT DISTINCT + 6 FROM tab1 WHERE + 72 IS NOT NULL
----
6

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

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

query I rowsort
SELECT 81 - - 6 AS col0 FROM tab1
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1545
SELECT * FROM tab1 WHERE NOT + col1 / - col0 < + 69 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1545
SELECT * FROM tab1 WHERE NOT + col1 / - col0 < + 69 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 56 AS col1 FROM tab2 WHERE NOT col0 * 92 >= ( NULL )
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT ( col2 * col0 ) IN ( col1 )
----
10
47
99

query I rowsort
SELECT DISTINCT 39 AS col1 FROM tab2 WHERE NOT ( col1 ) IS NULL
----
39

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + col1 * 42 - col1 * col0 BETWEEN ( col2 - 59 ) AND ( NULL )
----
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) = 66 * 85 + - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT DISTINCT MAX( DISTINCT + col2 ) * - MIN( ALL - col1 + 64 ) AS col0 FROM tab1 WHERE NOT NULL >= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT MAX ( DISTINCT + col2 ) * - MIN ( ALL - col1 + 64 ) AS col0 FROM tab1 WHERE NOT NULL >= + col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ALL 64 * COUNT( * ) FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL 64 * COUNT ( * ) FROM tab0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT 23 DIV col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1555
SELECT 23 / col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT + 53 DIV - col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-1556
SELECT + 53 / - col2 FROM tab0
----
-1
-5
0

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

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

query I rowsort
SELECT col1 * 57 FROM tab2
----
2907
3819
4389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1559
SELECT DISTINCT col1 + - CAST( + 2 + - 89 AS SIGNED ) * col2 col2 FROM tab1
----
5138
5963
8366

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1559
SELECT DISTINCT col1 + - CAST ( + 2 + - 89 AS INTEGER ) * col2 col2 FROM tab1
----
5138
5963
8366

query I rowsort
SELECT - col1 * 56 AS col0 FROM tab1
----
-2632
-280
-784

query I rowsort
SELECT - 77 * 31 FROM tab2
----
-2387
-2387
-2387

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1562
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT NULL BETWEEN 80 AND CAST( + 79 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT NULL BETWEEN 80 AND CAST ( + 79 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT - 67 * - COUNT( * ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-1563
SELECT - 67 * - COUNT ( * ) FROM tab2
----
201

query I rowsort
SELECT + 56 * col0 AS col2 FROM tab1
----
2856
4760
5096

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN ( 15 ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1566
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN ( 15 ) AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col0 FROM tab2 AS cor0 WHERE NOT 14 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1568
SELECT DISTINCT - 80 DIV + COUNT( * ) FROM tab0 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT - 80 / + COUNT ( * ) FROM tab0 cor0
----
-26

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * + 53 ) BETWEEN col2 + col1 AND + col0 * col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT + + 68 * + COUNT( * ) col2 FROM tab2 AS cor0
----
204

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 15 col0 FROM tab2 AS cor0
----
1125
690
960

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

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( - col1 ) * col0 IS NULL
----
14
47
5

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

query I rowsort
SELECT - 7 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 85 * 58 + col0 )
----

query I rowsort
SELECT ALL - col2 * 85 AS col2 FROM tab1 AS cor0
----
-5015
-5780
-8160

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 + - col0 IN ( + 35 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT + - 52 FROM tab0 AS cor0
----
-52

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + - 15 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col1 + + col2 + ( col2 ) * + col0 AS col1 FROM tab0
----
671
859
9701

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT 27 DIV - 14 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1585
SELECT 27 / - 14 FROM tab2
----
-1
-1
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT DISTINCT SUM( ALL col0 ) col1 FROM tab0
----
199

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

query I rowsort
SELECT 20 AS col2 FROM tab0 AS cor0 WHERE + 39 * 98 NOT BETWEEN + col1 AND col1
----
20
20
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1589
SELECT ALL - CAST( + 20 AS SIGNED ) + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN + col0 AND col1
----
-20

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL - CAST ( + 20 AS INTEGER ) + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN + col0 AND col1
----
-20

query I rowsort
SELECT col2 * - col1 AS col0 FROM tab1 AS cor0 WHERE col0 - - 47 IS NULL
----

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

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

query I rowsort
SELECT + col1 + - - col1 AS col0 FROM tab0
----
162
2
42

query I rowsort
SELECT + - 37 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

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

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

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

query I rowsort
SELECT DISTINCT - 90 * + + 85 FROM tab2 AS cor0
----
-7650

query I rowsort
SELECT ALL - - col2 + - 22 FROM tab1 AS cor0
----
37
46
74

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

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

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

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

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

query I rowsort
SELECT ALL 13 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - 40 FROM tab0 AS cor0 WHERE ( + 23 * + - col2 ) IS NULL
----

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

query I rowsort
SELECT ALL - + 45 - + - col1 + - 20 AS col2 FROM tab2 cor0
----
-14
12
2

query I rowsort
SELECT ALL col2 * - + col0 + 41 FROM tab2
----
-1017
-2519
-4309

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1607
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE ( - col0 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE ( - col0 ) IS NOT NULL
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT COUNT( * ) - - - 67 AS col0 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-1609
SELECT COUNT ( * ) - - - 67 AS col0 FROM tab0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT DISTINCT SUM( ALL - - col1 ) * + 66 FROM tab0
----
6798

skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT SUM ( ALL - - col1 ) * + 66 FROM tab0
----
6798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1611
SELECT DISTINCT - CAST( + - 37 AS SIGNED ) * - MIN( ALL + col2 ) AS col2 FROM tab2
----
-851

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT - CAST ( + - 37 AS INTEGER ) * - MIN ( ALL + col2 ) AS col2 FROM tab2
----
-851

query I rowsort
SELECT 53 * + - col1 * - col1 - + col2 AS col1 FROM tab0
----
-46
23363
347686

query I rowsort
SELECT ( - 63 ) AS col1 FROM tab2 WHERE NOT - 87 <= 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT COUNT( - - 21 ) * + 43 * - ( - ( 78 ) ) AS col2 FROM tab0
----
10062

skipif mysql # not compatible
query I rowsort label-1614
SELECT COUNT ( - - 21 ) * + 43 * - ( - ( 78 ) ) AS col2 FROM tab0
----
10062

query I rowsort
SELECT DISTINCT + 15 * + col1 AS col2 FROM tab2
----
1005
1155
765

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

query I rowsort
SELECT col0 * - 88 - + 76 * + col2 FROM tab2 WHERE NOT ( col1 ) NOT IN ( 39 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 / col2 * - col2 <= - 39
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 8 < + - col2 * - - col0 * - 98
----

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

skipif mysql # not compatible
query I rowsort label-1621
SELECT - SUM ( ALL col2 ) AS col0 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT CAST( - - col0 AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1622
SELECT CAST ( - - col0 AS INTEGER ) FROM tab2
----
46
64
75

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

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

query I rowsort
SELECT ALL - 39 AS col2 FROM tab1 cor0
----
-39
-39
-39

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 46 IS NULL
----

query I rowsort
SELECT DISTINCT + - 25 AS col2 FROM tab0 cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1628
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1628
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT DISTINCT - COUNT( * ) + 94 AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT - COUNT ( * ) + 94 AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT - col1 * + ( - col0 ) + - col1 AS col1 FROM tab0 AS cor0
----
1134
1806
96

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT - 49 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1632
SELECT - 49 / - col2 AS col2 FROM tab0 AS cor0
----
0
1
4

query II rowsort
SELECT + col1, 95 AS col0 FROM tab2
----
51
95
67
95
77
95

query II rowsort
SELECT col2, col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + - - col0 > NULL
----

query I rowsort
SELECT ( - + ( - ( - + col1 ) ) ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1637
SELECT 24 DIV + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1637
SELECT 24 / + + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + + 57 AS col0 FROM tab1 WHERE NOT ( ( NULL ) IS NOT NULL )
----
57

query I rowsort
SELECT + 29 FROM tab0 WHERE - + col1 NOT IN ( - - col0 )
----
29
29
29

query I rowsort
SELECT ALL col2 FROM tab1 WHERE col1 * - - 0 - 18 + + - col0 * col2 BETWEEN col2 * + col0 AND col1 * col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( NOT - - 84 BETWEEN col0 AND ( col2 * 61 ) ) )
----
51
14
96

query I rowsort
SELECT + col0 FROM tab2 WHERE col0 IS NOT NULL
----
46
64
75

query II rowsort
SELECT DISTINCT col2 + - col0 AS col0, 25 FROM tab0
----
-77
25
2
25
32
25

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 95 IS NULL
----

query I rowsort
SELECT 65 FROM tab1 AS cor0 WHERE + col2 * + col0 BETWEEN NULL AND - 13 + + col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT - + COUNT( - col1 ) + + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1646
SELECT - + COUNT ( - col1 ) + + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT - COUNT( * ) * + SUM( col0 ) FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-1648
SELECT - COUNT ( * ) * + SUM ( col0 ) FROM tab0 AS cor0
----
-597

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - + 95
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + col0, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1651
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) AS col0, + col2 * 63 AS col1 FROM tab1 AS cor0
----
NULL
3717
NULL
4284
NULL
6048

skipif mysql # not compatible
query II rowsort label-1651
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) AS col0, + col2 * 63 AS col1 FROM tab1 AS cor0
----
NULL
3717
NULL
4284
NULL
6048

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT - + col1 * - 23 - + col0 + + 36 DIV col0 * + col0 * - col0 FROM tab1 AS cor0
----
271
30
990

skipif mysql # not compatible
query I rowsort label-1652
SELECT - + col1 * - 23 - + col0 + + 36 / col0 * + col0 * - col0 FROM tab1 AS cor0
----
271
30
990

query I rowsort
SELECT ALL - col0 * 16 * - col0 + col2 AS col2 FROM tab2 AS cor0
----
33879
65576
90058

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT 33 DIV col1 - - - 83 AS col2 FROM tab0 AS cor0
----
-50
-82
-83

skipif mysql # not compatible
query I rowsort label-1654
SELECT 33 / col1 - - - 83 AS col2 FROM tab0 AS cor0
----
-50
-82
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT - COUNT( + col1 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1655
SELECT - COUNT ( + col1 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + + ( + col0 ) + + + ( col0 ) FROM tab2 AS cor0
----
128
150
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + col0 + - - col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query II rowsort
SELECT ALL + + 43 * + + 80 + + - col2, + col0 FROM tab1 AS cor0
----
3344
51
3372
91
3381
85

query I rowsort
SELECT DISTINCT col1 * - 15 + + - col2 * - col0 / col0 + col2 + - col1 FROM tab1 AS cor0 WHERE - col1 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1661
SELECT + - 38 DIV - - 11 + + + COUNT( * ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1661
SELECT + - 38 / - - 11 + + + COUNT ( * ) AS col2 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT ALL COUNT( * ) * + - 71 FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL COUNT ( * ) * + - 71 FROM tab2
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT DISTINCT - SUM( - + 18 ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT - SUM ( - + 18 ) AS col2 FROM tab0
----
54

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT col2 + - 55 * - col0 NOT BETWEEN - - ( + col0 ) * col2 * 60 - - col2 * col2 AND + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT COUNT( * ) * + - 29 * - COUNT( * ) FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-1665
SELECT COUNT ( * ) * + - 29 * - COUNT ( * ) FROM tab0
----
261

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1666
SELECT + col0 + 44 FROM tab0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS DECIMAL ) * ( + col1 ) AND ( 61 + + col0 + + + 6 - col2 )
----

skipif mysql # not compatible
query I rowsort label-1666
SELECT + col0 + 44 FROM tab0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS REAL ) * ( + col1 ) AND ( 61 + + col0 + + + 6 - col2 )
----

query I rowsort
SELECT DISTINCT - 80 * - col0 FROM tab2
----
3680
5120
6000

onlyif mysql # aggregate syntax: 
query II rowsort label-1668
SELECT ALL 79 AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
79
3

skipif mysql # not compatible
query II rowsort label-1668
SELECT ALL 79 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
79
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT ALL - + MIN( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL - + MIN ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 52 AND + col1
----

query I rowsort
SELECT ALL ( col1 ) * + + col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL col2 * col1 * + + col0 AS col1 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT ALL + 71 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1675
SELECT DISTINCT col0 / 16 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT col0 / 16 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT - COUNT( - col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1676
SELECT - COUNT ( - col1 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT + 18 * MAX( col2 ) col0 FROM tab2 AS cor0
----
1044

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1677
SELECT + 18 * MAX ( col2 ) col0 FROM tab2 AS cor0
----
1044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 AS cor0 WHERE NOT col0 / + - 39 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 23 ) > ( + 66 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 79 / + + col0 NOT BETWEEN + ( - - 64 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1681
SELECT ALL * FROM tab1 WHERE NOT - - col0 >= - col0 / + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1681
SELECT ALL * FROM tab1 WHERE NOT - - col0 >= - col0 / + + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE - ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ALL - COUNT( * ) * - 53 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL - COUNT ( * ) * - 53 FROM tab0
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1684
SELECT - ( + - 36 ) DIV - COUNT( * ) AS col1 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-1684
SELECT - ( + - 36 ) / - COUNT ( * ) AS col1 FROM tab2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT - SUM( DISTINCT - - col0 ) col1 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1685
SELECT - SUM ( DISTINCT - - col0 ) col1 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT 64 + + 77 FROM tab0 AS cor0
----
141

query I rowsort
SELECT DISTINCT 58 + - + col2 AS col2 FROM tab2 cor0
----
0
18
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1688
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) < ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-1688
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < ( - col2 )
----

query I rowsort
SELECT ALL + 75 - - 36 FROM tab2
----
111
111
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT DISTINCT + COUNT( DISTINCT - - 16 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT + COUNT ( DISTINCT - - 16 ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col0 * - + col1 - - + col1 * + col2 + + col1 + - - col1 AS col1 FROM tab1 AS cor0
----
-120
-987
658

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1692
SELECT ALL col0, CAST( + - 76 AS SIGNED ) FROM tab2 AS cor0
----
46
-76
64
-76
75
-76

skipif mysql # not compatible
query II rowsort label-1692
SELECT ALL col0, CAST ( + - 76 AS INTEGER ) FROM tab2 AS cor0
----
46
-76
64
-76
75
-76

query II rowsort
SELECT DISTINCT - col1 AS col0, col1 * + col1 FROM tab0 AS cor0
----
-1
1
-21
441
-81
6561

query I rowsort
SELECT ALL - - ( 76 ) AS col2 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT - col1 + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1696
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( 36 AS SIGNED ) > - col0
----

skipif mysql # not compatible
query III rowsort label-1696
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( 36 AS INTEGER ) > - col0
----

query II rowsort
SELECT ALL 73 AS col2, + 20 AS col1 FROM tab2 AS cor0
----
73
20
73
20
73
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1698
SELECT + col0 / - col2 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1698
SELECT + col0 / - col2 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT NULL < + col2 * 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1700
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( - col2 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( - col2 ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT ALL col1 * col1, col2 AS col1 FROM tab0
----
1
99
441
10
6561
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ( COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1702
SELECT ( COUNT ( * ) ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1703
SELECT + CAST( NULL AS SIGNED ), + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-1703
SELECT + CAST ( NULL AS INTEGER ), + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT + 33 IS NOT NULL
----

query I rowsort
SELECT col0 * col1 * col2 AS col2 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT + 88 * - 71 * + + col2 FROM tab0
----
-293656
-618552
-62480

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT ALL - SUM( col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL - SUM ( col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1708
SELECT - COUNT( * ) DIV - - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1708
SELECT - COUNT ( * ) / - - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1709
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 + - col2 AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1709
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 + - col2 AND - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 38 + - + 27 AS col1 FROM tab1
----
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 44 < + - col2
----

query I rowsort
SELECT ALL - - col1 + + + 86 AS col2 FROM tab2 AS cor0
----
137
153
163

query I rowsort
SELECT + col1 * - - col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query II rowsort
SELECT col2, col0 FROM tab2 cor0
----
23
46
40
64
58
75

query I rowsort
SELECT - 81 * + col2 FROM tab0 cor0
----
-3807
-8019
-810

query I rowsort
SELECT ALL - 35 AS col0 FROM tab2 WHERE ( + - col0 ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1717
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT + CAST ( NULL AS REAL ) + - - COUNT ( * ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 * - - col0 + - + 64 * - 10 + + - col0 col2 FROM tab1 AS cor0
----
2782
4210
4462

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1720
SELECT - ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 11 ) AS col0, - col1 col1 FROM tab2 AS cor0
----
11
-51
11
-67
11
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 12 + - - col2 col2, - col0 FROM tab2 AS cor0
----
11
-46
28
-64
46
-75

query I rowsort
SELECT ALL + ( + 4 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT 13 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT + MIN( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1725
SELECT + MIN ( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

query II rowsort
SELECT 74 AS col0, col1 + col2 AS col1 FROM tab1 AS cor0
----
74
110
74
115
74
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL + - SUM( ALL - col1 ) + + COUNT( * ) FROM tab1 WHERE - 16 IS NOT NULL
----
69

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + - SUM ( ALL - col1 ) + + COUNT ( * ) FROM tab1 WHERE - 16 IS NOT NULL
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1730
SELECT ALL + CAST( + + 1 AS SIGNED ) AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL + CAST ( + + 1 AS INTEGER ) AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT 17 - - col1 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
22
31
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL + COUNT( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + COUNT ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 99 col1, 14 FROM tab1 cor0
----
-99
14

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * + col1 > col0 / + 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE - col2 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1737
SELECT ALL - - col1 + + - col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL - - col1 + + - col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - + col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT DISTINCT + 51 + + ( + MAX( DISTINCT - + col0 ) ) * 8 - + - COUNT( * ) col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1739
SELECT DISTINCT + 51 + + ( + MAX ( DISTINCT - + col0 ) ) * 8 - + - COUNT ( * ) col1 FROM tab0 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < 12
----

query I rowsort
SELECT DISTINCT col2 * + col0 + - + ( col1 ) AS col0 FROM tab2 AS cor0
----
1007
2483
4283

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 83 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1743
SELECT - CAST( 70 AS SIGNED ) FROM tab2 cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-1743
SELECT - CAST ( 70 AS INTEGER ) FROM tab2 cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT - 51 + - COUNT( * ) FROM tab1 WHERE - - 76 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-1744
SELECT - 51 + - COUNT ( * ) FROM tab1 WHERE - - 76 IS NULL
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1745
SELECT col2 * 5 DIV col1 FROM tab0
----
2
2
495

skipif mysql # not compatible
query I rowsort label-1745
SELECT col2 * 5 / col1 FROM tab0
----
2
2
495

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT + col1 DIV 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1746
SELECT + col1 / 87 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + ( + ( + + 13 ) ) AS col0 FROM tab2
----
13
13
13

query I rowsort
SELECT - 23 * col1 FROM tab2
----
-1173
-1541
-1771

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT ALL + COUNT( * ) + + 80 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL + COUNT ( * ) + + 80 FROM tab0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT DISTINCT col0 * col0 * + + CAST( 68 AS SIGNED ) AS col2 FROM tab1
----
176868
491300
563108

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT col0 * col0 * + + CAST ( 68 AS INTEGER ) AS col2 FROM tab1
----
176868
491300
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT + ( - SUM( ALL - col0 ) ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1751
SELECT DISTINCT + ( - SUM ( ALL - col0 ) ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1752
SELECT 60 DIV - - 81 - MAX( DISTINCT - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1752
SELECT 60 / - - 81 - MAX ( DISTINCT - col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + - col0 + - - 80 FROM tab1 AS cor0
----
-11
-5
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT - 4 - + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 67 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT - 4 - + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 67 IS NOT NULL
----
-1

query I rowsort
SELECT ALL + col0 + + - col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT DISTINCT + + COUNT( * ) + - - ( - - 76 ) + - 58 col0 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1756
SELECT DISTINCT + + COUNT ( * ) + - - ( - - 76 ) + - 58 col0 FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL 8 - - - 83 * + COUNT( * ) AS col1 FROM tab2
----
-241

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL 8 - - - 83 * + COUNT ( * ) AS col1 FROM tab2
----
-241

query I rowsort
SELECT 13 + - + col1 * - col0 FROM tab2
----
2359
4941
5038

query I rowsort
SELECT col2 * 63 * col0 FROM tab0
----
44415
54810
604989

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 68 <= ( NULL )
----

query I rowsort
SELECT DISTINCT 25 FROM tab0 cor0
----
25

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT 84 NOT IN ( 88 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1763
SELECT DISTINCT - COUNT( * ) DIV - - 29 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT - COUNT ( * ) / - - 29 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT - MIN( DISTINCT + 73 ) AS col0 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-1764
SELECT - MIN ( DISTINCT + 73 ) AS col0 FROM tab1
----
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1765
SELECT DISTINCT col2 FROM tab2 WHERE NULL NOT IN ( + + CAST( NULL AS DECIMAL ) * - - col1, + col1, - col2 * + col0, + + col1 * + + 6 * - col0 + 92 )
----

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT col2 FROM tab2 WHERE NULL NOT IN ( + + CAST ( NULL AS REAL ) * - - col1, + col1, - col2 * + col0, + + col1 * + + 6 * - col0 + 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT + MIN( 61 ) AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1766
SELECT + MIN ( 61 ) AS col1 FROM tab2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL + COUNT( ( ( + col0 ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL + COUNT ( ( ( + col0 ) ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + COUNT( ALL col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1768
SELECT + COUNT ( ALL col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL - + MIN( ALL - 3 ) + - COUNT( * ) * + + 24 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL - + MIN ( ALL - 3 ) + - COUNT ( * ) * + + 24 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT DISTINCT + + 47 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1771
SELECT DISTINCT + 62 DIV - col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT + 62 / - col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1772
SELECT DISTINCT + col2 + 0 DIV - - ( + col2 ) * - 63 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT + col2 + 0 / - - ( + col2 ) * - 63 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - 88 * - ( 32 ) + col0 AS col2 FROM tab1 AS cor0
----
2867
2901
2907

onlyif mysql # DIV for integer division: 
query I rowsort label-1774
SELECT ALL col2 * 39 + + 44 - col2 DIV + 68 - - + 2 FROM tab0 AS cor0
----
1879
3906
436

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL col2 * 39 + + 44 - col2 / + 68 - - + 2 FROM tab0 AS cor0
----
1879
3906
436

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT DISTINCT + - 23 * - - COUNT( * ) FROM tab2 WHERE NOT ( + col2 ) <= + col1
----
0

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT + - 23 * - - COUNT ( * ) FROM tab2 WHERE NOT ( + col2 ) <= + col1
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <> 44
----

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab1
----
-40

query I rowsort
SELECT ALL + col1 * + - col0 * 51 FROM tab0
----
-4947
-61965
-93177

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL ( + COUNT( - col0 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL ( + COUNT ( - col0 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1780
SELECT ALL col1 * + - col1, + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-1
NULL
-441
NULL
-6561
NULL

skipif mysql # not compatible
query II rowsort label-1780
SELECT ALL col1 * + - col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-1
NULL
-441
NULL
-6561
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1782
SELECT - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL 88, - 66 AS col0 FROM tab2
----
88
-66
88
-66
88
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 16 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 16 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ( - - col2 ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT - SUM( - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-1786
SELECT - SUM ( - col0 ) FROM tab0 AS cor0
----
199

query II rowsort
SELECT 41, + 85 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + ( + - col1 ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1789
SELECT ALL - COUNT( * ) AS col1, 4 FROM tab0 cor0
----
-3
4

skipif mysql # not compatible
query II rowsort label-1789
SELECT ALL - COUNT ( * ) AS col1, 4 FROM tab0 cor0
----
-3
4

query I rowsort
SELECT - 36 * 93 AS col1 FROM tab2 cor0
----
-3348
-3348
-3348

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL + MAX( 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL + MAX ( 28 ) FROM tab0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1792
SELECT * FROM tab1 WHERE NOT col0 - CAST( col1 AS SIGNED ) NOT BETWEEN - - col0 AND 34
----

skipif mysql # not compatible
query III rowsort label-1792
SELECT * FROM tab1 WHERE NOT col0 - CAST ( col1 AS INTEGER ) NOT BETWEEN - - col0 AND 34
----

query I rowsort
SELECT DISTINCT - 8 * - col0 * + + col0 FROM tab1
----
20808
57800
66248

query I rowsort
SELECT ALL + + col0 + - col2 AS col1 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT - MAX( - - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1795
SELECT - MAX ( - - col1 ) FROM tab0 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col0 FROM tab0 AS cor0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + + col0 col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL 9 * + col2 * + 58 AS col1 FROM tab2
----
12006
20880
30276

query I rowsort
SELECT col0 + - - 4 FROM tab0
----
101
19
91

query II rowsort
SELECT DISTINCT + 96 AS col2, ( + 26 ) FROM tab1
----
96
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1801
SELECT + AVG ( ALL - + CAST( NULL AS SIGNED ) ) * + - 24 + - - AVG ( col1 ) * - - 82 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) * + - 24 + - - AVG ( col1 ) * - - 82 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 + - - col2 FROM tab1 AS cor0
----
-23
-26
45

query II rowsort
SELECT DISTINCT col1 + + ( col1 ), 52 AS col1 FROM tab1 AS cor0
----
10
52
28
52
94
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + COUNT( + col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1804
SELECT + COUNT ( + col2 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT DISTINCT - + ( + COUNT( * ) ) + MIN( - + 96 ) - - + ( MAX( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-145

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT - + ( + COUNT ( * ) ) + MIN ( - + 96 ) - - + ( MAX ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-145

query I rowsort
SELECT ALL - col2 - + + 74 AS col1 FROM tab2 cor0
----
-114
-132
-97

query I rowsort
SELECT DISTINCT - + ( 24 ) * + - col0 - col1 FROM tab1 AS cor0
----
1210
2035
2137

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT ALL 30 * - + MIN( col0 ) FROM tab2
----
-1380

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL 30 * - + MIN ( col0 ) FROM tab2
----
-1380

query II rowsort
SELECT col1, - ( + 3 ) AS col2 FROM tab0
----
1
-3
21
-3
81
-3

query I rowsort
SELECT DISTINCT col2 * col0 - - 85 + + col2 + col2 AS col2 FROM tab2
----
1189
2725
4551

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - col0 + - 59
----

query I rowsort
SELECT ALL 80 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1813
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1813
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 * ( - 61 ) col1 FROM tab2 AS cor0
----
-3416

query II rowsort
SELECT col1, + 93 FROM tab0 AS cor0
----
1
93
21
93
81
93

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 >= - col2
----

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT DISTINCT - SUM( - 44 ) AS col2 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT - SUM ( - 44 ) AS col2 FROM tab2 AS cor0
----
132

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + col1 ) - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT + 5 * ( - SUM( + col2 ) ) AS col2 FROM tab0 cor0
----
-780

skipif mysql # not compatible
query I rowsort label-1820
SELECT + 5 * ( - SUM ( + col2 ) ) AS col2 FROM tab0 cor0
----
-780

query I rowsort
SELECT - 97 AS col2 FROM tab0 cor0 WHERE NOT - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT - - col0 DIV 99 * + + 93 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1823
SELECT - - col0 / 99 * + + 93 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * - - col1 AS col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL + col2 * + - 81 FROM tab0
----
-3807
-8019
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col0 FROM tab0
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1827
SELECT ALL + 48 * - - CAST( + 82 AS SIGNED ) AS col1 FROM tab0
----
3936
3936
3936

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL + 48 * - - CAST ( + 82 AS INTEGER ) AS col1 FROM tab0
----
3936
3936
3936

query I rowsort
SELECT ALL col1 + 90 FROM tab2
----
141
157
167

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT 86 IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1830
SELECT DISTINCT + 98 DIV col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT + 98 / col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT 74 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 84 * + 69 * - col0 + - - col2 * 86 * + col1 FROM tab1 AS cor0
----
-180012
-252580
-467290

onlyif mysql # aggregate syntax: 
query II rowsort label-1833
SELECT COUNT( * ) AS col0, - 15 * + 20 + - ( + + 32 ) AS col0 FROM tab2 cor0
----
3
-332

skipif mysql # not compatible
query II rowsort label-1833
SELECT COUNT ( * ) AS col0, - 15 * + 20 + - ( + + 32 ) AS col0 FROM tab2 cor0
----
3
-332

query I rowsort
SELECT - col0 * col0 - - col0 + - - col0 AS col0 FROM tab0 AS cor0
----
-195
-7395
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 - 80 col1 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT - - col1 - + 77 FROM tab1 AS cor0
----
-30
-63
-72

query I rowsort
SELECT DISTINCT - ( + 79 ) - + + 80 AS col1 FROM tab0 AS cor0
----
-159

query I rowsort
SELECT - col2 * - - col0 + 85 * + - col1 FROM tab0 cor0
----
-2655
-7590
-9688

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT + 76 + + + MIN( ALL - - ( + - 77 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1839
SELECT + 76 + + + MIN ( ALL - - ( + - 77 ) ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - + col0 - + col2 AS col2 FROM tab2 AS cor0
----
-104
-133
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 + + - col0 - + ( + - col1 ) col2 FROM tab1 AS cor0
----
155
38
92

query I rowsort
SELECT ALL 86 + + 5 + - col1 FROM tab2 AS cor0
----
14
24
40

query III rowsort
SELECT * FROM tab2 WHERE + + col0 = + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1844
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1846
SELECT DISTINCT - + CAST( + 46 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT - + CAST ( + 46 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1847
SELECT DISTINCT - AVG ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT - AVG ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT SUM( DISTINCT - + 1 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-1848
SELECT SUM ( DISTINCT - + 1 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT + COUNT( * ) FROM tab1 WHERE NOT - + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1850
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT COUNT( * ) * COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1851
SELECT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1852
SELECT - ( - CAST( + + col1 AS SIGNED ) ) + col2 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-1852
SELECT - ( - CAST ( + + col1 AS INTEGER ) ) + col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT - col2 * - + 48 FROM tab2 AS cor0
----
1104
1920
2784

query I rowsort
SELECT 91 FROM tab2 AS cor0 WHERE NOT + col2 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1856
SELECT DISTINCT + col1 DIV + 77 * + + 9 col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1856
SELECT DISTINCT + col1 / + 77 * + + 9 col2 FROM tab1 cor0
----
0

query I rowsort
SELECT - 30 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + col2 + col0 + + col0 * - ( - - col0 ) <> - - 38
----

query III rowsort
SELECT * FROM tab0 WHERE - 81 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + - col0 FROM tab0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 * - col1 col1, col0 AS col1, - - col0 FROM tab2
----
9 values hashing to 20558ed69dd41db6cef9b47e81e45c79

onlyif mysql # aggregate syntax: 
query II rowsort label-1861
SELECT ALL 31 * - COUNT( * ) AS col2, 70 col0 FROM tab2
----
-93
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1861
SELECT ALL 31 * - COUNT ( * ) AS col2, 70 col0 FROM tab2
----
-93
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1862
SELECT CAST( NULL AS SIGNED ) * + 20 * + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT CAST ( NULL AS INTEGER ) * + 20 * + COUNT ( * ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * + ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1864
SELECT - - 60 DIV + + COUNT( * ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1864
SELECT - - 60 / + + COUNT ( * ) FROM tab0 AS cor0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 60 ) col2 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT ALL - 97 + 90 + + - 4 + - col1 * + col0 + + 36 + - - col1 AS col0 FROM tab0 AS cor0
----
-1109
-1781
-71

query I rowsort
SELECT ALL 29 + col0 - - - col0 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL - COUNT( * ) + MIN( ALL - col0 ) AS col2 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - COUNT ( * ) + MIN ( ALL - col0 ) AS col2 FROM tab2
----
-78

query I rowsort
SELECT DISTINCT col2 - + col1 * - col2 * + col2 FROM tab2
----
123240
225446
27002

query I rowsort
SELECT + + 13 AS col0 FROM tab2 WHERE ( - col2 * + 28 NOT BETWEEN - 75 AND NULL )
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT 96 + + ( + COUNT( * ) ) AS col0 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-1871
SELECT 96 + + ( + COUNT ( * ) ) AS col0 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL MIN( ALL - ( + - 82 ) ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL MIN ( ALL - ( + - 82 ) ) FROM tab2
----
82

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + 53 AS col1 FROM tab0 AS cor0
----
15
53
87
53
97
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL - + COUNT( * ) + + 29 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - + COUNT ( * ) + + 29 FROM tab0 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1876
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 15 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 15 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1877
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) + + col2 + - + col0 * - col1 * - col2 - - col2 * + 61 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1877
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + + col2 + - + col0 * - col1 * - col2 - - col2 * + 61 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT DISTINCT - COUNT( ALL ( + - col1 ) ) * + 9 * + COUNT( * ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT - COUNT ( ALL ( + - col1 ) ) * + 9 * + COUNT ( * ) AS col0 FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1879
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col1 FROM tab1
----
36
36
36

query I rowsort
SELECT - ( + 55 ) FROM tab1
----
-55
-55
-55

query I rowsort
SELECT col2 * + - col1 AS col1 FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col1 FROM tab0
----
75

query I rowsort
SELECT DISTINCT - - 95 FROM tab2 WHERE NOT ( + ( + - 60 ) ) * - + col2 / - ( + col1 ) + 5 / col0 + + 33 * + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, 83 * - 97 - col2 AS col2 FROM tab1
----
14
-8147
47
-8119
5
-8110

onlyif mysql # DIV for integer division: 
query II rowsort label-1886
SELECT + col0 AS col1, - col0 DIV 79 AS col0 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-1886
SELECT + col0 AS col1, - col0 / 79 AS col0 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1887
SELECT ALL + 10 AS col0, col0 * + - CAST( NULL AS DECIMAL ) * - CAST( - + col0 AS SIGNED ) AS col0 FROM tab2
----
10
NULL
10
NULL
10
NULL

skipif mysql # not compatible
query II rowsort label-1887
SELECT ALL + 10 AS col0, col0 * + - CAST ( NULL AS REAL ) * - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2
----
10
NULL
10
NULL
10
NULL

query I rowsort
SELECT DISTINCT + 99 FROM tab1 AS cor0 WHERE + col2 <> NULL
----

query I rowsort
SELECT - + col2 * - + 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 11 FROM tab2 AS cor0 WHERE NOT - 72 + col2 = + col1
----
-11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 57 * col2 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + + col2 ) * col0 AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT col0 DIV + 17 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-1893
SELECT col0 / + 17 FROM tab2
----
2
3
4

query I rowsort
SELECT + col2 + + - 57 FROM tab2
----
-17
-34
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1895
SELECT ALL col0, col1 / 60 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1895
SELECT ALL col0, col1 / 60 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT ALL 25 + + 32 + + + col1 AS col1 FROM tab1
----
104
62
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT - - COUNT( * ) AS col0 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-1897
SELECT - - COUNT ( * ) AS col0 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
3

query I rowsort
SELECT ALL + col1 * - - col1 FROM tab0 WHERE ( ( col0 ) IS NULL )
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1901
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1901
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - 89 + - - ( - col0 ) FROM tab1 AS cor0
----
-140
-174
-180

query I rowsort
SELECT ALL - col0 + + ( - col2 ) FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL - + 38 AS col2 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT DISTINCT - 16 * + + COUNT( + + 8 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT - 16 * + + COUNT ( + + 8 ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT ALL + col2 * ( + col0 ) AS col1 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL MIN( ALL - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL MIN ( ALL - col2 ) FROM tab2
----
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 BETWEEN NULL AND col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - ( 53 ) IS NOT NULL
----

query I rowsort
SELECT 60 * col0 AS col1 FROM tab1
----
3060
5100
5460

query I rowsort
SELECT ALL + col1 * - col1 * col2 FROM tab0
----
-308367
-4410
-99

query II rowsort
SELECT col1, - col1 FROM tab2 AS cor0 WHERE NOT - col1 / - 53 IS NULL
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT DISTINCT + SUM( - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT + SUM ( - col2 ) FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL > NULL )
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 83 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1917
SELECT col1 * + ( - CAST( NULL AS SIGNED ) ) + col2 * + 9 / 48 * - + 49 AS col0, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1917
SELECT col1 * + ( - CAST ( NULL AS INTEGER ) ) + col2 * + 9 / 48 * - + 49 AS col0, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT col1 * + 46 + + + col0 FROM tab2 AS cor0
----
2392
3157
3606

query I rowsort
SELECT ALL ( - + col2 ) + + 83 AS col0 FROM tab0 AS cor0
----
-16
36
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1920
SELECT AVG ( DISTINCT + 32 ) / + COUNT( * ) AS col2, - ( + 27 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-1920
SELECT AVG ( DISTINCT + 32 ) / + COUNT ( * ) AS col2, - ( + 27 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
-27

query I rowsort
SELECT + 52 + col0 FROM tab0 AS cor0
----
139
149
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1922
SELECT + - COUNT( DISTINCT col2 ) + - COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1922
SELECT + - COUNT ( DISTINCT col2 ) + - COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
-4

query I rowsort
SELECT ALL + 26 + - col0 + - + 88 AS col1 FROM tab0 AS cor0
----
-149
-159
-77

query I rowsort
SELECT ALL col0 - + 32 * - 22 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + + col0 + + - col2 AS col0 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT ALL + 3 + col0 AS col2 FROM tab1 cor0
----
54
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT DISTINCT COUNT( DISTINCT + - col2 ) + + COUNT( * ) - - 45 AS col1 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT COUNT ( DISTINCT + - col2 ) + + COUNT ( * ) - - 45 AS col1 FROM tab0 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT + COUNT( * ) + - - ( + 59 ) FROM tab0 WHERE NULL IS NULL
----
62

skipif mysql # not compatible
query I rowsort label-1929
SELECT + COUNT ( * ) + - - ( + 59 ) FROM tab0 WHERE NULL IS NULL
----
62

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 64
----

query I rowsort
SELECT DISTINCT + ( - 48 ) AS col0 FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT + COUNT( * ) * - - 12 * - - MAX( + col2 ) FROM tab1
----
3456

skipif mysql # not compatible
query I rowsort label-1932
SELECT + COUNT ( * ) * - - 12 * - - MAX ( + col2 ) FROM tab1
----
3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1933
SELECT DISTINCT COUNT( DISTINCT + + CAST( col1 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT COUNT ( DISTINCT + + CAST ( col1 AS INTEGER ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1934
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1934
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + - 45 AS col2 FROM tab0
----
-30
42
52

query II rowsort
SELECT 29 AS col2, - col0 - - col2 * - 59 AS col1 FROM tab1
----
29
-3566
29
-4103
29
-5715

onlyif mysql # DIV for integer division: 
query II rowsort label-1937
SELECT ALL col0, 58 DIV + col0 AS col2 FROM tab0 WHERE NOT + col0 + - 63 IS NULL
----
15
3
87
0
97
0

skipif mysql # not compatible
query II rowsort label-1937
SELECT ALL col0, 58 / + col0 AS col2 FROM tab0 WHERE NOT + col0 + - 63 IS NULL
----
15
3
87
0
97
0

query I rowsort
SELECT + 43 * - - 90 AS col2 FROM tab2
----
3870
3870
3870

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT DISTINCT + SUM( DISTINCT - col1 ) + + 54 AS col1 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT + SUM ( DISTINCT - col1 ) + + 54 AS col1 FROM tab2
----
-141

query I rowsort
SELECT + col0 - + - col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT DISTINCT 37 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT col2 - - ( + - ( + + col0 ) ) FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1943
SELECT ALL ( CAST( NULL AS SIGNED ) ) + + + 31 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL ( CAST ( NULL AS INTEGER ) ) + + + 31 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - 27 * + col2 FROM tab1
----
-124848
-248832
-93987

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1945
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) col2 FROM tab0
----
9

query I rowsort
SELECT - col1 * + - 36 FROM tab2
----
1836
2412
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1947
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 98 * col0 + + - col1 AS col1 FROM tab1 AS cor0
----
-5012
-8335
-8965

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1949
SELECT + + CAST( NULL AS SIGNED ) col2, - 64 FROM tab1 AS cor0
----
NULL
-64
NULL
-64
NULL
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1949
SELECT + + CAST ( NULL AS INTEGER ) col2, - 64 FROM tab1 AS cor0
----
NULL
-64
NULL
-64
NULL
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-1950
SELECT - COUNT( * ) AS col0, 23 + - + COUNT( * ) FROM tab2 AS cor0
----
-3
20

skipif mysql # not compatible
query II rowsort label-1950
SELECT - COUNT ( * ) AS col0, 23 + - + COUNT ( * ) FROM tab2 AS cor0
----
-3
20

query II rowsort
SELECT + 84 * - + col0 * + 23 AS col0, col2 FROM tab0 AS cor0 WHERE NOT NULL >= - 59 - + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT SUM( DISTINCT - 86 ) FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-1952
SELECT SUM ( DISTINCT - 86 ) FROM tab1
----
-86

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE ( NOT NULL BETWEEN col0 + col1 AND - 1 + + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 83 col2 FROM tab1
----
-4233
-7055
-7553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1955
SELECT ALL - ( - - COUNT( * ) ) DIV - + 2 col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1955
SELECT ALL - ( - - COUNT ( * ) ) / - + 2 col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT ALL col0 * col1 * - + col0 AS col0 FROM tab2
----
-107916
-315392
-376875

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 58 * 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( - - 79 )
----

query I rowsort
SELECT - 65 + 31 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT col1 + - 26 AS col2 FROM tab2
----
25
41
51

query II rowsort
SELECT + col2, - 50 FROM tab0 AS cor0
----
10
-50
47
-50
99
-50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT ALL SUM( DISTINCT + 42 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL SUM ( DISTINCT + 42 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL < col0 + 88 * + - col0
----

query II rowsort
SELECT ALL - - col2 + - 94 + - + 74 AS col0, col2 + - - 40 FROM tab0 AS cor0
----
-121
87
-158
50
-69
139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1967
SELECT + CAST( NULL AS SIGNED ) AS col0, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1967
SELECT + CAST ( NULL AS INTEGER ) AS col0, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT DISTINCT + col0 + - ( col2 ) * - col2 AS col1 FROM tab2 AS cor0
----
1664
3439
575

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1970
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1970
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= ( CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1971
SELECT ALL - + CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1971
SELECT ALL - + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 87 + + col2 + - - col1 + + col0 - - - col0 * ( + col0 ) * - - col2 FROM tab1
----
-249448
-426039
-562815

query I rowsort
SELECT col2 + - + col2 - + col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT 74 + + - COUNT( * ) col2 FROM tab0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1974
SELECT 74 + + - COUNT ( * ) col2 FROM tab0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1975
SELECT ALL COUNT( * ) DIV + 10 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL COUNT ( * ) / + 10 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1976
SELECT * FROM tab0 WHERE NULL < col2 / + col0 * - CAST( NULL AS SIGNED ) * - ( + col2 ) * + col0 - col1 + 94 - - col2 + - - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1976
SELECT * FROM tab0 WHERE NULL < col2 / + col0 * - CAST ( NULL AS INTEGER ) * - ( + col2 ) * + col0 - col1 + 94 - - col2 + - - CAST ( - col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1977
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 IN ( + CAST( NULL AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query III rowsort label-1977
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 IN ( + CAST ( NULL AS INTEGER ) + - col0 )
----

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab2 WHERE NOT 42 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + 62 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 80 IS NULL
----

query I rowsort
SELECT DISTINCT - - col2 * 84 + + + col2 + - 39 AS col2 FROM tab2 AS cor0
----
1916
3361
4891

query I rowsort
SELECT - + col1 * - col2 * - col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1983
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 - - ( col0 ) AS col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT + - MIN( ALL + + col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1985
SELECT + - MIN ( ALL + + col1 ) FROM tab1 cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1986
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( + ( - col2 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1986
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( + ( - col2 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1987
SELECT DISTINCT + + ( + + ( - CAST( NULL AS SIGNED ) ) ) AS col2, COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT 75 < NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1987
SELECT DISTINCT + + ( + + ( - CAST ( NULL AS INTEGER ) ) ) AS col2, COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT 75 < NULL
----
NULL
0

query I rowsort
SELECT - 36 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ALL + MIN( 98 ) AS col0 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL + MIN ( 98 ) AS col0 FROM tab0 AS cor0
----
98

query II rowsort
SELECT ALL - + col1, 79 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1991
SELECT - COUNT( * ) AS col1, MIN( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-3
23

skipif mysql # not compatible
query II rowsort label-1991
SELECT - COUNT ( * ) AS col1, MIN ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-3
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1993
SELECT - ( - col0 ) * + col0 * + + ( - 27 ) * - CAST( - - 75 AS SIGNED ) FROM tab2 AS cor0
----
11390625
4284900
8294400

skipif mysql # not compatible
query I rowsort label-1993
SELECT - ( - col0 ) * + col0 * + + ( - 27 ) * - CAST ( - - 75 AS INTEGER ) FROM tab2 AS cor0
----
11390625
4284900
8294400

query I rowsort
SELECT ALL - ( - ( - + ( + 34 ) ) ) FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL - col0 * + 84 * col1 * - + 56 FROM tab0 AS cor0
----
456288
5715360
8594208

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + 83 FROM tab2 WHERE NULL >= NULL
----

query II rowsort
SELECT - col0 AS col0, 90 FROM tab1
----
-51
90
-85
90
-91
90

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 BETWEEN - col2 * - col1 AND + - col1 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL + COUNT( ALL + col1 ) * MIN( ALL + 57 ) FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL + COUNT ( ALL + col1 ) * MIN ( ALL + 57 ) FROM tab0
----
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 8, + col0 col0 FROM tab0
----
8
15
8
87
8
97

query II rowsort
SELECT col1, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT - COUNT( DISTINCT - + col1 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2004
SELECT - COUNT ( DISTINCT - + col1 ) col1 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 70 col0, col2 col2 FROM tab2 AS cor0
----
70
23
70
40
70
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 45 * + col1 col2 FROM tab1
----
19125
192465
32130

query I rowsort
SELECT ALL + 72 AS col2 FROM tab1
----
72
72
72

query I rowsort
SELECT col2 + - - col2 AS col1 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT - col2 * + + 65 + 46 * 58 * 89 FROM tab2 AS cor0
----
233682
234852
235957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 74 + + col0 col1, - col2 - 72 AS col0 FROM tab1 AS cor0
----
125
-168
159
-131
165
-140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col2 FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT ALL COUNT( * ) + - 34 AS col1 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL COUNT ( * ) + - 34 AS col1 FROM tab2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2013
SELECT ALL * FROM tab1 WHERE NOT ( NOT - 25 * + - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + col0 + col2 * + 16 / - + 39 * + ( col1 ) * + col1 + + col2 * + col1 )
----

skipif mysql # not compatible
query III rowsort label-2013
SELECT ALL * FROM tab1 WHERE NOT ( NOT - 25 * + - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + col0 + col2 * + 16 / - + 39 * + ( col1 ) * + col1 + + col2 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT 2 * - COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2014
SELECT 2 * - COUNT ( * ) AS col1 FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2015
SELECT - COUNT( * ), COUNT( * ) AS col0 FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-2015
SELECT - COUNT ( * ), COUNT ( * ) AS col0 FROM tab2
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NULL BETWEEN - + col1 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-2016
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NULL BETWEEN - + col1 AND + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT DISTINCT 30 - + COUNT( + ( col1 ) ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT 30 - + COUNT ( + ( col1 ) ) FROM tab0
----
27

query I rowsort
SELECT - col1 - + + 38 FROM tab2 AS cor0
----
-105
-115
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col2 FROM tab2 AS cor0 WHERE NOT col0 * col2 BETWEEN col1 AND 37
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2020
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 ) NOT BETWEEN - 55 AND - ( - CAST( NULL AS SIGNED ) ) + col2
----

skipif mysql # not compatible
query III rowsort label-2020
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 ) NOT BETWEEN - 55 AND - ( - CAST ( NULL AS INTEGER ) ) + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 25 * + col0 + + 90 BETWEEN + col1 AND + 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT MAX( DISTINCT - 88 ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-2022
SELECT MAX ( DISTINCT - 88 ) FROM tab1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL - MAX( 64 ) FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - MAX ( 64 ) FROM tab1
----
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > col0 + col0 * 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL - MIN( DISTINCT ( + col2 ) ) - + MIN( ALL + 23 ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL - MIN ( DISTINCT ( + col2 ) ) - + MIN ( ALL + 23 ) FROM tab0
----
-33

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE col2 * - 29 = NULL
----

query I rowsort
SELECT + col0 + 76 FROM tab0
----
163
173
91

query I rowsort
SELECT ALL + 70 - 87 FROM tab1
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT + SUM( ALL - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2029
SELECT + SUM ( ALL - col2 ) FROM tab2
----
-121

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - col1 * + col2 )
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL MAX( DISTINCT + col1 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL MAX ( DISTINCT + col1 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT DISTINCT SUM( ALL - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT SUM ( ALL - col1 ) FROM tab1
----
-66

query III rowsort
SELECT * FROM tab1 WHERE + 71 < - col0 + + col2 * 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( ( - 66 ) ) AS col2 FROM tab0
----
-66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 91 IN ( + 23 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT 37 / col2 BETWEEN NULL AND 24 * + col0 - - 61
----

query I rowsort
SELECT - col1 + col1 * + col2 FROM tab2
----
1122
3003
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT MIN( DISTINCT col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2040
SELECT MIN ( DISTINCT col1 ) AS col1 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 27 * + 9 IN ( 9 / - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = 13 * - ( - col0 * - 64 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 + + col2 col2 FROM tab0
----
-10
27
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col1 FROM tab1 WHERE NOT col0 IS NULL
----
-77
-77
-77

query I rowsort
SELECT DISTINCT - col0 * + 62 FROM tab1
----
-3162
-5270
-5642

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + - 23 * col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 51 + 64 <= col2 + 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab1 WHERE NOT 58 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT - COUNT( * ) * - COUNT( * ) + - COUNT( col2 - col2 ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2050
SELECT - COUNT ( * ) * - COUNT ( * ) + - COUNT ( col2 - col2 ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2051
SELECT ALL CAST( NULL AS DECIMAL ) * + 26 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL CAST ( NULL AS REAL ) * + 26 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 71 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 98 IS NULL
----

query I rowsort
SELECT + col2 * - ( + col1 ) FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( + 65 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT DISTINCT + MIN( ALL - 81 ) FROM tab2 WHERE col1 + + col1 >= col0
----
-81

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT + MIN ( ALL - 81 ) FROM tab2 WHERE col1 + + col1 >= col0
----
-81

query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab1 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT - - col2 * col0 + 44 AS col1 FROM tab1 AS cor0
----
4940
5059
6232

query I rowsort
SELECT DISTINCT - col2 + 32 AS col0 FROM tab0 AS cor0
----
-15
-67
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT - + 99 - COUNT( * ) FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-2061
SELECT - + 99 - COUNT ( * ) FROM tab2 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT ALL - COUNT( * ) + 57 AS col2 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - COUNT ( * ) + 57 AS col2 FROM tab0 AS cor0
----
54

query I rowsort
SELECT - 58 - 25 FROM tab0 cor0
----
-83
-83
-83

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL - col2 + 77 AS col1 FROM tab2 AS cor0
----
19
37
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT ALL COUNT( * ) + 28 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
28

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL COUNT ( * ) + 28 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT ALL - col2 + CAST( ( - 76 ) AS SIGNED ) * col0 col0 FROM tab1 AS cor0
----
-3972
-6519
-6984

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2068
SELECT ALL - col2 + CAST ( ( - 76 ) AS INTEGER ) * col0 col0 FROM tab1 AS cor0
----
-3972
-6519
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT + COUNT( * ) + COUNT( - col2 + + col0 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2069
SELECT + COUNT ( * ) + COUNT ( - col2 + + col0 ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2070
SELECT ALL col0 - + + CAST( NULL AS SIGNED ) - col0 / 78 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2070
SELECT ALL col0 - + + CAST ( NULL AS INTEGER ) - col0 / 78 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - 56 FROM tab0
----
-137
-57
-77

query I rowsort
SELECT - col1 FROM tab2 WHERE + col2 + - 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL MIN( col0 ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL MIN ( col0 ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT - col2 * + 66 + col0 FROM tab0
----
-3087
-573
-6437

query I rowsort
SELECT ALL + ( - + col0 ) - + col1 FROM tab0
----
-108
-96
-98

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 33 / + 50 NOT BETWEEN 48 * col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT 94 - SUM( + 10 ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT 94 - SUM ( + 10 ) FROM tab2
----
64

query I rowsort
SELECT ALL + ( - 49 ) * col1 AS col2 FROM tab1
----
-2303
-245
-686

query I rowsort
SELECT DISTINCT col1 * + col1 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ( 70 ) * + ( - 29 ) + 57 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT ALL + CAST( - 7 AS SIGNED ) FROM tab1
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + CAST ( - 7 AS INTEGER ) FROM tab1
----
-7
-7
-7

query I rowsort
SELECT DISTINCT col0 / col2 + col1 * - 89 FROM tab0 WHERE NOT col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT 81 IN ( + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT 81 IN ( + col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT MIN( ALL - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2084
SELECT MIN ( ALL - col0 ) FROM tab2
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2085
SELECT DISTINCT + - ( CAST( NULL AS DECIMAL ) ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT + - ( CAST ( NULL AS REAL ) ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 cor0 WHERE NOT ( 81 ) IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT + col1 DIV + + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2087
SELECT + col1 / + + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT 13 * 14 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + 24 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col0 FROM tab0 AS cor0 WHERE - 85 * col0 * + col2 IS NOT NULL
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 49 col0 FROM tab0 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT - COUNT( * ) - - ( COUNT( * ) ) FROM tab0 cor0 WHERE + col1 + + 20 NOT IN ( + col1 ) OR ( - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT - COUNT ( * ) - - ( COUNT ( * ) ) FROM tab0 cor0 WHERE + col1 + + 20 NOT IN ( + col1 ) OR ( - col2 ) IS NULL
----
0

query II rowsort
SELECT DISTINCT 41 AS col2, - col1 FROM tab2 AS cor0
----
41
-51
41
-67
41
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT MAX( ALL + col2 ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2096
SELECT MAX ( ALL + col2 ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
297

onlyif mysql # aggregate syntax: 
query II rowsort label-2097
SELECT DISTINCT - COUNT( * ) AS col2, + COUNT( DISTINCT + 82 ) * - SUM( - 33 + 66 ) + COUNT( * ) col1 FROM tab1 AS cor0
----
-3
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2097
SELECT DISTINCT - COUNT ( * ) AS col2, + COUNT ( DISTINCT + 82 ) * - SUM ( - 33 + 66 ) + COUNT ( * ) col1 FROM tab1 AS cor0
----
-3
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT COUNT( * ) + - 14 AS col1 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2098
SELECT COUNT ( * ) + - 14 AS col1 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT ALL 83 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2100
SELECT - ( CAST( col1 AS SIGNED ) ) + col1 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2100
SELECT - ( CAST ( col1 AS INTEGER ) ) + col1 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + 20, 24 AS col1 FROM tab2 AS cor0
----
20
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT + SUM( - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT + SUM ( - col2 ) AS col2 FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2103
SELECT col1 * 95 FROM tab1 WHERE NOT + + col0 / - - col2 + - col2 * col1 >= ( + CAST( col1 AS SIGNED ) )
----
1330
4465
475

skipif mysql # not compatible
query I rowsort label-2103
SELECT col1 * 95 FROM tab1 WHERE NOT + + col0 / - - col2 + - col2 * col1 >= ( + CAST ( col1 AS INTEGER ) )
----
1330
4465
475

onlyif mysql # DIV for integer division: 
query I rowsort label-2104
SELECT 11 DIV + col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT 11 / + col0 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + col2 > 56 * + col0 + col0 * - col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE + col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col1 col1 FROM tab1
----
138
65
90

query II rowsort
SELECT - + col1 * + - col1, col1 FROM tab1 AS cor0
----
196
14
2209
47
25
5

query I rowsort
SELECT DISTINCT 88 + + - col0 + + ( + col1 ) - + col1 * + 43 FROM tab2 AS cor0
----
-2100
-2801
-3210

query II rowsort
SELECT - 84, col2 + - col0 + 61 * 92 AS col0 FROM tab0 WHERE NULL IS NULL
----
-84
5535
-84
5614
-84
5644

query I rowsort
SELECT DISTINCT 4 * + col2 FROM tab0
----
188
396
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2112
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 IN ( - CAST( + + col2 AS SIGNED ) + ( 8 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2112
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 IN ( - CAST ( + + col2 AS INTEGER ) + ( 8 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE ( - col0 ) NOT IN ( 74 )
----
23
40
58

query I rowsort
SELECT DISTINCT - 9 - - 80 FROM tab2 AS cor0
----
71

query I rowsort
SELECT ALL + + col2 * - 73 - - col1 FROM tab2 cor0
----
-1628
-2843
-4167

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( - 50 ) >= ( 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT ALL - MIN( DISTINCT - ( - 71 ) ) FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL - MIN ( DISTINCT - ( - 71 ) ) FROM tab0
----
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2118
SELECT DISTINCT CAST( + 67 AS SIGNED ) * - + CAST( col2 AS SIGNED ) + ( + col1 ) + 37 DIV col1 FROM tab0
----
-3068
-648
-6595

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT CAST ( + 67 AS INTEGER ) * - + CAST ( col2 AS INTEGER ) + ( + col1 ) + 37 / col1 FROM tab0
----
-3068
-648
-6595

query I rowsort
SELECT col2 * - - 46 FROM tab0
----
2162
4554
460

query II rowsort
SELECT - col2 AS col2, + col0 AS col2 FROM tab1
----
-59
85
-68
91
-96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 94 col2 FROM tab0
----
4418
9306
940

query I rowsort
SELECT ALL + col2 * - - col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT DISTINCT - + 99 * ( CAST( NULL AS SIGNED ) ) + - col0 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT - + 99 * ( CAST ( NULL AS INTEGER ) ) + - col0 AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT DISTINCT + col0 DIV col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
8

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT + col0 / col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2125
SELECT DISTINCT - + 4 DIV - COUNT( * ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2125
SELECT DISTINCT - + 4 / - COUNT ( * ) col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT - - SUM( - 18 ) AS col1 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2126
SELECT - - SUM ( - 18 ) AS col1 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT ALL ( + 91 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT BETWEEN NULL AND ( col0 / - - col2 * - - col1 * col1 * - 32 + + col1 - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2129
SELECT + ( + CAST( NULL AS DECIMAL ) ) FROM tab1 cor0 WHERE NOT + col2 NOT BETWEEN + - col2 - - col0 AND ( 26 )
----

skipif mysql # not compatible
query I rowsort label-2129
SELECT + ( + CAST ( NULL AS REAL ) ) FROM tab1 cor0 WHERE NOT + col2 NOT BETWEEN + - col2 - - col0 AND ( 26 )
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( - col0 / - col0 * + 38 ) IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 63 IN ( - + ( 13 ) / + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2132
SELECT ALL ( 27 ) col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
27
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2132
SELECT ALL ( 27 ) col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
27
3

query I rowsort
SELECT col1 * + 89 FROM tab2
----
4539
5963
6853

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + 31 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT - 42 DIV - col2 col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2135
SELECT - 42 / - col2 col2 FROM tab0
----
0
0
4

query III rowsort
SELECT * FROM tab0 WHERE col1 < + col2
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2137
SELECT + 8 + ( + 87 ) + col2 DIV - - col2 AS col0 FROM tab0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-2137
SELECT + 8 + ( + 87 ) + col2 / - - col2 AS col0 FROM tab0
----
96
96
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * col2 NOT IN ( - + 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT 43 * 9 + COUNT( * ) col2 FROM tab0
----
390

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2139
SELECT 43 * 9 + COUNT ( * ) col2 FROM tab0
----
390

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2140
SELECT ALL + COUNT( * ) DIV ( - 95 ) AS col0, 14 FROM tab1
----
0
14

skipif mysql # not compatible
query II rowsort label-2140
SELECT ALL + COUNT ( * ) / ( - 95 ) AS col0, 14 FROM tab1
----
0
14

query I rowsort
SELECT DISTINCT + ( + col1 ) + col2 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2142
SELECT DISTINCT col1 * - - col2 + ( + - 31 ) + + - 80 * + 56 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT col1 * - - col2 + ( + - 31 ) + + - 80 * + 56 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 + - 54 FROM tab2 AS cor0
----
-8
10
21

onlyif mysql # DIV for integer division: 
query II rowsort label-2144
SELECT DISTINCT + 36 DIV + 73 col0, + 53 col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
0
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2144
SELECT DISTINCT + 36 / + 73 col0, + 53 col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
0
53

query I rowsort
SELECT DISTINCT - + ( - - col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT + COUNT( * ) - - 64 AS col1 FROM tab2 WHERE NOT NULL <= + col2
----
64

skipif mysql # not compatible
query I rowsort label-2146
SELECT + COUNT ( * ) - - 64 AS col1 FROM tab2 WHERE NOT NULL <= + col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT + ( ( - + COUNT( * ) ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2147
SELECT + ( ( - + COUNT ( * ) ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT - col0 * + - 95 AS col1 FROM tab2
----
4370
6080
7125

query II rowsort
SELECT DISTINCT + col0, col1 AS col2 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT DISTINCT - + COUNT( * ) * - - 74 AS col2 FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT - + COUNT ( * ) * - - 74 AS col2 FROM tab2 AS cor0
----
-222

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE ( - col2 * - col1 * - + col2 / - col0 ) <> 6
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 >= - 10
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 / col1 - 88 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2154
SELECT ALL - COUNT( * ) * - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - COUNT ( * ) * - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( 75 ) * col1 AS col1 FROM tab0 AS cor0
----
1575
6075
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 17 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 28 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2158
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 28 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT ALL col2 + - + col2 / - + col1 + col0 * + CAST( NULL AS SIGNED ) * - + 69 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL col2 + - + col2 / - + col1 + col0 * + CAST ( NULL AS INTEGER ) * - + 69 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( + 92 ) + + - 12 FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT + - 22 + + - COUNT( * ) FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2161
SELECT + - 22 + + - COUNT ( * ) FROM tab2 cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2162
SELECT + - 52 / + col0 + + col1 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2162
SELECT + - 52 / + col0 + + col1 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + - col0 BETWEEN col0 AND col1 + col2 * ( col1 ) AND NULL <= NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col2, col1 + - 62 AS col2 FROM tab2 AS cor0
----
23
-11
40
15
58
5

query I rowsort
SELECT DISTINCT col1 + - ( col2 ) - + - ( col0 ) - + - 49 - - - col2 - - 3 FROM tab2
----
103
113
78

query I rowsort
SELECT ALL + ( 99 ) * - col2 AS col1 FROM tab1
----
-5841
-6732
-9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT col0 / - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT col0 / - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2168
SELECT * FROM tab1 WHERE ( 4 * + - CAST( + 7 AS SIGNED ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2168
SELECT * FROM tab1 WHERE ( 4 * + - CAST ( + 7 AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2169
SELECT DISTINCT + CAST( + + col1 AS SIGNED ) * - - col1 FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT + CAST ( + + col1 AS INTEGER ) * - - col1 FROM tab0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT - col0 DIV + ( - col1 ) FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-2170
SELECT - col0 / + ( - col1 ) FROM tab0
----
0
4
97

query I rowsort
SELECT - ( + 80 ) FROM tab2
----
-80
-80
-80

query I rowsort
SELECT ALL ( 84 ) + col2 AS col1 FROM tab1
----
143
152
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT DISTINCT - COUNT( + + col2 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT - COUNT ( + + col2 ) AS col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT DISTINCT col0 DIV col1 + - col1 AS col2 FROM tab0
----
-17
-81
96

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT col0 / col1 + - col1 AS col2 FROM tab0
----
-17
-81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - 38 + COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
-38

skipif mysql # not compatible
query I rowsort label-2175
SELECT - 38 + COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT col0 DIV - col0 - - col1 * - + ( - + col2 ) AS col0 FROM tab2 AS cor0
----
1172
3079
3885

skipif mysql # not compatible
query I rowsort label-2176
SELECT col0 / - col0 - - col1 * - + ( - + col2 ) AS col0 FROM tab2 AS cor0
----
1172
3079
3885

query II rowsort
SELECT DISTINCT - + col1 + - col1 - + 64 AS col0, - ( + - ( + col1 ) ) FROM tab2 AS cor0
----
-166
51
-198
67
-218
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2178
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 43 + - - col2 - + col1 / - - col2 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2178
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 43 + - - col2 - + col1 / - - col2 * + CAST ( NULL AS REAL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + ( - + col1 ) AND 10 + ( col1 ) * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ALL - COUNT( DISTINCT - 93 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL - COUNT ( DISTINCT - 93 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + 77 + COUNT( * ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-2181
SELECT + 77 + COUNT ( * ) FROM tab2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT CAST( + 15 AS SIGNED ) + - - col1 FROM tab1
----
20
29
62

skipif mysql # not compatible
query I rowsort label-2182
SELECT CAST ( + 15 AS INTEGER ) + - - col1 FROM tab1
----
20
29
62

query II rowsort
SELECT DISTINCT - - col2 AS col2, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2184
SELECT - - col0 DIV + - 1 AS col2 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2184
SELECT - - col0 / + - 1 AS col2 FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 68 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * + + col1 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT MAX( + 75 ) col0 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2187
SELECT MAX ( + 75 ) col0 FROM tab1 AS cor0
----
75

query I rowsort
SELECT ALL + col0 + - col2 FROM tab1 AS cor0 WHERE + col1 * 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT - + MAX( DISTINCT 64 ) AS col0 FROM tab1 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT - + MAX ( DISTINCT 64 ) AS col0 FROM tab1 cor0
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 36 ) col1 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT COUNT( DISTINCT + - col0 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2191
SELECT COUNT ( DISTINCT + - col0 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT COUNT( - ( + col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2192
SELECT COUNT ( - ( + col2 ) ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 31 + + 93 IN ( + col1, - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - AVG ( DISTINCT - col1 ) AS col2 FROM tab1 WHERE NOT + 87 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 7 AS col0 FROM tab0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT 25 * - COUNT( + - col1 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2196
SELECT 25 * - COUNT ( + - col1 ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL - MIN( + 7 ) * - - COUNT( * ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL - MIN ( + 7 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-21

query I rowsort
SELECT DISTINCT - + ( - col0 ) * + col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL - COUNT( * ) * + - 77 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL - COUNT ( * ) * + - 77 FROM tab1
----
231

query I rowsort
SELECT - 55 + + - 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08f97f97b745950752b9b99b9639317a

query I rowsort
SELECT - 92 * - col1 * col1 AS col0 FROM tab1 AS cor0
----
18032
203228
2300

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 ) IS NULL
----

query II rowsort
SELECT ALL + col0 AS col2, - col0 AS col2 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT - col1 * + 26 AS col1 FROM tab2 AS cor0
----
-1326
-1742
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT 24 + - + COUNT( * ) + - + 17 + + COUNT( * ) + - + 32 * + + MIN( 17 ) AS col2 FROM tab2
----
-537

skipif mysql # not compatible
query I rowsort label-2205
SELECT 24 + - + COUNT ( * ) + - + 17 + + COUNT ( * ) + - + 32 * + + MIN ( 17 ) AS col2 FROM tab2
----
-537

query II rowsort
SELECT ALL col0 + - col0 + 71 * + + 97 AS col1, col2 + + + col2 * - - col1 * + 26 FROM tab0
----
6887
2673
6887
5470
6887
99029

query I rowsort
SELECT - 50 FROM tab1 WHERE col0 IS NOT NULL
----
-50
-50
-50

query I rowsort
SELECT col2 * - + col2 * - col1 + - - col0 AS col0 FROM tab0
----
178944
2187
9898

query I rowsort
SELECT ALL + 21 AS col0 FROM tab0
----
21
21
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2210
SELECT + COUNT( * ) DIV 94 + - 65 FROM tab2 cor0
----
-65

skipif mysql # not compatible
query I rowsort label-2210
SELECT + COUNT ( * ) / 94 + - 65 FROM tab2 cor0
----
-65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN col1 + 60 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT ( - - ( - MAX( - col0 ) ) ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2212
SELECT ( - - ( - MAX ( - col0 ) ) ) AS col1 FROM tab2 AS cor0
----
46

query II rowsort
SELECT DISTINCT 35 - col2, col0 + col2 AS col1 FROM tab0
----
-12
62
-64
196
25
97

query I rowsort
SELECT - 18 + - col2 FROM tab0 WHERE NULL IS NULL
----
-117
-28
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 69 ) col2 FROM tab1
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT DISTINCT - CAST( ( - - 41 ) AS SIGNED ) FROM tab0 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT - CAST ( ( - - 41 ) AS INTEGER ) FROM tab0 cor0
----
-41

query I rowsort
SELECT DISTINCT - + col2 - 16 * - 87 / col1 FROM tab2 AS cor0 WHERE NOT + 61 * col0 > - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2218
SELECT ALL - MAX( DISTINCT - + ( CAST( 26 AS SIGNED ) ) ) DIV - 64 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - MAX ( DISTINCT - + ( CAST ( 26 AS INTEGER ) ) ) / - 64 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 53 * col1 + - col2 AS col0 FROM tab1 AS cor0
----
-2559
-324
-838

query I rowsort
SELECT ALL + ( - 64 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - + col2 * + col1 + col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL SUM( + + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL SUM ( + + col0 ) AS col2 FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, + 14 * - + col2 col1 FROM tab2
----
23
-322
40
-560
58
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT - SUM( - col2 ) FROM tab1 AS cor0 WHERE NOT ( col0 ) * + col0 < - - 45
----
223

skipif mysql # not compatible
query I rowsort label-2225
SELECT - SUM ( - col2 ) FROM tab1 AS cor0 WHERE NOT ( col0 ) * + col0 < - - 45
----
223

query II rowsort
SELECT + 19 AS col0, - col1 AS col0 FROM tab2 cor0
----
19
-51
19
-67
19
-77

query I rowsort
SELECT - 39 * + col1 AS col0 FROM tab2 AS cor0
----
-1989
-2613
-3003

query I rowsort
SELECT DISTINCT AVG ( DISTINCT col1 ) FROM tab1 WHERE + - col2 * - + 94 + + - col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2229
SELECT ALL + 57 DIV - - col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL + 57 / - - col2 FROM tab2
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2230
SELECT - 99 DIV + + 31 AS col1 FROM tab0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-2230
SELECT - 99 / + + 31 AS col1 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT 32 + + - col2 AS col2 FROM tab2
----
-26
-8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL + + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL + + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT 44 DIV + - 92 + ( + 78 ) FROM tab1
----
78
78
78

skipif mysql # not compatible
query I rowsort label-2233
SELECT 44 / + - 92 + ( + 78 ) FROM tab1
----
78
78
78

query I rowsort
SELECT - col1 + col0 * - - col1 AS col2 FROM tab2 AS cor0
----
2295
4851
4958

query I rowsort
SELECT 47 + - 55 FROM tab0 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - 63 + + + col2 AS col2 FROM tab1 cor0
----
-4
33
5

query I rowsort
SELECT ALL - 11 * + col0 + col0 FROM tab0 AS cor0
----
-150
-870
-970

query I rowsort
SELECT DISTINCT + + 50 AS col0 FROM tab1 cor0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2239
SELECT ALL + col2 DIV - col2 + - + col1 AS col0 FROM tab1 cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL + col2 / - col2 + - + col1 AS col0 FROM tab1 cor0
----
-15
-48
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2240
SELECT DISTINCT + col0 DIV - + 47 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT + col0 / - + 47 AS col2 FROM tab0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2241
SELECT + ( + col0 ) DIV - col2 AS col0 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2241
SELECT + ( + col0 ) / - col2 AS col0 FROM tab0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT ALL - COUNT( * ) - 92 AS col2 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - COUNT ( * ) - 92 AS col2 FROM tab0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT + 64 - - col2 * - - 0 DIV - col1 DIV col1 AS col2 FROM tab1
----
64
64
64

skipif mysql # not compatible
query I rowsort label-2243
SELECT + 64 - - col2 * - - 0 / - col1 / col1 AS col2 FROM tab1
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT + 13 - + COUNT( * ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-2244
SELECT + 13 - + COUNT ( * ) FROM tab2
----
10

query I rowsort
SELECT ALL 6 * 37 FROM tab2 cor0
----
222
222
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 4 + + 88 + - col2 * - 0 col1 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT ALL col0 * - + 44 + + 12 + col2 AS col2 FROM tab0 AS cor0
----
-3806
-4157
-601

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL - ( - COUNT( * ) ) - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL - ( - COUNT ( * ) ) - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL + MIN( DISTINCT col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL + MIN ( DISTINCT col2 ) FROM tab2 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2250
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2251
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2251
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2252
SELECT DISTINCT + COUNT( * ) * + + 6 AS col2, - 4 FROM tab2 AS cor0
----
18
-4

skipif mysql # not compatible
query II rowsort label-2252
SELECT DISTINCT + COUNT ( * ) * + + 6 AS col2, - 4 FROM tab2 AS cor0
----
18
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT ALL 40 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL 40 / - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 * - col1 / - 1
----

query I rowsort
SELECT col1 * 9 AS col0 FROM tab2
----
459
603
693

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT col0 * - - 59 AS col2 FROM tab2
----
2714
3776
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT + MIN( ALL - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2258
SELECT + MIN ( ALL - col1 ) FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2259
SELECT DISTINCT - CAST( + AVG ( ALL col1 ) AS SIGNED ) col2 FROM tab2
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2259
SELECT DISTINCT - CAST ( + AVG ( ALL col1 ) AS INTEGER ) col2 FROM tab2
----
-65

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL + COUNT( DISTINCT col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL + COUNT ( DISTINCT col1 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 >= + col1 + - - 67 * + + col2 * + 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - ( - ( 87 ) ) + - col2 AS col2 FROM tab1 AS cor0
----
-146
-155
-183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2265
SELECT CAST( NULL AS SIGNED ) + + SUM( DISTINCT - 8 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT - 8 ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2266
SELECT + 90 DIV COUNT( * ) AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2266
SELECT + 90 / COUNT ( * ) AS col0 FROM tab2
----
30

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE - + 27 * + col1 * - 14 + + - col0 = - col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT DISTINCT - ( - MIN( DISTINCT col0 ) ) * COUNT( * ) FROM tab1 WHERE NOT - col1 IS NULL
----
153

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT - ( - MIN ( DISTINCT col0 ) ) * COUNT ( * ) FROM tab1 WHERE NOT - col1 IS NULL
----
153

query I rowsort
SELECT ALL - AVG ( ALL - col0 ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL + 61 + + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL + 61 + + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2271
SELECT COUNT( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT COUNT ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col1 FROM tab2 AS cor0 WHERE - col1 BETWEEN ( - col0 ) AND col0 * - col1 - + col2
----

query I rowsort
SELECT DISTINCT - + col0 + col1 * + - col2 AS col1 FROM tab2 AS cor0
----
-1219
-3144
-3961

query I rowsort
SELECT ALL + + 13 - - col1 FROM tab0 AS cor0
----
14
34
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT - col0 * - 33 * 39 + + col1 FROM tab2 AS cor0
----
59253
82445
96592

query I rowsort
SELECT col0 + ( - col2 ) FROM tab0
----
-2
-32
77

query II rowsort
SELECT - 56 + - 4 + + col2 * - col2 AS col1, col0 AS col0 FROM tab2
----
-1660
64
-3424
75
-589
46

query I rowsort
SELECT col2 + + 74 FROM tab0
----
121
173
84

query I rowsort
SELECT DISTINCT + 66 * + col2 * - 83 * + col2 FROM tab0 WHERE NOT + col0 = - - 47
----
-12100902
-53689878
-547800

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 31 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2284
SELECT + 2 * - CAST( NULL AS SIGNED ), col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2284
SELECT + 2 * - CAST ( NULL AS INTEGER ), col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT ALL - col2 / + CAST( NULL AS SIGNED ) + - + 94 + - CAST( NULL AS SIGNED ) * - ( col0 ) * 27 * - - col1 + - 33 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL - col2 / + CAST ( NULL AS INTEGER ) + - + 94 + - CAST ( NULL AS INTEGER ) * - ( col0 ) * 27 * - - col1 + - 33 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 56 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
56

query II rowsort
SELECT DISTINCT + col1 * col1 * - + col1, - col2 AS col2 FROM tab0
----
-1
-99
-531441
-47
-9261
-10

query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab0 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2289
SELECT ALL + col1 DIV - - col0 AS col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL + col1 / - - col0 AS col0 FROM tab0 AS cor0
----
0
0
5

query II rowsort
SELECT col2 AS col2, + 55 / - + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col2 * 31 AS col1 FROM tab1 AS cor0
----
1829
2108
2976

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 29 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL SUM( ALL - 28 ) * - + ( COUNT( * ) ) col2 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2293
SELECT ALL SUM ( ALL - 28 ) * - + ( COUNT ( * ) ) col2 FROM tab1 AS cor0
----
252

query I rowsort
SELECT - ( + col2 ) * + 94 AS col0 FROM tab1 AS cor0
----
-5546
-6392
-9024

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + col1 = + + 8 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE - + ( - + 56 ) / + col1 + - col0 * + 61 <> - - col2 + - 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE + col0 IN ( - + col0 * + + 43 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 39 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT - 86 * COUNT( * ) AS col1 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-2299
SELECT - 86 * COUNT ( * ) AS col1 FROM tab2
----
-258

query II rowsort
SELECT DISTINCT - 83, - 65 AS col0 FROM tab1
----
-83
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 <> col1 * col1 * - + 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) * MIN( ( - + col2 ) ) FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) * MIN ( ( - + col2 ) ) FROM tab1 AS cor0
----
-285

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT + 73 IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 59 * - + 37 * - col1 AS col0 FROM tab2 AS cor0
----
111333
146261
168091

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE + 67 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # DIV for integer division: 
query II rowsort label-2307
SELECT + col1 + + col0 AS col1, 82 DIV col0 FROM tab2
----
141
1
142
1
97
1

skipif mysql # not compatible
query II rowsort label-2307
SELECT + col1 + + col0 AS col1, 82 / col0 FROM tab2
----
141
1
142
1
97
1

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * + col0 * col1 NOT BETWEEN ( + col1 ) AND col2 * + col2 * - col2 * + col0 / 66 * + col2 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2309
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE col1 + - + CAST( col0 AS DECIMAL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2309
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE col1 + - + CAST ( col0 AS REAL ) IS NULL
----
0

query I rowsort
SELECT + - 63 + 63 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT + col1 + 39, col1 AS col2 FROM tab2 AS cor0
----
106
67
116
77
90
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT ALL + MAX( col1 ) + + 16 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL + MAX ( col1 ) + + 16 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL ( col2 ) + - 78 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + 70 <= + 23
----

query I rowsort
SELECT DISTINCT 52 + - 84 FROM tab0
----
-32

query I rowsort
SELECT ALL + ( + + 67 ) - col0 FROM tab0
----
-20
-30
52

query I rowsort
SELECT - col0 - - - col2 FROM tab2
----
-104
-133
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2318
SELECT + CAST( NULL AS DECIMAL ) - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT + CAST ( NULL AS REAL ) - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT COUNT( * ) - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2319
SELECT COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + - 41 col2 FROM tab2
----
-23
-34
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 IS NOT NULL AND - 51 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * col1 * + col2 AS col0 FROM tab0
----
-308367
-4410
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2323
SELECT + - 32, CAST( NULL AS SIGNED ) + 11 AS col1 FROM tab0 AS cor0
----
-32
NULL
-32
NULL
-32
NULL

skipif mysql # not compatible
query II rowsort label-2323
SELECT + - 32, CAST ( NULL AS INTEGER ) + 11 AS col1 FROM tab0 AS cor0
----
-32
NULL
-32
NULL
-32
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2324
SELECT DISTINCT + 29 * + - SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT + 29 * + - SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT DISTINCT + + COUNT( * ) + 96 FROM tab2 AS cor0 WHERE NOT + 46 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT + + COUNT ( * ) + 96 FROM tab2 AS cor0 WHERE NOT + 46 IS NULL
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT + - COUNT( * ) / - ( CAST( NULL AS SIGNED ) ) + ( - COUNT( * ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT + - COUNT ( * ) / - ( CAST ( NULL AS INTEGER ) ) + ( - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT + col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2329
SELECT 89 DIV 28 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2329
SELECT 89 / 28 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT + ( MIN( ALL col0 ) ) * + COUNT( * ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-2330
SELECT + ( MIN ( ALL col0 ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
138

query I rowsort
SELECT + 83 * 95 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d2032bbbb17c30623480c77dd5bad655

query II rowsort
SELECT col2, col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT + + ( - 77 ) AS col2 FROM tab2 WHERE 65 IS NOT NULL
----
-77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT DISTINCT + COUNT( - - ( + - col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT + COUNT ( - - ( + - col2 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 + - 25 FROM tab2 AS cor0
----
26
42
52

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ALL + 46 + - ( 25 ) * + col1 * + 51 FROM tab2 AS cor0
----
-64979
-85379
-98129

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 6 * - 49 + + col2 >= NULL
----

query I rowsort
SELECT - - 38 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT - - 84 AS col2 FROM tab2 AS cor0
----
84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - ( col1 ) + + 44 FROM tab2 AS cor0
----
-23
-33
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT col1 + - + 53 + col1 DIV - 86 FROM tab0 AS cor0
----
-32
-52
28

skipif mysql # not compatible
query I rowsort label-2345
SELECT col1 + - + 53 + col1 / - 86 FROM tab0 AS cor0
----
-32
-52
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2347
SELECT DISTINCT col1 * - col0 - - col1 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT col1 * - col0 - - col1 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + + col2 - + - col2 + col2 * - col1, + col1 AS col2 FROM tab2 AS cor0
----
-1127
51
-3000
77
-3770
67

query I rowsort
SELECT + 77 + col1 AS col2 FROM tab1 AS cor0
----
124
82
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2350
SELECT - col2 + + 86 DIV + 10 col0 FROM tab0 AS cor0
----
-2
-39
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2350
SELECT - col2 + + 86 / + 10 col0 FROM tab0 AS cor0
----
-2
-39
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - + col1 AND 26
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2352
SELECT DISTINCT COUNT( * ) * + 7 col0, 45 AS col1 FROM tab2
----
21
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2352
SELECT DISTINCT COUNT ( * ) * + 7 col0, 45 AS col1 FROM tab2
----
21
45

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT - COUNT( * ) * - COUNT( * ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2354
SELECT - COUNT ( * ) * - COUNT ( * ) col0 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2355
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( + 20 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2355
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( + 20 AS INTEGER )
----

query I rowsort
SELECT - + AVG ( ALL + ( - - col1 ) ) * - 74 FROM tab1 AS cor0 WHERE NOT col0 <> - col1 - + - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT + COUNT( DISTINCT + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2357
SELECT + COUNT ( DISTINCT + col2 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT ALL - COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL - COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2359
SELECT - 4 AS col0, - 56 * - CAST( - + col0 AS SIGNED ) FROM tab0 cor0
----
-4
-4872
-4
-5432
-4
-840

skipif mysql # not compatible
query II rowsort label-2359
SELECT - 4 AS col0, - 56 * - CAST ( - + col0 AS INTEGER ) FROM tab0 cor0
----
-4
-4872
-4
-5432
-4
-840

query I rowsort
SELECT DISTINCT + + 14 + + 39 FROM tab1 AS cor0
----
53

query I rowsort
SELECT ALL 55 + col0 AS col0 FROM tab1 AS cor0 WHERE NULL < col2 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col0 * col1 + - col2 * + col1 + - col2 - - col0 col2 FROM tab2 AS cor0
----
106766
312336
373006

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 * + 79
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT - + 74 + + col2 AS col1 FROM tab0 AS cor0
----
-27
-64
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2367
SELECT - CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT 31 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT - CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 31 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT 95 + 71 AS col1 FROM tab1 AS cor0
----
166
166
166

query I rowsort
SELECT + - 5 * ( - col2 ) * + col1 + + - col0 AS col2 FROM tab0 cor0
----
19020
398
963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2370
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2370
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2371
SELECT ALL COUNT( * ) DIV - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL COUNT ( * ) / - COUNT ( * ) FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT ALL col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN + - col2 AND col2 / + - CAST( NULL AS SIGNED ) - - + CAST( + 82 AS SIGNED ) + - + col2
----

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN + - col2 AND col2 / + - CAST ( NULL AS INTEGER ) - - + CAST ( + 82 AS INTEGER ) + - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 57 >= NULL
----

query I rowsort
SELECT + 18 + - + col0 + + col0 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT - 67 FROM tab0 cor0
----
-67

query I rowsort
SELECT + + 74 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 75 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2379
SELECT ALL - MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL - MAX ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2380
SELECT ALL + + col1, col0 DIV - 73 col2 FROM tab0 AS cor0
----
1
-1
21
-1
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2380
SELECT ALL + + col1, col0 / - 73 col2 FROM tab0 AS cor0
----
1
-1
21
-1
81
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * + 68 * - MAX( + col2 ) AS col0 FROM tab1 cor0
----
58752

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * + 68 * - MAX ( + col2 ) AS col0 FROM tab1 cor0
----
58752

query II rowsort
SELECT DISTINCT + col0, ( - + 98 ) FROM tab1
----
51
-98
85
-98
91
-98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col1 ) col2, + 1 FROM tab0
----
1
1
21
1
81
1

query II rowsort
SELECT - col2 AS col1, - 86 * 47 AS col1 FROM tab0
----
-10
-4042
-47
-4042
-99
-4042

query II rowsort
SELECT ALL + col2, col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT DISTINCT + COUNT( ALL 3 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT + COUNT ( ALL 3 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 96 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-96
-96
-96

query II rowsort
SELECT DISTINCT + 39, - 40 AS col2 FROM tab0 cor0
----
39
-40

query II rowsort
SELECT - ( - + col2 ) AS col0, 19 AS col0 FROM tab1 cor0
----
59
19
68
19
96
19

query I rowsort
SELECT - 93 * 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e991985dd7c345e0dc9f5e65e3c57a92

query I rowsort
SELECT ALL - 47 + + 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL - col2 + - col0 + col1 + - 43 + + + 44 AS col0 FROM tab0
----
-194
-75
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT DISTINCT + 56 + - COUNT( * ) FROM tab1 cor0
----
53

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT + 56 + - COUNT ( * ) FROM tab1 cor0
----
53

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE NULL < - col1
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT ALL col2 + + 13 + + - 73 FROM tab0 AS cor0
----
-13
-50
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2399
SELECT ALL + COUNT( + CAST( - 15 AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL + COUNT ( + CAST ( - 15 AS INTEGER ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 * + col2 * - col0 + + - 63 FROM tab2
----
-197183
-291513
-54021

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT - ( + col2 ) + + + col0 DIV - col1 AS col2 FROM tab1
----
-69
-76
-99

skipif mysql # not compatible
query I rowsort label-2401
SELECT - ( + col2 ) + + + col0 / - col1 AS col2 FROM tab1
----
-69
-76
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT DISTINCT ( - - COUNT( * ) ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT ( - - COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 59 - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT ALL + SUM( DISTINCT 97 ) col0 FROM tab2
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2404
SELECT ALL + SUM ( DISTINCT 97 ) col0 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT SUM( - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2405
SELECT SUM ( - col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL - 72 + 95 FROM tab2 AS cor0
----
23
23
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * col1 >= + col0 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * - + col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
-46
-64
-75

query II rowsort
SELECT - + col0 * - 28, + col2 AS col2 FROM tab2 AS cor0
----
1288
23
1792
40
2100
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT ALL + 47 * + + AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL + 47 * + + AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2412
SELECT col2 DIV ( + + col2 ) AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2412
SELECT col2 / ( + + col2 ) AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - + col0 * 23 * - - col1 AS col0 FROM tab1 AS cor0
----
-16422
-9775
-98371

query I rowsort
SELECT DISTINCT 97 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + + 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT ALL + SUM( col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL + SUM ( col1 ) AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2417
SELECT COUNT( * ) DIV + 27 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2417
SELECT COUNT ( * ) / + 27 col0 FROM tab1
----
0

query II rowsort
SELECT ALL - col2 AS col2, + col2 * - + 12 FROM tab0 AS cor0
----
-10
-120
-47
-564
-99
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT DISTINCT + SUM( DISTINCT - 44 ) + COUNT( * ) * 60 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
496

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT + SUM ( DISTINCT - 44 ) + COUNT ( * ) * 60 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
496

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IS NOT NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + + + ( - 29 ) FROM tab1 AS cor0
----
-15
-24
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 24 + col0 AS col0 FROM tab2 AS cor0
----
70
88
99

query I rowsort
SELECT 88 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + 94 FROM tab0 AS cor0
----
13
73
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 78 NOT BETWEEN NULL AND - 66 * + col2 + - - 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + 81 + - - ( + + col1 ) col0 FROM tab1 AS cor0
----
1
37
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT DISTINCT COUNT( * ) * - 90 + COUNT( + + ( + 51 ) ) AS col1 FROM tab1 cor0
----
-267

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT COUNT ( * ) * - 90 + COUNT ( + + ( + 51 ) ) AS col1 FROM tab1 cor0
----
-267

query II rowsort
SELECT ALL col0, 92 * + 89 FROM tab0 AS cor0
----
15
8188
87
8188
97
8188

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT 27 * - COUNT( * ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2430
SELECT 27 * - COUNT ( * ) AS col0 FROM tab0
----
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT MIN( - 73 ) AS col0 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-2432
SELECT MIN ( - 73 ) AS col0 FROM tab1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT DISTINCT - MIN( DISTINCT + + 45 ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT - MIN ( DISTINCT + + 45 ) FROM tab0
----
-45

query I rowsort
SELECT 68 * - col1 AS col2 FROM tab0
----
-1428
-5508
-68

query III rowsort
SELECT * FROM tab0 WHERE 89 / + 25 <> + col0 + 2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col1 AS col1, ( + col1 ) AS col0 FROM tab0 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT + 92 * + 19 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT - 85 < + 34
----

query I rowsort
SELECT ALL + 80 * + col1 AS col1 FROM tab2 AS cor0
----
4080
5360
6160

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT + MIN( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT + MIN ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-91

query II rowsort
SELECT ALL 92 * ( + col1 ) * - - col0 * - + 72 + - col0 * - ( + col2 ) AS col2, + col0 AS col2 FROM tab2 AS cor0
----
-15538846
46
-32640512
64
-33281250
75

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE NOT 50 + col1 * - 59 + - col0 BETWEEN col2 AND NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL - SUM( + 62 ) AS col2 FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - SUM ( + 62 ) AS col2 FROM tab0 AS cor0
----
-186

query I rowsort
SELECT ALL - 14 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT ALL + col0, col2 AS col2 FROM tab0 cor0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - col2 + + - ( - 25 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2446
SELECT + - CAST( NULL AS DECIMAL ), - ( - 44 ) * + - col2 AS col1 FROM tab2 AS cor0
----
NULL
-1012
NULL
-1760
NULL
-2552

skipif mysql # not compatible
query II rowsort label-2446
SELECT + - CAST ( NULL AS REAL ), - ( - 44 ) * + - col2 AS col1 FROM tab2 AS cor0
----
NULL
-1012
NULL
-1760
NULL
-2552

onlyif mysql # DIV for integer division: 
query I rowsort label-2447
SELECT + + 52 DIV + col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2447
SELECT + + 52 / + col0 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2448
SELECT DISTINCT + 16 col0, 65 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
16
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2448
SELECT DISTINCT + 16 col0, 65 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
16
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL - + SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL - + SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT DISTINCT + COUNT( + col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT + COUNT ( + col1 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2451
SELECT ALL + 79 * COUNT( * ) AS col1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL + 79 * COUNT ( * ) AS col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT + 85 * COUNT( * ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-2452
SELECT + 85 * COUNT ( * ) FROM tab2
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL 25 * - + COUNT( * ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL 25 * - + COUNT ( * ) FROM tab0
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2454
SELECT ALL + col1 AS col2 FROM tab2 WHERE + + col1 = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL + col1 AS col2 FROM tab2 WHERE + + col1 = CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN + col1 + + - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2455
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN + col1 + + - col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT DISTINCT + MIN( + - col2 ) FROM tab2 WHERE NULL = - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT + MIN ( + - col2 ) FROM tab2 WHERE NULL = - col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 < + 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( col2 ) AND - col1 OR + col0 BETWEEN col1 AND NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT + + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT DISTINCT + COUNT( + + col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT + COUNT ( + + col0 ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + ( + col1 ) - - col2 + + col1
----

query I rowsort
SELECT - col2 * 5 AS col0 FROM tab2
----
-115
-200
-290

query I rowsort
SELECT - - 89 AS col2 FROM tab1 cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT DISTINCT + + COUNT( * ) + ( + - 44 ) + - 28 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT + + COUNT ( * ) + ( + - 44 ) + - 28 FROM tab0 AS cor0
----
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 99 IS NULL
----

query I rowsort
SELECT ALL + + col0 * - col0 * col0 - col0 FROM tab2 AS cor0
----
-262208
-421950
-97382

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, + 76 FROM tab1 AS cor0
----
14
76
47
76
5
76

query I rowsort
SELECT col1 + - - 42 FROM tab2 AS cor0
----
109
119
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2471
SELECT ALL - 90 * - + 90 * + ( + 26 ) + + 18 + - 51 DIV col0 - + - 78 + + ( col1 ) col1 FROM tab1 AS cor0
----
210701
210709
210743

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2471
SELECT ALL - 90 * - + 90 * + ( + 26 ) + + 18 + - 51 / col0 - + - 78 + + ( col1 ) col1 FROM tab1 AS cor0
----
210701
210709
210743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT DISTINCT + col0 * + - 2 - CAST( NULL AS SIGNED ) * + col0 / - ( + 9 ) * col2 + - + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT + col0 * + - 2 - CAST ( NULL AS INTEGER ) * + col0 / - ( + 9 ) * col2 + - + col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + COUNT( * ) + + - COUNT( DISTINCT - col2 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2473
SELECT + COUNT ( * ) + + - COUNT ( DISTINCT - col2 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT - ( + col0 ) FROM tab0 WHERE - - col0 BETWEEN - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2475
SELECT DISTINCT + 55 AS col0, COUNT( * ) AS col1 FROM tab2
----
55
3

skipif mysql # not compatible
query II rowsort label-2475
SELECT DISTINCT + 55 AS col0, COUNT ( * ) AS col1 FROM tab2
----
55
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 col1 FROM tab1
----
-96
-96
-96

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT ( - + 66 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2479
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2480
SELECT DISTINCT - 68 DIV + 4 + + - MAX( 17 ) + + + 67 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT - 68 / + 4 + + - MAX ( 17 ) + + + 67 FROM tab2 AS cor0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2481
SELECT DISTINCT - + COUNT( * ) + CAST( - 75 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT - + COUNT ( * ) + CAST ( - 75 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-78

query I rowsort
SELECT ALL ( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( 95 ) FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT col0 * + 83 FROM tab2 WHERE - col2 NOT IN ( + col0 )
----
3818
5312
6225

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT COUNT( * ) * - - 9 AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-2485
SELECT COUNT ( * ) * - - 9 AS col0 FROM tab1
----
27

query I rowsort
SELECT ALL + col1 * + col1 * ( - - col0 ) FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT 50 * - - MAX( col0 ) AS col0 FROM tab0 AS cor0
----
4850

skipif mysql # not compatible
query I rowsort label-2488
SELECT 50 * - - MAX ( col0 ) AS col0 FROM tab0 AS cor0
----
4850

query I rowsort
SELECT DISTINCT + 53 * 76 FROM tab0 AS cor0
----
4028

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-2491
SELECT ALL + + MAX( - - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL + + MAX ( - - col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT - col1 * - 67 AS col0 FROM tab1 AS cor0
----
3149
335
938

query II rowsort
SELECT DISTINCT + col2 * - col0 AS col1, - 87 + + col1 AS col2 FROM tab0 AS cor0
----
-705
-6
-870
-66
-9603
-86

query I rowsort
SELECT ALL - ( + + 71 ) FROM tab0 AS cor0
----
-71
-71
-71

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL <= - col2 * col0 - col1 / + col0 + + col0 )
----

query I rowsort
SELECT + 5 * + col2 * - - ( + + col0 ) FROM tab1 WHERE NOT - - 74 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2497
SELECT ALL + ( + col1 ) DIV col2 col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2497
SELECT ALL + ( + col1 ) / col2 col1 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT + 38 * col0 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT + 38 * col0 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 39 * + - col2 AS col1 FROM tab2 cor0
----
1560
2262
897

onlyif mysql # DIV for integer division: 
query I rowsort label-2500
SELECT DISTINCT + col0 DIV - - col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT + col0 / - - col1 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT DISTINCT - 72 * 12 - col1 FROM tab0
----
-865
-885
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT 48 * COUNT( * ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-2502
SELECT 48 * COUNT ( * ) FROM tab1
----
144

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 / col1 + - col1 <= ( - 0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 41 AS col2 FROM tab1
----
41
41
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * ( COUNT( * ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * ( COUNT ( * ) ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN col1 + - 44 * 6 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2507
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col1 + CAST( NULL AS DECIMAL ) / col1 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2507
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col1 + CAST ( NULL AS REAL ) / col1 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2508
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 * + 62 col0 FROM tab0
----
-3596
-3596
-3596

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE col0 IS NULL
----
0

query I rowsort
SELECT ALL + col0 + col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT ALL CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 48 - - ( 98 ) AS col0 FROM tab0
----
50
50
50

query III rowsort
SELECT * FROM tab1 WHERE ( col0 * + col1 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT SUM( DISTINCT 52 ) + + COUNT( * ) AS col2 FROM tab2 WHERE ( - col2 ) BETWEEN NULL AND ( + col0 * - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT SUM ( DISTINCT 52 ) + + COUNT ( * ) AS col2 FROM tab2 WHERE ( - col2 ) BETWEEN NULL AND ( + col0 * - col0 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2516
SELECT ALL + COUNT( * ) DIV 25 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + COUNT ( * ) / 25 AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col0 FROM tab2
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2518
SELECT * FROM tab0 WHERE ( - col0 * CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2518
SELECT * FROM tab0 WHERE ( - col0 * CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2519
SELECT DISTINCT + col2 DIV 81 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT + col2 / 81 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT col0 + - 19 AS col1 FROM tab2 WHERE NULL IN ( + 98 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT + 17 DIV col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2521
SELECT + 17 / col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2522
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT + MIN( col1 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT + MIN ( col1 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT + col1 + - col0 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT + 75 * col1 + - col1 DIV + 57 FROM tab0
----
1575
6074
75

skipif mysql # not compatible
query I rowsort label-2526
SELECT + 75 * col1 + - col1 / + 57 FROM tab0
----
1575
6074
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2527
SELECT - ( - ( - 72 ) ) DIV COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-2527
SELECT - ( - ( - 72 ) ) / COUNT ( * ) FROM tab1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT - col0 DIV + 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2528
SELECT - col0 / + 87 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT ( col2 ) < col1
----
-97

query I rowsort
SELECT - 78 * 89 + - col0 AS col1 FROM tab2 cor0
----
-6988
-7006
-7017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 + - col0 col0 FROM tab2 AS cor0
----
2070
4032
5550

query I rowsort
SELECT + 17 / col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col1 FROM tab1 cor0
----
83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - col1 BETWEEN ( col2 ) AND NULL
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT col0 DIV + col1 FROM tab0 cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-2535
SELECT col0 / + col1 FROM tab0 cor0
----
0
4
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab0 AS cor0 WHERE ( - col0 + + col2 ) IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT + 70 AS col2 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col1 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT ALL 99 * + col2 + - col2 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 18 <> + 18 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL 99 * + col2 + - col2 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 18 <> + 18 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2540
SELECT + + col0 * ( 33 DIV col1 + col1 ) FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-2540
SELECT + + col0 * ( 33 / col1 + col1 ) FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT DISTINCT - + ( - COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT - + ( - COUNT ( * ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT + 15 - + 65 IS NULL
----
51
67
77

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT col1 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 45 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col1 FROM tab2
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 11 col0 FROM tab2
----
-506
-704
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT - 42 + ( + COUNT( * ) ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT - 42 + ( + COUNT ( * ) ) FROM tab0
----
-39

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 IN ( col0 )
----

query I rowsort
SELECT ALL 31 + - 91 FROM tab2 WHERE NOT col0 IN ( 33 )
----
-60
-60
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2550
SELECT DISTINCT + + MAX( ALL 83 ) + + COUNT( * ) DIV - 29 FROM tab0 cor0
----
83

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT + + MAX ( ALL 83 ) + + COUNT ( * ) / - 29 FROM tab0 cor0
----
83

query I rowsort
SELECT DISTINCT + col0 * - 16 AS col0 FROM tab2 AS cor0
----
-1024
-1200
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT COUNT( * ) * - 56 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-2552
SELECT COUNT ( * ) * - 56 FROM tab1 AS cor0
----
-168

query I rowsort
SELECT col0 * + 41 * - col1 FROM tab0 AS cor0
----
-3977
-49815
-74907

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - col0 ) AND col1 + 68
----

query I rowsort
SELECT DISTINCT col1 + - 38 * + + col1 AS col1 FROM tab2
----
-1887
-2479
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT DISTINCT + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT - - 57 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2558
SELECT ALL + SUM( + 82 ) * - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2558
SELECT ALL + SUM ( + 82 ) * - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 / + col1 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( 47 ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) = - 84
----
0

skipif mysql # not compatible
query I rowsort label-2562
SELECT COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) = - 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT ALL + - 85 + - CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL + - 85 + - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 + - - 70 + 8 + 40 AS col0 FROM tab0 AS cor0
----
128
165
217

query I rowsort
SELECT col1 + + col1 - - 4 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2566
SELECT DISTINCT - col0 + - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT - col0 + - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 93 AS col0 FROM tab2 AS cor0 WHERE + col0 - - 17 / col0 NOT BETWEEN NULL AND 47
----
93
93

query I rowsort
SELECT ALL 4 FROM tab2 AS cor0 WHERE NULL NOT IN ( 41 )
----

query I rowsort
SELECT - + col2 + + 94 FROM tab0 cor0
----
-5
47
84

query I rowsort
SELECT - 4 * + 45 + col2 * col0 FROM tab2 AS cor0
----
2380
4170
878

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2571
SELECT * FROM tab1 cor0 WHERE CAST( + col0 AS SIGNED ) NOT BETWEEN + col1 AND col0
----

skipif mysql # not compatible
query III rowsort label-2571
SELECT * FROM tab1 cor0 WHERE CAST ( + col0 AS INTEGER ) NOT BETWEEN + col1 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT DISTINCT + col2 DIV - 69 - + - col2 + - 44 FROM tab1 AS cor0
----
15
24
51

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT + col2 / - 69 - + - col2 + - 44 FROM tab1 AS cor0
----
15
24
51

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT - 60 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2574
SELECT 63 + ( col0 ) + + + 45 DIV - col1 AS col2 FROM tab1
----
111
139
154

skipif mysql # not compatible
query I rowsort label-2574
SELECT 63 + ( col0 ) + + + 45 / - col1 AS col2 FROM tab1
----
111
139
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2575
SELECT ALL MIN( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 * + 75 * + col0 - 83 * + col1 FROM tab2
----
154467
300809
416314

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT MAX( DISTINCT - + 60 ) - - + 60 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2577
SELECT DISTINCT MAX ( DISTINCT - + 60 ) - - + 60 col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - col0 * - col0 / - col2 ) > ( + 70 * - col0 + + col1 / col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT ALL ( SUM( + 32 ) ) * COUNT( * ) FROM tab0 WHERE NOT + 73 + + + col2 + CAST( NULL AS SIGNED ) NOT IN ( ( 84 ) * + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL ( SUM ( + 32 ) ) * COUNT ( * ) FROM tab0 WHERE NOT + 73 + + + col2 + CAST ( NULL AS INTEGER ) NOT IN ( ( 84 ) * + 43 )
----
NULL

query I rowsort
SELECT + 89 AS col2 FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT DISTINCT - ( COUNT( * ) ) FROM tab2 WHERE NOT - col2 NOT BETWEEN ( - 39 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab2 WHERE NOT - col2 NOT BETWEEN ( - 39 ) AND NULL
----
0

query I rowsort
SELECT DISTINCT + 90 * - col1 FROM tab2
----
-4590
-6030
-6930

onlyif mysql # DIV for integer division: 
query I rowsort label-2583
SELECT + col1 DIV - + col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2583
SELECT + col1 / - + col2 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - 26 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - + col1 * - col1 >= col2 * 2 )
----
51
14
96
91
47
68

query I rowsort
SELECT col1 * col2 + + ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2587
SELECT DISTINCT - + COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT - + COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / - ( - ( 71 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 14 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 97 col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 + col2 * + ( - + col0 ) / + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - col0 ) col2 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - + 73 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + - col1 col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT + 64 + + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + ( - col2 ) + col0 + - col0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2598
SELECT ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 / - col2 * 47 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 97 col0 FROM tab2 AS cor0 WHERE NOT 34 + 33 <= - col0 * col2 / 32
----
2231
3880
5626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2601
SELECT CAST( 77 AS SIGNED ) * col0 AS col2 FROM tab1 WHERE NOT ( ( NULL ) NOT IN ( - col2 * col0 ) )
----

skipif mysql # not compatible
query I rowsort label-2601
SELECT CAST ( 77 AS INTEGER ) * col0 AS col2 FROM tab1 WHERE NOT ( ( NULL ) NOT IN ( - col2 * col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 27 AS col2, col2 FROM tab1
----
27
59
27
68
27
96

query II rowsort
SELECT ALL 45 AS col1, col1 * - col2 AS col2 FROM tab0
----
45
-210
45
-3807
45
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT + COUNT( - col1 ) AS col2 FROM tab2 WHERE + 38 * + col1 * + col1 NOT BETWEEN + + col0 AND - col1
----
3

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT + COUNT ( - col1 ) AS col2 FROM tab2 WHERE + 38 * + col1 * + col1 NOT BETWEEN + + col0 AND - col1
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( ( col1 ) ) = - col1 * - - 49 + + 71
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2607
SELECT ALL CAST( NULL AS DECIMAL ) + + - 30 + - 96 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL CAST ( NULL AS REAL ) + + - 30 + - 96 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 17 IN ( - col1 / - ( + + ( ( + col2 ) ) ) + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT ALL - MIN( + 73 ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL - MIN ( + 73 ) FROM tab1 AS cor0
----
-73

query I rowsort
SELECT DISTINCT + 53 + + col1 + - col2 AS col2 FROM tab2
----
62
81
90

query I rowsort
SELECT DISTINCT + + 16 AS col2 FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2612
SELECT * FROM tab1 AS cor0 WHERE CAST( - col0 AS SIGNED ) < + 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2612
SELECT * FROM tab1 AS cor0 WHERE CAST ( - col0 AS INTEGER ) < + 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 - 55 * + col1 * col0 * - + col2 - 79 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 + + - 18 col2 FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + + 96 + 7 FROM tab0 AS cor0 WHERE 56 + + col2 * + 26 IS NOT NULL
----
103
103
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT DISTINCT MIN( DISTINCT - col1 ) + + - 70 AS col2 FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT MIN ( DISTINCT - col1 ) + + - 70 AS col2 FROM tab2 AS cor0
----
-147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2617
SELECT + - 28 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-2617
SELECT + - 28 / - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 52 * - 9 * - 97 IN ( + col2 / col1 + - 9 * - 20 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2619
SELECT + ( - + CAST( - + 17 AS SIGNED ) ) - 83 AS col0 FROM tab1 AS cor0
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-2619
SELECT + ( - + CAST ( - + 17 AS INTEGER ) ) - 83 AS col0 FROM tab1 AS cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT col2 - - col2 AS col1 FROM tab1 AS cor0
----
118
136
192

query III rowsort
SELECT * FROM tab2 WHERE 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT SUM( + ( - 90 ) ) * COUNT( * ) - + 61 * - 35 FROM tab0
----
1325

skipif mysql # not compatible
query I rowsort label-2622
SELECT SUM ( + ( - 90 ) ) * COUNT ( * ) - + 61 * - 35 FROM tab0
----
1325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2623
SELECT ALL - CAST( NULL AS SIGNED ) * + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab2
----
NULL

query II rowsort
SELECT col0 - + col1 + + + ( + col2 ) + + + ( 33 ) AS col1, - col1 AS col2 FROM tab2
----
51
-51
60
-77
99
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT + SUM( DISTINCT col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2625
SELECT + SUM ( DISTINCT col2 ) FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ( COUNT( * ) ) FROM tab1 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2626
SELECT ( COUNT ( * ) ) FROM tab1 WHERE NOT - col0 IS NULL
----
3

query I rowsort
SELECT 39 * - - 74 AS col2 FROM tab0
----
2886
2886
2886

query II rowsort
SELECT DISTINCT col1 AS col1, + col1 + col2 + - - 57 FROM tab2
----
51
131
67
182
77
174

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + col0 + + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT 1 * - COUNT( * ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2630
SELECT 1 * - COUNT ( * ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL col2 * - + col2 FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - ( - col0 ) AND 73
----

query I rowsort
SELECT col1 * - 55 AS col2 FROM tab1
----
-2585
-275
-770

onlyif mysql # aggregate syntax: 
query II rowsort label-2634
SELECT ( + ( - COUNT( * ) ) ), + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2634
SELECT ( + ( - COUNT ( * ) ) ), + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 73 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT - CAST( NULL AS SIGNED ) * + - col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2636
SELECT - CAST ( NULL AS INTEGER ) * + - col0 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT DISTINCT - MIN( + + ( + 80 ) ) col0 FROM tab2
----
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2637
SELECT DISTINCT - MIN ( + + ( + 80 ) ) col0 FROM tab2
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-2638
SELECT + 61 * + + COUNT( * ) col0, + 11 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
549
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2638
SELECT + 61 * + + COUNT ( * ) col0, + 11 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
549
11

query I rowsort
SELECT DISTINCT + col2 * 52 AS col1 FROM tab1 AS cor0
----
3068
3536
4992

query II rowsort
SELECT DISTINCT + - col0 + - col0 AS col2, - col0 - - col2 AS col1 FROM tab0 cor0
----
-174
-77
-194
2
-30
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 * - + col0, col1 col2 FROM tab1 AS cor0
----
-2601
14
-7225
5
-8281
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT col0 DIV + - 53 AS col1 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2643
SELECT col0 / + - 53 AS col1 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - COUNT( ALL - 30 ) * + + 10 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-2644
SELECT - COUNT ( ALL - 30 ) * + + 10 FROM tab2
----
-30

query I rowsort
SELECT ALL + 23 * + 54 * + ( - col1 ) FROM tab2
----
-63342
-83214
-95634

query I rowsort
SELECT + col2 + + 15 FROM tab1
----
111
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT + 39 * 78 + - - COUNT( DISTINCT - 48 ) col2 FROM tab0
----
3043

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2647
SELECT + 39 * 78 + - - COUNT ( DISTINCT - 48 ) col2 FROM tab0
----
3043

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( col2 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL - COUNT( * ) + + 70 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL - COUNT ( * ) + + 70 FROM tab0 AS cor0
----
67

query II rowsort
SELECT - 5, col0 FROM tab0 AS cor0
----
-5
15
-5
87
-5
97

query II rowsort
SELECT DISTINCT + col0 * + col2 - + col2, - col1 AS col2 FROM tab1 AS cor0
----
4800
-14
4956
-5
6120
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT DISTINCT SUM( + 75 ) AS col1 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT SUM ( + 75 ) AS col1 FROM tab0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT DISTINCT + - MIN( - 76 ) FROM tab1 WHERE NOT NULL < - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT + - MIN ( - 76 ) FROM tab1 WHERE NOT NULL < - + col0
----
NULL

query I rowsort
SELECT + - 47 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( + col0, col1, - 73 * - - col1 + - + col2, - 31 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2655
SELECT ALL + CAST( NULL AS SIGNED ) * 16 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL + CAST ( NULL AS INTEGER ) * 16 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2656
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT IN ( - - col0, col1 - - - CAST( col0 AS SIGNED ) + + ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2656
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT IN ( - - col0, col1 - - - CAST ( col0 AS INTEGER ) + + ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2657
SELECT DISTINCT + - CAST( - col2 AS SIGNED ) + - + 69 FROM tab1 cor0
----
-1
-10
27

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT + - CAST ( - col2 AS INTEGER ) + - + 69 FROM tab1 cor0
----
-1
-10
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 20 col0 FROM tab2 AS cor0
----
26
44
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT DISTINCT - 59 * ( + ( - + col0 ) ) + - - CAST( NULL AS SIGNED ) * col0 + - 61 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT - 59 * ( + ( - + col0 ) ) + - - CAST ( NULL AS INTEGER ) * col0 + - 61 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2660
SELECT DISTINCT + col1 * - col2 + 62 + CAST( NULL AS SIGNED ) * + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT DISTINCT + col1 * - col2 + 62 + CAST ( NULL AS INTEGER ) * + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2661
SELECT + CAST( NULL AS DECIMAL ) AS col2, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-2661
SELECT + CAST ( NULL AS REAL ) AS col2, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2662
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2663
SELECT CAST( - col1 AS SIGNED ) DIV - col2 + - col0 FROM tab2 AS cor0
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-2663
SELECT CAST ( - col1 AS INTEGER ) / - col2 + - col0 FROM tab2 AS cor0
----
-44
-63
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2664
SELECT - - CAST( + ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2664
SELECT - - CAST ( + ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - col0 * + 29 FROM tab0 WHERE + col1 + - - col1 BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT ALL - col0 * + 66 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL - col0 * + 66 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT + + 15 AS col0 FROM tab1 AS cor0
----
15
15
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 <= + col0
----
15
81
47

query I rowsort
SELECT 62 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT - 81 + + 76 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT - 52 * - col2 + - - ( col0 ) AS col0 FROM tab2 AS cor0
----
1242
2144
3091

query I rowsort
SELECT DISTINCT + - ( - col1 ) FROM tab1 AS cor0 WHERE ( NULL ) = + - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2674
SELECT col1 DIV col2 DIV + col0 + 92 + - 26 DIV 65 + - 12 * + col1 AS col2, - 94 * - col2 + 80 FROM tab0 AS cor0
----
-160
1020
-880
4498
80
9386

skipif mysql # not compatible
query II rowsort label-2674
SELECT col1 / col2 / + col0 + 92 + - 26 / 65 + - 12 * + col1 AS col2, - 94 * - col2 + 80 FROM tab0 AS cor0
----
-160
1020
-880
4498
80
9386

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + 52 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 = - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * - 0 FROM tab1 AS cor0 WHERE NOT ( ( - 22 ) ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 65 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 81 * + + col0 NOT IN ( - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 97 * col2 col0 FROM tab0
----
20370
369279
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT COUNT( - + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2683
SELECT COUNT ( - + col0 ) FROM tab1
----
3

query I rowsort
SELECT + + col0 * + 25 - - col0 AS col0 FROM tab0 AS cor0
----
2262
2522
390

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT DISTINCT + ( - COUNT( 9 ) ) + - MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT + ( - COUNT ( 9 ) ) + - MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-54

query I rowsort
SELECT ALL - 26 + - 69 + - 77 FROM tab1 AS cor0
----
-172
-172
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT 36 + - ( + ( MAX( ALL + col0 ) ) ) + + 94 + 49 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT 36 + - ( + ( MAX ( ALL + col0 ) ) ) + + 94 + 49 FROM tab0 AS cor0
----
82

query I rowsort
SELECT ALL ( - - 82 ) AS col1 FROM tab0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL - + COUNT( * ) * - ( + + 22 ) * + 95 AS col0 FROM tab1 cor0
----
6270

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL - + COUNT ( * ) * - ( + + 22 ) * + 95 AS col0 FROM tab1 cor0
----
6270

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 20 >= NULL OR NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2692
SELECT COUNT( * ) / - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2692
SELECT COUNT ( * ) / - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL + 69 + - 40 * + MIN( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL + 69 + - 40 * + MIN ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 8 * - ( col0 ) + - col2 > NULL
----

query I rowsort
SELECT DISTINCT 24 + - col2 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-23
-75
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2696
SELECT ALL - CAST( COUNT( + 38 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL - CAST ( COUNT ( + 38 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT MIN( 86 ) AS col0 FROM tab1 cor0
----
86

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT MIN ( 86 ) AS col0 FROM tab1 cor0
----
86

query II rowsort
SELECT 34, - 55 AS col2 FROM tab0
----
34
-55
34
-55
34
-55

query I rowsort
SELECT DISTINCT ( - 22 ) FROM tab2
----
-22

query II rowsort
SELECT col2 AS col2, col0 AS col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2701
SELECT ALL - CAST( NULL AS SIGNED ) * - 90 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL - CAST ( NULL AS INTEGER ) * - 90 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + - col1 ) FROM tab2 WHERE + - 32 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT - COUNT( col1 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2703
SELECT - COUNT ( col1 ) col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - 53 * + - 78 AS col2 FROM tab1
----
4134

query I rowsort
SELECT - 21 * col0 FROM tab0
----
-1827
-2037
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL - COUNT( - 61 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL - COUNT ( - 61 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT col1 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT + 87 * + COUNT( * ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-2708
SELECT + 87 * + COUNT ( * ) FROM tab1
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2709
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) / - + 48 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) / - + 48 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - - 36 FROM tab2 cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL - + MIN( DISTINCT - - 12 ) FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL - + MIN ( DISTINCT - - 12 ) FROM tab1 cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT COUNT( * ) FROM tab2 WHERE NOT - col1 / + col1 + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2712
SELECT COUNT ( * ) FROM tab2 WHERE NOT - col1 / + col1 + col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT DISTINCT + col0 + + 87 DIV + col0 FROM tab0 AS cor0
----
20
88
97

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT + col0 + + 87 / + col0 FROM tab0 AS cor0
----
20
88
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2 + - col2
----

query I rowsort
SELECT DISTINCT 69 + - + 36 AS col2 FROM tab1 AS cor0
----
33

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL + COUNT( * ) * + 74 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL + COUNT ( * ) * + 74 FROM tab0 AS cor0
----
222

query I rowsort
SELECT + 44 + col1 FROM tab2 cor0
----
111
121
95

query I rowsort
SELECT ( col2 ) + + col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # DIV for integer division: 
query I rowsort label-2720
SELECT ALL - 47 DIV - 21 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - 47 / - 21 FROM tab1
----
2
2
2

query II rowsort
SELECT 15 + + - 52 + - - col1, + col1 AS col0 FROM tab1
----
-23
14
-32
5
10
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2722
SELECT - COUNT( - CAST( - 92 AS SIGNED ) ) + + 56 AS col0, + COUNT( col0 ) FROM tab1
----
53
3

skipif mysql # not compatible
query II rowsort label-2722
SELECT - COUNT ( - CAST ( - 92 AS INTEGER ) ) + + 56 AS col0, + COUNT ( col0 ) FROM tab1
----
53
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT ALL col0 DIV + - 40 AS col2 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL col0 / + - 40 AS col2 FROM tab1
----
-1
-2
-2

query I rowsort
SELECT + col0 FROM tab0 WHERE + + col0 - col2 + + col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * + col0 col2 FROM tab0
----
144
7548
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 61, col1 + + + col0 col1 FROM tab0
----
-61
108
-61
96
-61
98

query I rowsort
SELECT ALL col0 + 95 + + + col0 * + col0 FROM tab1
----
2747
7405
8467

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT - - MAX( ALL col2 ) col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2728
SELECT - - MAX ( ALL col2 ) col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT + COUNT( - + 35 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2729
SELECT + COUNT ( - + 35 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT ALL MAX( ALL - col0 ) - - COUNT( * ) col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2730
SELECT ALL MAX ( ALL - col0 ) - - COUNT ( * ) col0 FROM tab0 AS cor0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2731
SELECT DISTINCT CAST( + + MIN( + 87 ) AS SIGNED ) AS col2 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT CAST ( + + MIN ( + 87 ) AS INTEGER ) AS col2 FROM tab2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2732
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( 83 + - col0 * + ( 0 ), + CAST( NULL AS SIGNED ), + col1 )
----

skipif mysql # not compatible
query III rowsort label-2732
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( 83 + - col0 * + ( 0 ), + CAST ( NULL AS INTEGER ), + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2733
SELECT - COUNT( * ) DIV + 62 AS col1 FROM tab2 WHERE NOT - ( + - ( + col1 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2733
SELECT - COUNT ( * ) / + 62 AS col1 FROM tab2 WHERE NOT - ( + - ( + col1 ) ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2735
SELECT ALL CAST( + 50 AS SIGNED ) AS col2, - col2 * - 34 FROM tab2 AS cor0
----
50
1360
50
1972
50
782

skipif mysql # not compatible
query II rowsort label-2735
SELECT ALL CAST ( + 50 AS INTEGER ) AS col2, - col2 * - 34 FROM tab2 AS cor0
----
50
1360
50
1972
50
782

query II rowsort
SELECT ALL ( col0 ) AS col0, - ( + + col1 ) FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - - col1 + + col2 + 5 col2, + col1 * - col0 col1 FROM tab0 AS cor0
----
-1163
-1215
-1812
-1827
7
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col0 FROM tab1 AS cor0
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2740
SELECT - COUNT( * ) DIV 81 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT - COUNT ( * ) / 81 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2741
SELECT 30 AS col2, + COUNT( * ) FROM tab0
----
30
3

skipif mysql # not compatible
query II rowsort label-2741
SELECT 30 AS col2, + COUNT ( * ) FROM tab0
----
30
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE + 74 + + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE + 74 + + + col2 IS NULL
----
0

query I rowsort
SELECT - ( - - col1 ) FROM tab1
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 40 * - col1 col0 FROM tab2 AS cor0
----
2040
2680
3080

query I rowsort
SELECT DISTINCT + col1 + + + 24 * - col0 AS col1 FROM tab2 AS cor0
----
-1053
-1459
-1733

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT + SUM( - 31 ) AS col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2746
SELECT + SUM ( - 31 ) AS col1 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL + + 29 AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT 58 - + ( - 18 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL 87 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT - + 20 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT - 5 + + ( MAX( - 26 ) ) AS col2 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT - 5 + + ( MAX ( - 26 ) ) AS col2 FROM tab0 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT + - col0 + + - CAST( + 62 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-108
-126
-137

skipif mysql # not compatible
query I rowsort label-2753
SELECT + - col0 + + - CAST ( + 62 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-108
-126
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT - COUNT( DISTINCT - + 66 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2754
SELECT - COUNT ( DISTINCT - + 66 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - + col1 - + + 28 AS col2 FROM tab2 AS cor0
----
-105
-79
-95

query I rowsort
SELECT ALL col1 + - col0 + - + col1 + - col0 AS col1 FROM tab2 cor0
----
-128
-150
-92

query I rowsort
SELECT DISTINCT col0 * + + 39 - + col1 * - col2 * - + 63 AS col1 FROM tab1 AS cor0
----
-15270
-197799
-82683

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT MAX( ALL + col0 ) FROM tab2 AS cor0 WHERE 16 * col2 * col1 / + + col0 BETWEEN + ( + - col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2758
SELECT MAX ( ALL + col0 ) FROM tab2 AS cor0 WHERE 16 * col2 * col1 / + + col0 BETWEEN + ( + - col0 ) AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 84 * ( - - col0 ) AS col2 FROM tab2
----
3864
5376
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT MAX( DISTINCT + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT MAX ( DISTINCT + col2 ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL MAX( - ( - col1 ) ) col1 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2762
SELECT ALL MAX ( - ( - col1 ) ) col1 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT MIN( col2 ) - - 38 * + 9 FROM tab2
----
365

skipif mysql # not compatible
query I rowsort label-2763
SELECT MIN ( col2 ) - - 38 * + 9 FROM tab2
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT + SUM( ALL + 64 ) - + 82 FROM tab0
----
110

skipif mysql # not compatible
query I rowsort label-2764
SELECT + SUM ( ALL + 64 ) - + 82 FROM tab0
----
110

query I rowsort
SELECT ALL ( - - 14 ) AS col2 FROM tab1
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 - col0 col2 FROM tab0
----
-54
-64
18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 >= + - 63
----
85
5
59

query II rowsort
SELECT DISTINCT col0 * + - col0 * + col2 AS col1, - col1 FROM tab2 AS cor0
----
-163840
-77
-326250
-67
-48668
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE ( NOT + 26 * + 7 >= NULL )
----

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE ( NOT + 26 * + 7 >= NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2770
SELECT + COUNT( * ), - COUNT( * ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9
-9

skipif mysql # not compatible
query II rowsort label-2770
SELECT + COUNT ( * ), - COUNT ( * ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9
-9

query I rowsort
SELECT - + ( + - col1 ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2772
SELECT + - 67 DIV + ( + - 91 ) * + 23 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2772
SELECT + - 67 / + ( + - 91 ) * + 23 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * 46 AS col0 FROM tab2 cor0
----
1058
1840
2668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2774
SELECT DISTINCT + 77 / ( - - CAST( NULL AS SIGNED ) ) * + col0, + col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2774
SELECT DISTINCT + 77 / ( - - CAST ( NULL AS INTEGER ) ) * + col0, + col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT ALL - + MAX( col0 ) col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2775
SELECT ALL - + MAX ( col0 ) col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL + SUM( ALL + col0 ) col0 FROM tab1 cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2776
SELECT ALL + SUM ( ALL + col0 ) col0 FROM tab1 cor0
----
227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT DISTINCT 18 AS col1 FROM tab2 WHERE CAST( + - col1 AS SIGNED ) IS NOT NULL
----
18

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT 18 AS col1 FROM tab2 WHERE CAST ( + - col1 AS INTEGER ) IS NOT NULL
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT - COUNT( ALL 34 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2779
SELECT - COUNT ( ALL 34 ) FROM tab0
----
-3

query I rowsort
SELECT col0 * 49 * 67 * - - ( + col0 ) + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
24849037
30889846
738722

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT ALL ( - + COUNT( * ) ) * - + 38 + - COUNT( * ) FROM tab0, tab0 AS cor0
----
333

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL ( - + COUNT ( * ) ) * - + 38 + - COUNT ( * ) FROM tab0, tab0 AS cor0
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT DISTINCT + MIN( ALL + - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT + MIN ( ALL + - col0 ) FROM tab1
----
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 BETWEEN - col0 AND - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT + 67 * COUNT( * ) FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT + 67 * COUNT ( * ) FROM tab0 AS cor0
----
201

query I rowsort
SELECT + 72 * + col0 FROM tab0 AS cor0
----
1080
6264
6984

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2786
SELECT ALL - ( + + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL - ( + + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 56 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + 34 AS col2 FROM tab2 cor0
----
34
34
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL <> col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / 24 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2791
SELECT 13 DIV 56 - - COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-2791
SELECT 13 / 56 - - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT + - col0 + + col2 DIV col0 FROM tab0 AS cor0
----
-12
-87
-96

skipif mysql # not compatible
query I rowsort label-2792
SELECT + - col0 + + col2 / col0 FROM tab0 AS cor0
----
-12
-87
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT DISTINCT SUM( ALL - + col0 ) * + 28 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2793
SELECT DISTINCT SUM ( ALL - + col0 ) * + 28 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT 30 + + 87 FROM tab1 AS cor0
----
117
117
117

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + 76 >= - + col0 )
----

query I rowsort
SELECT ALL - col2 + + + col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL col0 - + + 82 * - col0 AS col1 FROM tab1 AS cor0
----
4233
7055
7553

onlyif mysql # aggregate syntax: 
query II rowsort label-2799
SELECT 53 + - COUNT( * ), + 22 * + 95 AS col0 FROM tab0
----
50
2090

skipif mysql # not compatible
query II rowsort label-2799
SELECT 53 + - COUNT ( * ), + 22 * + 95 AS col0 FROM tab0
----
50
2090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2800
SELECT - col1 * - ( 46 ) + + CAST( NULL AS SIGNED ) * col1 + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT - col1 * - ( 46 ) + + CAST ( NULL AS INTEGER ) * col1 + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT DISTINCT - col1 DIV + - 37 - - col0 + - col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT - col1 / + - 37 - - col0 + - col0 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT - 66 FROM tab0 WHERE NOT col2 + + col1 IS NULL
----
-66

query I rowsort
SELECT ALL 20 - col2 FROM tab0
----
-27
-79
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2804
SELECT DISTINCT col0 col2, - 43 DIV - CAST( - - col0 AS SIGNED ) AS col0 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2804
SELECT DISTINCT col0 col2, - 43 / - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL - MAX( DISTINCT - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - MAX ( DISTINCT - col0 ) FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT DISTINCT 48 AS col2 FROM tab1 WHERE NOT + + CAST( - col2 AS SIGNED ) IS NULL
----
48

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT 48 AS col2 FROM tab1 WHERE NOT + + CAST ( - col2 AS INTEGER ) IS NULL
----
48

query I rowsort
SELECT + col0 * - + 41 FROM tab0 AS cor0
----
-3567
-3977
-615

query II rowsort
SELECT ALL col0 AS col1, + col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2809
SELECT + COUNT( * ) AS col0, - COUNT( - col0 ) FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2809
SELECT + COUNT ( * ) AS col0, - COUNT ( - col0 ) FROM tab1 AS cor0
----
3
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE 31 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT DISTINCT + col1 DIV - ( col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT + col1 / - ( col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + 95 * - + col0 FROM tab1 cor0
----
-4845
-8075
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT - SUM( ALL + + 85 ) FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT - SUM ( ALL + + 85 ) FROM tab0 AS cor0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT - COUNT( * ) * - 74 AS col1 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-2815
SELECT - COUNT ( * ) * - 74 AS col1 FROM tab0 AS cor0
----
222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT - CAST( NULL AS SIGNED ) * + col0 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT - CAST ( NULL AS INTEGER ) * + col0 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + col0 * + - col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT - col1 * + - col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT col2 + - col2 AS col1 FROM tab2 WHERE - col2 * 43 <= + col0
----
0

query II rowsort
SELECT col2, - 22 + + + col0 AS col1 FROM tab0
----
10
65
47
-7
99
75

query I rowsort
SELECT ALL + col0 + - - 96 FROM tab1 AS cor0
----
147
181
187

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT + 74 + COUNT( * ) col2 FROM tab0 WHERE - col2 <> col2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2822
SELECT + 74 + COUNT ( * ) col2 FROM tab0 WHERE - col2 <> col2
----
77

query I rowsort
SELECT + 49 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT + col1 + - - 98 FROM tab2
----
149
165
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2825
SELECT - + 51 DIV COUNT( * ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2825
SELECT - + 51 / COUNT ( * ) FROM tab2 AS cor0
----
-17

query I rowsort
SELECT - + 55 AS col1 FROM tab0 AS cor0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT - col1 * + col1 * + 85 FROM tab2 AS cor0 WHERE NULL < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 - col0 col0 FROM tab1 AS cor0
----
11
45
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2829
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 - - col0 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2830
SELECT ALL + 17 + - - AVG ( - - CAST( NULL AS SIGNED ) ) + - MAX( ALL col0 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL + 17 + - - AVG ( - - CAST ( NULL AS INTEGER ) ) + - MAX ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 63 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
63
63
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2833
SELECT DISTINCT + COUNT( + - 94 ) AS col0, - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2833
SELECT DISTINCT + COUNT ( + - 94 ) AS col0, - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 IN ( - 12, col0, - col1, col1 / + col0, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2835
SELECT 66 - - - CAST( + col2 AS SIGNED ) * + + 71 - 48 FROM tab2
----
-1615
-2822
-4100

skipif mysql # not compatible
query I rowsort label-2835
SELECT 66 - - - CAST ( + col2 AS INTEGER ) * + + 71 - 48 FROM tab2
----
-1615
-2822
-4100

onlyif mysql # DIV for integer division: 
query I rowsort label-2836
SELECT ALL + col1 DIV - + col0 - - + 37 FROM tab1
----
37
37
37

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL + col1 / - + col0 - - + 37 FROM tab1
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2837
SELECT ALL col1 * CAST( - + col0 AS SIGNED ) AS col0 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL col1 * CAST ( - + col0 AS INTEGER ) AS col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= col0 + 81
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 > + ( + - 12 )
----

query II rowsort
SELECT col1 AS col2, ( + col2 ) * + col0 * + 68 - - ( + 55 ) - col1 - + col2 AS col0 FROM tab0
----
1
652959
21
59184
81
47867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( + 69 ) * 60 col0 FROM tab2
----
190440
264960
310500

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT ALL + col0 DIV + 88 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL + col0 / + 88 AS col2 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT - col1 DIV col1 * ( - col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2843
SELECT - col1 / col1 * ( - col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col1 * + 71 + + - 59 + - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 * + 71 + + - 59 + - - col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT ALL col2 * + - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL col2 * + - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= ( - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT ALL 84 DIV + col0 AS col1 FROM tab0 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL 84 / + col0 AS col1 FROM tab0 cor0
----
0
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2848
SELECT ALL - CAST( + CAST( 2 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - CAST ( + CAST ( 2 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT - ( col2 ) + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT - + SUM( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2850
SELECT - + SUM ( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2851
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 32 * col0 col1 FROM tab2 cor0
----
-1472
-2048
-2400

query II rowsort
SELECT DISTINCT - 8 * - + 10 AS col2, - col1 AS col1 FROM tab1
----
80
-14
80
-47
80
-5

query I rowsort
SELECT ALL + col0 + - col2 / + + 72 + 93 - ( + ( col2 ) ) FROM tab1 WHERE NOT NULL >= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2855
SELECT ALL MIN( - CAST( + - col0 AS SIGNED ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL MIN ( - CAST ( + - col0 AS INTEGER ) ) FROM tab2
----
46

query I rowsort
SELECT DISTINCT col1 * - 42 AS col1 FROM tab1
----
-1974
-210
-588

query I rowsort
SELECT + col2 + 13 AS col2 FROM tab0
----
112
23
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT COUNT( * ) + COUNT( * ) + ( 83 ) AS col1 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-2858
SELECT COUNT ( * ) + COUNT ( * ) + ( 83 ) AS col1 FROM tab0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT + col1 * + 29 * col1 FROM tab2 WHERE + col1 * col0 + + CAST( col0 AS SIGNED ) * 43 IS NOT NULL
----
130181
171941
75429

skipif mysql # not compatible
query I rowsort label-2859
SELECT + col1 * + 29 * col1 FROM tab2 WHERE + col1 * col0 + + CAST ( col0 AS INTEGER ) * 43 IS NOT NULL
----
130181
171941
75429

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT 23 + + col0 + + - col1 + - ( + 96 ) * col1 FROM tab1 AS cor0
----
-1284
-377
-4445

query I rowsort
SELECT ALL - + 81 * col0 * col1 + - col1 AS col1 FROM tab0 AS cor0
----
-148008
-7858
-98496

query I rowsort
SELECT + 74 FROM tab1 AS cor0 WHERE - 81 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2864
SELECT ALL + SUM( - CAST( 97 AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-873

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL + SUM ( - CAST ( 97 AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-873

query I rowsort
SELECT + col2 * - - col2 FROM tab0
----
100
2209
9801

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab0, tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - - col1 * + col0 + col1 FROM tab0 WHERE NOT - col1 IS NULL
----
1296
1848
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT - 21 DIV col2 + - 2 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2869
SELECT - 21 / col2 + - 2 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL + + col2 * + col2 + + 79 + 85 FROM tab0 cor0
----
2373
264
9965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 + - ( - col2 ) + - col2 col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT + COUNT( * ) + - + 74 AS col2 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2872
SELECT + COUNT ( * ) + - + 74 AS col2 FROM tab2 AS cor0
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - 90 col0 FROM tab2 AS cor0
----
-136
-154
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT COUNT( * ) + - - COUNT( * ) - + + COUNT( * ) * + - COUNT( * ) - - 19 AS col0 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-2874
SELECT COUNT ( * ) + - - COUNT ( * ) - + + COUNT ( * ) * + - COUNT ( * ) - - 19 AS col0 FROM tab0 AS cor0
----
34

query II rowsort
SELECT col1 + + + ( + - col1 ), col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL + COUNT( * ) * - + MIN( 93 ) AS col0 FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL + COUNT ( * ) * - + MIN ( 93 ) AS col0 FROM tab2
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2877
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + ( + - CAST( - ( col0 ) AS SIGNED ) ) + + col0
----

skipif mysql # not compatible
query III rowsort label-2877
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + ( + - CAST ( - ( col0 ) AS INTEGER ) ) + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT ALL COUNT( ALL - + 9 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL COUNT ( ALL - + 9 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2879
SELECT - 18 DIV 52 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2879
SELECT - 18 / 52 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2880
SELECT DISTINCT - CAST( + 97 AS SIGNED ) * 3 * + - col0 AS col1 FROM tab2 AS cor0
----
13386
18624
21825

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT - CAST ( + 97 AS INTEGER ) * 3 * + - col0 AS col1 FROM tab2 AS cor0
----
13386
18624
21825

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = + - 87 * - 60 + + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2882
SELECT ALL + - CAST( - - col0 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL + - CAST ( - - col0 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT - + col0 * + 1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - ( + 16 ) * + - 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b15d423d56103fcaf51686c067f7a50b

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2885
SELECT ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT - 43 + - COUNT( * ) AS col0 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT - 43 + - COUNT ( * ) AS col0 FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT - 84 + COUNT( * ) col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2888
SELECT - 84 + COUNT ( * ) col0 FROM tab0 cor0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2889
SELECT - CAST( + - 79 AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2889
SELECT - CAST ( + - 79 AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0
----
76

query I rowsort
SELECT DISTINCT col0 * + - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT + + 36 + - + 46 + 11 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2892
SELECT ALL - 82 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL - 82 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + 16 FROM tab1 AS cor0
----
-35
-69
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col2 / 96 * - col1 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT + COUNT( col1 ) FROM tab1 WHERE ( NOT ( + 60 + + 56 - - col2 * ( + - 77 ) IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2895
SELECT + COUNT ( col1 ) FROM tab1 WHERE ( NOT ( + 60 + + 56 - - col2 * ( + - 77 ) IS NOT NULL ) )
----
0

query I rowsort
SELECT ALL 33 * + - 68 AS col1 FROM tab2
----
-2244
-2244
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT - ( + COUNT( * ) ) * - COUNT( * ) + - MIN( DISTINCT col0 ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2897
SELECT - ( + COUNT ( * ) ) * - COUNT ( * ) + - MIN ( DISTINCT col0 ) AS col1 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT - MIN( ALL - col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2898
SELECT - MIN ( ALL - col2 ) AS col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + 65 DIV - 13 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + 65 / - 13 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL COUNT( * ) * - 46 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL COUNT ( * ) * - 46 FROM tab0
----
-138

query II rowsort
SELECT + + col0 AS col1, col1 * + col1 FROM tab2 AS cor0
----
46
2601
64
5929
75
4489

query I rowsort
SELECT ALL + col0 + + col2 + + - col1 FROM tab1 AS cor0
----
112
133
139

query I rowsort
SELECT - col0 + - col0 + - 96 FROM tab2 cor0
----
-188
-224
-246

query I rowsort
SELECT DISTINCT + col2 + - ( - col0 ) FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE + col2 * - - col0 >= 28
----
-3

skipif mysql # not compatible
query I rowsort label-2905
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 * - - col0 >= 28
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2906
SELECT COUNT( * ) + SUM( - + 38 ), + 7 AS col1 FROM tab2
----
-111
7

skipif mysql # not compatible
query II rowsort label-2906
SELECT COUNT ( * ) + SUM ( - + 38 ), + 7 AS col1 FROM tab2
----
-111
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT MIN( - col0 ) + + - SUM( DISTINCT - col2 ) AS col1 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-2907
SELECT MIN ( - col0 ) + + - SUM ( DISTINCT - col2 ) AS col1 FROM tab1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT COUNT( * ) * - + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2908
SELECT COUNT ( * ) * - + COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT col2 > NULL
----

query II rowsort
SELECT DISTINCT - 77 + - col1 AS col1, ( + - 24 ) AS col1 FROM tab1 AS cor0
----
-124
-24
-82
-24
-91
-24

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= + ( + col0 ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2912
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + ( 95 ) FROM tab2
----
95
95
95

query II rowsort
SELECT + 51 AS col0, col0 AS col2 FROM tab1
----
51
51
51
85
51
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col0 FROM tab1
----
33

query I rowsort
SELECT - col0 * 98 FROM tab2 WHERE NOT + col0 IS NULL
----
-4508
-6272
-7350

query I rowsort
SELECT col2 * + + 15 AS col1 FROM tab2
----
345
600
870

query I rowsort
SELECT + 70 * - - col0 * - col1 FROM tab1
----
-29750
-299390
-49980

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT - SUM( + - col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
121

skipif mysql # not compatible
query I rowsort label-2919
SELECT - SUM ( + - col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
121

query II rowsort
SELECT ALL + col0 AS col0, col0 + + col0 FROM tab0 WHERE 15 * col1 = col2
----

query II rowsort
SELECT ALL - col1 AS col1, col2 FROM tab2
----
-51
23
-67
58
-77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, col1 - + - 21 FROM tab1
----
51
35
85
26
91
68

query I rowsort
SELECT col1 * + - 19 FROM tab0
----
-1539
-19
-399

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2924
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - + 50 * - col0 NOT BETWEEN + col1 AND + CAST( NULL AS SIGNED ) * - CAST( - - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2924
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - + 50 * - col0 NOT BETWEEN + col1 AND + CAST ( NULL AS INTEGER ) * - CAST ( - - col1 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = - ( 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT MAX( ALL col1 ) * + SUM( ( col2 ) ) FROM tab0 cor0
----
12636

skipif mysql # not compatible
query I rowsort label-2926
SELECT MAX ( ALL col1 ) * + SUM ( ( col2 ) ) FROM tab0 cor0
----
12636

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT + MIN( 11 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
11

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT + MIN ( 11 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT DISTINCT - COUNT( col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT - COUNT ( col1 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL 28 + + 88 * + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-37372
-376348
-62804

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL - MIN( + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL - MIN ( + col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT + 18 + + + COUNT( * ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2933
SELECT + 18 + + + COUNT ( * ) FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT DISTINCT - 55 * - + COUNT( + 25 ) * - ( + COUNT( * ) ) + 74 AS col0 FROM tab2 AS cor0
----
-421

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT - 55 * - + COUNT ( + 25 ) * - ( + COUNT ( * ) ) + 74 AS col0 FROM tab2 AS cor0
----
-421

query II rowsort
SELECT ALL ( - col2 ) AS col0, + 26 AS col0 FROM tab0 AS cor0
----
-10
26
-47
26
-99
26

query I rowsort
SELECT - 42 + col0 FROM tab1
----
43
49
9

query I rowsort
SELECT col1 * + 59 + + col0 AS col1 FROM tab2
----
3055
4028
4607

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab0 WHERE NOT NULL > - + 66
----

query I rowsort
SELECT ALL - ( - 2 ) FROM tab2
----
2
2
2

query II rowsort
SELECT col1 * - col2 + + 35 AS col1, 22 FROM tab2
----
-1138
22
-3045
22
-3851
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT - MAX( DISTINCT + - 3 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2941
SELECT - MAX ( DISTINCT + - 3 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 * col0 - - 36 AS col0 FROM tab2 AS cor0
----
2382
4964
5061

query I rowsort
SELECT ALL + + col1 - 11 AS col0 FROM tab2 AS cor0
----
40
56
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT DISTINCT + 9 * + SUM( DISTINCT - 69 ) FROM tab2
----
-621

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT + 9 * + SUM ( DISTINCT - 69 ) FROM tab2
----
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( 90 IS NOT NULL ) OR NOT ( NOT + 10 IS NOT NULL )
----
9

skipif mysql # not compatible
query I rowsort label-2945
SELECT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( 90 IS NOT NULL ) OR NOT ( NOT + 10 IS NOT NULL )
----
9

query I rowsort
SELECT - col0 + - + ( - col2 ) AS col0 FROM tab0
----
-77
2
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - 64
----
85
5
59

query I rowsort
SELECT col1 * + - 23 AS col2 FROM tab0 AS cor0
----
-1863
-23
-483

onlyif mysql # DIV for integer division: 
query I rowsort label-2949
SELECT + col1 DIV col2 DIV - - 50 * - 25 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2949
SELECT + col1 / col2 / - - 50 * - 25 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT DISTINCT - - col0 DIV - col1 col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2950
SELECT DISTINCT - - col0 / - col1 col1 FROM tab2 AS cor0
----
-1
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND - + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2952
SELECT - MAX( ( + 16 ) ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2952
SELECT - MAX ( ( + 16 ) ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2953
SELECT ALL ( + 51 ) DIV + col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL ( + 51 ) / + col0 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 26 ) * col0 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT - 41 - + COUNT( * ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
-41

skipif mysql # not compatible
query I rowsort label-2955
SELECT - 41 - + COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2956
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 76 ) * col0 / ( + 87 ) * - 74 / + col2 + + col1 + - col0 + - + col2 * + col1 / col0 * - + col1 NOT BETWEEN - col0 + - CAST( NULL AS SIGNED ) AND col1 + - col0
----

skipif mysql # not compatible
query III rowsort label-2956
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 76 ) * col0 / ( + 87 ) * - 74 / + col2 + + col1 + - col0 + - + col2 * + col1 / col0 * - + col1 NOT BETWEEN - col0 + - CAST ( NULL AS INTEGER ) AND col1 + - col0
----

query I rowsort
SELECT ALL ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT - CAST( - 6 AS SIGNED ) col1 FROM tab2 AS cor0
----
6
6
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2958
SELECT - CAST ( - 6 AS INTEGER ) col1 FROM tab2 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT ALL COUNT( ALL - ( - col2 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL COUNT ( ALL - ( - col2 ) ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * 87 col0, - col0 AS col1 FROM tab1
----
-5133
-85
-5916
-91
-8352
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT DISTINCT - ( - col0 ) * - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT - ( - col0 ) * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT 82 * - 69 FROM tab2, tab2 AS cor0
----
9 values hashing to 650cd89dc97c9c82f72a239e5438ec03

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 3 - col1 NOT BETWEEN 95 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT DISTINCT + 26 DIV - ( col1 ) FROM tab0 AS cor0
----
-1
-26
0

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT + 26 / - ( col1 ) FROM tab0 AS cor0
----
-1
-26
0

query I rowsort
SELECT - + 39 AS col1 FROM tab2 WHERE NOT + col1 / - col1 IS NULL
----
-39
-39
-39

query I rowsort
SELECT - 6 + - + col2 FROM tab1
----
-102
-65
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT DISTINCT + COUNT( - col1 ) + 66 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT + COUNT ( - col1 ) + 66 FROM tab2 AS cor0
----
69

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 * col1 IS NULL
----

query I rowsort
SELECT + 24 + - col2 AS col1 FROM tab0 AS cor0
----
-23
-75
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2971
SELECT ( - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT ( - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT DISTINCT MAX( col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT MAX ( col0 ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT + AVG ( - 18 ) AS col2 FROM tab2 AS cor0 WHERE NOT 51 < + col2 * + col2 + + + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT 23 - COUNT( * ) AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-2974
SELECT 23 - COUNT ( * ) AS col0 FROM tab2
----
20

query I rowsort
SELECT + col0 + 38 * col1 + - - col0 AS col2 FROM tab2 AS cor0
----
2030
2696
3054

query I rowsort
SELECT DISTINCT + col0 - - 70 * - + col2 FROM tab0 AS cor0
----
-3275
-613
-6833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2977
SELECT ALL COUNT( * ) - + CAST( NULL AS SIGNED ) / + - 43 + SUM( + col0 ) + - + COUNT( ALL col2 ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2977
SELECT ALL COUNT ( * ) - + CAST ( NULL AS INTEGER ) / + - 43 + SUM ( + col0 ) + - + COUNT ( ALL col2 ) col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 49 * - 53 AS col2 FROM tab1
----
2597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col2 col0 FROM tab1 WHERE NOT - col1 >= NULL
----

query I rowsort
SELECT 40 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT DISTINCT + COUNT( * ) * + 87 AS col1 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT + COUNT ( * ) * + 87 AS col1 FROM tab2 AS cor0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT DISTINCT + - MIN( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT + - MIN ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT ALL + col0 AS col2, col0 FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT MAX( 90 ) * - 41 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-3690

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2984
SELECT MAX ( 90 ) * - 41 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-3690

query I rowsort
SELECT ALL + + ( - - col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + SUM( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2986
SELECT + SUM ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT - SUM( ALL + + col1 ) AS col1 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2987
SELECT - SUM ( ALL + + col1 ) AS col1 FROM tab2 cor0
----
-195

query I rowsort
SELECT ALL ( + col1 ) * + col0 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2989
SELECT - col2, + CAST( NULL AS SIGNED ) + + - 28 + + ( + col0 ) col0 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2989
SELECT - col2, + CAST ( NULL AS INTEGER ) + + - 28 + + ( + col0 ) col0 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query II rowsort
SELECT col0 AS col2, + 90 - + 2 + + col2 AS col0 FROM tab0
----
15
135
87
98
97
187

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 > - 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 36, col1 FROM tab1
----
36
14
36
47
36
5

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 = + + col1 / - + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2994
SELECT ALL - COUNT( + col2 ) col0, - COUNT( * ) FROM tab1
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2994
SELECT ALL - COUNT ( + col2 ) col0, - COUNT ( * ) FROM tab1
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL ( + - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL ( + - COUNT ( * ) ) FROM tab0
----
-3

query II rowsort
SELECT col0, + col1 * - + ( + + col2 ) FROM tab2
----
46
-1173
64
-3080
75
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL + 10 + - + COUNT( * ) AS col0 FROM tab0 cor0 WHERE ( NOT + col2 BETWEEN NULL AND col0 + - ( + 85 ) )
----
7

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + 10 + - + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE ( NOT + col2 BETWEEN NULL AND col0 + - ( + 85 ) )
----
7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2999
SELECT ALL - ( - 83 ) AS col0, - MAX( + + col1 ) FROM tab1 AS cor0
----
83
-47

skipif mysql # not compatible
query II rowsort label-2999
SELECT ALL - ( - 83 ) AS col0, - MAX ( + + col1 ) FROM tab1 AS cor0
----
83
-47

query I rowsort
SELECT ALL 65 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL + col2 * - 63 * col2 + col1 FROM tab2
----
-100723
-211865
-33276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col2 FROM tab0 AS cor0 WHERE 57 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT 61 + + - ( - 4 ) + + col0 FROM tab0 AS cor0
----
152
162
80

query II rowsort
SELECT + col2 + - + col0 AS col1, - ( + 49 ) FROM tab1 AS cor0
----
-23
-49
-26
-49
45
-49

query I rowsort
SELECT ALL 73 + + + col0 + - - ( - 97 ) AS col0 FROM tab2 AS cor0
----
22
40
51

query I rowsort
SELECT + 50 + + - col1 + 47 FROM tab0 cor0
----
16
76
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3007
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * + CAST( NULL AS DECIMAL ) + + + col0 = + ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-3007
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * + CAST ( NULL AS REAL ) + + + col0 = + ( + col2 )
----

query I rowsort
SELECT 88 + - - 98 + + - col2 FROM tab0
----
139
176
87

query I rowsort
SELECT 5 + + col0 * + col1 + col1 FROM tab1
----
4329
435
733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT col1 + + CAST( - - col1 AS SIGNED ) - col2 FROM tab0
----
-97
115
32

skipif mysql # not compatible
query I rowsort label-3010
SELECT col1 + + CAST ( - - col1 AS INTEGER ) - col2 FROM tab0
----
-97
115
32

query I rowsort
SELECT ALL ( - 85 ) FROM tab2 WHERE col0 + - + col0 >= - col0
----
-85
-85
-85

query I rowsort
SELECT - - 61 - 28 AS col0 FROM tab1 cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ALL - + SUM( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL - + SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
223

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN col0 AND 38 + - 73
----

query I rowsort
SELECT DISTINCT - 30 - 12 AS col2 FROM tab1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3016
SELECT * FROM tab0 WHERE col1 IN ( + col1 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3016
SELECT * FROM tab0 WHERE col1 IN ( + col1 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 + 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT DISTINCT 92 * - 72 + - 21 * COUNT( * ) FROM tab1
----
-6687

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT 92 * - 72 + - 21 * COUNT ( * ) FROM tab1
----
-6687

query I rowsort
SELECT ALL col2 + - col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 16 >= ( col2 * - 0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE 17 * - 50 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 68 + + col0 * + 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL MIN( col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL MIN ( col0 ) AS col0 FROM tab0
----
15

query I rowsort
SELECT 57 AS col0 FROM tab0 WHERE ( + ( + 90 ) ) * col0 - + 66 = 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL - COUNT( * ) * 50 + + COUNT( * ) AS col0 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL - COUNT ( * ) * 50 + + COUNT ( * ) AS col0 FROM tab2
----
-147

query I rowsort
SELECT ALL 59 - 46 AS col1 FROM tab2
----
13
13
13

query I rowsort
SELECT ALL 97 FROM tab2 WHERE NULL <= ( - ( + 25 ) / - col2 )
----

query I rowsort
SELECT + col1 + + 62 AS col1 FROM tab2
----
113
129
139

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 + col2 ) BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 10 * + 39 NOT BETWEEN + col0 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( col2 ) + - col0 AS col0 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3034
SELECT ALL 99 * + CAST( 59 AS SIGNED ) + + COUNT( * ) AS col1 FROM tab2
----
5844

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL 99 * + CAST ( 59 AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab2
----
5844

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( 37 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 37 < ( col2 )
----
46
51
23

query I rowsort
SELECT + 8 * + 86 FROM tab1 AS cor0
----
688
688
688

query I rowsort
SELECT DISTINCT 11 * + col0 AS col1 FROM tab0
----
1067
165
957

query I rowsort
SELECT + col1 + - 61 AS col1 FROM tab2
----
-10
16
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 46
----

query I rowsort
SELECT DISTINCT 72 + 41 FROM tab0 AS cor0 CROSS JOIN tab2
----
113

query I rowsort
SELECT DISTINCT - + col0 + ( col1 + col0 ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3043
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) - ( - 88 ) FROM tab2 AS cor0 WHERE col0 + + col2 / + 43 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3043
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) - ( - 88 ) FROM tab2 AS cor0 WHERE col0 + + col2 / + 43 IS NULL
----
NULL

query I rowsort
SELECT + ( - 54 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT + SUM( - col2 ) col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3045
SELECT + SUM ( - col2 ) col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL + 89 * col0 + - col1 * 56 AS col1 FROM tab1 AS cor0
----
3755
5467
7285

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT DISTINCT + COUNT( DISTINCT + 72 ) + COUNT( * ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT + COUNT ( DISTINCT + 72 ) + COUNT ( * ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT - 29 - + 50 AS col2 FROM tab1 cor0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT DISTINCT + ( - - col2 ) + ( + col1 ) DIV col1 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT + ( - - col2 ) + ( + col1 ) / col1 FROM tab1
----
60
69
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3050
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3050
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT DISTINCT - COUNT( - col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT - COUNT ( - col2 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL 32 - + + COUNT( * ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL 32 - + + COUNT ( * ) FROM tab0
----
29

query I rowsort
SELECT + col2 - + col1 * col2 AS col2 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT - 7 * + 16 * col0 - + col1 * col0 FROM tab0
----
-10961
-11571
-2895

query I rowsort
SELECT ( - col2 ) * - col0 - col1 FROM tab2
----
1007
2483
4283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT col2 - + CAST( + 16 AS SIGNED ) * + 78 AS col0 FROM tab1
----
-1152
-1180
-1189

skipif mysql # not compatible
query I rowsort label-3056
SELECT col2 - + CAST ( + 16 AS INTEGER ) * + 78 AS col0 FROM tab1
----
-1152
-1180
-1189

query I rowsort
SELECT DISTINCT AVG ( ( - col2 ) ) AS col2 FROM tab2 WHERE - 79 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT COUNT( * ) + SUM( ALL col2 ) * 57 FROM tab0
----
8895

skipif mysql # not compatible
query I rowsort label-3058
SELECT COUNT ( * ) + SUM ( ALL col2 ) * 57 FROM tab0
----
8895

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3059
SELECT + CAST( - col0 AS SIGNED ) * col1 + + col1 DIV - 48 AS col0 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-3059
SELECT + CAST ( - col0 AS INTEGER ) * col1 + + col1 / - 48 AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE col0 - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE col0 - - col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 73 col1 FROM tab0 AS cor0
----
-73

query I rowsort
SELECT - + 53 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

query I rowsort
SELECT + 7 * - 49 FROM tab0, tab0 AS cor0
----
9 values hashing to 4ef49f2af10d581f877a16ad8cb04053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3066
SELECT - 9 DIV - COUNT( col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT 94 < - col2 DIV + col2
----
3

skipif mysql # not compatible
query I rowsort label-3066
SELECT - 9 / - COUNT ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT 94 < - col2 / + col2
----
3

query I rowsort
SELECT col2 * 15 - - 18 AS col0 FROM tab0 AS cor0
----
1503
168
723

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - 89 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - 89 ) IS NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT - 43 DIV - + 51 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3070
SELECT - 43 / - + 51 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 >= col1 OR - 31 / - 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + col1 * + - 30 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + col1 * + - 30 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT ALL 14 * + 74 * + - 39 * COUNT( + 73 ) AS col0 FROM tab1 AS cor0
----
-121212

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL 14 * + 74 * + - 39 * COUNT ( + 73 ) AS col0 FROM tab1 AS cor0
----
-121212

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3074
SELECT DISTINCT - + 67 * CAST( NULL AS DECIMAL ) * - 96 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT - + 67 * CAST ( NULL AS REAL ) * - 96 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 73 >= - + 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT - MAX( ALL 55 ) AS col0 FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN - 97 - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT - MAX ( ALL 55 ) AS col0 FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN - 97 - col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3077
SELECT ALL + + 70 * + CAST( ( COUNT( * ) ) AS SIGNED ) * MIN( ALL - 85 DIV + col2 ) AS col0 FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL + + 70 * + CAST ( ( COUNT ( * ) ) AS INTEGER ) * MIN ( ALL - 85 / + col2 ) AS col0 FROM tab1 AS cor0
----
-210

query I rowsort
SELECT DISTINCT 5 * ( col0 ) AS col1 FROM tab0
----
435
485
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3080
SELECT + COUNT( * ) DIV + + 6 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3080
SELECT + COUNT ( * ) / + + 6 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT SUM( ALL 78 ) col0 FROM tab0 WHERE NOT - + 53 * - + 77 IN ( 0 * ( 0 ) + col1 )
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3081
SELECT SUM ( ALL 78 ) col0 FROM tab0 WHERE NOT - + 53 * - + 77 IN ( 0 * ( 0 ) + col1 )
----
234

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - - 29 ) AND ( NULL )
----

query I rowsort
SELECT - ( 41 ) + col0 * + ( col2 ) AS col2 FROM tab1
----
4855
4974
6147

query I rowsort
SELECT DISTINCT 89 * - col1 + 60 AS col1 FROM tab2
----
-4479
-5903
-6793

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 - - col1 < col2 * - 74
----

query II rowsort
SELECT - + 80 + col2 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
-12
68
-21
59
16
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - 95 ) * col0 * - col1 ) <= col0 * col1
----

query I rowsort
SELECT + + 26 * + col1 + + - ( - 72 ) AS col1 FROM tab2 AS cor0
----
1398
1814
2074

query I rowsort
SELECT 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 50 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3090
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-3090
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3091
SELECT ALL CAST( - + 21 AS SIGNED ) + + 67, + col1 AS col1 FROM tab0 cor0
----
46
1
46
21
46
81

skipif mysql # not compatible
query II rowsort label-3091
SELECT ALL CAST ( - + 21 AS INTEGER ) + + 67, + col1 AS col1 FROM tab0 cor0
----
46
1
46
21
46
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT DISTINCT MAX( - 44 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NULL IS NULL
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3092
SELECT DISTINCT MAX ( - 44 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NULL IS NULL
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - 80 + col2, + 35 col0 FROM tab2 AS cor0
----
-3657
35
-5080
35
-5942
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL + SUM( ALL - 28 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + + 24 + + col2 ) IS NOT NULL AND NOT 16 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL + SUM ( ALL - 28 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + + 24 + + col2 ) IS NOT NULL AND NOT 16 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT DISTINCT + CAST( - 81 AS SIGNED ) - + - col1 FROM tab1 AS cor0
----
-34
-67
-76

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT + CAST ( - 81 AS INTEGER ) - + - col1 FROM tab1 AS cor0
----
-34
-67
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT col0 + + col0 + 55 * + + 25 - + col0 DIV + + col2 + + col0 * - col1 AS col0 FROM tab1
----
-2721
1119
763

skipif mysql # not compatible
query I rowsort label-3096
SELECT col0 + + col0 + 55 * + + 25 - + col0 / + + col2 + + col0 * - col1 AS col0 FROM tab1
----
-2721
1119
763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3097
SELECT ALL + ( - + col1 ) * - col0 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + ( - + col1 ) * - col0 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( 41 ) + col2 FROM tab2
----
64
81
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL + 22 - COUNT( * ) col1 FROM tab2
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3099
SELECT ALL + 22 - COUNT ( * ) col1 FROM tab2
----
19

query I rowsort
SELECT + col0 * - + col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3101
SELECT ALL CAST( NULL AS SIGNED ), COUNT( * ) DIV - 42 col0 FROM tab0
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3101
SELECT ALL CAST ( NULL AS INTEGER ), COUNT ( * ) / - 42 col0 FROM tab0
----
NULL
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT + col2 / + CAST( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT + col2 / + CAST ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT + ( - - col2 ) DIV + + col1 AS col2 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-3104
SELECT + ( - - col2 ) / + + col1 AS col2 FROM tab1 AS cor0
----
1
11
6

query I rowsort
SELECT 95 * + col0 FROM tab2 WHERE NOT NULL IN ( + 53 * + 30 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT ALL - MAX( + col0 ) FROM tab2 AS cor0 WHERE NOT + 2 * - - col0 * + 16 + - 87 = + 97 - + col2
----
-75

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL - MAX ( + col0 ) FROM tab2 AS cor0 WHERE NOT + 2 * - - col0 * + 16 + - 87 = + 97 - + col2
----
-75

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NOT 19 - 69 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT ALL - 98 * + - COUNT( * ) FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL - 98 * + - COUNT ( * ) FROM tab2 AS cor0
----
294

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= col1 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT DISTINCT - COUNT( - + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT - COUNT ( - + col1 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col1, 7 ) OR NOT + - col2 BETWEEN NULL AND + - col1
----
15
81
47
87
21
10

query I rowsort
SELECT + + col2 + + + col1 AS col1 FROM tab1 WHERE + + col0 + + 72 IS NOT NULL
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3114
SELECT DISTINCT + col0 AS col1, - CAST( + 54 AS SIGNED ) FROM tab2
----
46
-54
64
-54
75
-54

skipif mysql # not compatible
query II rowsort label-3114
SELECT DISTINCT + col0 AS col1, - CAST ( + 54 AS INTEGER ) FROM tab2
----
46
-54
64
-54
75
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT - MIN( + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3115
SELECT - MIN ( + col1 ) FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL COUNT( DISTINCT - - 26 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL COUNT ( DISTINCT - - 26 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT DISTINCT + ( - col0 ) * - 79 + col0 AS col1 FROM tab1 WHERE + col0 + - CAST( NULL AS SIGNED ) IS NULL
----
4080
6800
7280

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT + ( - col0 ) * - 79 + col0 AS col1 FROM tab1 WHERE + col0 + - CAST ( NULL AS INTEGER ) IS NULL
----
4080
6800
7280

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT COUNT( ALL + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3118
SELECT COUNT ( ALL + col1 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT 56 + - col2 * + ( 16 ) * + col2 FROM tab2 AS cor0
----
-25544
-53768
-8408

query III rowsort
SELECT * FROM tab0 WHERE - + 65 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL 47 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT + - 92 * - 91 FROM tab0 AS cor0
----
8372
8372
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT + ( + - COUNT( * ) ) * + - 90 AS col2 FROM tab2 cor0
----
270

skipif mysql # not compatible
query I rowsort label-3124
SELECT + ( + - COUNT ( * ) ) * + - 90 AS col2 FROM tab2 cor0
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT DISTINCT + - 36 + 91 + + 70 DIV + col0 AS col0 FROM tab1 AS cor0
----
55
56

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT + - 36 + 91 + + 70 / + col0 AS col0 FROM tab1 AS cor0
----
55
56

query I rowsort
SELECT DISTINCT - 45 * - 30 + + - col0 + + - 28 FROM tab2 AS cor0
----
1247
1258
1276

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 * + + col1 AND ( 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT DISTINCT + col2 * col2 - + - CAST( NULL AS SIGNED ) * + col1 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3128
SELECT DISTINCT + col2 * col2 - + - CAST ( NULL AS INTEGER ) * + col1 col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 - + - col1 + - 68 AS col0 FROM tab1 AS cor0
----
-4
42
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 66 * 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3131
SELECT col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query II rowsort
SELECT + col1 * - + col0 * - col1 * + col1 - + - 11 + + + col2 * + col2 AS col1, col0 AS col1 FROM tab0 cor0
----
7973835
15
805818
87
9909
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 ) NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0, col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( 37 ) * + + 20 FROM tab1
----
740
740
740

query III rowsort
SELECT ALL + col0 AS col0, - col1 + + + col0 AS col2, - - 69 AS col1 FROM tab2
----
9 values hashing to db027841966c65e641248667e11b4665

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 WHERE + 44 / - col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + 38 * - - col1 AS col1 FROM tab1
----
1786
190
532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3139
SELECT ALL + col0 * 56 * + CAST( col1 AS SIGNED ) FROM tab0
----
102312
5432
68040

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL + col0 * 56 * + CAST ( col1 AS INTEGER ) FROM tab0
----
102312
5432
68040

query I rowsort
SELECT ( - - col0 ) AS col2 FROM tab0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 15 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 - col0 )
----

query II rowsort
SELECT - col2, - col2 * - col2 * col2 AS col0 FROM tab1
----
-59
205379
-68
314432
-96
884736

query I rowsort
SELECT ALL - 33 FROM tab0 WHERE ( NULL ) = + 61
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT col0 DIV - 24 col1 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3145
SELECT col0 / - 24 col1 FROM tab2
----
-1
-2
-3

query II rowsort
SELECT DISTINCT col1 AS col1, 44 * + col0 + + col2 * - col0 FROM tab1
----
14
-2652
47
-2184
5
-1275

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3147
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + CAST( - col0 AS SIGNED ) ) BETWEEN NULL AND - - 20
----

skipif mysql # not compatible
query III rowsort label-3147
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + CAST ( - col0 AS INTEGER ) ) BETWEEN NULL AND - - 20
----

query I rowsort
SELECT ALL - + 2 + 87 AS col0 FROM tab2 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3149
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2, col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT DISTINCT - ( + + COUNT( * ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-3

query II rowsort
SELECT + 34 AS col0, + ( + col2 ) AS col0 FROM tab0 AS cor0
----
34
10
34
47
34
99

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col2 col1 FROM tab2 AS cor0
----
1600
3364
529

query II rowsort
SELECT DISTINCT col0, + 20 FROM tab0 AS cor0
----
15
20
87
20
97
20

query I rowsort
SELECT 84 * - 38 + 19 FROM tab1
----
-3173
-3173
-3173

onlyif mysql # DIV for integer division: 
query I rowsort label-3156
SELECT - 0 DIV + col1 + col0 * col1 * + 61 AS col0 FROM tab0
----
111447
5917
74115

skipif mysql # not compatible
query I rowsort label-3156
SELECT - 0 / + col1 + col0 * col1 * + 61 AS col0 FROM tab0
----
111447
5917
74115

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NULL IS NULL OR NOT NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT col2 + + col2 + - + 1 * - col1 AS col2 FROM tab1
----
123
183
206

query II rowsort
SELECT ALL col0 + - col0 AS col1, - col0 + 51 * + col2 * + col2 FROM tab0 AS cor0
----
0
112644
0
499754
0
5013

query I rowsort
SELECT + col1 * - 53 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2703
-3551
-4081

query I rowsort
SELECT + 90 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT + - col0 + + + col0 * + 83 FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND 68 * + - 23 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT DISTINCT 91 * COUNT( * ) + + 43 AS col1 FROM tab2 AS cor0
----
316

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT 91 * COUNT ( * ) + + 43 AS col1 FROM tab2 AS cor0
----
316

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL + - MAX( + col1 ) + - 8 AS col2 FROM tab1 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL + - MAX ( + col1 ) + - 8 AS col2 FROM tab1 cor0
----
-55

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT - MAX( - ( 93 ) ) col1 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3166
SELECT - MAX ( - ( 93 ) ) col1 FROM tab0 AS cor0
----
93

query II rowsort
SELECT - + col2 AS col2, - col1 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL + MIN( + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL + MIN ( + col2 ) AS col1 FROM tab2 AS cor0
----
23

query II rowsort
SELECT ALL 49 * - 91 AS col1, ( - - col2 ) AS col1 FROM tab0
----
-4459
10
-4459
47
-4459
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT DISTINCT ( + + COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT ( + + COUNT ( * ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL 15 * col0 AS col2 FROM tab0
----
1305
1455
225

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 22 NOT IN ( + + col2, col2 + - col0, col0, col1 * ( + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab2 WHERE NOT - col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT - col0 >= NULL
----
0

query I rowsort
SELECT ALL + 77 * ( + + col1 ) AS col2 FROM tab0
----
1617
6237
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * col2, col2 col1 FROM tab2
----
1058
23
2560
40
4350
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT DISTINCT col1 DIV + + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT col1 / + + col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3177
SELECT DISTINCT 50 * - COUNT( * ) AS col2, - 56 FROM tab0
----
-150
-56

skipif mysql # not compatible
query II rowsort label-3177
SELECT DISTINCT 50 * - COUNT ( * ) AS col2, - 56 FROM tab0
----
-150
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + 91 FROM tab2 AS cor0 WHERE NOT - col1 - 65 IS NULL
----
91
91
91

query II rowsort
SELECT - col2 + + 17, 33 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-30
33
-82
33
7
33

query I rowsort
SELECT ALL + - 12 * - col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - 50 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT 66 + - COUNT( * ) * 55 * + + 6 + 13 + + ( COUNT( * ) ) FROM tab2 AS cor0
----
-908

skipif mysql # not compatible
query I rowsort label-3183
SELECT 66 + - COUNT ( * ) * 55 * + + 6 + 13 + + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-908

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL COUNT( + 98 ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL COUNT ( + 98 ) + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT + - col0 + + + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT - col2 * - 53 + + 49 * - + ( + 23 ) + col0, 54 AS col2 FROM tab2 AS cor0
----
1057
54
138
54
2022
54

query I rowsort
SELECT - col1 * + + col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + + MIN( - + col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3189
SELECT + + MIN ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 30, + ( - ( + col2 ) ) * - col2 + - 67 + + + 50 - + - 65 col1 FROM tab0 AS cor0
----
-30
148
-30
2257
-30
9849

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT COUNT( ALL - + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT COUNT ( ALL - + col0 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = + + col0 + + 96
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, 25 * + 61 FROM tab0
----
10
1525
47
1525
99
1525

query II rowsort
SELECT ALL - col0, col1 AS col2 FROM tab2
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL + col2 * col2 FROM tab1 WHERE + col2 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3197
SELECT ALL MAX( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - 99 AS col2, + 10 FROM tab1
----
-99
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT DISTINCT - 76 DIV + + col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT - 76 / + + col0 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT + 37 + + col0 AS col0 FROM tab2
----
101
112
83

query I rowsort
SELECT ALL + + 81 + + col2 * col1 FROM tab1 AS cor0
----
1425
3277
376

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT ALL - - COUNT( * ) * COUNT( * ) - + COUNT( DISTINCT + - col2 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL - - COUNT ( * ) * COUNT ( * ) - + COUNT ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - + ( col0 ) NOT IN ( + - col0, col1, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT - + ( COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3204
SELECT - + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT DISTINCT col0 + - 91 + - + 94 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 <> ( - 83 * - + CAST( NULL AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT col0 + - 91 + - + 94 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 <> ( - 83 * - + CAST ( NULL AS INTEGER ) * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + col0 * - col0 + - 99 + + col2 - + - col1 / + col2 IS NOT NULL
----

query I rowsort
SELECT + 49 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT - 15 * + - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 >= - 91
----
0

skipif mysql # not compatible
query I rowsort label-3208
SELECT - 15 * + - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 >= - 91
----
0

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3210
SELECT COUNT( ALL - 79 ) AS col0 FROM tab2 WHERE NOT - + 94 * 54 + ( - CAST( NULL AS SIGNED ) ) NOT BETWEEN + col2 - - + col0 AND + 73
----
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT COUNT ( ALL - 79 ) AS col0 FROM tab2 WHERE NOT - + 94 * 54 + ( - CAST ( NULL AS INTEGER ) ) NOT BETWEEN + col2 - - + col0 AND + 73
----
0

query I rowsort
SELECT - - 22 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3212
SELECT col2 * + CAST( NULL AS SIGNED ) * col2 * + - 13 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT col2 * + CAST ( NULL AS INTEGER ) * col2 * + - 13 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT ALL col2 DIV + - col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL col2 / + - col1 FROM tab1
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT 30 * - - COUNT( * ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT 30 * - - COUNT ( * ) FROM tab1
----
90

query II rowsort
SELECT DISTINCT - 20, 96 AS col0 FROM tab2
----
-20
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + COUNT( ALL 27 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3216
SELECT + COUNT ( ALL 27 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT ALL + col2, - col1 AS col0 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT ALL CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL + - MAX( + 67 ) FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL + - MAX ( + 67 ) FROM tab0 AS cor0
----
-67

query I rowsort
SELECT DISTINCT + ( - 55 ) * + ( + 6 ) * + col1 + col1 AS col0 FROM tab0 AS cor0
----
-26649
-329
-6909

query I rowsort
SELECT - col1 * - - col1 AS col1 FROM tab0 cor0
----
-1
-441
-6561

query I rowsort
SELECT - col0 * + ( - ( - - ( + col0 ) ) ) AS col1 FROM tab0
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-3223
SELECT DISTINCT + col0 * - col0 + + col0 + + + col1 - + 8 DIV col1 + + - 21 AS col2 FROM tab1
----
-2557
-7157
-8164

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + col0 * - col0 + + col0 + + + col1 - + 8 / col1 + + - 21 AS col2 FROM tab1
----
-2557
-7157
-8164

query I rowsort
SELECT - 30 * + + 66 FROM tab1
----
-1980
-1980
-1980

query I rowsort
SELECT DISTINCT - - col1 * col2 - col2 + + ( + col0 ) + col1 + col0 * 54 FROM tab2 AS cor0
----
3731
6637
8020

query I rowsort
SELECT - col0 + + col2 + + col2 AS col2 FROM tab2 cor0
----
0
16
41

query I rowsort
SELECT - - col0 * - col1 + + 86 FROM tab2 AS cor0
----
-2260
-4842
-4939

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT + col0 + ( - + 39 ) FROM tab0 AS cor0
----
-24
48
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT + AVG ( - + 23 ) * + COUNT( * ) + + SUM( - 93 ) * COUNT( * ) + + 22 + + 4 AS col2 FROM tab2 AS cor0 WHERE + ( - - col1 ) * col1 <= col0 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT + AVG ( - + 23 ) * + COUNT ( * ) + + SUM ( - 93 ) * COUNT ( * ) + + 22 + + 4 AS col2 FROM tab2 AS cor0 WHERE + ( - - col1 ) * col1 <= col0 + + col2
----
NULL

query II rowsort
SELECT + col0 + col0 AS col0, col0 AS col2 FROM tab2 AS cor0
----
128
64
150
75
92
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3232
SELECT CAST( - col2 AS SIGNED ) + + - 78 + + - ( - + col1 ) FROM tab1
----
-132
-160
-99

skipif mysql # not compatible
query I rowsort label-3232
SELECT CAST ( - col2 AS INTEGER ) + + - 78 + + - ( - + col1 ) FROM tab1
----
-132
-160
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT SUM( DISTINCT col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT SUM ( DISTINCT col0 ) AS col1 FROM tab0
----
199

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col1 + 93 AND - 65
----

query I rowsort
SELECT col1 + 65 AS col1 FROM tab2
----
116
132
142

query I rowsort
SELECT ALL 17 * - - col2 FROM tab0
----
1683
170
799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3237
SELECT + 81 DIV + SUM( - col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3237
SELECT + 81 / + SUM ( - col2 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3238
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3238
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT + - CAST( - col1 AS SIGNED ) - + col2 * - col1 AS col1 FROM tab0 AS cor0
----
100
231
3888

skipif mysql # not compatible
query I rowsort label-3239
SELECT + - CAST ( - col1 AS INTEGER ) - + col2 * - col1 AS col1 FROM tab0 AS cor0
----
100
231
3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3240
SELECT ( - CAST( NULL AS SIGNED ) ) - - 81 / + 41 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-3240
SELECT ( - CAST ( NULL AS INTEGER ) ) - - 81 / + 41 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3241
SELECT DISTINCT + 44 AS col2 FROM tab0 WHERE ( NULL IN ( col1 * - ( - 87 ) * - 94, - 72, CAST( NULL AS SIGNED ), - 23 ) )
----

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT + 44 AS col2 FROM tab0 WHERE ( NULL IN ( col1 * - ( - 87 ) * - 94, - 72, CAST ( NULL AS INTEGER ), - 23 ) )
----

query II rowsort
SELECT + + col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3244
SELECT + + COUNT( * ) col2, ( - 51 ) AS col0 FROM tab1 AS cor0
----
3
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3244
SELECT + + COUNT ( * ) col2, ( - 51 ) AS col0 FROM tab1 AS cor0
----
3
-51

query I rowsort
SELECT + col2 * - - col2 AS col1 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3246
SELECT DISTINCT col1 AS col2, - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3246
SELECT DISTINCT col1 AS col2, - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - ( + - 72 ) ) * col2 - - ( - + col2 ) = + 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3248
SELECT ALL - + 45 AS col2, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-45
3

skipif mysql # not compatible
query II rowsort label-3248
SELECT ALL - + 45 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-45
3

query I rowsort
SELECT ALL - 50 * - + col2 * - col0 AS col1 FROM tab1
----
-244800
-250750
-309400

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT COUNT( col2 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3250
SELECT COUNT ( col2 ) col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 95 * 91 AS col2 FROM tab0
----
8645

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT DISTINCT MIN( 18 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT MIN ( 18 ) FROM tab2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) + + col2 FROM tab1 WHERE + 83 * + 5 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) + + col2 FROM tab1 WHERE + 83 * + 5 IS NULL
----

query II rowsort
SELECT 18 * + col2 AS col2, + col2 AS col1 FROM tab2
----
1044
58
414
23
720
40

query II rowsort
SELECT + ( - 97 ) AS col0, - col2 + + - col2 AS col2 FROM tab1
----
-97
-118
-97
-136
-97
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT + col2 col1 FROM tab1 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-3257
SELECT + col2 col1 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT ALL col2 + - col2 * col1 DIV + + col0 FROM tab2 AS cor0
----
-2
-8
7

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL col2 + - col2 * col1 / + + col0 FROM tab2 AS cor0
----
-2
-8
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3259
SELECT CAST( + + col0 AS SIGNED ) * + col2 * - col2 DIV + + col2 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-3259
SELECT CAST ( + + col0 AS INTEGER ) * + col2 * - col2 / + + col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT DISTINCT ( - - MIN( - col1 ) ) + 59 * + 36 AS col2 FROM tab2 AS cor0
----
2047

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT ( - - MIN ( - col1 ) ) + 59 * + 36 AS col2 FROM tab2 AS cor0
----
2047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3261
SELECT + COUNT( * ) * + 3 / + 97 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT + COUNT ( * ) * + 3 / + 97 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT DISTINCT - MAX( ALL + col2 ) col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3262
SELECT DISTINCT - MAX ( ALL + col2 ) col2 FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT - 66 DIV + col1 col1 FROM tab0 AS cor0
----
-3
-66
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3263
SELECT - 66 / + col1 col1 FROM tab0 AS cor0
----
-3
-66
0

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + + col2 IS NULL
----

query I rowsort
SELECT - col2 + + 76 FROM tab2 AS cor0
----
18
36
53

query I rowsort
SELECT ALL - + 19 + col2 FROM tab0 AS cor0
----
-9
28
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + - col1 + + col2 col2 FROM tab2 AS cor0
----
1030
2523
4341

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3270
SELECT * FROM tab0 AS cor0 WHERE 41 / + - CAST( col0 AS SIGNED ) = + 19
----

skipif mysql # not compatible
query III rowsort label-3270
SELECT * FROM tab0 AS cor0 WHERE 41 / + - CAST ( col0 AS INTEGER ) = + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - SUM( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3271
SELECT - SUM ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL - col1 + 83 + 7 FROM tab1 AS cor0
----
43
76
85

query II rowsort
SELECT DISTINCT 2 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
2
-15
2
-87
2
-97

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - + col2 - + col0 - col2 * - col2 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT - - CAST( + ( - 69 ) AS SIGNED ) + + - col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3275
SELECT - - CAST ( + ( - 69 ) AS INTEGER ) + + - col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3276
SELECT DISTINCT + 49 DIV COUNT( DISTINCT + 73 ) AS col2 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT + 49 / COUNT ( DISTINCT + 73 ) AS col2 FROM tab1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3277
SELECT col0 DIV + + 85 - 54 FROM tab1
----
-53
-53
-54

skipif mysql # not compatible
query I rowsort label-3277
SELECT col0 / + + 85 - 54 FROM tab1
----
-53
-53
-54

query I rowsort
SELECT + ( - - 81 ) - + col2 FROM tab2
----
23
41
58

query I rowsort
SELECT ( + col0 ) + + + col2 AS col0 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT + + 71 AS col1 FROM tab2 AS cor0
----
71

query I rowsort
SELECT ALL - 37 * 77 * + - 20 * + + col1 - - - col1 AS col0 FROM tab0 AS cor0
----
1196559
4615299
56979

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - - COUNT( * ) * - 93 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-837

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3282
SELECT - - COUNT ( * ) * - 93 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 81 ) col1 FROM tab1
----
81
81
81

query II rowsort
SELECT + col0, - col0 + + + 36 FROM tab1
----
51
-15
85
-49
91
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3285
SELECT 93 / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT 93 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 / col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - 11 / - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - ( + col1 ) AS col0 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT + + ( MAX( + - 1 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3289
SELECT + + ( MAX ( + - 1 ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL + + MAX( DISTINCT col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL + + MAX ( DISTINCT col2 ) FROM tab2 cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT col1 DIV + 31 + + col1 col1 FROM tab1 cor0
----
14
48
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3291
SELECT col1 / + 31 + + col1 col1 FROM tab1 cor0
----
14
48
5

query I rowsort
SELECT - - 84 AS col0 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT - - col1 + + col2 AS col1 FROM tab2 cor0 WHERE NOT ( NOT col1 + 47 IS NOT NULL )
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT DISTINCT - + 54 DIV - 60 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT - + 54 / - 60 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL col2, - col2 FROM tab0
----
10
-10
47
-47
99
-99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 + + - 37 BETWEEN + - col2 AND - 14 * 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT SUM( + 89 ) AS col1 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT SUM ( + 89 ) AS col1 FROM tab0
----
267

query I rowsort
SELECT ALL - ( 68 ) FROM tab0
----
-68
-68
-68

query II rowsort
SELECT + 24, col0 + - ( + 58 ) + col1 AS col1 FROM tab1
----
24
32
24
7
24
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3300
SELECT + col1 AS col0, CAST( NULL AS SIGNED ) / + col1 / + + CAST( - 16 AS SIGNED ) + CAST( + col0 AS SIGNED ) + col2 / - col1 * - + col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-3300
SELECT + col1 AS col0, CAST ( NULL AS INTEGER ) / + col1 / + + CAST ( - 16 AS INTEGER ) + CAST ( + col0 AS INTEGER ) + col2 / - col1 * - + col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT 86 DIV + col0 + - col0 FROM tab0
----
-10
-87
-97

skipif mysql # not compatible
query I rowsort label-3301
SELECT 86 / + col0 + - col0 FROM tab0
----
-10
-87
-97

query I rowsort
SELECT DISTINCT + ( 13 ) AS col1 FROM tab2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL BETWEEN col0 AND + 31
----

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL BETWEEN col0 AND + 31
----

query I rowsort
SELECT + col2 + + - col0 AS col2 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3305
SELECT ALL ( - - CAST( - + 7 AS SIGNED ) ) AS col0 FROM tab1
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL ( - - CAST ( - + 7 AS INTEGER ) ) AS col0 FROM tab1
----
-7
-7
-7

query I rowsort
SELECT DISTINCT 55 FROM tab1 AS cor0 WHERE NOT - 71 IN ( + + 41, col0 * col0 * - - col0 )
----
55

query I rowsort
SELECT DISTINCT - 6 + - col2 * + + 12 FROM tab2 AS cor0
----
-282
-486
-702

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND - 48
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3310
SELECT * FROM tab2 WHERE + + CAST( - col1 AS SIGNED ) / + - 95 * + - 75 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3310
SELECT * FROM tab2 WHERE + + CAST ( - col1 AS INTEGER ) / + - 95 * + - 75 IS NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE + + col0 * - + col0 IS NULL
----

query I rowsort
SELECT ALL 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query II rowsort
SELECT - 4 + - col0, + col2 FROM tab2 AS cor0
----
-50
23
-68
40
-79
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3314
SELECT + + 3 + - + CAST( CAST( + 28 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-3314
SELECT + + 3 + - + CAST ( CAST ( + 28 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT ALL - CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query II rowsort
SELECT DISTINCT col0 + 60 AS col2, 67 + + col0 FROM tab1 AS cor0
----
111
118
145
152
151
158

query I rowsort
SELECT ALL 12 - + - 66 FROM tab1
----
78
78
78

query I rowsort
SELECT DISTINCT - + 59 FROM tab0 WHERE NULL <> col0 * + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL COUNT( * ) * + 30 col2 FROM tab1
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3320
SELECT ALL COUNT ( * ) * + 30 col2 FROM tab1
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 39 AS col2, col0 + + col0 col0 FROM tab2 AS cor0
----
-39
128
-39
150
-39
92

query I rowsort
SELECT ALL 44 * col1 FROM tab2 cor0
----
2244
2948
3388

query II rowsort
SELECT col0, - 63 AS col0 FROM tab1 AS cor0
----
51
-63
85
-63
91
-63

query I rowsort
SELECT + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( - col1 ) > + col1 )
----

query I rowsort
SELECT col0 * + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 61 IN ( - 6, - col0 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 JOIN tab2 AS cor1 ON NULL >= NULL
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col1 + - + 56 NOT IN ( + col1 + + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3331
SELECT - - col2 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT - - col2 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3332
SELECT - + SUM( + - col1 ) DIV + 27 AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3332
SELECT - + SUM ( + - col1 ) / + 27 AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT DISTINCT - ( - - 59 ) DIV 60 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT - ( - - 59 ) / 60 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - col1 * + + col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 * col2 col1 FROM tab2
----
2185
3800
5510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3336
SELECT COUNT( * ) * - - ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3336
SELECT COUNT ( * ) * - - ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1, tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT ALL + 98 + - COUNT( * ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL + 98 + - COUNT ( * ) FROM tab2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT - 8 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT - 8 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> + 8 - + + 67 OR NULL NOT BETWEEN NULL AND + col2 + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 79 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3341
SELECT - 8 AS col2, - col0 DIV col1 + col2 AS col0 FROM tab2 AS cor0
----
-8
23
-8
40
-8
57

skipif mysql # not compatible
query II rowsort label-3341
SELECT - 8 AS col2, - col0 / col1 + col2 AS col0 FROM tab2 AS cor0
----
-8
23
-8
40
-8
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT 46 + + COUNT( * ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-3342
SELECT 46 + + COUNT ( * ) FROM tab2 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL + 49 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL + 49 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3344
SELECT DISTINCT - + 80 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT - + 80 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 49 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT DISTINCT - MAX( ALL + - ( + 86 ) ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT - MAX ( ALL + - ( + 86 ) ) FROM tab1
----
86

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 17 - - col2 IS NULL
----

query I rowsort
SELECT ALL + col0 + - 22 FROM tab2 AS cor0 WHERE 46 - - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT + + MAX( ALL + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3352
SELECT + + MAX ( ALL + col0 ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - 68 AS col1, col2 FROM tab0 AS cor0
----
68
10
68
47
68
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT ALL - col2 DIV + col0 + - 22 * col2 * + + 27 FROM tab1 AS cor0
----
-35046
-40392
-57025

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL - col2 / + col0 + - 22 * col2 * + + 27 FROM tab1 AS cor0
----
-35046
-40392
-57025

onlyif mysql # DIV for integer division: 
query I rowsort label-3356
SELECT DISTINCT 47 + + 77 + - col0 + - col2 + - ( - 45 ) DIV 50 col0 FROM tab0 AS cor0
----
-72
27
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3356
SELECT DISTINCT 47 + + 77 + - col0 + - col2 + - ( - 45 ) / 50 col0 FROM tab0 AS cor0
----
-72
27
62

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 - col0 AS col0, 42 col1 FROM tab1 AS cor0
----
-138
42
-65
42
-90
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL - MIN( - 14 ) AS col0 FROM tab1 WHERE + col2 > col1 + - col0 + - 19
----
14

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL - MIN ( - 14 ) AS col0 FROM tab1 WHERE + col2 > col1 + - col0 + - 19
----
14

query I rowsort
SELECT ALL col1 + + ( - - ( + 57 ) ) FROM tab2
----
108
124
134

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL + COUNT( * ) - MIN( + + col1 ) AS col2 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL + COUNT ( * ) - MIN ( + + col1 ) AS col2 FROM tab2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3362
SELECT - col0 - col2 * + + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3362
SELECT - col0 - col2 * + + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + 6 ) * + col2 * + + 63 * + col2 + col1 AS col1 FROM tab0
----
-3704777
-37779
-834921

onlyif mysql # DIV for integer division: 
query II rowsort label-3364
SELECT ALL + col2 DIV - + 3, + col1 + 67 AS col1 FROM tab2
----
-13
144
-19
134
-7
118

skipif mysql # not compatible
query II rowsort label-3364
SELECT ALL + col2 / - + 3, + col1 + 67 AS col1 FROM tab2
----
-13
144
-19
134
-7
118

query II rowsort
SELECT col0 * - 96, + 85 + col0 - + 35 * col0 AS col1 FROM tab1
----
-4896
-1649
-8160
-2805
-8736
-3009

query I rowsort
SELECT col1 * + col0 * + col2 AS col0 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT ALL 21 * col1 * - 56 AS col2 FROM tab1
----
-16464
-55272
-5880

query II rowsort
SELECT DISTINCT 13 * 61, col0 FROM tab0 AS cor0
----
793
15
793
87
793
97

query II rowsort
SELECT ALL 28, col0 FROM tab2
----
28
46
28
64
28
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3370
SELECT DISTINCT COUNT( * ) DIV 31 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT COUNT ( * ) / 31 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + ( + - col1 ) FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT DISTINCT + ( - 77 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT + ( - 77 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + + 41 * + + 26 FROM tab1 AS cor0
----
1066
1066
1066

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT DISTINCT - + ( - COUNT( ALL - 72 ) ) FROM tab2 AS cor0 WHERE NOT col1 * col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT - + ( - COUNT ( ALL - 72 ) ) FROM tab2 AS cor0 WHERE NOT col1 * col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT + 12 + + ( + - COUNT( * ) ) + - + COUNT( + + 86 ) AS col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT + 12 + + ( + - COUNT ( * ) ) + - + COUNT ( + + 86 ) AS col1 FROM tab0 cor0
----
6

query I rowsort
SELECT + - 72 * - + col1 FROM tab1 AS cor0
----
1008
3384
360

query II rowsort
SELECT ALL - col2 AS col2, + col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3379
SELECT DISTINCT 12 DIV col1 FROM tab0
----
0
12

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT 12 / col1 FROM tab0
----
0
12

query I rowsort
SELECT col2 + + - 5 FROM tab0
----
42
5
94

query I rowsort
SELECT ALL 13 + 91 FROM tab0
----
104
104
104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + - + col1 col2 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3383
SELECT DISTINCT + 40 DIV - - MAX( + 99 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT + 40 / - - MAX ( + 99 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3384
SELECT * FROM tab2 cor0 WHERE + col0 * + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3384
SELECT * FROM tab2 cor0 WHERE + col0 * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL + 85 * + COUNT( * ) + + 63 FROM tab0 AS cor0
----
318

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL + 85 * + COUNT ( * ) + + 63 FROM tab0 AS cor0
----
318

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT + 70 * - MAX( 30 ) FROM tab2 AS cor0
----
-2100

skipif mysql # not compatible
query I rowsort label-3386
SELECT + 70 * - MAX ( 30 ) FROM tab2 AS cor0
----
-2100

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3387
SELECT + CAST( + col2 AS SIGNED ), col0 + col1 AS col2 FROM tab1 AS cor0 WHERE + col0 >= + col1 + col1 DIV + 58 * ( col2 )
----
59
90
68
138
96
65

skipif mysql # not compatible
query II rowsort label-3387
SELECT + CAST ( + col2 AS INTEGER ), col0 + col1 AS col2 FROM tab1 AS cor0 WHERE + col0 >= + col1 + col1 / + 58 * ( col2 )
----
59
90
68
138
96
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3388
SELECT - 2 AS col0, + SUM( - + col1 ) FROM tab2
----
-2
-195

skipif mysql # not compatible
query II rowsort label-3388
SELECT - 2 AS col0, + SUM ( - + col1 ) FROM tab2
----
-2
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT + SUM( DISTINCT + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT + SUM ( DISTINCT + col1 ) FROM tab1
----
66

query I rowsort
SELECT + + 70 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT - col1 - - 11 FROM tab0
----
-10
-70
10

query II rowsort
SELECT - col1 AS col0, 4 AS col1 FROM tab2 WHERE + col1 * col1 IS NOT NULL
----
-51
4
-67
4
-77
4

query I rowsort
SELECT 30 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col2 + + col0 + + col1 col2 FROM tab1 AS cor0
----
1409
3334
385

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE - 28 IS NULL
----

query I rowsort
SELECT + - col0 + + 34 + col2 AS col2 FROM tab2 AS cor0
----
10
11
17

query I rowsort
SELECT ALL - 18 - - - col0 * - col2 * - + col2 FROM tab1 AS cor0
----
-295903
-420802
-470034

query II rowsort
SELECT 28 * - 72 + + col2, col1 - + col2 * + + col0 AS col1 FROM tab0 AS cor0
----
-1917
-9602
-1969
-624
-2006
-849

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 67 IS NULL
----

query II rowsort
SELECT col2 AS col0, col1 + + col2 AS col2 FROM tab1 AS cor0
----
59
64
68
115
96
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3401
SELECT + + CAST( + SUM( ALL 91 ) AS SIGNED ) * + - COUNT( * ) FROM tab1 AS cor0
----
-819

skipif mysql # not compatible
query I rowsort label-3401
SELECT + + CAST ( + SUM ( ALL 91 ) AS INTEGER ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT + - COUNT( ALL - col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3402
SELECT + - COUNT ( ALL - col1 ) FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + 60 + + col0 - - + col1 * + col2 FROM tab0
----
10
357
47
3882
99
256

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * + col0 / col2 > - col2
----

query II rowsort
SELECT col1, - col1 FROM tab1
----
14
-14
47
-47
5
-5

query II rowsort
SELECT col0 AS col2, - col1 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT ALL + 45 * - col1 FROM tab2
----
-2295
-3015
-3465

query II rowsort
SELECT ALL col0, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

query II rowsort
SELECT - + col1, col1 AS col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT ALL - col1 * - + col0 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3413
SELECT CAST( + + MAX( DISTINCT col1 ) AS SIGNED ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3413
SELECT CAST ( + + MAX ( DISTINCT col1 ) AS INTEGER ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT DISTINCT - 53 + - MAX( + - col0 ) AS col1 FROM tab0 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT - 53 + - MAX ( + - col0 ) AS col1 FROM tab0 cor0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT DISTINCT + - col2 DIV - col0 + 57 + + 62 * - + col1 FROM tab2 AS cor0
----
-3105
-4097
-4717

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT + - col2 / - col0 + 57 + + 62 * - + col1 FROM tab2 AS cor0
----
-3105
-4097
-4717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT DISTINCT - col0 * 96 * - CAST( - col0 AS SIGNED ) * - - col1 FROM tab0 AS cor0
----
-15259104
-1749600
-903264

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT - col0 * 96 * - CAST ( - col0 AS INTEGER ) * - - col1 FROM tab0 AS cor0
----
-15259104
-1749600
-903264

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3417
SELECT * FROM tab1 AS cor0 WHERE ( ( + CAST( - + col2 AS DECIMAL ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3417
SELECT * FROM tab1 AS cor0 WHERE ( ( + CAST ( - + col2 AS REAL ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3418
SELECT - CAST( NULL AS SIGNED ) * + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT - CAST ( NULL AS INTEGER ) * + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3419
SELECT ALL COUNT( * ) * + CAST( - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) / - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL COUNT ( * ) * + CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) / - - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT - - col2 FROM tab0 WHERE 75 IS NOT NULL
----
10
47
99

query II rowsort
SELECT + col0, - col0 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT 83 * 3 - col2 DIV col0 AS col2 FROM tab2
----
249
249
249

skipif mysql # not compatible
query I rowsort label-3422
SELECT 83 * 3 - col2 / col0 AS col2 FROM tab2
----
249
249
249

onlyif mysql # DIV for integer division: 
query I rowsort label-3423
SELECT DISTINCT + col0 DIV + col0 + - + col0 AS col1 FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT + col0 / + col0 + - + col0 AS col1 FROM tab1
----
-50
-84
-90

query I rowsort
SELECT + col1 + + 32 FROM tab2 AS cor0
----
109
83
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT - 61 * + COUNT( * ) + + + 73 FROM tab2 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-3425
SELECT - 61 * + COUNT ( * ) + + + 73 FROM tab2 AS cor0
----
-110

query I rowsort
SELECT ALL col0 * - + col1 + - + col1 + + col1 + 85 FROM tab0 AS cor0
----
-1130
-12
-1742

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE + col0 - - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT - COUNT( ALL + col1 ) AS col1 FROM tab1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT - COUNT ( ALL + col1 ) AS col1 FROM tab1 WHERE NULL >= NULL
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( col1 ) * - 64 AS col0 FROM tab0
----
-1344
-5184
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 0 ) col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 76 AS col1 FROM tab0 cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL - COUNT( * ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3434
SELECT ALL - COUNT ( * ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT - COUNT( 64 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3435
SELECT - COUNT ( 64 ) FROM tab0
----
-3

query II rowsort
SELECT DISTINCT 67, + col2 * - col1 AS col1 FROM tab0
----
67
-210
67
-3807
67
-99

query I rowsort
SELECT DISTINCT ( 94 ) FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ( + COUNT( DISTINCT + col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3438
SELECT ( + COUNT ( DISTINCT + col0 ) ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col0 FROM tab1
----
14
-51
47
-91
5
-85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * col2 / - - ( - col1 ) + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 + + 94 + - - col2 IS NOT NULL
----

query I rowsort
SELECT - 60 * 64 * - ( - col0 ) FROM tab1
----
-195840
-326400
-349440

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < + 85
----

query I rowsort
SELECT ALL 68 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT + - col1 * - col2 * + 37 * - - col1 AS col0 FROM tab2 AS cor0
----
2213451
8774920
9633394

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT + + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT + + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3448
SELECT + col2 AS col2, 81 AS col2 FROM tab2 AS cor0 WHERE CAST( - + 10 AS SIGNED ) IS NOT NULL
----
23
81
40
81
58
81

skipif mysql # not compatible
query II rowsort label-3448
SELECT + col2 AS col2, 81 AS col2 FROM tab2 AS cor0 WHERE CAST ( - + 10 AS INTEGER ) IS NOT NULL
----
23
81
40
81
58
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3449
SELECT 71 + - COUNT( ALL - col1 ) + 49 DIV 2 col2 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3449
SELECT 71 + - COUNT ( ALL - col1 ) + 49 / 2 col2 FROM tab2 AS cor0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - 32 + + - col0 col1 FROM tab1
----
-12
-48
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3451
SELECT + ( - CAST( NULL AS SIGNED ) ) * - ( col1 ) + - ( ( + 5 ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT + ( - CAST ( NULL AS INTEGER ) ) * - ( col1 ) + - ( ( + 5 ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 20 + - 40 AS col1 FROM tab0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3453
SELECT DISTINCT + 56, COUNT( * ) * COUNT( * ) - 27 AS col1 FROM tab1, tab2 AS cor0
----
56
54

skipif mysql # not compatible
query II rowsort label-3453
SELECT DISTINCT + 56, COUNT ( * ) * COUNT ( * ) - 27 AS col1 FROM tab1, tab2 AS cor0
----
56
54

query I rowsort
SELECT ALL ( - col1 ) FROM tab1 WHERE NOT - - 49 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - + col0 * col1 col0 FROM tab0
----
-1262
-1837
-196

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3456
SELECT ALL - + CAST( + col2 AS SIGNED ) - - col0 DIV + col2 FROM tab2 AS cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL - + CAST ( + col2 AS INTEGER ) - - col0 / + col2 FROM tab2 AS cor0
----
-21
-39
-57

query I rowsort
SELECT + 72 - col0 + - - col1 * - ( + - col2 ) AS col2 FROM tab0
----
195
3864
74

query I rowsort
SELECT ALL - col1 * + + 14 AS col1 FROM tab0
----
-1134
-14
-294

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3459
SELECT * FROM tab2 cor0 WHERE NOT NULL <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3459
SELECT * FROM tab2 cor0 WHERE NOT NULL <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - - 31 + - ( col1 ) IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3460
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - - 31 + - ( col1 ) IS NULL )
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3462
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > - col1 - col1
----

query II rowsort
SELECT - 80 AS col0, + 82 AS col0 FROM tab1 AS cor0
----
-80
82
-80
82
-80
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT + MAX( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3465
SELECT + MAX ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT MAX( 24 ) AS col0 FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-3466
SELECT MAX ( 24 ) AS col0 FROM tab0 cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT - 80 DIV 96 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3467
SELECT - 80 / 96 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - ( 73 ) AS col2 FROM tab1 AS cor0
----
-73
-73
-73

query II rowsort
SELECT col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3470
SELECT DISTINCT - COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT - COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col0 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3472
SELECT ALL + CAST( + 92 AS SIGNED ) col0, + 45 col1 FROM tab1
----
92
45
92
45
92
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3472
SELECT ALL + CAST ( + 92 AS INTEGER ) col0, + 45 col1 FROM tab1
----
92
45
92
45
92
45

query II rowsort
SELECT - col0 * - col2 AS col0, + col1 FROM tab2
----
1058
51
2560
77
4350
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 * + col1, + col2 col1 FROM tab0 AS cor0
----
1215
47
1827
10
97
99

query I rowsort
SELECT ALL - 18 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-18
-18
-18

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - 62 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT SUM( DISTINCT - - 86 ) AS col0 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT SUM ( DISTINCT - - 86 ) AS col0 FROM tab0 AS cor0
----
86

query I rowsort
SELECT 24 + - + ( + - col2 ) AS col1 FROM tab1 AS cor0
----
120
83
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT - CAST( 78 AS SIGNED ) FROM tab2 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-3479
SELECT - CAST ( 78 AS INTEGER ) FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT + col1 * 94 AS col0 FROM tab0
----
1974
7614
94

query II rowsort
SELECT ALL col2 AS col2, + 97 AS col2 FROM tab2
----
23
97
40
97
58
97

query I rowsort
SELECT ALL - col1 * 54 AS col2 FROM tab2
----
-2754
-3618
-4158

query I rowsort
SELECT ALL ( + col2 ) * + + col2 FROM tab1
----
3481
4624
9216

query II rowsort
SELECT DISTINCT col0, - 0 AS col1 FROM tab1
----
51
0
85
0
91
0

query I rowsort
SELECT - + col0 + + + col1 * + + col1 * + col0 FROM tab1 AS cor0
----
200928
2040
9945

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 96, col0 * col2 )
----

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
75

query II rowsort
SELECT 76 * col0, 91 AS col0 FROM tab1
----
3876
91
6460
91
6916
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT CAST( col0 AS SIGNED ) * + col0 + + - col2 + + + 41 FROM tab0
----
219
7600
9351

skipif mysql # not compatible
query I rowsort label-3489
SELECT CAST ( col0 AS INTEGER ) * + col0 + + - col2 + + + 41 FROM tab0
----
219
7600
9351

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL COUNT( * ) * + 79 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL COUNT ( * ) * + 79 FROM tab2
----
237

query I rowsort
SELECT - 83 * - col2 * + col0 AS col0 FROM tab1 AS cor0
----
406368
416245
513604

query I rowsort
SELECT ALL - - ( 39 ) * - - ( + col2 ) FROM tab0 cor0
----
1833
3861
390

onlyif mysql # DIV for integer division: 
query I rowsort label-3493
SELECT + col1 DIV + 35 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3493
SELECT + col1 / + 35 AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL - - COUNT( * ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3494
SELECT ALL - - COUNT ( * ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 * + - col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - col0 * + 97 AS col0 FROM tab0
----
-1455
-8439
-9409

query II rowsort
SELECT ALL + 88 AS col0, col2 FROM tab2
----
88
23
88
40
88
58

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL <= + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3499
SELECT CAST( NULL AS SIGNED ), col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3499
SELECT CAST ( NULL AS INTEGER ), col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab0 WHERE NOT ( NOT + col0 + + col0 <= - col1 )
----

query II rowsort
SELECT 5 AS col1, col1 FROM tab0
----
5
1
5
21
5
81

query I rowsort
SELECT DISTINCT 43 + + + col0 FROM tab2 AS cor0
----
107
118
89

query I rowsort
SELECT ALL 44 AS col2 FROM tab0 cor0
----
44
44
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 col2 FROM tab1 WHERE NOT + 57 <> + col2
----

query I rowsort
SELECT ALL + 62 + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
109
161
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 23 + + ( col0 ) ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 97 * + col2 AS col0 FROM tab1
----
5723
6596
9312

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * col2 BETWEEN 63 * 44 AND - ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 + 56 * col1 col2 FROM tab1 WHERE NOT NULL <= ( + col0 * 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL + MIN( ALL - 52 ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + MIN ( ALL - 52 ) FROM tab1
----
-52

query I rowsort
SELECT - 66 * ( col1 ) FROM tab2
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT + MIN( ALL - col0 ) * 44 AS col1 FROM tab0
----
-4268

skipif mysql # not compatible
query I rowsort label-3513
SELECT + MIN ( ALL - col0 ) * 44 AS col1 FROM tab0
----
-4268

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3514
SELECT * FROM tab2 WHERE NULL <> - CAST( NULL AS SIGNED ) / - col1
----

skipif mysql # not compatible
query III rowsort label-3514
SELECT * FROM tab2 WHERE NULL <> - CAST ( NULL AS INTEGER ) / - col1
----

query I rowsort
SELECT ALL ( + col2 ) + col2 * 38 FROM tab1
----
2301
2652
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT ALL - SUM( 37 ) * SUM( DISTINCT - col1 ) AS col2 FROM tab1
----
7326

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL - SUM ( 37 ) * SUM ( DISTINCT - col1 ) AS col2 FROM tab1
----
7326

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT DISTINCT COUNT( * ) + + 41 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT COUNT ( * ) + + 41 FROM tab1
----
44

query I rowsort
SELECT - 56 * + col0 FROM tab2
----
-2576
-3584
-4200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 * 62 col1 FROM tab1
----
0

query I rowsort
SELECT ALL + 20 + 50 AS col0 FROM tab0
----
70
70
70

query I rowsort
SELECT DISTINCT + col1 + + ( - col0 ) FROM tab0
----
-66
-96
66

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN - 28 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + 1 * - 24 + + COUNT( * ) AS col1 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-3523
SELECT + 1 * - 24 + + COUNT ( * ) AS col1 FROM tab0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT + 46 * MAX( - col2 * col1 ) FROM tab2
----
-53958

skipif mysql # not compatible
query I rowsort label-3524
SELECT + 46 * MAX ( - col2 * col1 ) FROM tab2
----
-53958

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT ALL + 79 DIV 9 AS col1 FROM tab2
----
8
8
8

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + 79 / 9 AS col1 FROM tab2
----
8
8
8

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) NOT IN ( - 14 )
----

query I rowsort
SELECT 10 * ( - col2 ) FROM tab0
----
-100
-470
-990

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - 90 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) / col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 28 AS col2 FROM tab1
----
-28
-28
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT ALL + col1 col0 FROM tab0 WHERE NOT ( 4 * CAST( NULL AS SIGNED ) ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3531
SELECT ALL + col1 col0 FROM tab0 WHERE NOT ( 4 * CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 <> ( NULL )
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE col0 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - 19 FROM tab1 WHERE - 28 * - 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT - SUM( DISTINCT - 12 ) AS col0 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3536
SELECT - SUM ( DISTINCT - 12 ) AS col0 FROM tab2
----
12

query III rowsort
SELECT * FROM tab2 WHERE NOT - 10 - 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT MAX( ALL + col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3538
SELECT MAX ( ALL + col1 ) AS col1 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL + 86 * ( ( COUNT( * ) ) ) AS col2 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + 86 * ( ( COUNT ( * ) ) ) AS col2 FROM tab2
----
258

query I rowsort
SELECT - 31 - col1 AS col2 FROM tab1 AS cor0
----
-36
-45
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3541
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 = + 1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 83 - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 59 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3544
SELECT DISTINCT + ( + 45 ) DIV - COUNT( * ) AS col1 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT + ( + 45 ) / - COUNT ( * ) AS col1 FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT MIN( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3545
SELECT MIN ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3546
SELECT COUNT( - 51 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - ( 51 ) + col2 / - col0 NOT BETWEEN ( + col2 * - col2 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3546
SELECT COUNT ( - 51 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - ( 51 ) + col2 / - col0 NOT BETWEEN ( + col2 * - col2 ) AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3547
SELECT + + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3547
SELECT + + col2 / col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 95 * col1 NOT BETWEEN col0 AND + col0 * + 90 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 24 * - ( col0 - - col0 ) AS col0 FROM tab0 AS cor0
----
4176
4656
720

query I rowsort
SELECT ALL + col1 * + 40 AS col2 FROM tab2 AS cor0
----
2040
2680
3080

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab0 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 83 col2 FROM tab0 cor0 WHERE NOT ( col1 ) IS NULL
----
-3901
-8217
-830

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN col0 * + col2 AND ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3554
SELECT - col1 DIV - 85 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3554
SELECT - col1 / - 85 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 25 + + col0 * + col0 FROM tab1 WHERE - col1 IS NOT NULL
----
2626
7250
8306

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT 35 + col1 NOT BETWEEN ( - col0 - col2 ) AND + 64 * 69 - + 40
----
46
64
75

query I rowsort
SELECT ALL + 74 * 23 FROM tab1
----
1702
1702
1702

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 69 IN ( + 42 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT MIN( DISTINCT + - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3559
SELECT MIN ( DISTINCT + - col2 ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT DISTINCT COUNT( * ) * + 17 AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT COUNT ( * ) * + 17 AS col1 FROM tab2
----
51

query I rowsort
SELECT DISTINCT col0 + 19 FROM tab1
----
104
110
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 65 col0 FROM tab2
----
-1495
-2600
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT - COUNT( * ) + 60 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT - COUNT ( * ) + 60 FROM tab1
----
57

query I rowsort
SELECT ALL - 49 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * - 51 - col2 * col1 AS col0 FROM tab2 AS cor0
----
-2346
-5120
-6844

query I rowsort
SELECT DISTINCT - ( + + 59 ) + - col1 FROM tab0 AS cor0
----
-140
-60
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-3567
SELECT ALL col0 * + col2 + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
710
870
9603

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL col0 * + col2 + col1 / col0 AS col2 FROM tab0 AS cor0
----
710
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-3568
SELECT ALL 5 DIV 44 AS col1 FROM tab2 cor0 WHERE col1 BETWEEN ( + col0 ) AND + col2 * + col0 + col2 * col0
----
0
0

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL 5 / 44 AS col1 FROM tab2 cor0 WHERE col1 BETWEEN ( + col0 ) AND + col2 * + col0 + col2 * col0
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT DISTINCT + + 10 + col2 + + CAST( ( 35 ) - col1 * col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-2096
-55
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3569
SELECT DISTINCT + + 10 + col2 + + CAST ( ( 35 ) - col1 * col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-2096
-55
79

query I rowsort
SELECT - col1 * col1 + col0 * - col2 FROM tab1 AS cor0
----
-5040
-5092
-8397

query I rowsort
SELECT ALL + ( + 82 ) FROM tab0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT DISTINCT + ( + SUM( - col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT + ( + SUM ( - col0 ) ) FROM tab2
----
-185

query I rowsort
SELECT ( 8 ) FROM tab0 WHERE - 79 IN ( ( - 38 ) / 82 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3574
SELECT + + col0 DIV + - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3574
SELECT + + col0 / + - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + 61 - - 39 FROM tab2 AS cor0
----
-22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 62 / + ( - col0 ) = + col2
----

query I rowsort
SELECT ALL col0 - + 44 FROM tab1 AS cor0
----
41
47
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT DISTINCT - 91 + + + COUNT( * ) + - COUNT( * ) col2 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3578
SELECT DISTINCT - 91 + + + COUNT ( * ) + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + 15 AND ( col0 * - 95 )
----

query I rowsort
SELECT DISTINCT col0 - + - col1 + col1 + 18 * + col1 AS col0 FROM tab0
----
117
1635
507

query I rowsort
SELECT - col0 - + 87 AS col0 FROM tab2
----
-133
-151
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-3582
SELECT DISTINCT + col1 - - col2 DIV + - col0 FROM tab0
----
0
21
78

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT + col1 - - col2 / + - col0 FROM tab0
----
0
21
78

query I rowsort
SELECT ALL 21 - - col1 FROM tab2
----
72
88
98

query I rowsort
SELECT + 74 + - col2 AS col0 FROM tab0
----
-25
27
64

query III rowsort
SELECT * FROM tab1 WHERE ( + + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + col1 + + col2 AS col0 FROM tab1
----
4345
484
810

query III rowsort
SELECT * FROM tab1 WHERE col0 * + col0 IN ( ( 87 ) * col0 + - 25 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3588
SELECT + 38 DIV + col2 + 28 AS col1 FROM tab1
----
28
28
28

skipif mysql # not compatible
query I rowsort label-3588
SELECT + 38 / + col2 + 28 AS col1 FROM tab1
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 78 col1 FROM tab2 AS cor0
----
78

query I rowsort
SELECT + col2 / - col1 + + 86 / 33 FROM tab1 AS cor0 WHERE NOT ( ( 58 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE col0 BETWEEN ( + - col0 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE col0 BETWEEN ( + - col0 ) AND ( NULL )
----
0

query I rowsort
SELECT ALL + 20 + + col0 AS col2 FROM tab0 WHERE - 78 + - 12 + 78 IS NULL OR NOT - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> ( col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 > ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + 16 + - col2 * - + col1 * - 0 AS col1 FROM tab2 cor0
----
-24
-42
-7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= ( ( + ( 4 ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - col1 + - col2 ) AND ( + 43 * + col1 )
----

query I rowsort
SELECT ALL - ( + + 23 ) FROM tab0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 + + col0 col2 FROM tab2
----
49
67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL COUNT( ALL + + 50 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL COUNT ( ALL + + 50 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT col1 + - + 13 * - col0 - + 19 FROM tab2
----
1023
630
890

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT COUNT( ALL col1 ) + + 58 AS col1 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-3602
SELECT COUNT ( ALL col1 ) + + 58 AS col1 FROM tab0
----
61

query I rowsort
SELECT 6 + + col2 + - 0 FROM tab2
----
29
46
64

query I rowsort
SELECT ALL + 56 + 94 * + col1 FROM tab2
----
4850
6354
7294

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT DISTINCT COUNT( * ) + - 41 AS col0 FROM tab1 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT COUNT ( * ) + - 41 AS col0 FROM tab1 cor0
----
-38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col0 = ( col1 * + col2 )
----

query I rowsort
SELECT DISTINCT - col2 * + + col0 * - col1 AS col1 FROM tab2 cor0
----
197120
291450
53958

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 46 >= NULL
----

query I rowsort
SELECT DISTINCT + 73 * + + 19 AS col0 FROM tab1 AS cor0
----
1387

query II rowsort
SELECT - col0 AS col1, - 20 AS col1 FROM tab0 AS cor0
----
-15
-20
-87
-20
-97
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + - 59 col0 FROM tab1 cor0
----
-3540
-4683
-9275

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3612
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col0, - col2 AS col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-3612
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col0, - col2 AS col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT ALL - + 55 * - CAST( NULL AS SIGNED ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL - + 55 * - CAST ( NULL AS INTEGER ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT 23 IS NULL AND NOT ( NULL ) BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= NULL
----

query I rowsort
SELECT DISTINCT - 32 + + + 6 AS col2 FROM tab2 cor0
----
-26

query II rowsort
SELECT ALL + - col2 + + + col0, col2 FROM tab2 AS cor0
----
17
58
23
23
24
40

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> col1 + + 30 - - 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT 53 + + + ( + - COUNT( * ) ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3619
SELECT 53 + + + ( + - COUNT ( * ) ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3620
SELECT DISTINCT + - COUNT( * ) * + + ( - CAST( COUNT( * ) AS SIGNED ) ) + + - 96 + 98 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT + - COUNT ( * ) * + + ( - CAST ( COUNT ( * ) AS INTEGER ) ) + + - 96 + 98 FROM tab1 AS cor0
----
11

query I rowsort
SELECT ALL + col0 * + + col0 * + 62 + col1 AS col2 FROM tab0 AS cor0
----
14031
469299
583359

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL - MAX( DISTINCT + 39 ) * + 84 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3273

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL - MAX ( DISTINCT + 39 ) * + 84 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3273

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT ALL - 20 + + - ( - COUNT( * ) ), - COUNT( * ) + + + 38 AS col0 FROM tab2 AS cor0
----
-17
35

skipif mysql # not compatible
query II rowsort label-3624
SELECT ALL - 20 + + - ( - COUNT ( * ) ), - COUNT ( * ) + + + 38 AS col0 FROM tab2 AS cor0
----
-17
35

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 62 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - 87 - + 27 FROM tab2
----
1974
3453
5019

onlyif mysql # aggregate syntax: 
query II rowsort label-3627
SELECT COUNT( * ), + 35 AS col0 FROM tab0
----
3
35

skipif mysql # not compatible
query II rowsort label-3627
SELECT COUNT ( * ), + 35 AS col0 FROM tab0
----
3
35

query I rowsort
SELECT 17 * + col1 AS col0 FROM tab1
----
238
799
85

query II rowsort
SELECT col0 AS col1, - col2 AS col1 FROM tab2
----
46
-23
64
-40
75
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 95, col2 AS col0 FROM tab1 AS cor0
----
95
59
95
68
95
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL - - 50 FROM tab2 cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL COUNT( 65 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3634
SELECT ALL COUNT ( 65 ) col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col0, + col0 * 76 FROM tab0 AS cor0
----
15
1140
87
6612
97
7372

query I rowsort
SELECT ALL 10 AS col2 FROM tab0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT - + COUNT( * ) FROM tab1 WHERE NOT - 65 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3637
SELECT - + COUNT ( * ) FROM tab1 WHERE NOT - 65 <> NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 + col2 / + 88 + + 62 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col1 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT + 97 * + 43 * - col0 FROM tab2 AS cor0
----
-191866
-266944
-312825

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT - COUNT( * ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3641
SELECT - COUNT ( * ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT + MIN( - col2 ) * + 5 col1 FROM tab2 AS cor0
----
-290

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3642
SELECT + MIN ( - col2 ) * + 5 col1 FROM tab2 AS cor0
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT DISTINCT + 80 * MAX( DISTINCT - - 72 ) AS col1 FROM tab0 AS cor0
----
5760

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT + 80 * MAX ( DISTINCT - - 72 ) AS col1 FROM tab0 AS cor0
----
5760

query I rowsort
SELECT - - col0 * - col0 + - col1 + + col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT - - col2 * - ( 16 ) AS col1 FROM tab0 AS cor0
----
-1584
-160
-752

query I rowsort
SELECT col2 / - ( 24 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( - - 51 ) )
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 86 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT DISTINCT + ( + MIN( DISTINCT - 20 ) ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT + ( + MIN ( DISTINCT - 20 ) ) AS col2 FROM tab1
----
-20

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 * col2 col2 FROM tab0
----
3666
7722
780

query I rowsort
SELECT DISTINCT ( + + ( - col0 ) ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3653
SELECT DISTINCT 24 + - CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) * - + ( - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT 24 + - CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) * - + ( - col1 ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + col2 ) col2 FROM tab0
----
10
47
99

query II rowsort
SELECT + col1 AS col2, col0 * + 31 * 77 + 28 AS col2 FROM tab2 AS cor0 WHERE NULL > 5
----

query I rowsort
SELECT - + 60 + + - 21 FROM tab2 AS cor0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT ALL AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + 62 + + col1 AS col2 FROM tab0
----
143
63
83

query I rowsort
SELECT ALL + 47 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3660
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3660
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ALL - 67 + + col0 AS col2 FROM tab0
----
-52
20
30

query I rowsort
SELECT col0 * - - col0 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 IN ( col1, - col0, + col0 )
----

query I rowsort
SELECT + 68 - - col1 * + col2 + - - col1 + + 36 * + - 30 + 18 * + + 27 FROM tab2 AS cor0
----
2631
3427
698

query I rowsort
SELECT 27 - - + col0 FROM tab1 AS cor0
----
112
118
78

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT - col2 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT COUNT( * ) * + + 76 AS col1 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-3670
SELECT COUNT ( * ) * + + 76 AS col1 FROM tab2
----
228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT COUNT( 18 ) * - - COUNT( * ) * - - CAST( - 55 AS SIGNED ) FROM tab0
----
-495

skipif mysql # not compatible
query I rowsort label-3671
SELECT COUNT ( 18 ) * - - COUNT ( * ) * - - CAST ( - 55 AS INTEGER ) FROM tab0
----
-495

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3672
SELECT + col1 AS col1, 83 + + 12 * - - col0 * - col1 * col0 / + - CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-3672
SELECT + col1 AS col1, 83 + + 12 * - - col0 * - col1 * col0 / + - CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3673
SELECT DISTINCT - - MAX( ALL - ( + col0 ) ) AS col2, 0 * + - 91 FROM tab2 AS cor0
----
-46
0

skipif mysql # not compatible
query II rowsort label-3673
SELECT DISTINCT - - MAX ( ALL - ( + col0 ) ) AS col2, 0 * + - 91 FROM tab2 AS cor0
----
-46
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, + col2 * + + 21 FROM tab0 cor0
----
-1
2079
-21
210
-81
987

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + col1 AND col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( col0 * col2 + - + col0 - + + col1 + + 3 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT + COUNT( * ) * + - 86 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-3677
SELECT + COUNT ( * ) * + - 86 FROM tab0 AS cor0
----
-258

query I rowsort
SELECT ALL - + ( - + col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT - - COUNT( * ) + + 79 AS col0 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3679
SELECT - - COUNT ( * ) + + 79 AS col0 FROM tab0 AS cor0
----
82

query I rowsort
SELECT ALL + - 34 + - - col0 AS col1 FROM tab0 AS cor0
----
-19
53
63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - col0 * - + 86 + 89 AS col1 FROM tab1
----
4475
7399
7915

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= col2 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3684
SELECT 82 DIV + - 36 + - col2 AS col2 FROM tab0
----
-101
-12
-49

skipif mysql # not compatible
query I rowsort label-3684
SELECT 82 / + - 36 + - col2 AS col2 FROM tab0
----
-101
-12
-49

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT + 67 + + 25 + - COUNT( * ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-3686
SELECT + 67 + + 25 + - COUNT ( * ) FROM tab2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3687
SELECT - COUNT( * ) DIV COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3687
SELECT - COUNT ( * ) / COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 57 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3689
SELECT - col1 * - col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT - col1 * - col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT DISTINCT - + 28 + - + 6 + SUM( col0 ) AS col2 FROM tab2 cor0
----
151

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT - + 28 + - + 6 + SUM ( col0 ) AS col2 FROM tab2 cor0
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3691
SELECT ALL + 58 * - col1 / - 35 / + col1 - col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IN ( + + col1, col1 + - + col1 )
----

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL + 58 * - col1 / - 35 / + col1 - col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IN ( + + col1, col1 + - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT DISTINCT + 79 - - - COUNT( * ) - - 87 AS col2 FROM tab1 AS cor0
----
163

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT + 79 - - - COUNT ( * ) - - 87 AS col2 FROM tab1 AS cor0
----
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 + 46 col2 FROM tab2 AS cor0
----
-1127
-3034
-3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3694
SELECT - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3694
SELECT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 12 FROM tab1 WHERE NOT ( NOT ( - col1 - - col0 ) IN ( - 87 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3696
SELECT - + 95 AS col0, - COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-95
-9

skipif mysql # not compatible
query II rowsort label-3696
SELECT - + 95 AS col0, - COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-95
-9

query I rowsort
SELECT 84 + col2 FROM tab1 AS cor0
----
143
152
180

query I rowsort
SELECT ALL + 28 * + 75 AS col2 FROM tab2 cor0
----
2100
2100
2100

query I rowsort
SELECT + col2 + + - col0 AS col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3700
SELECT DISTINCT 61 DIV 85 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT 61 / 85 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 36 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + - col0 col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT - + MIN( DISTINCT + 39 ) AS col1 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3703
SELECT - + MIN ( DISTINCT + 39 ) AS col1 FROM tab2 AS cor0
----
-39

query II rowsort
SELECT ALL + col2 AS col0, - col0 AS col0 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT DISTINCT 25 * - 48 FROM tab0
----
-1200

onlyif mysql # aggregate syntax: 
query II rowsort label-3706
SELECT DISTINCT - COUNT( * ) AS col2, + 95 * + ( + COUNT( DISTINCT + col2 ) ) + + COUNT( * ) FROM tab0
----
-3
288

skipif mysql # not compatible
query II rowsort label-3706
SELECT DISTINCT - COUNT ( * ) AS col2, + 95 * + ( + COUNT ( DISTINCT + col2 ) ) + + COUNT ( * ) FROM tab0
----
-3
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL + COUNT( * ) * - SUM( col1 ) AS col0 FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL + COUNT ( * ) * - SUM ( col1 ) AS col0 FROM tab2
----
-585

query I rowsort
SELECT - ( 38 ) * + + col0 FROM tab2
----
-1748
-2432
-2850

query I rowsort
SELECT + 3 * + col2 FROM tab0 WHERE NOT - - col2 NOT BETWEEN - col2 AND - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3710
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 68 * COUNT( * ) * - 2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 68 * COUNT ( * ) * - 2 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 28 * - - col1 * - col0 AS col2 FROM tab0
----
-2716
-34020
-51156

query I rowsort
SELECT DISTINCT col0 * 14 AS col0 FROM tab1
----
1190
1274
714

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE col2 <= + + col0 + col2
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3714
SELECT DISTINCT + col2 DIV + + col2 col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3714
SELECT DISTINCT + col2 / + + col2 col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT + 16 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3715
SELECT + 16 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT DISTINCT col2 DIV 93 * col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT col2 / 93 * col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL MIN( ALL col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL MIN ( ALL col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL col0 * 68 FROM tab1
----
3468
5780
6188

query I rowsort
SELECT ALL col1 * - + ( - col0 ) FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3720
SELECT + + col0 + col1 + + col0 DIV - 80 FROM tab0 AS cor0
----
107
96
97

skipif mysql # not compatible
query I rowsort label-3720
SELECT + + col0 + col1 + + col0 / - 80 FROM tab0 AS cor0
----
107
96
97

query I rowsort
SELECT + 58 * 4 FROM tab1 AS cor0
----
232
232
232

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT ALL - 50 + + - 13 + 26 DIV + col2 FROM tab0 AS cor0
----
-61
-63
-63

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL - 50 + + - 13 + 26 / + col2 FROM tab0 AS cor0
----
-61
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col1 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT col2 + + - ( + + col2 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 10 AS col2 FROM tab0 cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT DISTINCT 52 * + + COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT 52 * + + COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL + SUM( + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL + SUM ( + col1 ) FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT 65 FROM tab0 WHERE NULL NOT BETWEEN col2 + col2 * + - 59 AND - CAST( NULL AS SIGNED ) * - 51
----

skipif mysql # not compatible
query I rowsort label-3728
SELECT 65 FROM tab0 WHERE NULL NOT BETWEEN col2 + col2 * + - 59 AND - CAST ( NULL AS INTEGER ) * - 51
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT 30 * col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE 21 <> + 69 * + + 95
----
-3

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE 21 <> + 69 * + + 95
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT - 51 + MIN( - col1 ) AS col2 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT - 51 + MIN ( - col1 ) AS col2 FROM tab0 AS cor0
----
-132

query I rowsort
SELECT DISTINCT - col2 * col0 * - - col2 * + - ( + + 0 ) + + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL col0 - + + 33 AS col2 FROM tab1 cor0
----
18
52
58

query I rowsort
SELECT + + col1 * - 42 * - col1 AS col1 FROM tab1 cor0
----
1050
8232
92778

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3736
SELECT - 57 DIV COUNT( * ) * MAX( - col1 ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3736
SELECT - 57 / COUNT ( * ) * MAX ( - col1 ) FROM tab0 AS cor0
----
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3738
SELECT ALL - CAST( - col0 AS SIGNED ), - 44 AS col2 FROM tab1 AS cor0
----
51
-44
85
-44
91
-44

skipif mysql # not compatible
query II rowsort label-3738
SELECT ALL - CAST ( - col0 AS INTEGER ), - 44 AS col2 FROM tab1 AS cor0
----
51
-44
85
-44
91
-44

query I rowsort
SELECT - + 71 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT - CAST( NULL AS SIGNED ) * + 32 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT - CAST ( NULL AS INTEGER ) * + 32 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 36 * col1 FROM tab1
----
-1692
-180
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT + COUNT( ALL - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT + COUNT ( ALL - col2 ) FROM tab0
----
3

query II rowsort
SELECT ALL col0 AS col0, + col0 - + 31 * - col0 AS col0 FROM tab1
----
51
1632
85
2720
91
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT ALL - 67 * - MIN( DISTINCT - col0 ) * COUNT( * ) FROM tab0
----
-19497

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL - 67 * - MIN ( DISTINCT - col0 ) * COUNT ( * ) FROM tab0
----
-19497

query II rowsort
SELECT DISTINCT - col2, col0 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT + ( + - col2 ) AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT ALL - SUM( + + 77 ) * + - COUNT( * ) FROM tab2
----
693

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL - SUM ( + + 77 ) * + - COUNT ( * ) FROM tab2
----
693

query I rowsort
SELECT - 5 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # DIV for integer division: 
query I rowsort label-3749
SELECT 93 DIV + col0 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-3749
SELECT 93 / + col0 AS col2 FROM tab0
----
0
1
6

query II rowsort
SELECT - 95 AS col0, + 52 AS col2 FROM tab1 AS cor0
----
-95
52
-95
52
-95
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - + 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + col2 + + 14 FROM tab0 AS cor0
----
113
224
3821

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ALL COUNT( DISTINCT col1 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3753
SELECT ALL COUNT ( DISTINCT col1 ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 9 * - col0 FROM tab1
----
-459
-765
-819

query I rowsort
SELECT col2 + 3 AS col0 FROM tab1
----
62
71
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3756
SELECT DISTINCT col0 DIV - 21 AS col0 FROM tab0
----
-4
0

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT col0 / - 21 AS col0 FROM tab0
----
-4
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3757
SELECT ALL + SUM( - + col1 ) DIV + COUNT( * ) AS col0 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + SUM ( - + col1 ) / + COUNT ( * ) AS col0 FROM tab2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT DISTINCT - 85 + + 30 * + MAX( + - ( col0 ) ) AS col0 FROM tab1
----
-1615

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT - 85 + + 30 * + MAX ( + - ( col0 ) ) AS col0 FROM tab1
----
-1615

query I rowsort
SELECT - 49 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( col1, + 23 - 7 / + 48, + 74 / + + col1, + col1 * - 89 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL - SUM( + 97 ) + - COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-300

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL - SUM ( + 97 ) + - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-300

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= ( + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3764
SELECT DISTINCT - MIN( - col1 ) + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT - MIN ( - col1 ) + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3765
SELECT ALL SUM( ALL - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL SUM ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3766
SELECT DISTINCT + col0 AS col0, CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

skipif mysql # not compatible
query II rowsort label-3766
SELECT DISTINCT + col0 AS col0, CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( 81 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 - - 19 < - 56 * + col0 + - col0 + - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + + 61 * COUNT( * ) FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3769
SELECT + + 61 * COUNT ( * ) FROM tab0 AS cor0
----
183

query I rowsort
SELECT + ( - col1 ) AS col0 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT - - COUNT( * ) * - 45 AS col2 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT - - COUNT ( * ) * - 45 AS col2 FROM tab1 AS cor0
----
-135

query II rowsort
SELECT - col1 AS col0, - col0 AS col0 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT col2 * col1 + + 74 + + 76 + col1 FROM tab0 WHERE NOT - - 29 + + + col0 * + 64 / col2 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT ALL MIN( ALL + 4 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL MIN ( ALL + 4 ) FROM tab0
----
4

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3776
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3776
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT - col1, + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND - col1
----

query I rowsort
SELECT ALL col2 * - 63 + + + col2 + + 17 * + col1 * + 53 FROM tab0 WHERE NOT + col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3779
SELECT ALL - COUNT( * ) DIV 62 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL - COUNT ( * ) / 62 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT MAX( DISTINCT + 56 ) AS col2 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3780
SELECT MAX ( DISTINCT + 56 ) AS col2 FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT + 51 * + + col2 - + + 98 + col1 + col2 AS col1 FROM tab0 AS cor0
----
2427
443
5051

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - col0 < - col2 * + 31 + + - col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3783
SELECT ALL + col0 - - CAST( NULL AS SIGNED ) + + col0 + - - col2 + - col2 AS col0, 2 AS col0 FROM tab0 cor0
----
NULL
2
NULL
2
NULL
2

skipif mysql # not compatible
query II rowsort label-3783
SELECT ALL + col0 - - CAST ( NULL AS INTEGER ) + + col0 + - - col2 + - col2 AS col0, 2 AS col0 FROM tab0 cor0
----
NULL
2
NULL
2
NULL
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3784
SELECT * FROM tab2 WHERE CAST( col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3784
SELECT * FROM tab2 WHERE CAST ( col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3785
SELECT DISTINCT 91 DIV + + col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT 91 / + + col0 FROM tab2
----
1

query I rowsort
SELECT ALL + ( + + col1 ) FROM tab2 WHERE NOT NULL NOT BETWEEN - - 47 * col1 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
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-3787
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) col1 FROM tab2
----
-6

query I rowsort
SELECT + - 27 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT ALL - 74 DIV - 14 AS col1 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - 74 / - 14 AS col1 FROM tab1
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL - MAX( ALL + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL - MAX ( ALL + col0 ) FROM tab2
----
-75

query I rowsort
SELECT 64 + 96 AS col1 FROM tab1
----
160
160
160

query I rowsort
SELECT ALL + col2 * + - 67 FROM tab0 AS cor0
----
-3149
-6633
-670

query I rowsort
SELECT ALL + AVG ( ALL + col1 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 33
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE + col1 IS NULL
----

query II rowsort
SELECT ALL + ( col0 ) AS col0, 58 * + col2 FROM tab2
----
46
1334
64
2320
75
3364

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT - col1 DIV - 36 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3796
SELECT - col1 / - 36 FROM tab2
----
1
1
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 81 * + - ( + + col0 ) >= NULL OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT - MAX( - ( - col0 ) ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT - MAX ( - ( - col0 ) ) FROM tab1 cor0
----
-91

query I rowsort
SELECT ALL + 32 AS col1 FROM tab2 cor0
----
32
32
32

query II rowsort
SELECT + 98 * - col1, - 86 + + col2 AS col1 FROM tab1 cor0
----
-1372
10
-4606
-18
-490
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT DISTINCT - SUM( - 44 ) AS col0 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT - SUM ( - 44 ) AS col0 FROM tab1 AS cor0
----
132

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 30 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 12 BETWEEN - 81 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT + col0 DIV + + col0 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3805
SELECT + col0 / + + col0 AS col1 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT DISTINCT - SUM( 21 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT - SUM ( 21 ) FROM tab0
----
-63

query I rowsort
SELECT col0 * 93 * - - col1 FROM tab2
----
218178
458304
467325

query I rowsort
SELECT + 63 + 59 * + col0 * - ( + col0 ) + + - col1 + - - col2 * col0 AS col1 FROM tab1
----
-148514
-421202
-482375

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT DISTINCT 40 * - CAST( + - 38 AS SIGNED ) + - col0 + + col2 AS col0 FROM tab1
----
1494
1497
1565

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT 40 * - CAST ( + - 38 AS INTEGER ) + - col0 + + col2 AS col0 FROM tab1
----
1494
1497
1565

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT + col0 DIV - + 34 + col1 - + + col1 AS col1 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-3811
SELECT + col0 / - + 34 + col1 - + + col1 AS col1 FROM tab0
----
-2
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - 86
----

query I rowsort
SELECT ALL + ( - - col1 ) FROM tab2 cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3814
SELECT + - col1 DIV - - col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3814
SELECT + - col1 / - - col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3815
SELECT ALL + col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL + col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3817
SELECT - COUNT( * ) DIV - 78 * - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3817
SELECT - COUNT ( * ) / - 78 * - COUNT ( * ) AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT + 42 * col1 - + - col2 FROM tab0
----
141
3449
892

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL - SUM( ALL col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - SUM ( ALL col1 ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-3821
SELECT DISTINCT - + COUNT( * ) col1, 95 AS col2 FROM tab2 WHERE - - col2 IS NULL
----
0
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3821
SELECT DISTINCT - + COUNT ( * ) col1, 95 AS col2 FROM tab2 WHERE - - col2 IS NULL
----
0
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT 92 + + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT 92 + + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 74 * - col2 - + 40 + + col1 + 75 FROM tab2 AS cor0
----
-1616
-2848
-4190

query I rowsort
SELECT 8 + + + col1 + 69 FROM tab2 AS cor0
----
128
144
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3825
SELECT ALL + CAST( + 74 AS SIGNED ) + + col2 AS col0 FROM tab2 AS cor0
----
114
132
97

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + CAST ( + 74 AS INTEGER ) + + col2 AS col0 FROM tab2 AS cor0
----
114
132
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3826
SELECT - CAST( NULL AS SIGNED ) * - col2 * + col0, + col2 * col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3826
SELECT - CAST ( NULL AS INTEGER ) * - col2 * + col0, + col2 * col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col2 col2 FROM tab1 cor0
----
110
115
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3828
SELECT ALL - + CAST( NULL AS DECIMAL ) * - 94 + 84 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL - + CAST ( NULL AS REAL ) * - 94 + 84 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3829
SELECT + col1 + - 46 DIV - ( + col1 ) * - + col0 * + 44 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3829
SELECT + col1 + - 46 / - ( + col1 ) * - + col0 * + 44 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT + - 96 * + - col0 + + + col1 + + 46 - col1 - + col1 * - - col2, col0 * + col2 + + + col1 AS col0 FROM tab1 AS cor0
----
3598
4910
5586
6235
7911
5020

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT DISTINCT - SUM( ALL + - col2 ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3831
SELECT DISTINCT - SUM ( ALL + - col2 ) col0 FROM tab2
----
121

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT COUNT( DISTINCT col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT COUNT ( DISTINCT col1 ) FROM tab0
----
3

query I rowsort
SELECT ALL - col1 * + - col0 * - col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT COUNT( * ) * COUNT( * ) + + SUM( + + col1 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3835
SELECT COUNT ( * ) * COUNT ( * ) + + SUM ( + + col1 ) FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - COUNT( ALL + 55 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3836
SELECT - COUNT ( ALL + 55 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <> + 82
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col2 AND + 59 + - 66
----

query I rowsort
SELECT - col0 / + + 16 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - col0 * + - col1 + + col1 - col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3841
SELECT DISTINCT + - 23 * CAST( - 87 AS DECIMAL ) col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3841
SELECT DISTINCT + - 23 * CAST ( - 87 AS REAL ) col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3842
SELECT MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT + 67 * - SUM( - ( - col1 ) ) * + 90 AS col2 FROM tab2 AS cor0
----
-1175850

skipif mysql # not compatible
query I rowsort label-3843
SELECT + 67 * - SUM ( - ( - col1 ) ) * + 90 AS col2 FROM tab2 AS cor0
----
-1175850

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT DISTINCT - - COUNT( * ) * + COUNT( DISTINCT - - 24 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( DISTINCT - - 24 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT col2 * - 52 * - col1 FROM tab1 AS cor0
----
15340
166192
69888

query II rowsort
SELECT DISTINCT - col1, col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3847
SELECT - + 21 DIV + 28 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT - + 21 / + 28 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT 39 * - + col0 IS NULL )
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT - + COUNT( 97 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3850
SELECT - + COUNT ( 97 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 61 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col2 FROM tab0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL 40 + + COUNT( * ) * + 60 AS col0 FROM tab2
----
220

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL 40 + + COUNT ( * ) * + 60 AS col0 FROM tab2
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3854
SELECT DISTINCT 13 + + CAST( - 48 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT 13 + + CAST ( - 48 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT 34 * - - 28 FROM tab0
----
952
952
952

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT - + MAX( - + col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3856
SELECT - + MAX ( - + col2 ) FROM tab2 cor0
----
23

query I rowsort
SELECT DISTINCT + col0 + + 38 AS col0 FROM tab0 AS cor0
----
125
135
53

query I rowsort
SELECT 48 - - + 89 AS col1 FROM tab0 AS cor0
----
137
137
137

query I rowsort
SELECT DISTINCT - 39 * + col2 FROM tab1 cor0
----
-2301
-2652
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3860
SELECT col0 * 72 - - CAST( + + col0 AS SIGNED ) col1, - col0 * - 3 AS col2 FROM tab0
----
1095
45
6351
261
7081
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3860
SELECT col0 * 72 - - CAST ( + + col0 AS INTEGER ) col1, - col0 * - 3 AS col2 FROM tab0
----
1095
45
6351
261
7081
291

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT COUNT( + 85 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3861
SELECT COUNT ( + 85 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL 31 * + + MIN( + + col2 ) FROM tab1
----
1829

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL 31 * + + MIN ( + + col2 ) FROM tab1
----
1829

query II rowsort
SELECT + + 40 AS col0, col2 + + + 33 FROM tab1 WHERE NOT + col0 + - 44 + - col1 + col0 IS NULL
----
40
101
40
129
40
92

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3865
SELECT DISTINCT - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT - - col0 * - + 8 + col0 * + + 78 + ( + 98 ) FROM tab0 cor0
----
1148
6188
6888

query I rowsort
SELECT + - 57 * + + col0 + + + col2 AS col0 FROM tab1 AS cor0
----
-2811
-4786
-5119

onlyif mysql # DIV for integer division: 
query I rowsort label-3869
SELECT ALL - col0 DIV + + col2 AS col1 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL - col0 / + + col2 AS col1 FROM tab2 cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 39 IS NULL
----
14
47
5

query I rowsort
SELECT 45 / + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3872
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 83 ) + + col0 / CAST( NULL AS DECIMAL ) + + - col1 * + col2 + - + col0 + col2 + - + 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3872
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 83 ) + + col0 / CAST ( NULL AS REAL ) + + - col1 * + col2 + - + col0 + col2 + - + 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3873
SELECT ALL COUNT( * ), + COUNT( * ) col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3873
SELECT ALL COUNT ( * ), + COUNT ( * ) col2 FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 4 * - - col0 / col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * 34 col0 FROM tab0 AS cor0
----
1666
1666
1666

query I rowsort
SELECT - col0 + - - 47 FROM tab0
----
-40
-50
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT DISTINCT - 96 DIV - col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT - 96 / - col2 FROM tab1
----
1

query I rowsort
SELECT ( + + col1 ) + + col1 AS col0 FROM tab2
----
102
134
154

query I rowsort
SELECT - col1 * + col2 + col0 FROM tab2 WHERE ( NOT col0 * col1 IS NOT NULL )
----

query I rowsort
SELECT ALL + + 64 FROM tab0 WHERE + 28 <= - 14
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT DISTINCT + ( + COUNT( * ) ) * + - 38 * - COUNT( * ) FROM tab0 AS cor0
----
342

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT + ( + COUNT ( * ) ) * + - 38 * - COUNT ( * ) FROM tab0 AS cor0
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - MAX( DISTINCT 51 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3884
SELECT - MAX ( DISTINCT 51 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + col1 - - + col0 FROM tab2
----
141
142
97

query I rowsort
SELECT - 22 - - 40 * ( - - col1 ) AS col1 FROM tab0
----
18
3218
818

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3887
SELECT 24 - - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT 24 - - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col1 ) - + ( col0 ) + + - col1 FROM tab0
----
-129
-177
-99

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 49 + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - - 77 AS col1 FROM tab0
----
-1155
-6699
-7469

query I rowsort
SELECT - - col0 * 39 AS col2 FROM tab1 AS cor0
----
1989
3315
3549

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE NOT + col0 * - - col2 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT + COUNT( ALL - 31 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3894
SELECT + COUNT ( ALL - 31 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL col1 AS col2, ( + + col1 ) FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT - + 27 * + - col0 AS col0 FROM tab2 AS cor0
----
1242
1728
2025

query I rowsort
SELECT + ( + col0 ) * - ( + col1 ) AS col0 FROM tab0
----
-1215
-1827
-97

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3899
SELECT - + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT - + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT - + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT - + col1 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 60 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-60

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - col1 + col0 * - ( + col0 ) FROM tab2 AS cor0
----
-2167
-4173
-5692

query II rowsort
SELECT + col0 AS col2, 13 FROM tab0 AS cor0 WHERE NOT + 75 * - 47 IS NULL
----
15
13
87
13
97
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT + COUNT( col1 ) * + COUNT( * ) - 45 + + + 43 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + COUNT ( col1 ) * + COUNT ( * ) - 45 + + + 43 FROM tab1 AS cor0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) * 73 FROM tab0 AS cor0 WHERE - CAST( 35 AS SIGNED ) <> + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 73 FROM tab0 AS cor0 WHERE - CAST ( 35 AS INTEGER ) <> + - 28
----
NULL

query II rowsort
SELECT - - col1 * col0, col0 + col1 * - 13 + - col2 AS col2 FROM tab2 AS cor0
----
2346
-640
4928
-977
5025
-854

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3907
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN col2 AND - 69
----

skipif mysql # not compatible
query III rowsort label-3907
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN col2 AND - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - MIN( ALL + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3908
SELECT - MIN ( ALL + col2 ) FROM tab0
----
-10

query I rowsort
SELECT DISTINCT col1 + - - 35 FROM tab1
----
40
49
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3910
SELECT ALL - CAST( + + col1 AS SIGNED ) + col0 FROM tab1
----
37
44
80

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - CAST ( + + col1 AS INTEGER ) + col0 FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT + col1 + col1 + + 77 * - - CAST( - + 18 AS SIGNED ) AS col1 FROM tab1
----
-1292
-1358
-1376

skipif mysql # not compatible
query I rowsort label-3911
SELECT + col1 + col1 + + 77 * - - CAST ( - + 18 AS INTEGER ) AS col1 FROM tab1
----
-1292
-1358
-1376

query I rowsort
SELECT ALL - col1 + 14 * + - col0 AS col1 FROM tab0 AS cor0
----
-1239
-1359
-291

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 19 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL - - 44 + - COUNT( - col2 ) + + 62 AS col1 FROM tab2 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL - - 44 + - COUNT ( - col2 ) + + 62 AS col1 FROM tab2 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT col0 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3915
SELECT col0 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 84 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT - 84 * - COUNT( * ) - + 13 AS col1 FROM tab2 AS cor0
----
239

skipif mysql # not compatible
query I rowsort label-3918
SELECT - 84 * - COUNT ( * ) - + 13 AS col1 FROM tab2 AS cor0
----
239

query II rowsort
SELECT DISTINCT - - 91, - ( + + 25 ) AS col0 FROM tab1 AS cor0
----
91
-25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 91 ) <> + col2 * - + 38
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 11 > - ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT + MIN( col1 ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT + MIN ( col1 ) AS col0 FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT DISTINCT MIN( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT MIN ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ( + 28 ) FROM tab0
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3926
SELECT * FROM tab0 WHERE NOT + - col1 * col0 * CAST( - + col2 AS SIGNED ) + 30 + - - col0 + - col0 * - col1 * - col1 NOT IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-3926
SELECT * FROM tab0 WHERE NOT + - col1 * col0 * CAST ( - + col2 AS INTEGER ) + 30 + - - col0 + - col0 * - col1 * - col1 NOT IN ( + col2 )
----

query I rowsort
SELECT ALL - ( 7 ) FROM tab2, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - MAX( - ( 74 ) ) AS col1 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-3928
SELECT - MAX ( - ( 74 ) ) AS col1 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT DISTINCT - ( + MIN( DISTINCT - col0 ) ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT - ( + MIN ( DISTINCT - col0 ) ) AS col2 FROM tab1
----
91

query I rowsort
SELECT - 18 FROM tab0 cor0
----
-18
-18
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3932
SELECT + 71 DIV + col1 col1 FROM tab1
----
1
14
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3932
SELECT + 71 / + col1 col1 FROM tab1
----
1
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT DISTINCT + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
0

query I rowsort
SELECT DISTINCT + 99 + + col2 AS col2 FROM tab0 cor0
----
109
146
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 + - col2 + col0 * + col1 * + col0 col1 FROM tab1 AS cor0
----
36081
36333
389154

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT DISTINCT - COUNT( * ) * + - 70 AS col0 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT - COUNT ( * ) * + - 70 AS col0 FROM tab0
----
210

query I rowsort
SELECT + col2 * + 68 + - col1 + + col1 AS col0 FROM tab2
----
1564
2720
3944

onlyif mysql # DIV for integer division: 
query II rowsort label-3939
SELECT ( col2 ) * 68 + - col0, col2 * col0 DIV - + col2 + + col0 AS col1 FROM tab0
----
3181
0
593
0
6635
0

skipif mysql # not compatible
query II rowsort label-3939
SELECT ( col2 ) * 68 + - col0, col2 * col0 / - + col2 + + col0 AS col1 FROM tab0
----
3181
0
593
0
6635
0

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 9 * - 11 AS col0 FROM tab1
----
99
99
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT + COUNT( - 18 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT + COUNT ( - 18 ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL - - ( + MAX( - - col1 ) ) + - 22 AS col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL - - ( + MAX ( - - col1 ) ) + - 22 AS col1 FROM tab2 AS cor0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 col2 FROM tab2, tab1 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT DISTINCT + - SUM( DISTINCT - - 47 ) AS col1 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT + - SUM ( DISTINCT - - 47 ) AS col1 FROM tab0 AS cor0
----
-47

query II rowsort
SELECT col0, - 8 * - ( + 28 ) FROM tab1 AS cor0
----
51
224
85
224
91
224

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT SUM( - 99 ) AS col0 FROM tab1 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-3949
SELECT SUM ( - 99 ) AS col0 FROM tab1 cor0
----
-297

query I rowsort
SELECT DISTINCT - 94 * - + 62 * 20 + - 41 AS col2 FROM tab1 AS cor0 WHERE - col1 IN ( + 9 * - - 44, + 86, + + col2 / 77 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT ALL + - col0 DIV 94 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL + - col0 / 94 AS col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3952
SELECT - CAST( 39 AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 / col0 AND + + 35
----

skipif mysql # not compatible
query I rowsort label-3952
SELECT - CAST ( 39 AS REAL ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 / col0 AND + + 35
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3953
SELECT - COUNT( * ) DIV + COUNT( * ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3953
SELECT - COUNT ( * ) / + COUNT ( * ) FROM tab1 cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3954
SELECT + 82 * + MAX( ALL col1 ), - COUNT( ALL + + CAST( + 83 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
6314
-3

skipif mysql # not compatible
query II rowsort label-3954
SELECT + 82 * + MAX ( ALL col1 ), - COUNT ( ALL + + CAST ( + 83 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
6314
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 96 col0 FROM tab2 AS cor0
----
96
96
96

onlyif mysql # DIV for integer division: 
query II rowsort label-3956
SELECT + col0, - col1 DIV + col1 FROM tab2
----
46
-1
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-3956
SELECT + col0, - col1 / + col1 FROM tab2
----
46
-1
64
-1
75
-1

query I rowsort
SELECT - 39 AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
-39
-39
-39

query II rowsort
SELECT - col0 AS col2, - ( - col1 ) + - + col0 FROM tab0
----
-15
66
-87
-66
-97
-96

query II rowsort
SELECT + 10, + col2 AS col0 FROM tab0
----
10
10
10
47
10
99

query I rowsort
SELECT - ( col2 ) * - col2 * - col2 * col1 FROM tab1 AS cor0
----
-1026895
-12386304
-14778304

query I rowsort
SELECT 16 * col0 AS col1 FROM tab1 AS cor0
----
1360
1456
816

query I rowsort
SELECT + col0 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1 AS col1, 66 AS col0 FROM tab0 cor0
----
1
66
21
66
81
66

query I rowsort
SELECT ALL + - 4 AS col0 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - + 69 + 91 FROM tab2 WHERE NOT + col1 IS NULL
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT SUM( DISTINCT - 88 ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT SUM ( DISTINCT - 88 ) FROM tab0
----
-88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 37 * + col0 NOT IN ( + 71, + col0, + col0 * col2, + 67 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( - 2 ) AS col0, col0 FROM tab2 AS cor0
----
-2
46
-2
64
-2
75

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col0 * - - 60 AS col0 FROM tab1 AS cor0
----
2964
5041
5392

query I rowsort
SELECT ALL + - 82 + + 73 AS col2 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT - COUNT( * ) AS col1, - COUNT( * ) FROM tab2 AS cor0 WHERE + col2 * + + col0 / - + 74 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-3971
SELECT - COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 * + + col0 / - + 74 IS NULL
----
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + + col2 - col2 + + col0 * - col0 * - 48 NOT BETWEEN col2 * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 * - col1 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 - - - 49 FROM tab1
----
-108
-117
-145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 * - col0 col2 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab2 WHERE NOT - col0 + + col1 IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NOT - - col0 NOT BETWEEN 8 + + col1 / 84 AND + col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT MIN( ALL - 53 ) + 17 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-3978
SELECT MIN ( ALL - 53 ) + 17 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT + MIN( DISTINCT - 61 ) AS col1 FROM tab1, tab0 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT + MIN ( DISTINCT - 61 ) AS col1 FROM tab1, tab0 cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3980
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + + ( 64 ) FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3982
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 51 FROM tab2 WHERE NOT ( col1 ) IS NULL
----
-51
-51
-51

query III rowsort
SELECT * FROM tab0 WHERE + 0 IS NULL
----

query I rowsort
SELECT - col2 - - col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT MAX( - 26 ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-3987
SELECT MAX ( - 26 ) FROM tab0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT DISTINCT MAX( - 71 ) / CAST( NULL AS SIGNED ) + - COUNT( * ) * - 54 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3988
SELECT DISTINCT MAX ( - 71 ) / CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 54 col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 75 - col0 FROM tab2
----
-121
-139
-150

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT DISTINCT - COUNT( * ) + - 43 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT - COUNT ( * ) + - 43 FROM tab2
----
-46

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3993
SELECT - AVG ( ALL - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT - AVG ( ALL - CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 / - col2 col0 FROM tab2 WHERE NULL NOT BETWEEN - 38 * col0 AND col2 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT - COUNT( col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3995
SELECT - COUNT ( col0 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT - MAX( col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3996
SELECT - MAX ( col0 ) FROM tab2
----
-75

query I rowsort
SELECT ALL col1 + 52 AS col1 FROM tab1 WHERE NOT + col0 + col2 IN ( - col1 )
----
57
66
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * col0 >= ( NULL )
----

query I rowsort
SELECT ( 70 ) AS col0 FROM tab1
----
70
70
70

query I rowsort
SELECT col1 + 4 AS col2 FROM tab2
----
55
71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT COUNT( * ) * + 63 AS col2 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-4001
SELECT COUNT ( * ) * + 63 AS col2 FROM tab2
----
189

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 42 = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 95 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT ALL - col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4006
SELECT ALL CAST( NULL AS SIGNED ) + - 7 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL CAST ( NULL AS INTEGER ) + - 7 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL + COUNT( col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + COUNT ( col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT - SUM( 39 ) FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT - SUM ( 39 ) FROM tab0
----
-117

query I rowsort
SELECT DISTINCT ( - col0 ) + 26 FROM tab0 AS cor0
----
-61
-71
11

query I rowsort
SELECT DISTINCT col2 * + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( - 65 + col1 * - 57 )
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - 56 * - 64 IN ( 89 )
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE 74 + + 52 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col0 - + col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

query I rowsort
SELECT DISTINCT 45 + - 62 FROM tab0 cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT - 13 + MIN( + 36 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4015
SELECT - 13 + MIN ( + 36 ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT DISTINCT - SUM( ALL col2 ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT - SUM ( ALL col2 ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4017
SELECT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0 WHERE - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL - COUNT( * ) - + 87 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL - COUNT ( * ) - + 87 FROM tab0 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT col1 * CAST( 14 AS SIGNED ) + col2 * + col0 FROM tab1 AS cor0
----
5085
5092
6846

skipif mysql # not compatible
query I rowsort label-4019
SELECT col1 * CAST ( 14 AS INTEGER ) + col2 * + col0 FROM tab1 AS cor0
----
5085
5092
6846

query I rowsort
SELECT ( - 6 ) * col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 25 + col0 FROM tab2 AS cor0
----
21
39
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL + MAX( ALL - col1 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL + MAX ( ALL - col1 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT ALL 30 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL 30 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4024
SELECT ALL + 32 - - 1 DIV - col0 AS col1 FROM tab1
----
32
32
32

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL + 32 - - 1 / - col0 AS col1 FROM tab1
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT MAX( - col0 ) AS col2 FROM tab2 WHERE col2 / col2 + 96 = - ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT MAX ( - col0 ) AS col2 FROM tab2 WHERE col2 / col2 + 96 = - ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL COUNT( * ) - - + COUNT( * ) col0 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4026
SELECT ALL COUNT ( * ) - - + COUNT ( * ) col0 FROM tab1
----
6

query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab0
----
-11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 77 <> + col2
----

query I rowsort
SELECT ALL ( + + 14 ) AS col0 FROM tab2
----
14
14
14

query I rowsort
SELECT DISTINCT 3 * + + col1 * col0 AS col0 FROM tab2
----
14784
15075
7038

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4032
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 52 * col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1196
2080
3016

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4034
SELECT - CAST( ( - 80 ) AS SIGNED ) DIV + col0 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4034
SELECT - CAST ( ( - 80 ) AS INTEGER ) / + col0 AS col2 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 IN ( + 49 )
----

query I rowsort
SELECT DISTINCT + col1 * - 80 * + - 35 FROM tab2
----
142800
187600
215600

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( ( NULL ) NOT IN ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT DISTINCT ( COUNT( * ) ) * + 76 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT ( COUNT ( * ) ) * + 76 FROM tab1
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4039
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT + 35 * + - col2 IN ( col0 - + 73 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT - 24 * 18 + + COUNT( * ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-432

skipif mysql # not compatible
query I rowsort label-4041
SELECT - 24 * 18 + + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 * + col0 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT ( - col1 ) IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT + - CAST( + 82 AS SIGNED ) FROM tab1 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-4044
SELECT + - CAST ( + 82 AS INTEGER ) FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ALL - col2 * - + col2 * + 18 AS col0 FROM tab2 AS cor0
----
28800
60552
9522

query II rowsort
SELECT ALL col2 AS col2, col2 AS col2 FROM tab2 cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT - + 16 - MIN( ALL col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT - + 16 - MIN ( ALL col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT + MAX( + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4048
SELECT + MAX ( + col1 ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - col0 * + ( col0 ) * col2 + - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + + - col2 <= ( 44 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 67 >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT DISTINCT - 30 * - - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT - 30 * - - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + 35 * 25 * col2 ) BETWEEN NULL AND ( + ( col2 ) )
----

query I rowsort
SELECT col0 + col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
138
65
90

query I rowsort
SELECT - col0 * + ( col2 ) + + col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT col1 / ( + CAST( NULL AS SIGNED ) ) * - 39 + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT col1 / ( + CAST ( NULL AS INTEGER ) ) * - 39 + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 37 * + col1 AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query II rowsort
SELECT ALL + col0, 38 * - col2 - + col2 AS col2 FROM tab1
----
51
-3744
85
-2301
91
-2652

query I rowsort
SELECT DISTINCT + ( col0 ) + - + ( + 33 ) FROM tab2
----
13
31
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4061
SELECT ( - ( - CAST( NULL AS DECIMAL ) ) ) / + + SUM( col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT ( - ( - CAST ( NULL AS REAL ) ) ) / + + SUM ( col2 ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 = ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT - - ( - COUNT( ALL 2 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4063
SELECT - - ( - COUNT ( ALL 2 ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + ( - ( 76 ) ) AS col0 FROM tab1 AS cor0
----
-76
-76
-76

query I rowsort
SELECT col2 * + col1 + col2 AS col1 FROM tab0 AS cor0 WHERE ( col1 + col0 ) IS NOT NULL
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT - - MAX( - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4066
SELECT - - MAX ( - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT + + MAX( + - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT + + MAX ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4068
SELECT ALL - col2 + - - col1 + - + CAST( NULL AS DECIMAL ) + + col0 * - - CAST( 82 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL - col2 + - - col1 + - + CAST ( NULL AS REAL ) + + col0 * - - CAST ( 82 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - - 41 AS col0 FROM tab1 AS cor0
----
126
132
92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + ( - 85 ) ) IS NULL AND NULL NOT IN ( 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT DISTINCT + COUNT( * ) * 68 FROM tab0, tab0 cor0
----
612

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT + COUNT ( * ) * 68 FROM tab0, tab0 cor0
----
612

query II rowsort
SELECT ALL 99 AS col2, 83 FROM tab1
----
99
83
99
83
99
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT COUNT( * ) - - + ( - COUNT( * ) ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4074
SELECT DISTINCT COUNT ( * ) - - + ( - COUNT ( * ) ) col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4075
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4075
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT ( col1 - - 62 * + col0 + + 70 NOT BETWEEN + col0 * col0 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT ( col1 - - 62 * + col0 + + 70 NOT BETWEEN + col0 * col0 AND NULL )
----
0

query II rowsort
SELECT DISTINCT 22, col2 + + + ( + + col1 ) * - col2 - - col1 * - 29 AS col2 FROM tab0
----
22
-29
22
-6109
22
-809

query I rowsort
SELECT - 46 + - - 69 * col2 AS col2 FROM tab0
----
3197
644
6785

query I rowsort
SELECT ALL col0 - + ( - + col0 ) FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT - 3 * col2 AS col0 FROM tab0
----
-141
-297
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT ALL - MIN( - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL - MIN ( - col2 ) FROM tab0 AS cor0
----
99

query II rowsort
SELECT ALL - col0 AS col2, 93 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( 70 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col0 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + + 15 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND 70 / + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT + MIN( ALL + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4086
SELECT + MIN ( ALL + col1 ) AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT DISTINCT 31 * - + COUNT( * ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT 31 * - + COUNT ( * ) FROM tab1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT DISTINCT SUM( + col1 ) + - SUM( + - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT SUM ( + col1 ) + - SUM ( + - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT - MAX( DISTINCT + 32 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4089
SELECT - MAX ( DISTINCT + 32 ) FROM tab1 AS cor0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col2 FROM tab0 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) * CAST( + col0 AS SIGNED ) * + col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) * CAST ( + col0 AS INTEGER ) * + col2 AS col1 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - col1 * 35 * col1, - col2 AS col1 FROM tab1
----
-6860
-96
-77315
-68
-875
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4093
SELECT ALL 4 * MIN( DISTINCT - - col0 ), - 27 * - 89 col0 FROM tab2
----
184
2403

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4093
SELECT ALL 4 * MIN ( DISTINCT - - col0 ), - 27 * - 89 col0 FROM tab2
----
184
2403

query I rowsort
SELECT + 53 + col0 + + - 94 FROM tab2
----
23
34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT DISTINCT MAX( + - 62 ) * + - ( - + 10 ) AS col2 FROM tab1
----
-620

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT MAX ( + - 62 ) * + - ( - + 10 ) AS col2 FROM tab1
----
-620

query I rowsort
SELECT 53 + + + col1 AS col0 FROM tab2
----
104
120
130

query I rowsort
SELECT col2 * col1 * - col2 * + - col2 + col0 FROM tab2
----
13072579
4928064
620563

query I rowsort
SELECT ALL - 15 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-15
-15
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 79 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT COUNT( * ) - - MIN( + + col0 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-4101
SELECT COUNT ( * ) - - MIN ( + + col0 ) FROM tab0
----
18

query I rowsort
SELECT ALL col2 * 43 AS col2 FROM tab2
----
1720
2494
989

query I rowsort
SELECT DISTINCT - 65 * - col0 + + + col2 AS col0 FROM tab2 AS cor0
----
3013
4200
4933

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + - col2 * - col0 col2 FROM tab1 AS cor0
----
4982
5101
6274

query I rowsort
SELECT ALL - + col0 * + col1 + + - 40 - 14 + - + col2 * - - col0 FROM tab0 AS cor0
----
-1974
-2751
-9754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 * + col2 col0, col1 AS col2 FROM tab2 cor0
----
1173
51
3080
77
3886
67

query I rowsort
SELECT DISTINCT - col2 - - col1 * + 57 AS col0 FROM tab0
----
-42
1187
4570

query I rowsort
SELECT - col0 * + 11 * - - col1 * - + col2 AS col0 FROM tab0
----
105633
200970
628155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT CAST( + col1 AS SIGNED ) col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4110
SELECT CAST ( + col1 AS INTEGER ) col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4111
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + col2 * + col0 + - col1 + ( - - col0 ) - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4111
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + col2 * + col0 + - col1 + ( - - col0 ) - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT ( - 14 ) AS col1 FROM tab2
----
-14

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 88 + + col2 NOT IN ( 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL MAX( ALL + - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL MAX ( ALL + - col2 ) FROM tab1
----
-59

query I rowsort
SELECT DISTINCT - col1 - + + 5 AS col1 FROM tab1 AS cor0 WHERE ( - col0 < - col2 )
----
-10
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4116
SELECT CAST( - col1 AS SIGNED ) col2 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4116
SELECT CAST ( - col1 AS INTEGER ) col2 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT DISTINCT SUM( ALL - - ( - - 53 ) ) AS col1 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT SUM ( ALL - - ( - - 53 ) ) AS col1 FROM tab0 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4118
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT + COUNT( DISTINCT + - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4119
SELECT + COUNT ( DISTINCT + - col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT - COUNT( - + col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4120
SELECT - COUNT ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 30 * 61 AS col2 FROM tab1 AS cor0
----
1830
1830
1830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT ALL + CAST( + + col1 AS SIGNED ) * + 54 FROM tab0 cor0
----
1134
4374
54

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL + CAST ( + + col1 AS INTEGER ) * + 54 FROM tab0 cor0
----
1134
4374
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL COUNT( * ) + 7 AS col2 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL COUNT ( * ) + 7 AS col2 FROM tab1 AS cor0
----
10

query I rowsort
SELECT 96 FROM tab0 AS cor0 WHERE NOT col0 < + col1
----
96
96

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 * + - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT + col2 * - + 69 AS col1 FROM tab1 AS cor0
----
-4071
-4692
-6624

query II rowsort
SELECT - col2, + col2 * - 40 * + col0 + 47 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-10
-32926
-47
-26938
-99
-383976

query II rowsort
SELECT DISTINCT - - col1, - col2 * - + 73 AS col1 FROM tab2 AS cor0
----
51
1679
67
4234
77
2920

query I rowsort
SELECT DISTINCT - + ( + col0 ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT MIN( col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4131
SELECT MIN ( col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT + col1 + - ( + col0 ) * + 12 AS col0 FROM tab0 AS cor0 WHERE NOT 25 / + 28 <= NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 > - col2
----

query I rowsort
SELECT - - col0 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4136
SELECT + 68 DIV - 72 * + + SUM( - + col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4136
SELECT + 68 / - 72 * + + SUM ( - + col2 ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT - 15 AS col0, COUNT( * ) FROM tab1, tab2 AS cor0
----
-15
9

skipif mysql # not compatible
query II rowsort label-4137
SELECT - 15 AS col0, COUNT ( * ) FROM tab1, tab2 AS cor0
----
-15
9

query I rowsort
SELECT ALL + 79 / - 6 AS col1 FROM tab0 WHERE NULL >= ( - 73 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT 23 + + COUNT( * ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-4139
SELECT 23 + + COUNT ( * ) FROM tab0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4140
SELECT + 35 + + COUNT( col1 ) AS col0, - 58 col0 FROM tab1
----
38
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4140
SELECT + 35 + + COUNT ( col1 ) AS col0, - 58 col0 FROM tab1
----
38
-58

query I rowsort
SELECT ALL col2 + col1 * + 29 * 10 AS col2 FROM tab2 AS cor0
----
14813
19488
22370

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT + - 74 + 39 + - 12 * COUNT( * ) * + 80 AS col0 FROM tab1 AS cor0
----
-2915

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + - 74 + 39 + - 12 * COUNT ( * ) * + 80 AS col0 FROM tab1 AS cor0
----
-2915

query I rowsort
SELECT DISTINCT + + ( - - 65 ) - + 83 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-18

query II rowsort
SELECT ALL + 86 AS col0, col2 - - - 61 FROM tab2 WHERE NOT NULL IS NOT NULL
----
86
-21
86
-3
86
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT - MIN( - + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT - MIN ( - + col2 ) AS col0 FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 60 col2 FROM tab0
----
-5220
-5820
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT + 68 DIV col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4148
SELECT + 68 / col2 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT + 11 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IN ( + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4152
SELECT ALL - + CAST( NULL AS DECIMAL ) + - + ( - 6 ) * - - ( - col2 ) * col1 * + 45 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL - + CAST ( NULL AS REAL ) + - + ( - 6 ) * - - ( - col2 ) * col1 * + 45 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT - 69 - CAST( NULL AS SIGNED ) + + col1 * + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT - 69 - CAST ( NULL AS INTEGER ) + + col1 * + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - col1 AS col0 FROM tab2 cor0
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT ALL + CAST( + - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL + CAST ( + - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL + 75 * + COUNT( * ) AS col1 FROM tab1 cor0
----
225

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + 75 * + COUNT ( * ) AS col1 FROM tab1 cor0
----
225

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 39 + 98 * - + col0 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + col1 * 0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 72 * - col0 AS col1 FROM tab2
----
-3312
-4608
-5400

query I rowsort
SELECT ALL - 52 * 9 AS col0 FROM tab2
----
-468
-468
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT - COUNT( * ) * 4 * - + ( + - MIN( DISTINCT - + 87 ) ) AS col2 FROM tab2
----
1044

skipif mysql # not compatible
query I rowsort label-4163
SELECT - COUNT ( * ) * 4 * - + ( + - MIN ( DISTINCT - + 87 ) ) AS col2 FROM tab2
----
1044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + + 45 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL + + 66 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT - + AVG ( - + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 * + + 63 NOT IN ( - - 3 * + + 85 - + - 82 + col0 * + + col0 * - col2, col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4168
SELECT DISTINCT - ( col0 ) * - CAST( - col2 AS SIGNED ) + - 14 AS col0, col2 AS col2 FROM tab1 AS cor0
----
-4910
96
-5029
59
-6202
68

skipif mysql # not compatible
query II rowsort label-4168
SELECT DISTINCT - ( col0 ) * - CAST ( - col2 AS INTEGER ) + - 14 AS col0, col2 AS col2 FROM tab1 AS cor0
----
-4910
96
-5029
59
-6202
68

query I rowsort
SELECT - - 1 + - + col2 FROM tab0 AS cor0
----
-46
-9
-98

query I rowsort
SELECT ALL 29 AS col0 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT - MIN( 84 ) + + 35 AS col2 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-4171
SELECT - MIN ( 84 ) + + 35 AS col2 FROM tab0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * + + 36 + + col0 col2 FROM tab1
----
2499
2533
2539

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL + ( - SUM( + 46 ) ) FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL + ( - SUM ( + 46 ) ) FROM tab0
----
-138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 col1 FROM tab2
----
116
46
80

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND col0 * + 60
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4176
SELECT col2 DIV + 52 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4176
SELECT col2 / + 52 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT 18 AS col1 FROM tab0 WHERE NULL BETWEEN + 77 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT COUNT( DISTINCT + 93 ) + COUNT( * ) col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4178
SELECT DISTINCT COUNT ( DISTINCT + 93 ) + COUNT ( * ) col0 FROM tab2 AS cor0
----
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - 45 * - 54 * - + 6 - + + 74 / 15 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL = ( - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = ( - 64 )
----
0

query I rowsort
SELECT ALL + 97 + - 21 AS col2 FROM tab0
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT ALL 63 * col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL 63 * col0 / - col0 AS col0 FROM tab1 AS cor0
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4183
SELECT + - col2 * + CAST( + 58 AS SIGNED ) AS col1, 73 AS col1 FROM tab0 AS cor0
----
-2726
73
-5742
73
-580
73

skipif mysql # not compatible
query II rowsort label-4183
SELECT + - col2 * + CAST ( + 58 AS INTEGER ) AS col1, 73 AS col1 FROM tab0 AS cor0
----
-2726
73
-5742
73
-580
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4184
SELECT - col1 * CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT - col1 * CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 * + + col2 * - - 46 + - col0 * col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 47 AS col1 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT DISTINCT MAX( DISTINCT - + col0 ) AS col2 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT MAX ( DISTINCT - + col0 ) AS col2 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
-51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL < ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT ALL + 53 DIV - - col1 FROM tab0
----
0
2
53

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + 53 / - - col1 FROM tab0
----
0
2
53

query I rowsort
SELECT DISTINCT 17 * - col1 * - - 98 AS col0 FROM tab0
----
-134946
-1666
-34986

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN + col1 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 87 * - - col0 + - - 32 * + col2 FROM tab1 AS cor0
----
10093
7509
9283

query I rowsort
SELECT ALL 82 + col0 * - 66 - - col2 FROM tab0 cor0 WHERE NOT 87 * + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 * - - 41 FROM tab1 cor0
----
-2091
-3485
-3731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT 28 + col0 AS col0 FROM tab0 AS cor0
----
115
125
43

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 46 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL - 73 + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL - 73 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4200
SELECT * FROM tab2 AS cor0 WHERE - ( + + col2 ) * + CAST( - col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4200
SELECT * FROM tab2 AS cor0 WHERE - ( + + col2 ) * + CAST ( - col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 64 + + 82 + + col0 AS col2 FROM tab1 AS cor0
----
103
109
69

query I rowsort
SELECT DISTINCT ( - + col1 ) FROM tab2 cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col0 FROM tab0
----
51
51
51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - 85 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT DISTINCT col0 + + CAST( - ( + + 63 ) AS SIGNED ) * - col2 FROM tab2
----
1495
2584
3729

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT col0 + + CAST ( - ( + + 63 ) AS INTEGER ) * - col2 FROM tab2
----
1495
2584
3729

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT - COUNT( * ) + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4206
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT ALL col2 + - col0 + col1 * - 90 AS col0 FROM tab1 AS cor0
----
-1215
-4253
-476

query I rowsort
SELECT - - 31 + col2 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + ( + 75 ) AND + 8 + col2
----
54
71
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT - COUNT( * ) FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT - COUNT ( * ) FROM tab0, tab2 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * 54 IN ( + col0, + col2, ( ( col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 55 > col0
----
85
5
59
91
47
68

query I rowsort
SELECT ALL - 22 * col1 FROM tab1
----
-1034
-110
-308

query I rowsort
SELECT + ( + - 1 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT DISTINCT + + MAX( DISTINCT + 50 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT + + MAX ( DISTINCT + 50 ) FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL + - ( + + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL + - ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 23 BETWEEN - col0 / col1 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * + + col1 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT 3 * - + CAST( NULL AS SIGNED ) / col0 * + 32 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT 3 * - + CAST ( NULL AS INTEGER ) / col0 * + 32 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 71 AS col2 FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4221
SELECT - + col0 * 26 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1196
NULL
-1664
NULL
-1950
NULL

skipif mysql # not compatible
query II rowsort label-4221
SELECT - + col0 * 26 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1196
NULL
-1664
NULL
-1950
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT - - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4222
SELECT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT + ( - - 18 ) * - + COUNT( * ) + ( - COUNT( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT + ( - - 18 ) * - + COUNT ( * ) + ( - COUNT ( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT 75 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT DISTINCT 84 DIV 59 + + col0 + - + col1 * 28 * + 86 FROM tab2
----
-122761
-161260
-185351

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT 84 / 59 + + col0 + - + col1 * 28 * + 86 FROM tab2
----
-122761
-161260
-185351

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT + ( ( + COUNT( * ) ) ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT + ( ( + COUNT ( * ) ) ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query II rowsort
SELECT ALL col0, col1 * + - col0 FROM tab0 AS cor0
----
15
-1215
87
-1827
97
-97

query I rowsort
SELECT ALL 19 * + + 68 * ( + col1 ) FROM tab0
----
104652
1292
27132

query I rowsort
SELECT ALL ( - + ( + 22 ) ) AS col2 FROM tab2
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT - CAST( NULL AS SIGNED ) * 93 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT - CAST ( NULL AS INTEGER ) * 93 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT ALL + COUNT( * ) + - 66 + - 75 * + 37 FROM tab2
----
-2838

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL + COUNT ( * ) + - 66 + - 75 * + 37 FROM tab2
----
-2838

query I rowsort
SELECT + col0 * ( 52 ) FROM tab0 AS cor0
----
4524
5044
780

query I rowsort
SELECT ALL + 19 * + col2 + col2 FROM tab2 AS cor0
----
1160
460
800

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 <> + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT DISTINCT + - CAST( - 22 AS SIGNED ) + - col2 * - col0 * + col1 FROM tab1 AS cor0
----
25097
290858
68566

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT + - CAST ( - 22 AS INTEGER ) + - col2 * - col0 * + col1 FROM tab1 AS cor0
----
25097
290858
68566

query II rowsort
SELECT DISTINCT + col0 + - col2 AS col2, 66 AS col0 FROM tab1 AS cor0
----
-45
66
23
66
26
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4237
SELECT AVG ( DISTINCT + + 96 ) / + 12 - - SUM( DISTINCT CAST( NULL AS DECIMAL ) ) + - COUNT( DISTINCT + col1 ) col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4237
SELECT AVG ( DISTINCT + + 96 ) / + 12 - - SUM ( DISTINCT CAST ( NULL AS REAL ) ) + - COUNT ( DISTINCT + col1 ) col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4238
SELECT - COUNT( ALL - col0 ) col1, 12 AS col1 FROM tab1 AS cor0
----
-3
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4238
SELECT - COUNT ( ALL - col0 ) col1, 12 AS col1 FROM tab1 AS cor0
----
-3
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4239
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / - - CAST( + col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4239
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / - - CAST ( + col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - + 33 AS col1 FROM tab1 AS cor0
----
-1551
-165
-462

query I rowsort
SELECT col2 / col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND col2 + col1 + + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT - MIN( ALL - col0 ) col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4242
SELECT - MIN ( ALL - col0 ) col2 FROM tab0 AS cor0
----
97

query II rowsort
SELECT col2, - col2 * + col1 FROM tab1 AS cor0
----
59
-295
68
-3196
96
-1344

query I rowsort
SELECT ALL 37 * + - 59 FROM tab1
----
-2183
-2183
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL MAX( + ( col2 ) ) * COUNT( * ) AS col1 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL MAX ( + ( col2 ) ) * COUNT ( * ) AS col1 FROM tab2
----
174

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + + 95 + col1 * + - col2 / + col2 BETWEEN - 67 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT MIN( 17 ) AS col0 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-4247
SELECT MIN ( 17 ) AS col0 FROM tab1
----
17

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT 45 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 + - - 90 * - col1 AS col1 FROM tab2
----
-4613
-6088
-6970

query I rowsort
SELECT ALL + 87 + - 5 AS col0 FROM tab2 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4251
SELECT ALL - COUNT( * ), - COUNT( * ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4251
SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT ALL - 70 * - 4 FROM tab1 AS cor0
----
280
280
280

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT + + 15 * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-135

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + + 15 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT DISTINCT - + col1 * col1 DIV ( + col0 ) + 58 AS col0 FROM tab2 AS cor0
----
-1
-34
2

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT - + col1 * col1 / ( + col0 ) + 58 AS col0 FROM tab2 AS cor0
----
-1
-34
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 92 + + col1 <> - - 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT DISTINCT - 94 * - COUNT( col2 ) * - MIN( + col1 ) AS col0 FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - 94 * - COUNT ( col2 ) * - MIN ( + col1 ) AS col0 FROM tab0 AS cor0
----
-282

query I rowsort
SELECT + ( - + 10 ) AS col1 FROM tab2 cor0
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4258
SELECT ALL ( col0 ) + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL ( col0 ) + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 85 * + col2 FROM tab2 cor0
----
1955
3400
4930

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4260
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - col2 * + - col1 * - col1 / + + 46, col0 - + col2 + + col2 + col2 AS col1 FROM tab2 AS cor0
----
NULL
104
NULL
133
NULL
69

skipif mysql # not compatible
query II rowsort label-4260
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - col2 * + - col1 * - col1 / + + 46, col0 - + col2 + + col2 + col2 AS col1 FROM tab2 AS cor0
----
NULL
104
NULL
133
NULL
69

query I rowsort
SELECT DISTINCT col0 * + + col2 + - - col2 AS col0 FROM tab0 cor0
----
752
880
9702

query I rowsort
SELECT + col1 - - col0 AS col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT col2 FROM tab2 WHERE + 36 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT col2 DIV - - ( ( - 77 ) ) + + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4264
SELECT col2 / - - ( ( - 77 ) ) + + - col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + 82 + - 60 AS col1 FROM tab0
----
22
22
22

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 IS NULL AND NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4267
SELECT - ( + + col0 ) + - col0, CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1
----
-102
NULL
-170
NULL
-182
NULL

skipif mysql # not compatible
query II rowsort label-4267
SELECT - ( + + col0 ) + - col0, CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1
----
-102
NULL
-170
NULL
-182
NULL

query I rowsort
SELECT + col2 + col2 + - + col2 * 81 FROM tab0 AS cor0
----
-3713
-7821
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT MIN( 95 ) AS col2 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-4269
SELECT MIN ( 95 ) AS col2 FROM tab0
----
95

query I rowsort
SELECT - col0 * - - 32 AS col2 FROM tab2
----
-1472
-2048
-2400

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + - + col1 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ALL + MAX( ALL + col2 ) col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4272
SELECT ALL + MAX ( ALL + col2 ) col1 FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 20 > - col0 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - + col0 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT DISTINCT COUNT( ALL - - 4 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT COUNT ( ALL - - 4 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT - col2 + + 78 FROM tab0 AS cor0 WHERE NOT NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4278
SELECT - col2 + + 78 FROM tab0 AS cor0 WHERE NOT NULL >= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT + - MAX( DISTINCT col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4279
SELECT + - MAX ( DISTINCT col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - + AVG ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN + - 91 - - - ( - col1 ) AND NULL
----
NULL

query I rowsort
SELECT ALL 34 * - 22 FROM tab0
----
-748
-748
-748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT CAST( - - col0 AS SIGNED ) + ( + col1 ) AS col1 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-4282
SELECT CAST ( - - col0 AS INTEGER ) + ( + col1 ) AS col1 FROM tab0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4283
SELECT col1 DIV - + 51 + 82 + col2 AS col0 FROM tab1
----
141
150
178

skipif mysql # not compatible
query I rowsort label-4283
SELECT col1 / - + 51 + 82 + col2 AS col0 FROM tab1
----
141
150
178

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE + 11 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - col2 * col1 + - col2 AS col0 FROM tab2
----
-1196
-3120
-3944

query II rowsort
SELECT + col2 AS col2, 14 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col0, - col0 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT col0 + - + 68 AS col2 FROM tab0
----
-53
19
29

query II rowsort
SELECT DISTINCT + col2 * + col0 + + col2 AS col0, + col2 * + col0 AS col0 FROM tab1 AS cor0
----
4992
4896
5074
5015
6256
6188

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 * col2 + - 34 * - col1 FROM tab0 AS cor0
----
-9767
545
614

query I rowsort
SELECT ALL - 2 + + 6 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT ALL - - 18 AS col0 FROM tab1 WHERE NOT - + 42 = - - col2
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, col0 * ( - - col2 ) col2 FROM tab0
----
10
870
47
705
99
9603

query I rowsort
SELECT - 19 - + - col2 * 7 FROM tab1
----
394
457
653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT 31 - - - 16 + - 22 * + COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-4296
SELECT 31 - - - 16 + - 22 * + COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
15

query I rowsort
SELECT + ( + 3 ) + col2 FROM tab1
----
62
71
99

query II rowsort
SELECT DISTINCT + col1 AS col1, - 31 FROM tab2
----
51
-31
67
-31
77
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4299
SELECT DISTINCT + + 53 * 47 + + - MIN( + col2 ) * - - CAST( COUNT( - 40 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2461

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT + + 53 * 47 + + - MIN ( + col2 ) * - - CAST ( COUNT ( - 40 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2461

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL COUNT( * ) - - + COUNT( DISTINCT 26 ) AS col0 FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL COUNT ( * ) - - + COUNT ( DISTINCT 26 ) AS col0 FROM tab2 cor0
----
4

query I rowsort
SELECT DISTINCT + 4 FROM tab2 AS cor0 WHERE ( ( NULL < NULL ) )
----

query I rowsort
SELECT col1 + + 29 + - - col2 FROM tab2 cor0
----
103
146
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 / + + col1 col0 FROM tab0 cor0 WHERE NOT ( NULL ) < 49 * - col2
----

query II rowsort
SELECT DISTINCT ( - col2 ) AS col0, - 19 FROM tab2
----
-23
-19
-40
-19
-58
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL + SUM( - + col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL + SUM ( - + col2 ) FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + SUM( - - 35 ) AS col1 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-4306
SELECT + SUM ( - - 35 ) AS col1 FROM tab1
----
105

query II rowsort
SELECT DISTINCT ( - col0 ) AS col2, + col0 + 22 FROM tab0
----
-15
37
-87
109
-97
119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - col1 ) BETWEEN - col0 * - col0 * col1 + 23 + + col0 AND - - 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NOT + - col2 IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 33 * col0 IN ( + col1 + ( col2 ) + + col1 * - col2 * + + ( - col2 ), - col0, + - 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT ALL - col2 DIV - 37 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL - col2 / - 37 FROM tab1 AS cor0
----
1
1
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 * col0 + + ( + col0 ) ) < + col2
----

query I rowsort
SELECT 74 * - + col1 FROM tab1 AS cor0
----
-1036
-3478
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT MAX( DISTINCT + - 57 ) AS col1 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4315
SELECT MAX ( DISTINCT + - 57 ) AS col1 FROM tab0 AS cor0
----
-57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / - col2 - + + 59 * + 84 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT - CAST( - + 61 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-4317
SELECT - CAST ( - + 61 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
61
61
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4318
SELECT + ( col0 ) DIV - col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4318
SELECT + ( col0 ) / - col0 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT DISTINCT COUNT( * ) - + 34 FROM tab0, tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT COUNT ( * ) - + 34 FROM tab0, tab0 AS cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT + col0 * + CAST( + col2 AS SIGNED ) * + col2 * - + col0 FROM tab0 AS cor0
----
-497025
-756900
-92217609

skipif mysql # not compatible
query I rowsort label-4320
SELECT + col0 * + CAST ( + col2 AS INTEGER ) * + col2 * - + col0 FROM tab0 AS cor0
----
-497025
-756900
-92217609

query I rowsort
SELECT + + 53 * + - col1 * + col1 + - + col0 FROM tab2 AS cor0
----
-137899
-237992
-314301

query II rowsort
SELECT + ( + col0 ) * 46 AS col0, 21 AS col0 FROM tab1 cor0
----
2346
21
3910
21
4186
21

query I rowsort
SELECT + - col0 * + + col1 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT - 25 NOT IN ( - col2, col2, col0, 83 + - col2 )
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE + ( + col2 ) <> - - 1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT DISTINCT MAX( ALL + - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT MAX ( ALL + - col0 ) FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4330
SELECT DISTINCT 32 + - - COUNT( * ), + 15 AS col2 FROM tab2
----
35
15

skipif mysql # not compatible
query II rowsort label-4330
SELECT DISTINCT 32 + - - COUNT ( * ), + 15 AS col2 FROM tab2
----
35
15

query I rowsort
SELECT ALL + col0 + 62 AS col1 FROM tab1
----
113
147
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL + 93 + + 58 * + - COUNT( * ) col0 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4332
SELECT ALL + 93 + + 58 * + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4333
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col1 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT COUNT( * ) FROM tab1 cor0 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4335
SELECT COUNT ( * ) FROM tab1 cor0 WHERE + col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 50 + + 52 FROM tab1
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + col1 col2 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT col2 DIV 93 DIV col1 * + col0 FROM tab0
----
0
0
97

skipif mysql # not compatible
query I rowsort label-4338
SELECT col2 / 93 / col1 * + col0 FROM tab0
----
0
0
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4339
SELECT ALL 55 DIV col1 + + - col0 FROM tab1 AS cor0
----
-48
-74
-90

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL 55 / col1 + + - col0 FROM tab1 AS cor0
----
-48
-74
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT COUNT( DISTINCT + - col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4340
SELECT COUNT ( DISTINCT + - col1 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + + ( + col2 ) - + + col2 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + + ( - + col0 ) - - + col0 AS col0, col2 * - col0 * - 70 FROM tab0 AS cor0
----
0
49350
0
60900
0
672210

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL COUNT( * ) + 96 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL COUNT ( * ) + 96 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - 70 - col0 FROM tab2 cor0
----
-116
-134
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT DISTINCT - 10 * + MIN( 48 ) + - MAX( - - 41 ) + + COUNT( * ) FROM tab2 AS cor0
----
-518

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - 10 * + MIN ( 48 ) + - MAX ( - - 41 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-518

query I rowsort
SELECT ALL + - col2 - - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 - col0 * 54 + - col0 AS col0 FROM tab1 AS cor0
----
-2709
-4616
-4937

query II rowsort
SELECT ALL col1 + + - 11, col2 - - - col2 AS col2 FROM tab1
----
-6
0
3
0
36
0

query II rowsort
SELECT ALL + col0 AS col1, col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + + 0 AS col1 FROM tab0 WHERE NOT ( col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT DISTINCT 97 * COUNT( * ) FROM tab0, tab0 AS cor0
----
873

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT 97 * COUNT ( * ) FROM tab0, tab0 AS cor0
----
873

onlyif mysql # aggregate syntax: 
query II rowsort label-4353
SELECT DISTINCT ( + 57 ) * - MIN( 68 ) AS col0, 50 FROM tab2
----
-3876
50

skipif mysql # not compatible
query II rowsort label-4353
SELECT DISTINCT ( + 57 ) * - MIN ( 68 ) AS col0, 50 FROM tab2
----
-3876
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT + MIN( ALL col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4354
SELECT + MIN ( ALL col0 ) AS col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL 23 * COUNT( * ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL 23 * COUNT ( * ) FROM tab1
----
69

query II rowsort
SELECT DISTINCT + col0 AS col0, col2 * + col0 * - col1 FROM tab0
----
15
-57105
87
-18270
97
-9603

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NOT + col1 - - - col1 BETWEEN 18 / col1 + col1 AND NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT ALL + - SUM( + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL + - SUM ( + col0 ) FROM tab1 AS cor0
----
-227

query II rowsort
SELECT + col1 AS col0, col0 * + col0 + 22 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
2623
47
8303
5
7247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT col2 * col2 * 75 IS NULL
----
10
47
99

query I rowsort
SELECT ALL + col0 * - 65 AS col2 FROM tab1
----
-3315
-5525
-5915

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 9 NOT IN ( - 98 / + 26 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - - 68 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT SUM( DISTINCT - - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4365
SELECT SUM ( DISTINCT - - col1 ) AS col2 FROM tab0
----
103

query I rowsort
SELECT ALL - - 31 AS col2 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - col0 + - col1 + + 88 AS col2 FROM tab0 AS cor0
----
-10
-20
-8

query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT + + 53 + + - SUM( - - 37 ) * + 51 FROM tab1 AS cor0
----
-5608

skipif mysql # not compatible
query I rowsort label-4369
SELECT + + 53 + + - SUM ( - - 37 ) * + 51 FROM tab1 AS cor0
----
-5608

query I rowsort
SELECT col0 + 83 AS col2 FROM tab1
----
134
168
174

query I rowsort
SELECT - 6 AS col2 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT col2 + - - 54 DIV + + col2 + + + col2 AS col2 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-4372
SELECT col2 + - - 54 / + + col2 + + + col2 AS col2 FROM tab1
----
118
136
192

onlyif mysql # DIV for integer division: 
query II rowsort label-4373
SELECT ALL + col0, ( + col1 ) + + col2 DIV col1 + 87 AS col2 FROM tab1
----
51
107
85
103
91
135

skipif mysql # not compatible
query II rowsort label-4373
SELECT ALL + col0, ( + col1 ) + + col2 / col1 + 87 AS col2 FROM tab1
----
51
107
85
103
91
135

query I rowsort
SELECT - ( col0 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

query II rowsort
SELECT ALL - col0 * - + col0 + - col1, col0 AS col2 FROM tab1 AS cor0
----
2587
51
7220
85
8234
91

query I rowsort
SELECT DISTINCT - + col2 + - - ( + - col2 ) * - - ( col2 ) * - + 72 FROM tab0 AS cor0
----
159001
705573
7190

query I rowsort
SELECT DISTINCT - + col2 + col0 + col2 AS col1 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT col0 - 89 - + col2 * + + col1 AS col2 FROM tab0 AS cor0
----
-212
-3881
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4379
SELECT 74 - + 19 + col1 + + + ( + col0 ) DIV 11 AS col2 FROM tab0
----
137
64
83

skipif mysql # not compatible
query I rowsort label-4379
SELECT 74 - + 19 + col1 + + + ( + col0 ) / 11 AS col2 FROM tab0
----
137
64
83

query I rowsort
SELECT + 30 - - col1 * - col2 FROM tab0 WHERE col2 <= + col2
----
-180
-3777
-69

query I rowsort
SELECT col1 + - col1 + + + 10 AS col0 FROM tab1
----
10
10
10

query I rowsort
SELECT DISTINCT + 30 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
30

query I rowsort
SELECT ( - + 49 ) + - col2 FROM tab2 AS cor0 WHERE - col1 + - col0 IS NULL
----

query I rowsort
SELECT ALL - + 84 + - - col2 AS col2 FROM tab0 AS cor0
----
-37
-74
15

query I rowsort
SELECT DISTINCT - col2 + 16 + + 87 * - col1 FROM tab2 AS cor0
----
-4444
-5871
-6723

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4386
SELECT ALL + + ( + 9 ) AS col0, CAST( - 29 AS SIGNED ) col0 FROM tab1 AS cor0
----
9
-29
9
-29
9
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4386
SELECT ALL + + ( + 9 ) AS col0, CAST ( - 29 AS INTEGER ) col0 FROM tab1 AS cor0
----
9
-29
9
-29
9
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT - - MIN( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4387
SELECT - - MIN ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL + 2 AS col1 FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT DISTINCT MAX( ALL + 10 ) col0 FROM tab2
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4389
SELECT DISTINCT MAX ( ALL + 10 ) col0 FROM tab2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT SUM( ALL - - 41 ) AS col0 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT SUM ( ALL - - 41 ) AS col0 FROM tab1
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - 60 * + col2 AS col2 FROM tab1
----
-3540
-4080
-5760

query I rowsort
SELECT ALL + col0 * - - col0 AS col1 FROM tab0
----
225
7569
9409

query I rowsort
SELECT ALL col1 * col1 * - col2 AS col2 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT ALL + - col0 - 8 AS col2 FROM tab2 WHERE NOT NULL <= - ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + + col1, - col0, col1 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE - - col0 > + 92
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4399
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col1 / + ( col2 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col1 / + ( col2 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col1 * - + col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT - 49 * col1 FROM tab0 AS cor0
----
-1029
-3969
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 + - 70, + ( 67 ) col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND + 74
----

query I rowsort
SELECT + 89 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN 98 / - - 49 AND NULL
----

query I rowsort
SELECT + 57 + + col0 FROM tab0
----
144
154
72

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT - SUM( DISTINCT + + col1 ) AS col1 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4406
SELECT - SUM ( DISTINCT + + col1 ) AS col1 FROM tab0 cor0
----
-103

query II rowsort
SELECT 79 AS col2, col2 * - + 12 * - - col0 AS col0 FROM tab2 AS cor0
----
79
-12696
79
-30720
79
-52200

query I rowsort
SELECT + col0 * - + col2 + col0 AS col1 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT - col1 * col2 + - - col2 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT ALL 53 * + col2 + + 68 + - col1 * + - 11 * + + col0 + + col0 * - + 47 + 98 AS col2 FROM tab1 AS cor0
----
10711
3973
46540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4411
SELECT - + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT - + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 63 * 28 col2 FROM tab0 AS cor0
----
174636
17640
82908

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT DISTINCT - - COUNT( * ) + - ( 22 ) + - - MIN( - - 36 ) AS col2 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - - COUNT ( * ) + - ( 22 ) + - - MIN ( - - 36 ) AS col2 FROM tab2 AS cor0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT DISTINCT 56 * - COUNT( * ) + + COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT 56 * - COUNT ( * ) + + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 24 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 50 col1 FROM tab1
----
-2550
-4250
-4550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * + 82 col2 FROM tab1
----
7380

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT - + COUNT( * ) AS col2 FROM tab1, tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4418
SELECT - + COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col0 FROM tab2
----
-59
-59
-59

query III rowsort
SELECT * FROM tab0 WHERE - 55 / + + 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 + + - 25 AS col2, 97 FROM tab1 AS cor0
----
-11
97
-20
97
22
97

query I rowsort
SELECT DISTINCT col0 + - col0 + 74 FROM tab2 AS cor0
----
74

query I rowsort
SELECT + col1 + ( + - col1 ) * - + ( 17 ) - 64 FROM tab1 AS cor0
----
188
26
782

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4424
SELECT DISTINCT 35 - - col1 AS col1, - 12 DIV - + col2 + - + CAST( - col0 AS SIGNED ) - 57 * + col1 * + - col2 + + col1 FROM tab0 AS cor0
----
116
217095
36
5741
56
12079

skipif mysql # not compatible
query II rowsort label-4424
SELECT DISTINCT 35 - - col1 AS col1, - 12 / - + col2 + - + CAST ( - col0 AS INTEGER ) - 57 * + col1 * + - col2 + + col1 FROM tab0 AS cor0
----
116
217095
36
5741
56
12079

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT ALL ( + - MAX( DISTINCT col0 ) ) - COUNT( * ) AS col2 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL ( + - MAX ( DISTINCT col0 ) ) - COUNT ( * ) AS col2 FROM tab2
----
-78

query III rowsort
SELECT * FROM tab1 WHERE 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 AS col0, 62 + + 22 FROM tab0 cor0
----
-1
84
-21
84
-81
84

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 / + col0 AS col0 FROM tab2 WHERE - 30 * + - col1 BETWEEN col2 AND + - 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT ALL + CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT - MIN( DISTINCT + col2 ) * + - COUNT( * ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-4431
SELECT - MIN ( DISTINCT + col2 ) * + - COUNT ( * ) FROM tab1
----
177

query I rowsort
SELECT - 51 AS col1 FROM tab0
----
-51
-51
-51

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - 29 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
29

query I rowsort
SELECT 85 FROM tab2, tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT MAX( + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT MAX ( + col2 ) FROM tab2
----
58

query I rowsort
SELECT ALL + col0 + - col1 AS col2 FROM tab2 cor0
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + + - col2 * - - 73 col0 FROM tab1 AS cor0
----
-4312
-5011
-7022

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 51 IS NOT NULL
----

query I rowsort
SELECT + 16 AS col2 FROM tab0 AS cor0 WHERE ( - + ( + + 41 ) ) - - col0 IN ( col0 * + 69, col0 )
----

query I rowsort
SELECT - ( col1 ) * + 86 * + col1 * + col0 + + col0 FROM tab1 AS cor0
----
-17287543
-182665
-859605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT DISTINCT col1 / + - col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT col1 / + - col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4444
SELECT ALL + 17 DIV - 76 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL + 17 / - 76 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT COUNT( DISTINCT - - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT COUNT ( DISTINCT - - col1 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL 41 + MIN( DISTINCT - col2 ) FROM tab1 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL 41 + MIN ( DISTINCT - col2 ) FROM tab1 cor0
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - - 53 * + 89 * + col2 col2 FROM tab2 AS cor0
----
-108537
-188744
-273661

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + COUNT( * ) * + COUNT( * ) - + ( + - 52 ) - - - 44 AS col0 FROM tab0 cor0
----
17

skipif mysql # not compatible
query I rowsort label-4449
SELECT + COUNT ( * ) * + COUNT ( * ) - + ( + - 52 ) - - - 44 AS col0 FROM tab0 cor0
----
17

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 9 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + col0 * + + col2 * col0 AS col1 FROM tab1
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 < - col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 59 FROM tab2 cor0
----
59
59
59

query I rowsort
SELECT ALL - col0 * + 33 AS col0 FROM tab1 AS cor0
----
-1683
-2805
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT DISTINCT - COUNT( DISTINCT + col1 ) * + - 17 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) * + - 17 FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4459
SELECT - - col1 DIV + + 4 FROM tab2 AS cor0
----
12
16
19

skipif mysql # not compatible
query I rowsort label-4459
SELECT - - col1 / + + 4 FROM tab2 AS cor0
----
12
16
19

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT + 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT + ( MAX( - col0 ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4461
SELECT + ( MAX ( - col0 ) ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - + 30 * + - 99 FROM tab1 AS cor0
----
2970
2970
2970

query II rowsort
SELECT ALL 57 AS col0, 60 AS col2 FROM tab0
----
57
60
57
60
57
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4464
SELECT + col0 DIV - - 88 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4464
SELECT + col0 / - - 88 AS col0 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT COUNT( * ) * - 95 AS col2 FROM tab2, tab1 AS cor0
----
-855

skipif mysql # not compatible
query I rowsort label-4465
SELECT COUNT ( * ) * - 95 AS col2 FROM tab2, tab1 AS cor0
----
-855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4466
SELECT DISTINCT MIN( DISTINCT + CAST( + ( - 55 ) AS SIGNED ) ) AS col1 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT MIN ( DISTINCT + CAST ( + ( - 55 ) AS INTEGER ) ) AS col1 FROM tab2
----
-55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 6 * + col2 * col2 NOT BETWEEN ( - col1 ) AND col0 - + + 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT - SUM( 95 ) FROM tab1 cor0 WHERE + 63 = - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT - SUM ( 95 ) FROM tab1 cor0 WHERE + 63 = - - 70
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + col0 ) * + col2 + - - 24 + + - 10 / - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 58 * 28 FROM tab1
----
1624
1624
1624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 + + col1 col1 FROM tab1
----
-16
-49
-58

query I rowsort
SELECT DISTINCT - col0 * col1 - - 47 AS col0 FROM tab2
----
-2299
-4881
-4978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT DISTINCT - MAX( DISTINCT col0 ) + + COUNT( * ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT - MAX ( DISTINCT col0 ) + + COUNT ( * ) FROM tab1
----
-88

query I rowsort
SELECT col2 * 17 AS col0 FROM tab1
----
1003
1156
1632

query I rowsort
SELECT ( col0 ) - + col2 AS col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT col1 - 62 AS col1 FROM tab1
----
-15
-48
-57

query I rowsort
SELECT DISTINCT col0 * 77 FROM tab2
----
3542
4928
5775

query I rowsort
SELECT - col2 - - 49 FROM tab2
----
-9
26
9

query I rowsort
SELECT ALL - 73 FROM tab1 WHERE NOT - col1 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN + col1 - col1 * col0 AND col0 - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 BETWEEN ( col0 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT + col2 + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - 67 * - col0 NOT BETWEEN col2 + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4484
SELECT + col2 + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - 67 * - col0 NOT BETWEEN col2 + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4485
SELECT DISTINCT - CAST( col0 AS SIGNED ) + col1 * col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + col1 * col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( - 43 ) AS col0 FROM tab2
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT DISTINCT - 1 * - ( + COUNT( * ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4487
SELECT DISTINCT - 1 * - ( + COUNT ( * ) ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT + 60 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT + 60 IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4489
SELECT DISTINCT - COUNT( DISTINCT col1 ) DIV + 63 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT - COUNT ( DISTINCT col1 ) / + 63 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4490
SELECT DISTINCT + 24 DIV ( - COUNT( DISTINCT 39 ) ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT + 24 / ( - COUNT ( DISTINCT 39 ) ) FROM tab1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT MAX( DISTINCT col2 ) - 91 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-4491
SELECT MAX ( DISTINCT col2 ) - 91 FROM tab0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4492
SELECT - ( 27 ) DIV COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4492
SELECT - ( 27 ) / COUNT ( * ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT 88 - 70 FROM tab0 WHERE NOT ( + 85 ) IS NOT NULL
----

query I rowsort
SELECT col1 * 45 + + col0 AS col1 FROM tab1
----
2206
310
681

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT + COUNT( col2 ) * 40 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-4495
SELECT + COUNT ( col2 ) * 40 FROM tab2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT - ( + COUNT( * ) ) * COUNT( + col0 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4496
SELECT - ( + COUNT ( * ) ) * COUNT ( + col0 ) FROM tab1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT + ( 78 ) * COUNT( * ) AS col0 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-4498
SELECT + ( 78 ) * COUNT ( * ) AS col0 FROM tab0
----
234

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 / 81 IS NULL
----

query I rowsort
SELECT - 44 * col0 FROM tab2
----
-2024
-2816
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT DISTINCT SUM( ALL col2 ) AS col2 FROM tab0 WHERE + col0 * 80 + col0 <> col0
----
156

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT SUM ( ALL col2 ) AS col2 FROM tab0 WHERE + col0 * 80 + col0 <> col0
----
156

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 cor0 WHERE NOT col0 BETWEEN - col1 AND - ( - ( ( + col2 ) ) )
----
23
40
58

query I rowsort
SELECT - 32 + col1 FROM tab2 AS cor0
----
19
35
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT - COUNT( * ) + + COUNT( col0 ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4504
SELECT - COUNT ( * ) + + COUNT ( col0 ) AS col2 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT - COUNT( * ) + ( 60 ) AS col0 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT - COUNT ( * ) + ( 60 ) AS col0 FROM tab0 AS cor0
----
57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 + - col2 ) > ( NULL )
----

query I rowsort
SELECT col2 * 12 AS col0 FROM tab0
----
1188
120
564

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL COUNT( DISTINCT 72 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL COUNT ( DISTINCT 72 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 cor0 WHERE NOT NULL NOT IN ( 79 / col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT ALL - col1 DIV ( 20 ) FROM tab2 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - col1 / ( 20 ) FROM tab2 AS cor0
----
-2
-3
-3

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
15
87
97

query I rowsort
SELECT + ( - col1 ) * - col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL ( - MIN( 93 ) ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL ( - MIN ( 93 ) ) FROM tab2 AS cor0
----
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT - 9 <= ( NULL )
----

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab0 cor0
----
73

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 61 * ( + col0 * + col0 ) IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( 80 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4519
SELECT + CAST( + col0 AS SIGNED ) DIV - col1 AS col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-4519
SELECT + CAST ( + col0 AS INTEGER ) / - col1 AS col1 FROM tab1
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT + MAX( DISTINCT - + col1 ) + COUNT( * ) * COUNT( * ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4520
SELECT + MAX ( DISTINCT - + col1 ) + COUNT ( * ) * COUNT ( * ) FROM tab1
----
4

query I rowsort
SELECT - col0 + - - col1 AS col0 FROM tab2
----
-8
13
5

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( - 76 + + 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT MIN( + - 35 ) AS col2 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-4523
SELECT MIN ( + - 35 ) AS col2 FROM tab1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4524
SELECT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4524
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT DISTINCT - ( 51 ) * CAST( NULL AS SIGNED ) + 76 * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT - ( 51 ) * CAST ( NULL AS INTEGER ) + 76 * col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT + col1 FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) + 58 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4526
SELECT + col1 FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) + 58 ) IS NOT NULL
----

query I rowsort
SELECT - ( - 99 ) FROM tab0 AS cor0 WHERE 38 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT DISTINCT COUNT( * ) + COUNT( - + col2 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT COUNT ( * ) + COUNT ( - + col2 ) FROM tab1
----
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT COUNT( * ) + + + 86 AS col0 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-4530
SELECT COUNT ( * ) + + + 86 AS col0 FROM tab2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT DISTINCT - col0 + - 90 + - CAST( NULL AS SIGNED ) * 4 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT - col0 + - 90 + - CAST ( NULL AS INTEGER ) * 4 AS col2 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT - 98 AS col1, - col2 AS col0 FROM tab0 AS cor0
----
-98
-10
-98
-47
-98
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4533
SELECT DISTINCT CAST( 97 AS SIGNED ) + - col2 + col1 AS col0 FROM tab2 AS cor0
----
106
125
134

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT CAST ( 97 AS INTEGER ) + - col2 + col1 AS col0 FROM tab2 AS cor0
----
106
125
134

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 21 + + 14 ) NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4535
SELECT - COUNT( DISTINCT ( ( col2 ) ) ) * MAX( ALL col0 ) FROM tab1 AS cor0 WHERE ( 54 - - 59 + + CAST( 45 AS SIGNED ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT - COUNT ( DISTINCT ( ( col2 ) ) ) * MAX ( ALL col0 ) FROM tab1 AS cor0 WHERE ( 54 - - 59 + + CAST ( 45 AS INTEGER ) ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL + + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE 96 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE 96 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4537
SELECT * FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) / + + 25 * + col2 + ( CAST( NULL AS SIGNED ) ) * - ( 18 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4537
SELECT * FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) / + + 25 * + col2 + ( CAST ( NULL AS INTEGER ) ) * - ( 18 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL + COUNT( + + col0 ) + - COUNT( * ) * + 75 FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL + COUNT ( + + col0 ) + - COUNT ( * ) * + 75 FROM tab1 AS cor0
----
-222

query I rowsort
SELECT DISTINCT col1 + col2 * - 80 AS col2 FROM tab0 AS cor0
----
-3679
-779
-7919

query I rowsort
SELECT col1 + + ( col1 ) FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT ( + + col1 ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4542
SELECT * FROM tab2 WHERE + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) < - col1 - - col1
----

skipif mysql # not compatible
query III rowsort label-4542
SELECT * FROM tab2 WHERE + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) < - col1 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT + MAX( DISTINCT col1 ) * - MIN( DISTINCT + col1 ) AS col0 FROM tab2
----
-3927

skipif mysql # not compatible
query I rowsort label-4543
SELECT + MAX ( DISTINCT col1 ) * - MIN ( DISTINCT + col1 ) AS col0 FROM tab2
----
-3927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4544
SELECT - 27 DIV + ( MIN( DISTINCT - 72 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4544
SELECT - 27 / + ( MIN ( DISTINCT - 72 ) ) FROM tab1
----
0

query I rowsort
SELECT ALL col0 * - - 16 - + + 55 FROM tab0
----
1337
1497
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT + COUNT( * ) * - 22 AS col1 FROM tab2 WHERE + col1 NOT BETWEEN + 73 / - col1 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-4546
SELECT + COUNT ( * ) * - 22 AS col1 FROM tab2 WHERE + col1 NOT BETWEEN + 73 / - col1 AND col1
----
0

query I rowsort
SELECT DISTINCT 95 * - + 69 AS col1 FROM tab2
----
-6555

query I rowsort
SELECT + 74 * col1 FROM tab0
----
1554
5994
74

query I rowsort
SELECT ALL 13 * + col1 FROM tab1
----
182
611
65

query I rowsort
SELECT ALL - col0 + - - 41 + + col1 AS col1 FROM tab1
----
-3
-39
4

query I rowsort
SELECT DISTINCT + 95 * - 89 FROM tab2
----
-8455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT ALL - CAST( + - col0 AS SIGNED ) * + col2 * 60 col2 FROM tab1
----
293760
300900
371280

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4552
SELECT ALL - CAST ( + - col0 AS INTEGER ) * + col2 * 60 col2 FROM tab1
----
293760
300900
371280

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN col1 AND ( + col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col1 / + + 93 )
----

query II rowsort
SELECT - ( 44 ), col2 AS col1 FROM tab2 cor0
----
-44
23
-44
40
-44
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT COUNT( * ) * SUM( - 63 ) FROM tab1
----
-567

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT COUNT ( * ) * SUM ( - 63 ) FROM tab1
----
-567

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 + 65 ) BETWEEN - ( col0 ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT MIN( - + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4559
SELECT MIN ( - + col2 ) FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 47 + + col2 ) BETWEEN 47 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL + - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + col1 col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL MAX( 76 ) * + MIN( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 * 12 IS NULL
----
-7524

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL MAX ( 76 ) * + MIN ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 * 12 IS NULL
----
-7524

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT + + col0 DIV - 89 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4564
SELECT + + col0 / - 89 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT DISTINCT - + SUM( col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT - + SUM ( col2 ) AS col2 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT DISTINCT - SUM( ALL + - col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT - SUM ( ALL + - col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + - col2 - - - col2, + col0 col2 FROM tab1 AS cor0
----
-1440
51
-3264
91
-354
85

query I rowsort
SELECT ALL - - 5 * - + 47 FROM tab0 AS cor0
----
-235
-235
-235

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * - + col2 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab0 WHERE NOT - 32 = ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 83
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - 95 ) + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT DISTINCT - MIN( ALL - 28 ) AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT - MIN ( ALL - 28 ) AS col1 FROM tab1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4575
SELECT * FROM tab0 WHERE ( - 97 / - + CAST( 98 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4575
SELECT * FROM tab0 WHERE ( - 97 / - + CAST ( 98 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT - ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE ( ( + ( + col0 ) ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4576
SELECT - ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE ( ( + ( + col0 ) ) ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT DISTINCT COUNT( * ) + - 6 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT COUNT ( * ) + - 6 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + ( + 22 ) * + + 16 + col0 AS col2 FROM tab2 AS cor0
----
-277
-288
-306

query I rowsort
SELECT col1 + + - col1 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT DISTINCT + MIN( - col1 ) AS col0 FROM tab0 AS cor0 WHERE - col1 + 41 / + col0 + - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT + MIN ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE - col1 + 41 / + col0 + - - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT DISTINCT COUNT( + - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT COUNT ( + - col1 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE + + 36 - - 29 IS NULL
----

query I rowsort
SELECT 92 AS col1 FROM tab2 cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col2 FROM tab1 AS cor0
----
6
6
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 12 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-4587
SELECT ALL + + col2 + + col1, + 58 + + ( + col0 ) DIV col0 * - 80 AS col0 FROM tab0 AS cor0
----
100
-22
128
-22
31
-22

skipif mysql # not compatible
query II rowsort label-4587
SELECT ALL + + col2 + + col1, + 58 + + ( + col0 ) / col0 * - 80 AS col0 FROM tab0 AS cor0
----
100
-22
128
-22
31
-22

query I rowsort
SELECT + - col0 * + + col0 - - col1 FROM tab2 AS cor0
----
-2065
-4019
-5558

query I rowsort
SELECT ALL - + 64 * + col2 - - col2 FROM tab1 AS cor0
----
-3717
-4284
-6048

query II rowsort
SELECT DISTINCT - + col1 + - col1 AS col2, col0 FROM tab1 cor0
----
-10
85
-28
51
-94
91

query I rowsort
SELECT ALL - 74 + + - col2 AS col1 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN col0 AND - 85
----
-133
-142
-170

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT 5 - + + COUNT( * ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT 5 - + + COUNT ( * ) AS col0 FROM tab0
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 59 + + col2 >= + 64
----

query III rowsort
SELECT * FROM tab2 WHERE - - col1 > - 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT CAST( NULL AS SIGNED ) * + col2 + - + 72 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT CAST ( NULL AS INTEGER ) * + col2 + - + 72 AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col2, col1 * col2 * - 26 * - 95 AS col2 FROM tab1
----
59
728650
68
7894120
96
3319680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 60 col1 FROM tab2 WHERE NOT NULL NOT IN ( col0 * col2 + - col0 / - 29, - 16 )
----

query I rowsort
SELECT DISTINCT col1 * 60 AS col1 FROM tab0
----
1260
4860
60

query I rowsort
SELECT 21 * - + col0 AS col2 FROM tab0
----
-1827
-2037
-315

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT - 21 DIV col2 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 21 / col2 AS col1 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + col2, - 83 * col2 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
59
-4897
68
-5644
96
-7968

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT ALL + col0 DIV + col2 + + 18 AS col2 FROM tab0 AS cor0
----
18
18
26

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL + col0 / + col2 + + 18 AS col2 FROM tab0 AS cor0
----
18
18
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4604
SELECT DISTINCT - MAX( DISTINCT col2 ) AS col2, - MAX( ALL CAST( 69 AS SIGNED ) ) FROM tab2 cor0
----
-58
-69

skipif mysql # not compatible
query II rowsort label-4604
SELECT DISTINCT - MAX ( DISTINCT col2 ) AS col2, - MAX ( ALL CAST ( 69 AS INTEGER ) ) FROM tab2 cor0
----
-58
-69

query I rowsort
SELECT + col2 / + 52 + - + 34 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < + 71
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 54 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 28 * 98 FROM tab2
----
2744
2744
2744

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT ALL col1 DIV - ( - + ( + 51 ) ) AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL col1 / - ( - + ( + 51 ) ) AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT + 78 * + - col2 FROM tab1
----
-4602
-5304
-7488

onlyif mysql # DIV for integer division: 
query I rowsort label-4610
SELECT ALL - col1 DIV 73 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL - col1 / 73 AS col2 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4611
SELECT + col2 + + ( + ( CAST( + 7 AS SIGNED ) ) ) AS col1 FROM tab0
----
106
17
54

skipif mysql # not compatible
query I rowsort label-4611
SELECT + col2 + + ( + ( CAST ( + 7 AS INTEGER ) ) ) AS col1 FROM tab0
----
106
17
54

query I rowsort
SELECT - col0 FROM tab2 WHERE ( - col0 ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT 96 * - COUNT( * ) AS col2 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT 96 * - COUNT ( * ) AS col2 FROM tab2
----
-288

query I rowsort
SELECT DISTINCT + col2 + + col2 * - col0 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT DISTINCT col0 + - col1 - 58 AS col1 FROM tab0 AS cor0
----
-124
38
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT 28 > col1 )
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT - 58 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT + 63 + - - ( + - MIN( + + col2 ) ) AS col0 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-4618
SELECT + 63 + - - ( + - MIN ( + + col2 ) ) AS col0 FROM tab0
----
53

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT ALL col0 - - col2 DIV + + 69 FROM tab0 AS cor0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL col0 - - col2 / + + 69 FROM tab0 AS cor0
----
15
87
98

query I rowsort
SELECT ALL + - 21 - + col0 AS col2 FROM tab2 AS cor0 WHERE 90 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 + + - col0 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT DISTINCT + + col2 - - - 93 + - 26 + col1 FROM tab2 AS cor0
----
-2
-45
6

query II rowsort
SELECT col0, - col2 + + - 51 + + 56 AS col1 FROM tab2 AS cor0
----
46
-18
64
-35
75
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-4625
SELECT col1 AS col1, 88 DIV + + col0 + - 55 FROM tab0 cor0
----
1
-55
21
-54
81
-50

skipif mysql # not compatible
query II rowsort label-4625
SELECT col1 AS col1, 88 / + + col0 + - 55 FROM tab0 cor0
----
1
-55
21
-54
81
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4626
SELECT MIN( ALL 23 ), MAX( - + col2 ) FROM tab0 AS cor0 WHERE - col2 = NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4626
SELECT MIN ( ALL 23 ), MAX ( - + col2 ) FROM tab0 AS cor0 WHERE - col2 = NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4627
SELECT 10 AS col0, - MAX( DISTINCT - - col2 ) FROM tab1 AS cor0
----
10
-96

skipif mysql # not compatible
query II rowsort label-4627
SELECT 10 AS col0, - MAX ( DISTINCT - - col2 ) FROM tab1 AS cor0
----
10
-96

query I rowsort
SELECT col1 * - - 62 FROM tab2
----
3162
4154
4774

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT COUNT( * ) * 86 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-4629
SELECT COUNT ( * ) * 86 FROM tab2
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT + MAX( ALL - + 86 ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-4630
SELECT + MAX ( ALL - + 86 ) FROM tab0 AS cor0
----
-86

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 = - + 51 * + - 83 + + - 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4632
SELECT - 34 DIV - COUNT( * ) AS col0 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-4632
SELECT - 34 / - COUNT ( * ) AS col0 FROM tab0
----
11

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + 14 ) + + - col2 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 39 + - 16 FROM tab1 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4635
SELECT DISTINCT + + 61 AS col0, CAST( - col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
61
-46
61
-64
61
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4635
SELECT DISTINCT + + 61 AS col0, CAST ( - col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
61
-46
61
-64
61
-75

query I rowsort
SELECT - col0 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( 83 ) = - 27
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT - SUM( + + col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4637
SELECT - SUM ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4638
SELECT ALL - ( - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) ) + + SUM( + - col2 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL - ( - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ) + + SUM ( + - col2 ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4639
SELECT - col1 DIV + + col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4639
SELECT - col1 / + + col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT DISTINCT 46 + + MIN( col0 ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT 46 + + MIN ( col0 ) FROM tab2 AS cor0
----
92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT MAX( + col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-4642
SELECT MAX ( + col0 ) FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT COUNT( 81 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4643
SELECT COUNT ( 81 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4644
SELECT * FROM tab2 WHERE CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4644
SELECT * FROM tab2 WHERE CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT col1 AS col0 FROM tab0 WHERE + 44 * - 97 + 57 + - + CAST( NULL AS SIGNED ) * + col2 IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4645
SELECT col1 AS col0 FROM tab0 WHERE + 44 * - 97 + 57 + - + CAST ( NULL AS INTEGER ) * + col2 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN ( 40 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT + 88 DIV col0 + ( - - 30 ) AS col1 FROM tab2
----
31
31
31

skipif mysql # not compatible
query I rowsort label-4647
SELECT + 88 / col0 + ( - - 30 ) AS col1 FROM tab2
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT - 40 + COUNT( + + 3 ) col2 FROM tab1
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4648
SELECT - 40 + COUNT ( + + 3 ) col2 FROM tab1
----
-37

query I rowsort
SELECT ( 32 ) * col2 + + 6 FROM tab0
----
1510
3174
326

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT - SUM( + + col0 ) + - - COUNT( * ) FROM tab0 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-4650
SELECT - SUM ( + + col0 ) + - - COUNT ( * ) FROM tab0 AS cor0
----
-196

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT - col2 - + col1 + + + col1 + - - col1 * + 32 * - + 28 FROM tab0 AS cor0
----
-18826
-72623
-995

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT col0 DIV - col2 - + + col0 + - col0 * + - col1 AS col1 FROM tab1 cor0
----
339
4185
663

skipif mysql # not compatible
query I rowsort label-4653
SELECT col0 / - col2 - + + col0 + - col0 * + - col1 AS col1 FROM tab1 cor0
----
339
4185
663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4654
SELECT DISTINCT + COUNT( * ) + 87 DIV COUNT( * ) * + 96 FROM tab1 AS cor0
----
2787

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT + COUNT ( * ) + 87 / COUNT ( * ) * + 96 FROM tab1 AS cor0
----
2787

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < + + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4656
SELECT ALL + col2, col1 * col0 + + - col0 DIV - - ( - col1 ) col1 FROM tab2
----
23
2346
40
4928
58
5026

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4656
SELECT ALL + col2, col1 * col0 + + - col0 / - - ( - col1 ) col1 FROM tab2
----
23
2346
40
4928
58
5026

query II rowsort
SELECT ALL 26, - 10 AS col1 FROM tab0
----
26
-10
26
-10
26
-10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 65 - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 * - - ( col2 ) col1 FROM tab0
----
3008
6336
640

query I rowsort
SELECT - - ( + col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 83 / - 84 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4662
SELECT ( + + SUM( + CAST( - - col1 AS SIGNED ) ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4662
SELECT ( + + SUM ( + CAST ( - - col1 AS INTEGER ) ) ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL + SUM( DISTINCT 29 ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + SUM ( DISTINCT 29 ) FROM tab1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + + col2 NOT BETWEEN - - 13 AND - + col2
----

query II rowsort
SELECT ALL + col1, ( col1 ) FROM tab2 AS cor0
----
51
51
67
67
77
77

query II rowsort
SELECT DISTINCT + 49 AS col1, 57 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL OR NOT + 46 IS NOT NULL
----
49
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL + MAX( ALL col2 ) + - COUNT( * ) + + COUNT( * ) + + 79 FROM tab0
----
178

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + MAX ( ALL col2 ) + - COUNT ( * ) + + COUNT ( * ) + + 79 FROM tab0
----
178

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= 78 * - col2 * + 56 + + 7 - + - 26
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + - col2 IN ( + - col1 + - 35, - 17, + col1 + - col1, 89 + + - 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT + + 65 * COUNT( * ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT + + 65 * COUNT ( * ) FROM tab0 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT - CAST( NULL AS SIGNED ) + - - col2 AS col0 FROM tab0 AS cor0 WHERE - 39 * col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4673
SELECT - CAST ( NULL AS INTEGER ) + - - col2 AS col0 FROM tab0 AS cor0 WHERE - 39 * col2 IS NULL
----

query I rowsort
SELECT 24 * - + col1 * + 43 + + col1 FROM tab1 AS cor0
----
-14434
-48457
-5155

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT 65 * + col1 * - col2 + + col1 AS col2 FROM tab2
----
-200123
-252523
-76194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT - 54 DIV COUNT( ALL - - 0 ) + - MIN( DISTINCT - - col0 ) DIV 11 * - 75 AS col0 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-4677
SELECT - 54 / COUNT ( ALL - - 0 ) + - MIN ( DISTINCT - - col0 ) / 11 * - 75 AS col0 FROM tab1
----
282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4678
SELECT COUNT( * ) DIV 25 + - COUNT( * ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4678
SELECT COUNT ( * ) / 25 + - COUNT ( * ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL SUM( DISTINCT col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL SUM ( DISTINCT col2 ) FROM tab2
----
121

query I rowsort
SELECT DISTINCT + 44 + + + col1 FROM tab1
----
49
58
91

query I rowsort
SELECT DISTINCT - + 29 + + col1 FROM tab1 WHERE NOT + + 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT + 63 + - COUNT( * ) FROM tab0 WHERE NULL <= NULL
----
63

skipif mysql # not compatible
query I rowsort label-4682
SELECT + 63 + - COUNT ( * ) FROM tab0 WHERE NULL <= NULL
----
63

query I rowsort
SELECT DISTINCT - 17 + + col0 FROM tab0
----
-2
70
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4684
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 ) + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4684
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 ) + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + 73 * + col1 AS col2 FROM tab0 AS cor0
----
1533
5913
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4686
SELECT DISTINCT - SUM( ALL - 93 ) DIV - - 85 + - 9 * - COUNT( + col0 ) AS col1 FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT - SUM ( ALL - 93 ) / - - 85 + - 9 * - COUNT ( + col0 ) AS col1 FROM tab2 cor0
----
30

query I rowsort
SELECT col2 - 4 FROM tab2 AS cor0
----
19
36
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL ( COUNT( * ) ) - - COUNT( col2 ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL ( COUNT ( * ) ) - - COUNT ( col2 ) AS col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 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-4689
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL - COUNT( * ) - + 75 AS col2 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL - COUNT ( * ) - + 75 AS col2 FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL 36 * COUNT( * ) col0 FROM tab0
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4691
SELECT ALL 36 * COUNT ( * ) col0 FROM tab0
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-4692
SELECT DISTINCT 28 * COUNT( * ) AS col2, 95 AS col0 FROM tab0 AS cor0
----
84
95

skipif mysql # not compatible
query II rowsort label-4692
SELECT DISTINCT 28 * COUNT ( * ) AS col2, 95 AS col0 FROM tab0 AS cor0
----
84
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4693
SELECT ALL - 9 DIV - 26 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - 9 / - 26 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE 14 IN ( + ( 91 ), 79 * + col2, 49, - 23 * + 39 - + + col1 + - col0, ( 9 ), - col2 - 42 + + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4695
SELECT DISTINCT MAX( - - col0 ) DIV + COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT MAX ( - - col0 ) / + COUNT ( * ) FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT + + SUM( - - 13 ) FROM tab2 cor0
----
39

skipif mysql # not compatible
query I rowsort label-4696
SELECT + + SUM ( - - 13 ) FROM tab2 cor0
----
39

query I rowsort
SELECT - ( 16 ) AS col0 FROM tab1
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT - ( + - COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4698
SELECT - ( + - COUNT ( * ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT MAX( DISTINCT + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT MAX ( DISTINCT + col1 ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT + COUNT( * ) * - 28 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT + COUNT ( * ) * - 28 FROM tab1
----
-84

query I rowsort
SELECT - 21 * col0 FROM tab2
----
-1344
-1575
-966

query I rowsort
SELECT ALL 27 * - 64 FROM tab0
----
-1728
-1728
-1728

query III rowsort
SELECT * FROM tab2 WHERE NOT 29 = ( ( + 75 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 41 AS col2 FROM tab0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT + MIN( - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT + MIN ( - col1 ) AS col1 FROM tab2
----
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + col0 * col0 * col2
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE - 62 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4708
SELECT ALL + col2 DIV - col1 + - - col0 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL + col2 / - col1 + - - col0 FROM tab1 AS cor0
----
45
74
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4709
SELECT ALL - COUNT( * ) DIV + + 11 * - + COUNT( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL - COUNT ( * ) / + + 11 * - + COUNT ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + ( - 38 ) * - - 15 AS col2 FROM tab2 AS cor0
----
-570
-570
-570

query I rowsort
SELECT - col2 * - - col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col0 FROM tab2 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 col2 FROM tab1 AS cor0
----
62
62
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4714
SELECT ALL COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4715
SELECT ALL - 94 * + COUNT( * ) * + 64 DIV COUNT( DISTINCT 24 ) * - + 96 FROM tab2
----
1732608

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL - 94 * + COUNT ( * ) * + 64 / COUNT ( DISTINCT 24 ) * - + 96 FROM tab2
----
1732608

query II rowsort
SELECT col1 AS col1, col2 * + col1 FROM tab2 AS cor0
----
51
1173
67
3886
77
3080

query I rowsort
SELECT + col2 - - ( - 19 ) + + col2 + col0 FROM tab1 AS cor0 WHERE + col2 + - + 7 IS NULL
----

query I rowsort
SELECT ALL + - col2 + + - ( - col2 ) * + + col1 * 49 FROM tab2 AS cor0
----
150880
190356
57454

query II rowsort
SELECT col2 AS col2, + 99 FROM tab2 AS cor0
----
23
99
40
99
58
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4720
SELECT - - CAST( NULL AS SIGNED ) AS col0, col1 + + - col1 + - - col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4720
SELECT - - CAST ( NULL AS INTEGER ) AS col0, col1 + + - col1 + - - col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query II rowsort
SELECT ALL + ( + 54 ) + + 75 + + col0, + col2 FROM tab0 AS cor0
----
144
47
216
10
226
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL - MIN( ( + + 37 ) ) AS col1 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - MIN ( ( + + 37 ) ) AS col1 FROM tab2 AS cor0
----
-37

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - 19 AND - 46
----

query I rowsort
SELECT ALL 45 + - col1 + col1 * - + 47 AS col1 FROM tab1
----
-195
-2211
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL 85 * + + MAX( DISTINCT col0 ) FROM tab2
----
6375

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL 85 * + + MAX ( DISTINCT col0 ) FROM tab2
----
6375

query I rowsort
SELECT - 33 + + + 41 FROM tab0
----
8
8
8

query I rowsort
SELECT ALL - col0 + + + col0 + 62 AS col2 FROM tab1
----
62
62
62

query I rowsort
SELECT + + 5 + col2 + - + 51 FROM tab1 AS cor0
----
13
22
50

query II rowsort
SELECT + col1, + col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 21 - col0 AS col0 FROM tab2 AS cor0
----
-67
-85
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT - 41 * 21 + + SUM( + col1 ) col1 FROM tab1 AS cor0
----
-795

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4731
SELECT - 41 * 21 + + SUM ( + col1 ) col1 FROM tab1 AS cor0
----
-795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT DISTINCT - - CAST( - - 61 AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT - - CAST ( - - 61 AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT DISTINCT + 63 + + COUNT( * ) * - ( + 80 ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT + 63 + + COUNT ( * ) * - ( + 80 ) FROM tab1 AS cor0
----
-177

query I rowsort
SELECT ALL col2 - 27 + col0 + - col2 AS col1 FROM tab0 AS cor0
----
-12
60
70

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4735
SELECT + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT - MIN( - 64 ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT - MIN ( - 64 ) FROM tab1 AS cor0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4737
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 / + 36 + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4737
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 / + 36 + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL + MAX( ALL + 58 ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL + MAX ( ALL + 58 ) FROM tab1 AS cor0
----
58

query I rowsort
SELECT ALL col0 * - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT ALL COUNT( * ) * 76 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL COUNT ( * ) * 76 FROM tab0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL - COUNT( * ) FROM tab2 WHERE ( NULL <> + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL - COUNT ( * ) FROM tab2 WHERE ( NULL <> + col0 )
----
0

query I rowsort
SELECT ( + - col2 ) AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL col1 * + ( + col1 ) AS col0 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL 46 AS col2 FROM tab0
----
46
46
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT CAST( - + MIN( - + col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4745
SELECT CAST ( - + MIN ( - + col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT - 58 + - - col2 + col0 + + - col1 FROM tab1 AS cor0
----
54
75
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT DISTINCT + - 57 + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT + - 57 + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4748
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4748
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL + + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - AVG ( + col1 ) * + 44 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - - 68 + 5 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + ( + - col2 ) * - ( 37 ) + + + 99 col0 FROM tab0 AS cor0
----
26184
32289
355410

query I rowsort
SELECT DISTINCT + + col2 + - 86 AS col1 FROM tab1 AS cor0
----
-18
-27
10

query I rowsort
SELECT + - ( - + 34 ) + + - 11 FROM tab0 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT + - MAX( ALL col1 ) + + COUNT( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4756
SELECT + - MAX ( ALL col1 ) + + COUNT ( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT DISTINCT 95 - - - CAST( NULL AS SIGNED ) - - - col0 * col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT 95 - - - CAST ( NULL AS INTEGER ) - - - col0 * col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab2 WHERE NOT 37 IN ( col2 )
----
51
67
77

query I rowsort
SELECT ALL - ( - - col0 ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ( + 56 ) * + - SUM( 5 ) * - 51 AS col0 FROM tab2
----
42840

skipif mysql # not compatible
query I rowsort label-4760
SELECT ( + 56 ) * + - SUM ( 5 ) * - 51 AS col0 FROM tab2
----
42840

onlyif mysql # DIV for integer division: 
query I rowsort label-4761
SELECT + 75 DIV + col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4761
SELECT + 75 / + col0 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT 42 * + 28 AS col2 FROM tab2
----
1176
1176
1176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT DISTINCT 11 / - 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-4763
SELECT DISTINCT 11 / - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 WHERE NOT - 34 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 WHERE NOT - 34 <= NULL
----
0

query II rowsort
SELECT ALL - col0, col1 FROM tab0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT 60 - - col2 + + 72 + 89 AS col0, - col0 - + col2 AS col1 FROM tab1 AS cor0
----
280
-144
289
-159
317
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT + CAST( - - 74 AS SIGNED ) FROM tab0 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-4767
SELECT + CAST ( - - 74 AS INTEGER ) FROM tab0 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4768
SELECT ALL + ( 16 ) AS col2, COUNT( * ) AS col2 FROM tab1
----
16
3

skipif mysql # not compatible
query II rowsort label-4768
SELECT ALL + ( 16 ) AS col2, COUNT ( * ) AS col2 FROM tab1
----
16
3

query II rowsort
SELECT ALL col1, ( + col1 ) + - - 6 AS col2 FROM tab0 WHERE - 74 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col1 FROM tab2
----
64
64
64

query I rowsort
SELECT DISTINCT 12 * 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
120

query I rowsort
SELECT - ( + 27 ) * + col0 * col1 AS col0 FROM tab0 AS cor0
----
-2619
-32805
-49329

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL + MAX( DISTINCT col1 ) FROM tab0 cor0 WHERE NOT ( NULL ) >= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL + MAX ( DISTINCT col1 ) FROM tab0 cor0 WHERE NOT ( NULL ) >= + col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4774
SELECT - 46 * + CAST( NULL AS SIGNED ) / - ( - COUNT( * ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT - 46 * + CAST ( NULL AS INTEGER ) / - ( - COUNT ( * ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 * 46 AS col1 FROM tab1
----
2346
3910
4186

query I rowsort
SELECT + + col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT DISTINCT 2 * + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT 2 * + COUNT ( * ) AS col1 FROM tab0
----
6

query I rowsort
SELECT 3 * + col1 AS col0 FROM tab2 cor0
----
153
201
231

query I rowsort
SELECT + + 4 AS col1 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT + - col1 + - + ( col2 ) AS col2 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT DISTINCT - 51 * + SUM( ALL 6 ) FROM tab2 AS cor0
----
-918

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT - 51 * + SUM ( ALL 6 ) FROM tab2 AS cor0
----
-918

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> - 44 + + col2 * + col2
----

query II rowsort
SELECT - - col2 AS col0, 29 FROM tab0 WHERE + - col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT DISTINCT - col1 + - + 52 DIV - ( col1 ) col2 FROM tab1
----
-11
-46
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4784
SELECT DISTINCT - col1 + - + 52 / - ( col1 ) col2 FROM tab1
----
-11
-46
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT - SUM( + ( - 18 ) ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-4785
SELECT - SUM ( + ( - 18 ) ) FROM tab2
----
54

query I rowsort
SELECT ALL col0 + + 10 AS col1 FROM tab0
----
107
25
97

query I rowsort
SELECT DISTINCT 67 - 99 * + 38 FROM tab2 AS cor0 WHERE 0 = 73 / + col1 * col0 / col1 + - col1 - - col2 + - + col1 * ( - + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4788
SELECT DISTINCT 80 DIV + + COUNT( * ) + + 6 + 37 * 75 FROM tab2 AS cor0
----
2807

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT 80 / + + COUNT ( * ) + + 6 + 37 * 75 FROM tab2 AS cor0
----
2807

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT ALL - + 83 + + + col1 + - + 46 FROM tab1 AS cor0
----
-115
-124
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - + col2 * + col2 + - col2 * 53 FROM tab1 AS cor0
----
-14304
-6608
-8228

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND ( + - col1 * - col0 / + col0 ) AND NOT NULL IS NULL
----

query I rowsort
SELECT 58 - + 6 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT ALL 52 - - col1 * - col2 * col0 AS col0 FROM tab1
----
-25023
-290784
-68492

onlyif mysql # DIV for integer division: 
query I rowsort label-4796
SELECT DISTINCT + col2 DIV - + col1 FROM tab0
----
-99
0

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT + col2 / - + col1 FROM tab0
----
-99
0

query I rowsort
SELECT col0 * - col2 + - col0 FROM tab1
----
-4947
-5100
-6279

query I rowsort
SELECT col0 * + col1 + - - col0 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT col2 + - 7 FROM tab2
----
16
33
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL + COUNT( * ) + + 86 AS col1 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL + COUNT ( * ) + + 86 AS col1 FROM tab0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4801
SELECT - CAST( NULL AS SIGNED ) * + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT - CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT - SUM( + - 5 ) * + + COUNT( - + col2 ) AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4802
SELECT - SUM ( + - 5 ) * + + COUNT ( - + col2 ) AS col2 FROM tab0 AS cor0
----
45

query I rowsort
SELECT ALL - col2 * + + col1 - + - col1 + col0 AS col1 FROM tab0 AS cor0
----
-1
-102
-3711

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT + MAX( - + col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4804
SELECT + MAX ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 88 ) col0 FROM tab1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT - MIN( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT + + 52 AS col1, + 28 * + - col0 FROM tab0 AS cor0
----
52
-2436
52
-2716
52
-420

query II rowsort
SELECT 44 AS col0, + col0 AS col0 FROM tab2 cor0
----
44
46
44
64
44
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * - - col0 BETWEEN NULL AND - ( + 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4810
SELECT DISTINCT + col0, col0 * - - CAST( NULL AS SIGNED ) + + + col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4810
SELECT DISTINCT + col0, col0 * - - CAST ( NULL AS INTEGER ) + + + col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN - + 8 + + col0 AND ( col0 + + - col1 + + ( 44 ) / + 63 ) )
----

query I rowsort
SELECT DISTINCT - + 64 * + col2 FROM tab1 AS cor0
----
-3776
-4352
-6144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT ALL + CAST( NULL AS SIGNED ) + col0 * + - 49 AS col0 FROM tab0 WHERE - - CAST( NULL AS SIGNED ) + + 9 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 * + - 49 AS col0 FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) + + 9 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + 92 + ( - col0 ) AS col2 FROM tab0
----
-5
5
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL MIN( ALL 41 ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL MIN ( ALL 41 ) FROM tab1
----
41

query II rowsort
SELECT - col0 + - col2 AS col1, col0 FROM tab1
----
-144
85
-147
51
-159
91

query I rowsort
SELECT col0 + - + ( + col0 ) - - col0 AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT ALL - COUNT( * ) + ( + SUM( DISTINCT col1 ) ) AS col2 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL - COUNT ( * ) + ( + SUM ( DISTINCT col1 ) ) AS col2 FROM tab0
----
100

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL < - 36
----

query I rowsort
SELECT + 62 - + 27 FROM tab1 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT DISTINCT - + 15 * COUNT( DISTINCT 11 ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT - + 15 * COUNT ( DISTINCT 11 ) FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT DISTINCT 78 * - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT 78 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
234

query III rowsort
SELECT * FROM tab2 WHERE ( NULL < NULL )
----

query I rowsort
SELECT - col1 + + 74 AS col1 FROM tab0
----
-7
53
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL 44 * + - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
396

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL 44 * + - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
396

query I rowsort
SELECT ALL + 19 + col0 FROM tab0 AS cor0
----
106
116
34

query I rowsort
SELECT col2 + 53 AS col2 FROM tab0 AS cor0
----
100
152
63

query I rowsort
SELECT + col1 + - - 13 FROM tab0 AS cor0
----
14
34
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL COUNT( * ) - 93 AS col1 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL COUNT ( * ) - 93 AS col1 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT ( + 5 ) AS col1 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT DISTINCT col0 * + 88 + + col1 AS col2 FROM tab1 AS cor0
----
4502
7485
8055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT CAST( ( - col2 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4832
SELECT CAST ( ( - col2 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT ALL 30 - - col0 * - + ( - 31 ) + col2 AS col2 FROM tab2
----
1479
2054
2413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4834
SELECT ALL - 16 + col2 + col0 FROM tab1 WHERE - + CAST( NULL AS SIGNED ) + + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - 16 + col2 + col0 FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) + + - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 - + ( + + col2 ) + 51 * - col0 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-4437
-4947
-765

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= col0 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 42 / - 78 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 68 / + 74 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 22 AS col0 FROM tab2 cor0
----
-22
-22
-22

query II rowsort
SELECT + col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-4841
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + 6 AS col2 FROM tab1 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT + MAX( - + ( + col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4843
SELECT + MAX ( - + ( + col0 ) ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4844
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, CAST( - COUNT( * ) AS SIGNED ) * CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4844
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, CAST ( - COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL

query I rowsort
SELECT 11 * + + col2 AS col1 FROM tab0 cor0
----
1089
110
517

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT ( + - 93 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4846
SELECT ( + - 93 ) / + col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT - + COUNT( DISTINCT ( + col0 ) ) * 92 AS col0 FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-4847
SELECT - + COUNT ( DISTINCT ( + col0 ) ) * 92 AS col0 FROM tab1 AS cor0
----
-276

query II rowsort
SELECT - col0, col0 + - 7 AS col1 FROM tab2 AS cor0
----
-46
39
-64
57
-75
68

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab1 WHERE ( NOT ( col1 + - col1 NOT BETWEEN NULL AND col0 * 54 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT + CAST( NULL AS SIGNED ) + + + 34 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT + CAST ( NULL AS INTEGER ) + + + 34 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 71 + + 34 FROM tab2 AS cor0
----
105
105
105

query I rowsort
SELECT - col0 + - + 92 FROM tab1 cor0
----
-143
-177
-183

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( 99 ) > - 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT - col2 - + CAST( + 59 AS SIGNED ) FROM tab0 cor0
----
-106
-158
-69

skipif mysql # not compatible
query I rowsort label-4855
SELECT - col2 - + CAST ( + 59 AS INTEGER ) FROM tab0 cor0
----
-106
-158
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT + COUNT( * ) - - MIN( ALL 22 ) + - COUNT( * ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4856
SELECT + COUNT ( * ) - - MIN ( ALL 22 ) + - COUNT ( * ) FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT - 6 - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4857
SELECT - 6 - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4858
SELECT DISTINCT + col2 DIV - col0 + 11 col2 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4858
SELECT DISTINCT + col2 / - col0 + 11 col2 FROM tab2 AS cor0
----
11

query II rowsort
SELECT col0 - + ( + + 41 ) AS col0, col0 FROM tab0 AS cor0
----
-26
15
46
87
56
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT + SUM( - 7 ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT + SUM ( - 7 ) FROM tab0
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4861
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + ( - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT CAST ( NULL AS REAL ) * + + ( - col2 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL + SUM( ALL - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + SUM ( ALL - - col1 ) FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 79 col2 FROM tab1
----
1106
3713
395

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT + - 15 * COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL = + 57 / + col1
----
0

skipif mysql # not compatible
query I rowsort label-4864
SELECT + - 15 * COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL = + 57 / + col1
----
0

query I rowsort
SELECT - col0 * - 52 AS col0 FROM tab0
----
4524
5044
780

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT DISTINCT - COUNT( * ) * - + ( - COUNT( * ) ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - COUNT ( * ) * - + ( - COUNT ( * ) ) FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 8 * + ( col1 ) NOT BETWEEN - col1 / - ( - col2 ) AND + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 <= + col0
----
51
14
96

query II rowsort
SELECT - col1, + col1 AS col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT - COUNT( * ) * - MIN( + col0 ) AS col2 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-4870
SELECT - COUNT ( * ) * - MIN ( + col0 ) AS col2 FROM tab2
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-4871
SELECT + 48 DIV + col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4871
SELECT + 48 / + col2 FROM tab2
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4872
SELECT ALL col0 DIV 22 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL col0 / 22 FROM tab0
----
0
3
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4873
SELECT ALL + - COUNT( * ) col0, 84 AS col2 FROM tab0 AS cor0
----
-3
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4873
SELECT ALL + - COUNT ( * ) col0, 84 AS col2 FROM tab0 AS cor0
----
-3
84

onlyif mysql # DIV for integer division: 
query II rowsort label-4874
SELECT DISTINCT - col0 DIV col1 - - 51 AS col1, - 2 + + + col1 AS col0 FROM tab0 cor0
----
-46
-1
47
19
51
79

skipif mysql # not compatible
query II rowsort label-4874
SELECT DISTINCT - col0 / col1 - - 51 AS col1, - 2 + + + col1 AS col0 FROM tab0 cor0
----
-46
-1
47
19
51
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT - ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4875
SELECT - ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL + ( - + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 76 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL + ( - + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 76 BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - col2 * col2 + col1 AS col1 FROM tab2 AS cor0
----
-1523
-3297
-478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL + MIN( DISTINCT - + col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL + MIN ( DISTINCT - + col1 ) AS col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL - 30 AS col1 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT + col1 * + 59 AS col1 FROM tab0 cor0
----
1239
4779
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4883
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col1, ( - CAST( col1 AS SIGNED ) ) FROM tab0 cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-4883
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col1, ( - CAST ( col1 AS INTEGER ) ) FROM tab0 cor0
----
NULL
-1
NULL
-21
NULL
-81

query I rowsort
SELECT + col0 + - 78 FROM tab2
----
-14
-3
-32

query II rowsort
SELECT DISTINCT 11 AS col1, ( - col1 ) AS col2 FROM tab0
----
11
-1
11
-21
11
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4886
SELECT DISTINCT 22, + MAX( 79 ) AS col0 FROM tab1
----
22
79

skipif mysql # not compatible
query II rowsort label-4886
SELECT DISTINCT 22, + MAX ( 79 ) AS col0 FROM tab1
----
22
79

query II rowsort
SELECT ALL col1, 32 AS col2 FROM tab0
----
1
32
21
32
81
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT col2 DIV + 61 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4888
SELECT col2 / + 61 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ALL - MAX( - 99 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL - MAX ( - 99 ) FROM tab0
----
99

query I rowsort
SELECT col2 - - - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + COUNT( * ) - + 89 - - - 76 FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-4891
SELECT + COUNT ( * ) - + 89 - - - 76 FROM tab1 AS cor0
----
-162

query I rowsort
SELECT 67 - col2 AS col1 FROM tab0 AS cor0
----
-32
20
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4893
SELECT 66 / + ( - 45 ) / - 5 - + CAST( NULL AS SIGNED ), col0 AS col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4893
SELECT 66 / + ( - 45 ) / - 5 - + CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT - 42 * ( COUNT( * ) ) - - - COUNT( * ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-4894
SELECT - 42 * ( COUNT ( * ) ) - - - COUNT ( * ) FROM tab0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + + col1 * 5 FROM tab2 cor0
----
255
335
385

query II rowsort
SELECT + 56 AS col1, ( 81 ) + - col2 + - col0 + + col0 AS col1 FROM tab1 AS cor0
----
56
-15
56
13
56
22

query II rowsort
SELECT 94, + col2 FROM tab2 AS cor0
----
94
23
94
40
94
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4901
SELECT ALL COUNT( * ) AS col0, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4901
SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT + ( SUM( ALL - col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4902
SELECT + ( SUM ( ALL - col0 ) ) FROM tab1 AS cor0
----
-227

query II rowsort
SELECT ALL + + col2 AS col2, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT 70 * + - col0 * + - 68 FROM tab1
----
242760
404600
433160

query I rowsort
SELECT DISTINCT - col1 * + ( + col1 ) * - + col2 AS col0 FROM tab2
----
237160
260362
59823

query II rowsort
SELECT ALL ( col1 ) AS col0, + 74 + - - col2 * + col0 FROM tab1
----
14
4970
47
6262
5
5089

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + 86 + - 86 * + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 * - 21, 11 + 16 AS col1 FROM tab1 AS cor0
----
105
27
294
27
987
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT DISTINCT - MAX( ALL ( - 51 ) ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT - MAX ( ALL ( - 51 ) ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT col2 + - + col1 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT + ( - COUNT( * ) ) - + MIN( DISTINCT + 3 ) * + 36 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-117

skipif mysql # not compatible
query I rowsort label-4911
SELECT + ( - COUNT ( * ) ) - + MIN ( DISTINCT + 3 ) * + 36 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4912
SELECT + + ( - CAST( - + COUNT( * ) AS SIGNED ) ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4912
SELECT + + ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4913
SELECT * FROM tab1 AS cor0 WHERE + CAST( - + col2 AS SIGNED ) + + col1 * + + col2 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4913
SELECT * FROM tab1 AS cor0 WHERE + CAST ( - + col2 AS INTEGER ) + + col1 * + + col2 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 98 FROM tab1 cor0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT ALL + + ( CAST( 55 AS SIGNED ) ) + - 64 FROM tab1 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL + + ( CAST ( 55 AS INTEGER ) ) + - 64 FROM tab1 AS cor0
----
-9
-9
-9

query II rowsort
SELECT col1, 53 FROM tab2 AS cor0
----
51
53
67
53
77
53

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4918
SELECT - + SUM( + - col1 ) * - COUNT( * ) DIV + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4918
SELECT - + SUM ( + - col1 ) * - COUNT ( * ) / + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + col2 * + - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT DISTINCT + - 82 + + COUNT( * ) + COUNT( * ) * - - 50 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT + - 82 + + COUNT ( * ) + COUNT ( * ) * - - 50 FROM tab2 AS cor0
----
71

query II rowsort
SELECT ALL ( - col1 ), 56 AS col0 FROM tab0
----
-1
56
-21
56
-81
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT + MAX( col2 ) * - + 80 FROM tab1
----
-7680

skipif mysql # not compatible
query I rowsort label-4922
SELECT + MAX ( col2 ) * - + 80 FROM tab1
----
-7680

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 84, + col1 )
----

query I rowsort
SELECT col1 + - 58 / - - 37 FROM tab2 WHERE NULL BETWEEN ( + 38 ) AND col2
----

query I rowsort
SELECT 64 + - col2 + col0 FROM tab2
----
81
87
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT DISTINCT COUNT( DISTINCT - - col1 ) + MAX( DISTINCT - col1 ) * - 66 AS col0 FROM tab0 WHERE + col2 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT COUNT ( DISTINCT - - col1 ) + MAX ( DISTINCT - col1 ) * - 66 AS col0 FROM tab0 WHERE + col2 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT + + col2 + - col0 + + col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - - 75 + 20 + 99 FROM tab1 AS cor0
----
194
194
194

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE ( - - 89 ) < - - col0 / 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4930
SELECT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - ( - col1 ) * - col0 - - + col2 - + col0 * - + col1 - - + col2 * + 71 AS col0 FROM tab0
----
3384
7128
720

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT DISTINCT SUM( DISTINCT + - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT SUM ( DISTINCT + - col1 ) AS col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL SUM( + 72 ) + + + COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
657

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL SUM ( + 72 ) + + + COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
657

query II rowsort
SELECT + - col2 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT - col2 * + col2 * + col2 * - col2 FROM tab2 AS cor0
----
11316496
2560000
279841

onlyif mysql # aggregate syntax: 
query II rowsort label-4936
SELECT 57 * + 71 AS col2, SUM( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
4047
NULL

skipif mysql # not compatible
query II rowsort label-4936
SELECT 57 * + 71 AS col2, SUM ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
4047
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 66 BETWEEN 1 * 8 + - col1 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1, - col1 AS col0 FROM tab0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT DISTINCT + 8 * + col0 * + ( col1 ) AS col1 FROM tab2
----
18768
39424
40200

query II rowsort
SELECT col2, 98 * - col0 AS col0 FROM tab0
----
10
-8526
47
-1470
99
-9506

query III rowsort
SELECT ALL * FROM tab1 WHERE + 34 * - 42 + col0 + - + col1 BETWEEN - 36 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col2 col2 FROM tab1
----
-59
59
-68
68
-96
96

query II rowsort
SELECT + col2 AS col1, - col1 AS col2 FROM tab1
----
59
-5
68
-47
96
-14

query II rowsort
SELECT col0 * - 82, col0 FROM tab2
----
-3772
46
-5248
64
-6150
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4945
SELECT DISTINCT - COUNT( * ), - COUNT( * ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4945
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab2
----
-3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4946
SELECT + COUNT( * ) AS col1, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4946
SELECT + COUNT ( * ) AS col1, COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4947
SELECT col1 * + CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-4947
SELECT col1 * + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT - 44 * col0 * + col1 * + + col1 FROM tab2 cor0
----
-14813700
-16696064
-5264424

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL - MIN( 61 ) AS col2 FROM tab2 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - MIN ( 61 ) AS col2 FROM tab2 cor0
----
-61

query III rowsort
SELECT * FROM tab2 WHERE NOT 15 NOT BETWEEN - - col1 AND + 27
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4951
SELECT + COUNT( DISTINCT col0 ) col1, - COUNT( * ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4951
SELECT + COUNT ( DISTINCT col0 ) col1, - COUNT ( * ) AS col1 FROM tab1
----
3
-3

query I rowsort
SELECT ALL - col2 + - col1 * col1 * - 19 FROM tab2 AS cor0
----
112611
49396
85233

query I rowsort
SELECT DISTINCT 63 + - col1 FROM tab2 AS cor0
----
-14
-4
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + + col2 col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL + ( + col2 ) + - 6 * + + col0 AS col0 FROM tab2 cor0
----
-253
-344
-392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4956
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / - + 30 * 43 * - 12 + - 61 / - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / - + 30 * 43 * - 12 + - 61 / - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - col0 + + col2 AS col0, col0 * - - ( + ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-17
4350
-23
1058
-24
2560

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
1
21
81

query I rowsort
SELECT + 53 + - - ( + col0 ) FROM tab0 cor0
----
140
150
68

query I rowsort
SELECT DISTINCT - col2 + col0 + - - col0 AS col2 FROM tab0 cor0
----
-17
164
95

onlyif mysql # DIV for integer division: 
query II rowsort label-4961
SELECT DISTINCT - col0 DIV - col1, col1 FROM tab2 AS cor0
----
0
51
0
77
1
67

skipif mysql # not compatible
query II rowsort label-4961
SELECT DISTINCT - col0 / - col1, col1 FROM tab2 AS cor0
----
0
51
0
77
1
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4962
SELECT ALL COUNT( * ) DIV - - COUNT( * ) + + 74 col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4962
SELECT ALL COUNT ( * ) / - - COUNT ( * ) + + 74 col1 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT - col2 + - 70 DIV 89 * - col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4963
SELECT - col2 + - 70 / 89 * - col1 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 - - - col1 / + col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT DISTINCT - MIN( DISTINCT - ( - 31 ) ), 8 * - 32 AS col1 FROM tab1
----
-31
-256

skipif mysql # not compatible
query II rowsort label-4965
SELECT DISTINCT - MIN ( DISTINCT - ( - 31 ) ), 8 * - 32 AS col1 FROM tab1
----
-31
-256

query I rowsort
SELECT ( 11 ) AS col0 FROM tab0
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT col1 * + CAST( NULL AS SIGNED ) * - + ( - col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT col1 * + CAST ( NULL AS INTEGER ) * - + ( - col0 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 11 * - col1 * - - 68 * - col0 AS col0 FROM tab0
----
-1366596
-72556
-908820

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL - COUNT( ALL - col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL - COUNT ( ALL - col0 ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL NOT IN ( ( 15 ) * - + 98 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, col2 + - col0 col2 FROM tab2
----
46
-23
64
-24
75
-17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 4 BETWEEN - - col0 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT + + 97 + - COUNT( * ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4973
SELECT + + 97 + - COUNT ( * ) FROM tab0 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT ALL - col0 + 51 AS col0 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) / - 39 >= NULL
----

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - col0 + 51 AS col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) / - 39 >= NULL
----

query I rowsort
SELECT DISTINCT - col2 * 34 AS col1 FROM tab1 WHERE NOT NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4976
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE ( CAST( NULL AS SIGNED ) * - col1 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) * - col1 ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab2 WHERE NOT col2 + col2 IN ( - col2 * ( ( + col1 ) ) )
----
73

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 98 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT COUNT( ALL - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT COUNT ( ALL - col1 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4982
SELECT ALL - CAST( 65 AS SIGNED ) + - MIN( ALL - col2 ) * 5 FROM tab0
----
430

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL - CAST ( 65 AS INTEGER ) + - MIN ( ALL - col2 ) * 5 FROM tab0
----
430

query I rowsort
SELECT DISTINCT 85 FROM tab2 WHERE col0 * col0 BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT DISTINCT + 33 DIV - 22 + col2 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT + 33 / - 22 + col2 FROM tab1
----
58
67
95

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( + col2 * + 77 + + 29 )
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT col2 = ( 98 )
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT + COUNT( ALL + col0 ) + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4988
SELECT + COUNT ( ALL + col0 ) + COUNT ( * ) AS col1 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT COUNT( * ) FROM tab1 WHERE + 35 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4989
SELECT COUNT ( * ) FROM tab1 WHERE + 35 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 8 * + 24 - + 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 4 * col2 FROM tab2 AS cor0
----
160
232
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT - COUNT( * ) * - 90 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-4992
SELECT - COUNT ( * ) * - 90 FROM tab2 AS cor0
----
270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * col0 + col1 col2 FROM tab2 AS cor0
----
2397
3341
3892

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 IN ( col0 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 16 + col0 FROM tab0
----
-1
71
81

query I rowsort
SELECT ALL - 83 AS col1 FROM tab1 WHERE NOT ( 60 / 5 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + col2 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT DISTINCT + COUNT( * ) + 48 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT + COUNT ( * ) + 48 FROM tab2
----
51

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE col2 + - col1 > col0 / col2 + - 11
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + + 13 + 13 AS col0 FROM tab0 AS cor0
----
26

query I rowsort
SELECT ( 68 ) FROM tab2 cor0
----
68
68
68

query I rowsort
SELECT DISTINCT 35 + + 76 FROM tab0 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT DISTINCT 2 - SUM( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT 2 - SUM ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-183

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ALL + COUNT( * ) + 86 AS col0 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL + COUNT ( * ) + 86 AS col0 FROM tab2 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT MIN( ALL 30 ) AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5006
SELECT MIN ( ALL 30 ) AS col1 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT - MIN( DISTINCT col1 ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5007
SELECT - MIN ( DISTINCT col1 ) col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT + SUM( col1 ) * + 62 AS col2 FROM tab2 cor0
----
12090

skipif mysql # not compatible
query I rowsort label-5008
SELECT + SUM ( col1 ) * + 62 AS col2 FROM tab2 cor0
----
12090

onlyif mysql # DIV for integer division: 
query I rowsort label-5009
SELECT ALL - + 5 DIV + col1 - 63 col0 FROM tab1 AS cor0
----
-63
-63
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5009
SELECT ALL - + 5 / + col1 - 63 col0 FROM tab1 AS cor0
----
-63
-63
-64

query I rowsort
SELECT col2 - 31 * + col1 AS col2 FROM tab1 AS cor0
----
-1389
-338
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 * 99 ) IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT COUNT( * ) - SUM( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-5012
SELECT COUNT ( * ) - SUM ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-118

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5013
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - CAST( - col0 AS DECIMAL ) ) NOT BETWEEN NULL AND col2 + - col2 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5013
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - CAST ( - col0 AS REAL ) ) NOT BETWEEN NULL AND col2 + - col2 / - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT + SUM( DISTINCT col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT + SUM ( DISTINCT col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * - 98 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - - col0 - + col0 * - col1 AS col0 FROM tab2
----
3404
7488
9375

query I rowsort
SELECT DISTINCT - ( + col1 ) + + 60 FROM tab0
----
-21
39
59

query I rowsort
SELECT ALL - 80 + - col2 AS col1 FROM tab2
----
-103
-120
-138

query I rowsort
SELECT - 23 FROM tab0 AS cor0 WHERE NULL < - col2
----

query I rowsort
SELECT ALL ( + col1 ) * - 3 + - col1 AS col0 FROM tab1 AS cor0
----
-188
-20
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT - CAST( + 18 AS SIGNED ) * + 81 AS col2 FROM tab1 AS cor0
----
-1458
-1458
-1458

skipif mysql # not compatible
query I rowsort label-5021
SELECT - CAST ( + 18 AS INTEGER ) * + 81 AS col2 FROM tab1 AS cor0
----
-1458
-1458
-1458

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + ( + 0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5023
SELECT DISTINCT - ( - - 23 ) DIV col2 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT - ( - - 23 ) / col2 FROM tab2 cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5024
SELECT ALL + - ( + col1 ) DIV 98 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL + - ( + col1 ) / 98 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT ( + 67 + ( + col2 ) / 98 ) BETWEEN ( col0 / col2 ) AND NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL 23 * col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
2001
2231
345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5029
SELECT DISTINCT + + COUNT( + + 3 ) DIV 31 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT + + COUNT ( + + 3 ) / 31 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT 85 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5032
SELECT + SUM( DISTINCT + CAST( - col1 AS SIGNED ) ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5032
SELECT + SUM ( DISTINCT + CAST ( - col1 AS INTEGER ) ) FROM tab2 cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT ALL + CAST( - ( + col0 ) AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + CAST ( - ( + col0 ) AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 46 IN ( 5 )
----

query II rowsort
SELECT - - col2 AS col1, col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5036
SELECT DISTINCT col0 - CAST( NULL AS SIGNED ) - + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT col0 - CAST ( NULL AS INTEGER ) - + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 1 ) * + col1 NOT IN ( + 4 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 16 * ( col0 ) + ( col1 ) NOT IN ( - col0 )
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT - col1 * - col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5040
SELECT COUNT( * ) DIV + + 82 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5040
SELECT COUNT ( * ) / + + 82 FROM tab2
----
0

query I rowsort
SELECT ALL + + 38 AS col1 FROM tab2 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT DISTINCT ( ( MAX( + col2 ) ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT ( ( MAX ( + col2 ) ) ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE 48 - col2 / - 53 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE 48 - col2 / - 53 IS NULL
----
0

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE + col0 + - 87 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5045
SELECT MAX( - col0 ) AS col0, MAX( + + col2 ) AS col1 FROM tab0
----
-15
99

skipif mysql # not compatible
query II rowsort label-5045
SELECT MAX ( - col0 ) AS col0, MAX ( + + col2 ) AS col1 FROM tab0
----
-15
99

query I rowsort
SELECT - 23 * col0 + col2 - + col0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT ALL ( + - 6 ) DIV - col0 * + + col2 + - 65 FROM tab0 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL ( + - 6 ) / - col0 * + + col2 + - 65 FROM tab0 AS cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT DISTINCT - COUNT( DISTINCT - 41 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT - COUNT ( DISTINCT - 41 ) FROM tab0
----
-1

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT - MAX( DISTINCT + col0 ) * + 52 AS col0 FROM tab0
----
-5044

skipif mysql # not compatible
query I rowsort label-5050
SELECT - MAX ( DISTINCT + col0 ) * + 52 AS col0 FROM tab0
----
-5044

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5051
SELECT + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
6

query I rowsort
SELECT 95 * 17 + - - col2 AS col1 FROM tab0
----
1625
1662
1714

query I rowsort
SELECT - 33 + - - col1 FROM tab1
----
-19
-28
14

query I rowsort
SELECT col2 + + 2 FROM tab0
----
101
12
49

query I rowsort
SELECT DISTINCT + col1 + - 71 AS col0 FROM tab1 AS cor0
----
-24
-57
-66

query I rowsort
SELECT ALL - - col1 + + col1 FROM tab1 cor0
----
10
28
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5057
SELECT ALL ( CAST( MIN( DISTINCT col2 ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL ( CAST ( MIN ( DISTINCT col2 ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - col2 + - col2 FROM tab1 cor0 WHERE ( col1 / ( - 58 ) ) IS NOT NULL
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT + 51 * - COUNT( + col0 ) AS col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5059
SELECT + 51 * - COUNT ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * col1 + - col2 AS col1 FROM tab0 AS cor0
----
-100
-451
-6608

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT DISTINCT - COUNT( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT - COUNT ( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE 94 IS NULL
----

query II rowsort
SELECT + 95, col2 FROM tab1 AS cor0
----
95
59
95
68
95
96

query I rowsort
SELECT 96 * + + col2 * - - col2 AS col2 FROM tab2 AS cor0
----
153600
322944
50784

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL - ( ( + COUNT( * ) ) ) + - COUNT( * ) + - - ( + 14 ) * - 52 FROM tab2 AS cor0
----
-734

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL - ( ( + COUNT ( * ) ) ) + - COUNT ( * ) + - - ( + 14 ) * - 52 FROM tab2 AS cor0
----
-734

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL - MAX( - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL - MAX ( - col0 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( - col1 + col2 + + col1 * + 58 * col0 ) AND 79
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5068
SELECT ALL + SUM( + ( + 50 ) ) - - - ( + CAST( NULL AS SIGNED ) ) + - + COUNT( * ) * 81 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL + SUM ( + ( + 50 ) ) - - - ( + CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) * 81 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col2 * - 56 FROM tab1
----
-3304
-3808
-5376

query III rowsort
SELECT * FROM tab2 WHERE + col2 <= - ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT + 65 * - MAX( - 93 ) col2 FROM tab1
----
6045

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5071
SELECT + 65 * - MAX ( - 93 ) col2 FROM tab1
----
6045

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + - col2 + - col0 col2 FROM tab2 AS cor0
----
-1664
-3439
-575

query I rowsort
SELECT + 53 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
53
53
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT ALL CAST( NULL AS SIGNED ) / + 68 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL CAST ( NULL AS INTEGER ) / + 68 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL - SUM( ALL col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - SUM ( ALL col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

query I rowsort
SELECT ALL - + 81 AS col1 FROM tab1 AS cor0
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, - col2 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5082
SELECT col1 - - CAST( + col0 AS SIGNED ) * + col1 FROM tab0 WHERE + ( + + col1 ) <= + col2
----
98

skipif mysql # not compatible
query I rowsort label-5082
SELECT col1 - - CAST ( + col0 AS INTEGER ) * + col1 FROM tab0 WHERE + ( + + col1 ) <= + col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT DISTINCT CAST( col1 AS SIGNED ) * col2 + - 62 * col2 AS col0 FROM tab2
----
-253
290
600

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col2 + - 62 * col2 AS col0 FROM tab2
----
-253
290
600

query I rowsort
SELECT ALL + 62 AS col2 FROM tab2 WHERE col1 IS NOT NULL
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 * - 66 col0 FROM tab0
----
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ( - COUNT( + + col1 ) ) AS col0 FROM tab2 AS cor0 WHERE + ( + - ( col2 ) ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5086
SELECT ( - COUNT ( + + col1 ) ) AS col0 FROM tab2 AS cor0 WHERE + ( + - ( col2 ) ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL - COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 / col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - col1 + + col0 + 29 * col1 + - + 26 + - - 57 * 81 AS col2 FROM tab0 cor0
----
4716
5266
6874

query I rowsort
SELECT - 69 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT - MIN( DISTINCT ( 56 ) ) * + 91 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-5096

skipif mysql # not compatible
query I rowsort label-5092
SELECT - MIN ( DISTINCT ( 56 ) ) * + 91 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-5096

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL - col0 + - + 68 AS col0 FROM tab0 AS cor0
----
-155
-165
-83

query I rowsort
SELECT - 0 - + ( col0 ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT - 71 - - - MAX( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-5096
SELECT - 71 - - - MAX ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + 71 col1 FROM tab1 AS cor0
----
-24
-57
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL + COUNT( * ) - 38 + + COUNT( * ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL + COUNT ( * ) - 38 + + COUNT ( * ) FROM tab0 AS cor0
----
-32

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE - col1 <= + 79
----
10
47
99

query I rowsort
SELECT + 47 + - 62 AS col0 FROM tab2
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT MAX( 84 ) col2 FROM tab0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5101
SELECT DISTINCT MAX ( 84 ) col2 FROM tab0
----
84

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 33 * + col0 * - + col2 + + col0 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 64 AS col0 FROM tab2
----
-3264
-4288
-4928

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5104
SELECT DISTINCT col1, col0 AS col2 FROM tab0 AS cor0 WHERE NOT 4 BETWEEN + 49 AND + - CAST( - col2 AS SIGNED )
----
1
97
21
87
81
15

skipif mysql # not compatible
query II rowsort label-5104
SELECT DISTINCT col1, col0 AS col2 FROM tab0 AS cor0 WHERE NOT 4 BETWEEN + 49 AND + - CAST ( - col2 AS INTEGER )
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT MAX( ALL col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5105
SELECT MAX ( ALL col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL 20 * 3 FROM tab0 AS cor0 WHERE ( - 60 + - col2 ) IS NOT NULL
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT COUNT( * ) * - - 89 AS col1 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-5107
SELECT COUNT ( * ) * - - 89 AS col1 FROM tab2
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT DISTINCT + col0 DIV + 81 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT + col0 / + 81 FROM tab0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5109
SELECT DISTINCT - col0 * + - CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT - col0 * + - CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 45 col2, 82 AS col0 FROM tab1 cor0
----
-45
82
-45
82
-45
82

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + col2 AS col2, - 84 FROM tab2 AS cor0
----
23
-84
40
-84
58
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5113
SELECT ALL - COUNT( DISTINCT - + col1 ) DIV COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL - COUNT ( DISTINCT - + col1 ) / COUNT ( * ) FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5114
SELECT + col2 + + 96 AS col1, - ( - col1 ) DIV - 16 AS col0 FROM tab2
----
119
-3
136
-4
154
-4

skipif mysql # not compatible
query II rowsort label-5114
SELECT + col2 + + 96 AS col1, - ( - col1 ) / - 16 AS col0 FROM tab2
----
119
-3
136
-4
154
-4

query I rowsort
SELECT - 5 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - col1 + - + col2 + + - col1 / - col2 BETWEEN 11 AND NULL
----

query I rowsort
SELECT + 0 + + - col0 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + 18 col1 FROM tab2
----
1044
414
720

query III rowsort
SELECT * FROM tab1 WHERE ( + + col0 ) NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 29 * col0 * 93 + + - ( + + col0 ) - + col0 * - 87 FROM tab1
----
141933
236555
253253

query I rowsort
SELECT DISTINCT 33 + - 49 AS col2 FROM tab1
----
-16

query I rowsort
SELECT DISTINCT + 31 - + 96 FROM tab1 AS cor0
----
-65

onlyif mysql # DIV for integer division: 
query II rowsort label-5123
SELECT DISTINCT - col2 DIV - col0 AS col0, 6 AS col0 FROM tab2 AS cor0
----
0
6

skipif mysql # not compatible
query II rowsort label-5123
SELECT DISTINCT - col2 / - col0 AS col0, 6 AS col0 FROM tab2 AS cor0
----
0
6

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NULL AND NOT + - col2 >= NULL
----

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab0
----
95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 72 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 + + col0 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col1 + + col2 * - 82 AS col1 FROM tab0 AS cor0
----
-3773
-799
-8117

query II rowsort
SELECT + 82, + col0 AS col0 FROM tab1 AS cor0
----
82
51
82
85
82
91

query I rowsort
SELECT ALL - col2 - + 30 FROM tab1 AS cor0
----
-126
-89
-98

query I rowsort
SELECT DISTINCT + + 53 + + 42 AS col2 FROM tab2 AS cor0
----
95

query I rowsort
SELECT DISTINCT col1 + ( - col0 ) + 3 * col1 * - 51 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL - ( + + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL - ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col1 FROM tab1 AS cor0
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col0 BETWEEN + col2 + + col0 + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5136
SELECT ALL - 70 * + col1 * - + CAST( NULL AS SIGNED ) / - col1 AS col0, + col2 * + - col1 FROM tab0
----
NULL
-210
NULL
-3807
NULL
-99

skipif mysql # not compatible
query II rowsort label-5136
SELECT ALL - 70 * + col1 * - + CAST ( NULL AS INTEGER ) / - col1 AS col0, + col2 * + - col1 FROM tab0
----
NULL
-210
NULL
-3807
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT SUM( ( col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5137
SELECT SUM ( ( col1 ) ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5138
SELECT DISTINCT * FROM tab2 WHERE + ( + CAST( - col0 AS SIGNED ) ) + - - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5138
SELECT DISTINCT * FROM tab2 WHERE + ( + CAST ( - col0 AS INTEGER ) ) + - - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 50 * + col0 + + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT - COUNT( * ) * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5140
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL - MAX( DISTINCT - 62 ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL - MAX ( DISTINCT - 62 ) FROM tab1 AS cor0
----
62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + - 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5143
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 < col1 * - CAST( + + col1 AS SIGNED ) + - 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5143
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 < col1 * - CAST ( + + col1 AS INTEGER ) + - 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT 47 DIV - 37 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5144
SELECT 47 / - 37 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - + col2 AS col2 FROM tab0 WHERE NOT + 81 + col0 + - + 70 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT - - 69 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT + 39 * + MAX( DISTINCT + 51 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
1989

skipif mysql # not compatible
query I rowsort label-5147
SELECT + 39 * + MAX ( DISTINCT + 51 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
1989

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + 24 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + ( - + col0 ) AS col2, 46 col2 FROM tab2 AS cor0
----
-8
46
13
46
5
46

query I rowsort
SELECT - col0 + - 32 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL + + COUNT( * ) * 54 * - MIN( - - col2 ) AS col2 FROM tab1 AS cor0
----
-9558

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL + + COUNT ( * ) * 54 * - MIN ( - - col2 ) AS col2 FROM tab1 AS cor0
----
-9558

query I rowsort
SELECT ALL - 10 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - 43 * 58 * + col2 - - col2 FROM tab0 AS cor0
----
-117171
-246807
-24930

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) <> + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5155
SELECT + col1 DIV + col0 * - 74 * col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5155
SELECT + col1 / + col0 * - 74 * col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5156
SELECT ALL - - 22 DIV COUNT( * ) col2 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5156
SELECT ALL - - 22 / COUNT ( * ) col2 FROM tab2 AS cor0
----
7

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col0 * - col2 + 87 + 2 )
----

query I rowsort
SELECT ALL + 42 + - col2 FROM tab2
----
-16
19
2

query I rowsort
SELECT + + 67 + + 90 FROM tab1 AS cor0
----
157
157
157

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT + COUNT( * ) + - 84 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + COUNT ( * ) + - 84 FROM tab1 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-5161
SELECT DISTINCT 96 + col2 + col0 DIV col2 * ( + 20 ) * - col2 col1, 80 AS col0 FROM tab2 AS cor0
----
-1006
80
-664
80
-801
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5161
SELECT DISTINCT 96 + col2 + col0 / col2 * ( + 20 ) * - col2 col1, 80 AS col0 FROM tab2 AS cor0
----
-1006
80
-664
80
-801
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5162
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - - col0 * + CAST( 62 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5162
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - - col0 * + CAST ( 62 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5163
SELECT ALL + 90 + + col2 DIV col0 FROM tab1 AS cor0
----
90
90
91

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL + 90 + + col2 / col0 FROM tab1 AS cor0
----
90
90
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL MIN( ALL - 83 ) FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL MIN ( ALL - 83 ) FROM tab1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT DISTINCT COUNT( ALL + + CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT COUNT ( ALL + + CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - - ( - 74 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) + - 67 FROM tab0 AS cor0 WHERE NULL = NULL
----
-67

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) + - 67 FROM tab0 AS cor0 WHERE NULL = NULL
----
-67

query I rowsort
SELECT + - 85 * + 39 + 59 AS col1 FROM tab0 AS cor0
----
-3256
-3256
-3256

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5169
SELECT COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 9 + - col1 AS col2 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT DISTINCT - COUNT( + + col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT - COUNT ( + + col2 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5172
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - col0 * - - col1 / col0 + - CAST( NULL AS DECIMAL ) AND ( 79 * + + 97 + - + col1 )
----

skipif mysql # not compatible
query III rowsort label-5172
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - col0 * - - col1 / col0 + - CAST ( NULL AS REAL ) AND ( 79 * + + 97 + - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT - col2 * + 30 FROM tab1
----
-1770
-2040
-2880

onlyif mysql # aggregate syntax: 
query II rowsort label-5175
SELECT DISTINCT + COUNT( * ) AS col0, 65 FROM tab1
----
3
65

skipif mysql # not compatible
query II rowsort label-5175
SELECT DISTINCT + COUNT ( * ) AS col0, 65 FROM tab1
----
3
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT + COUNT( * ) col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5176
SELECT + COUNT ( * ) col1 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT + 56 * col0 * + col1 * + 11 AS col1 FROM tab2
----
1445136
3035648
3095400

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT ALL - CAST( - 25 AS SIGNED ) AS col1 FROM tab2 cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL - CAST ( - 25 AS INTEGER ) AS col1 FROM tab2 cor0
----
25
25
25

query I rowsort
SELECT - 43 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL - MAX( ALL - 2 ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5181
SELECT ALL - MAX ( ALL - 2 ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5182
SELECT * FROM tab1 WHERE NOT - ( CAST( - - col1 AS SIGNED ) ) + - 5 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5182
SELECT * FROM tab1 WHERE NOT - ( CAST ( - - col1 AS INTEGER ) ) + - 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT DISTINCT + + MAX( DISTINCT 44 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
44

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT + + MAX ( DISTINCT 44 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
44

query II rowsort
SELECT ALL - col2 * - 73 AS col1, + 29 * + - col1 * + - col0 FROM tab1 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 - + col1 * - col0 * - col0 = ( 26 * - - col0 + 48 - 10 )
----

query II rowsort
SELECT ALL - 26 * - 26, + col0 + - 31 AS col2 FROM tab0 AS cor0
----
676
-16
676
56
676
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 + + + col0 col1 FROM tab0 AS cor0
----
-61
11
21

query I rowsort
SELECT ALL - 47 AS col0 FROM tab2 AS cor0 WHERE NOT col1 <= + ( - col1 )
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT DISTINCT - col0 * - 58 FROM tab1 AS cor0 WHERE NOT NULL >= CAST( ( + - 67 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT - col0 * - 58 FROM tab1 AS cor0 WHERE NOT NULL >= CAST ( ( + - 67 ) AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT 67 * - COUNT( DISTINCT - + col2 ) * COUNT( * ) + COUNT( * ) - COUNT( * ) col2 FROM tab2 AS cor0
----
-603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5190
SELECT 67 * - COUNT ( DISTINCT - + col2 ) * COUNT ( * ) + COUNT ( * ) - COUNT ( * ) col2 FROM tab2 AS cor0
----
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL - COUNT( * ) * 81 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL - COUNT ( * ) * 81 FROM tab0
----
-243

query II rowsort
SELECT ALL col1 AS col0, col0 * + + col0 AS col2 FROM tab2
----
51
2116
67
5625
77
4096

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT - COUNT( * ) + SUM( DISTINCT 11 ) * + COUNT( * ) AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT - COUNT ( * ) + SUM ( DISTINCT 11 ) * + COUNT ( * ) AS col2 FROM tab2
----
30

query I rowsort
SELECT 26 * + col0 AS col2 FROM tab1
----
1326
2210
2366

query I rowsort
SELECT 67 * 63 FROM tab1
----
4221
4221
4221

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT COUNT( * ) * ( + - COUNT( * ) ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5196
SELECT COUNT ( * ) * ( + - COUNT ( * ) ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT DISTINCT - 71 * + + col0 AS col1 FROM tab1 cor0
----
-3621
-6035
-6461

onlyif mysql # DIV for integer division: 
query I rowsort label-5198
SELECT DISTINCT - + col2 DIV ( + col0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT - + col2 / ( + col0 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT + col1 DIV + 91 - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5199
SELECT + col1 / + 91 - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT ALL CAST( NULL AS SIGNED ) * + col0 + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5201
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5201
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 36
----

query II rowsort
SELECT + 76 * + 82 + + - col2 + 63 AS col0, col1 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT ALL 90 * 24 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
110160
183600
196560

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL 90 * 24 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
110160
183600
196560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT - - ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT - - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5206
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - ( - col1 ) + + ( + + ( + + col2 ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - ( - col1 ) + + ( + + ( + + col2 ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT + SUM( col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT + SUM ( col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ALL - SUM( - 74 ) FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL - SUM ( - 74 ) FROM tab2
----
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL 17 * 96 FROM tab2
----
1632
1632
1632

onlyif mysql # aggregate syntax: 
query II rowsort label-5211
SELECT - COUNT( * ), COUNT( * ) AS col1 FROM tab2 WHERE NOT - + 86 <= - 21
----
0
0

skipif mysql # not compatible
query II rowsort label-5211
SELECT - COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 WHERE NOT - + 86 <= - 21
----
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5212
SELECT - - col2 DIV 34, col2 FROM tab0 AS cor0
----
0
10
1
47
2
99

skipif mysql # not compatible
query II rowsort label-5212
SELECT - - col2 / 34, col2 FROM tab0 AS cor0
----
0
10
1
47
2
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 - - col0 IS NULL
----

query I rowsort
SELECT ALL 37 + 88 AS col1 FROM tab2
----
125
125
125

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * + + 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + - col1 * + col1 * + + col0 + + 96 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT DISTINCT SUM( ALL + col0 ) + + 72 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
271

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT SUM ( ALL + col0 ) + + 72 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
271

query I rowsort
SELECT DISTINCT + - 63 FROM tab2 cor0
----
-63

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col1 * + col2 - + + col1 AS col1 FROM tab1
----
-1358
-300
-3243

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 99 IS NOT NULL
----

query I rowsort
SELECT 13 FROM tab2 cor0 WHERE ( NULL ) <> - + 98
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT 91 AS col2, 43 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to ae48fe4d37e6bf80223574647472dd85

onlyif mysql # DIV for integer division: 
query I rowsort label-5227
SELECT ALL - 27 * col1 + - - col0 + col2 + + 62 DIV 82 AS col1 FROM tab1 cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-1110
-231
9

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL - 27 * col1 + - - col0 + col2 + + 62 / 82 AS col1 FROM tab1 cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-1110
-231
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT 37 DIV - 25 col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5228
SELECT 37 / - 25 col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5229
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col1 + + col0 + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col1 + + col0 + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT + SUM( + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5231
SELECT + SUM ( + col0 ) AS col1 FROM tab0
----
199

query II rowsort
SELECT ALL 99 AS col0, - col1 + - - 4 FROM tab2
----
99
-47
99
-63
99
-73

query I rowsort
SELECT ALL col2 * + 92 AS col0 FROM tab1
----
5428
6256
8832

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - col0 BETWEEN 53 AND - ( col1 )
----
51
67
77

query II rowsort
SELECT ALL + col2, + col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL - COUNT( * ) * - 94 AS col2 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL - COUNT ( * ) * - 94 AS col2 FROM tab1
----
282

query II rowsort
SELECT col1 AS col0, - col1 AS col2 FROM tab0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT DISTINCT + - 42, + col1 FROM tab2 AS cor0
----
-42
51
-42
67
-42
77

query I rowsort
SELECT 24 * ( + col2 ) FROM tab0 AS cor0 WHERE 34 <> - 22
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT ( - - COUNT( DISTINCT - col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT ( - - COUNT ( DISTINCT - col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT col1 + - + ( col0 ) * + col1 + 49 FROM tab2 WHERE ( NOT NULL = NULL )
----

query I rowsort
SELECT + - ( 5 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT 88 - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
79

skipif mysql # not compatible
query I rowsort label-5243
SELECT 88 - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT DISTINCT + col1 * - 1 * - - col0 + - CAST( NULL AS SIGNED ) * 22 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT + col1 * - 1 * - - col0 + - CAST ( NULL AS INTEGER ) * 22 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5245
SELECT DISTINCT + - 30 + + 61, 59 + - MAX( + + col1 ) AS col2 FROM tab2 AS cor0
----
31
-18

skipif mysql # not compatible
query II rowsort label-5245
SELECT DISTINCT + - 30 + + 61, 59 + - MAX ( + + col1 ) AS col2 FROM tab2 AS cor0
----
31
-18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 75 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 + + + 29 AS col1 FROM tab1 AS cor0
----
-18
15
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - 60 + - - ( - + col2 ) + + ( - ( col0 ) ) * - 8 col0 FROM tab0 AS cor0
----
28
713
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 - 1 - - col2 * + 36 + - ( + col0 ) * col2 col1 FROM tab0 cor0
----
-609
-6138
888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT - + CAST( + col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5251
SELECT - + CAST ( + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5252
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 52 AS col2 FROM tab1
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, - 54 AS col2 FROM tab0
----
10
-54
47
-54
99
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, + col1 FROM tab1 WHERE NOT + - col2 BETWEEN - + col2 + - - col2 AND NULL
----
59
5
68
47
96
14

query I rowsort
SELECT ALL + col1 * + 80 FROM tab2 AS cor0
----
4080
5360
6160

onlyif mysql # aggregate syntax: 
query II rowsort label-5257
SELECT ALL ( - SUM( col2 ) ) AS col1, + 21 FROM tab0 cor0
----
-156
21

skipif mysql # not compatible
query II rowsort label-5257
SELECT ALL ( - SUM ( col2 ) ) AS col1, + 21 FROM tab0 cor0
----
-156
21

query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab1 AS cor0
----
45

query II rowsort
SELECT - col2 AS col2, 9 * + 69 FROM tab1 AS cor0
----
-59
621
-68
621
-96
621

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5260
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + - col2 NOT IN ( col0 * 42 * - CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5260
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + - col2 NOT IN ( col0 * 42 * - CAST ( + col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5261
SELECT DISTINCT MAX( ALL + col0 ), + COUNT( * ) AS col2 FROM tab2
----
75
3

skipif mysql # not compatible
query II rowsort label-5261
SELECT DISTINCT MAX ( ALL + col0 ), + COUNT ( * ) AS col2 FROM tab2
----
75
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5262
SELECT + 61 DIV - + col2 col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5262
SELECT + 61 / - + col2 col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT - 55 * MIN( ALL - col0 ) FROM tab1 cor0
----
5005

skipif mysql # not compatible
query I rowsort label-5263
SELECT - 55 * MIN ( ALL - col0 ) FROM tab1 cor0
----
5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 43 col1 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT ALL col1 * - + col0 AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - col0 * - 33 FROM tab0
----
2871
3201
495

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5269
SELECT DISTINCT 54, COUNT( * ) + + 27 AS col0 FROM tab0
----
54
30

skipif mysql # not compatible
query II rowsort label-5269
SELECT DISTINCT 54, COUNT ( * ) + + 27 AS col0 FROM tab0
----
54
30

query I rowsort
SELECT - + 70 AS col0 FROM tab0 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL + MIN( ALL - - col1 ) FROM tab1 cor0 WHERE col2 * - 71 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL + MIN ( ALL - - col1 ) FROM tab1 cor0 WHERE col2 * - 71 = NULL
----
NULL

query I rowsort
SELECT ALL 46 + 52 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5273
SELECT - col1 * + - 50 * + - ( col1 ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT - col1 * + - 50 * + - ( col1 ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 17 - - + 46 FROM tab0 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL NOT IN ( 95, + col1 )
----

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL NOT IN ( 95, + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col0 FROM tab0 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT DISTINCT - col2 DIV - - col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT - col2 / - - col2 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col0 col2 FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5279
SELECT * FROM tab2 WHERE - col0 + - + 40 NOT IN ( - col0, CAST( - 74 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5279
SELECT * FROM tab2 WHERE - col0 + - + 40 NOT IN ( - col0, CAST ( - 74 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5280
SELECT * FROM tab1 WHERE NULL = col2 - - - CAST( - - col1 AS SIGNED ) - CAST( + 51 AS SIGNED ) OR + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5280
SELECT * FROM tab1 WHERE NULL = col2 - - - CAST ( - - col1 AS INTEGER ) - CAST ( + 51 AS INTEGER ) OR + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5281
SELECT - COUNT( * ) DIV - + 56 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5281
SELECT - COUNT ( * ) / - + 56 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 17 / - col2 * 54, 46, - 77 + - col0, - col2, - col0 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT + - SUM( - col2 ) AS col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT + - SUM ( - col2 ) AS col1 FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT - ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5284
SELECT - ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL - 84 * COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-756

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL - 84 * COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5286
SELECT ALL + - CAST( - AVG ( - + col0 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5286
SELECT ALL + - CAST ( - AVG ( - + col0 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT - ( - COUNT( ALL + 65 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT - ( - COUNT ( ALL + 65 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL + - MIN( - - 60 ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL + - MIN ( - - 60 ) FROM tab0 AS cor0
----
-60

query I rowsort
SELECT - 61 FROM tab2 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT + ( + col2 ) * - - 41 * - 88 AS col2 FROM tab0 AS cor0
----
-169576
-357192
-36080

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT - - col1 + + 87 FROM tab2 AS cor0
----
138
154
164

query I rowsort
SELECT - col2 + 43 AS col2 FROM tab2
----
-15
20
3

query II rowsort
SELECT col2 + - - col2 AS col0, + col2 FROM tab2
----
116
58
46
23
80
40

query I rowsort
SELECT + 54 + - 25 FROM tab0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT - COUNT( * ) * - - SUM( - 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5296
SELECT - COUNT ( * ) * - - SUM ( - 0 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5297
SELECT + CAST( + 81 AS SIGNED ) AS col1, 88 AS col2 FROM tab1
----
81
88
81
88
81
88

skipif mysql # not compatible
query II rowsort label-5297
SELECT + CAST ( + 81 AS INTEGER ) AS col1, 88 AS col2 FROM tab1
----
81
88
81
88
81
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN col0 + col0 AND col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT DISTINCT - SUM( - 21 ) * - 68 col1 FROM tab2 cor0
----
-4284

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5301
SELECT DISTINCT - SUM ( - 21 ) * - 68 col1 FROM tab2 cor0
----
-4284

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 73 + col2 = ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 1 ) + + 80 col1 FROM tab2
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5304
SELECT ALL * FROM tab2 WHERE NOT col1 = col0 + CAST( NULL AS SIGNED ) + ( - - 60 ) + col2
----

skipif mysql # not compatible
query III rowsort label-5304
SELECT ALL * FROM tab2 WHERE NOT col1 = col0 + CAST ( NULL AS INTEGER ) + ( - - 60 ) + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5305
SELECT ALL - col0 + col1 DIV - col2 * + col1 col0 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5305
SELECT ALL - col0 + col1 / - col2 * + col1 col0 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT + ( - + 52 ) / + col0 * col0 * + ( - + 65 ) + 17 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col2 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT col0 - - - col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ALL + MIN( DISTINCT - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL + MIN ( DISTINCT - col1 ) FROM tab1
----
-47

query I rowsort
SELECT col1 * 95 FROM tab2
----
4845
6365
7315

onlyif mysql # aggregate syntax: 
query II rowsort label-5311
SELECT DISTINCT COUNT( * ) AS col1, - ( + + 83 ) FROM tab0
----
3
-83

skipif mysql # not compatible
query II rowsort label-5311
SELECT DISTINCT COUNT ( * ) AS col1, - ( + + 83 ) FROM tab0
----
3
-83

query II rowsort
SELECT DISTINCT + col1, 61 * col1 * + - col2 FROM tab0
----
1
-6039
21
-12810
81
-232227

query II rowsort
SELECT - col1 AS col2, - 0 + - + col2 AS col1 FROM tab0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT - MAX( col1 ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT - MAX ( col1 ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
NULL

query I rowsort
SELECT - 85 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
-85
-85
-85

query I rowsort
SELECT ( - - col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5317
SELECT + COUNT( * ) AS col1, 76 FROM tab1 AS cor0
----
3
76

skipif mysql # not compatible
query II rowsort label-5317
SELECT + COUNT ( * ) AS col1, 76 FROM tab1 AS cor0
----
3
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT - MAX( DISTINCT + 96 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5318
SELECT - MAX ( DISTINCT + 96 ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5319
SELECT ALL - - 47 + + 54 * + + COUNT( * ) AS col1, COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
533
9

skipif mysql # not compatible
query II rowsort label-5319
SELECT ALL - - 47 + + 54 * + + COUNT ( * ) AS col1, COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
533
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT + + CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 6 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5320
SELECT + + CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 6 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT + 95 * + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-855

skipif mysql # not compatible
query I rowsort label-5321
SELECT + 95 * + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT + MIN( - - col0 ) * + + 80 FROM tab1
----
4080

skipif mysql # not compatible
query I rowsort label-5322
SELECT + MIN ( - - col0 ) * + + 80 FROM tab1
----
4080

query II rowsort
SELECT DISTINCT + 7 AS col0, col1 AS col0 FROM tab0
----
7
1
7
21
7
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL - MAX( + col2 ) col0 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5324
SELECT ALL - MAX ( + col2 ) col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT COUNT( * ) + - + 62 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-5325
SELECT COUNT ( * ) + - + 62 FROM tab0
----
-59

query I rowsort
SELECT col2 + + + col2 FROM tab1
----
118
136
192

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 > 77
----

query I rowsort
SELECT ALL - col1 - - 17 AS col0 FROM tab0 AS cor0
----
-4
-64
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5329
SELECT DISTINCT + COUNT( * ), - 6 AS col1 FROM tab2, tab2 AS cor0
----
9
-6

skipif mysql # not compatible
query II rowsort label-5329
SELECT DISTINCT + COUNT ( * ), - 6 AS col1 FROM tab2, tab2 AS cor0
----
9
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT ALL + SUM( ALL 49 ) FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL + SUM ( ALL 49 ) FROM tab1
----
147

query II rowsort
SELECT + col1 * 7 AS col2, + ( 36 ) AS col2 FROM tab1
----
329
36
35
36
98
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT + 37 * + CAST( - + ( + col1 ) AS SIGNED ) AS col0 FROM tab1
----
-1739
-185
-518

skipif mysql # not compatible
query I rowsort label-5332
SELECT + 37 * + CAST ( - + ( + col1 ) AS INTEGER ) AS col0 FROM tab1
----
-1739
-185
-518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5333
SELECT DISTINCT MAX( DISTINCT col1 ) FROM tab1 cor0 WHERE NOT NULL = CAST( - - 44 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT MAX ( DISTINCT col1 ) FROM tab1 cor0 WHERE NOT NULL = CAST ( - - 44 AS INTEGER )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col2 FROM tab2 AS cor0 WHERE col1 + + col1 IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5336
SELECT - 89, 47 DIV + + ( 22 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + + col0 ) + + 28 IS NULL
----
-89
2
-89
2
-89
2

skipif mysql # not compatible
query II rowsort label-5336
SELECT - 89, 47 / + + ( 22 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + + col0 ) + + 28 IS NULL
----
-89
2
-89
2
-89
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT DISTINCT - SUM( ALL - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT - SUM ( ALL - col0 ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT DISTINCT - COUNT( * ) - + 67 FROM tab0 WHERE NOT + - 22 IS NOT NULL
----
-67

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - COUNT ( * ) - + 67 FROM tab0 WHERE NOT + - 22 IS NOT NULL
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT DISTINCT COUNT( * ) * 79 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT COUNT ( * ) * 79 FROM tab0
----
237

query I rowsort
SELECT DISTINCT + 75 * col0 AS col0 FROM tab0
----
1125
6525
7275

query I rowsort
SELECT DISTINCT + 61 * - col1 FROM tab1 cor0
----
-2867
-305
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT + MAX( DISTINCT + - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 6 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT + MAX ( DISTINCT + - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 6 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 49 NOT IN ( - col1 * - col0, - col0, - + col1, col0 + 70 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5344
SELECT - + MIN( + 62 ) * CAST( - - 57 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3534

skipif mysql # not compatible
query I rowsort label-5344
SELECT - + MIN ( + 62 ) * CAST ( - - 57 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3534

query II rowsort
SELECT ALL - col1 AS col1, - ( + col2 ) AS col1 FROM tab2
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT + SUM( + - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT + SUM ( + - col2 ) FROM tab1
----
-223

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 + - + 39 AS col2 FROM tab2 AS cor0
----
25
36
7

query I rowsort
SELECT + col2 + + col2 + - - col0 FROM tab2 AS cor0
----
144
191
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL - COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 28 + + 73 * col2 AS col1 FROM tab1 AS cor0
----
4335
4992
7036

query I rowsort
SELECT DISTINCT 96 * + + col0 + + 23 * - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT + + MIN( col2 ) col1 FROM tab2 WHERE NULL IS NULL
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5353
SELECT + + MIN ( col2 ) col1 FROM tab2 WHERE NULL IS NULL
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5354
SELECT DISTINCT + CAST( + SUM( ALL + col2 ) AS SIGNED ) + - - COUNT( * ) * 14 AS col1 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + CAST ( + SUM ( ALL + col2 ) AS INTEGER ) + - - COUNT ( * ) * 14 AS col1 FROM tab0
----
198

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5355
SELECT CAST( NULL AS DECIMAL ) * - 88 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT CAST ( NULL AS REAL ) * - 88 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT + ( COUNT( * ) ) col1 FROM tab1 WHERE - col0 + col0 * 79 * + - col0 <= - 79 / col0 * col2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5356
SELECT + ( COUNT ( * ) ) col1 FROM tab1 WHERE - col0 + col0 * 79 * + - col0 <= - 79 / col0 * col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5357
SELECT CAST( + - ( + 4 ) AS SIGNED ) AS col1 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-5357
SELECT CAST ( + - ( + 4 ) AS INTEGER ) AS col1 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT ALL + 86 + - - col0 AS col1 FROM tab2
----
132
150
161

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - 64 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 14 * + col2 AND + 31
----

query I rowsort
SELECT DISTINCT + col2 + - + 42 AS col0 FROM tab0 AS cor0 WHERE 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT + 18 + SUM( ALL - 70 ) FROM tab2 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT + 18 + SUM ( ALL - 70 ) FROM tab2 cor0
----
-192

query I rowsort
SELECT DISTINCT - 92 * - + col1 - - 46 FROM tab1 AS cor0
----
1334
4370
506

query I rowsort
SELECT ALL + + ( + ( - ( + + col1 ) ) ) - - col2 + + 6 AS col0 FROM tab1 AS cor0
----
27
60
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 + + 97 + - - col1 col2 FROM tab2
----
148
164
174

query I rowsort
SELECT - + col0 + - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0, + ( - col1 ) )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 25 IS NOT NULL
----

query II rowsort
SELECT + 80 AS col0, - col1 * - 48 AS col1 FROM tab1 AS cor0
----
80
2256
80
240
80
672

query I rowsort
SELECT DISTINCT ( 78 ) AS col1 FROM tab2 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query II rowsort
SELECT - 44, + col0 AS col2 FROM tab1 AS cor0
----
-44
51
-44
85
-44
91

query II rowsort
SELECT + col0 AS col2, 86 FROM tab0 AS cor0
----
15
86
87
86
97
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT DISTINCT + MIN( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT + MIN ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT MIN( + - col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5374
SELECT MIN ( + - col2 ) FROM tab2 cor0
----
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT SUM( DISTINCT - 11 ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-5376
SELECT SUM ( DISTINCT - 11 ) FROM tab1
----
-11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 * + col1 / - 56 - + col2 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab0 WHERE NOT col2 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT + 13 * COUNT( * ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5379
SELECT + 13 * COUNT ( * ) FROM tab2 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT ALL + ( + CAST( - ( + + col0 ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL + ( + CAST ( - ( + + col0 ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT col1 * + + col1, col0 FROM tab2 AS cor0
----
2601
46
4489
75
5929
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT DISTINCT - COUNT( * ) + 75 FROM tab2, tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT - COUNT ( * ) + 75 FROM tab2, tab2 AS cor0
----
66

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + 59 ) + + 33 col1 FROM tab0
----
-26

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 41 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-5387
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ALL - 38 + COUNT( * ) FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - 38 + COUNT ( * ) FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT DISTINCT + ( COUNT( * ) ) AS col2 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT + ( COUNT ( * ) ) AS col2 FROM tab1, tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN - ( + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT COUNT( col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5391
SELECT COUNT ( col1 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5392
SELECT - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * ( - SUM( col2 ) ) FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5392
SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * ( - SUM ( col2 ) ) FROM tab1 AS cor0
----
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 = - col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + col2 + + ( + + col2 ) + + - 43 - + col2 FROM tab0 AS cor0
----
-33
4
56

query I rowsort
SELECT + + 28 AS col1 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT + - 26 * COUNT( * ) AS col1 FROM tab2 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5398
SELECT + - 26 * COUNT ( * ) AS col1 FROM tab2 cor0
----
-78

query I rowsort
SELECT DISTINCT ( + 53 ) * - + col0 * + col0 AS col0 FROM tab2
----
-112148
-217088
-298125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col1 FROM tab1
----
-29
-29
-29

query I rowsort
SELECT + col1 + + - 99 + + 61 AS col1 FROM tab2
----
13
29
39

query I rowsort
SELECT ( col1 ) + + col0 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) + - MAX( + - col2 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) + - MAX ( + - col2 ) FROM tab0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * + 77 col1 FROM tab0
----
1140
6612
7372

query I rowsort
SELECT DISTINCT - + 98 * - col0 + col1 FROM tab1 AS cor0
----
5012
8335
8965

onlyif mysql # aggregate syntax: 
query II rowsort label-5406
SELECT + + 51 AS col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-5406
SELECT + + 51 AS col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
51
3

query I rowsort
SELECT - 99 AS col2 FROM tab0 cor0
----
-99
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - - 98 ) AS col1 FROM tab1 AS cor0
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5410
SELECT 74 DIV col1 * - col2 AS col2 FROM tab2 AS cor0
----
-23
-58
0

skipif mysql # not compatible
query I rowsort label-5410
SELECT 74 / col1 * - col2 AS col2 FROM tab2 AS cor0
----
-23
-58
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 37 * col1 BETWEEN + 44 AND + 18 + - 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - + 52 ) * + 14 col1 FROM tab0 AS cor0
----
-728
-728
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5413
SELECT CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5413
SELECT CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 < - col2 * - 43 + + 51 + + 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT + COUNT( * ) FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5415
SELECT + COUNT ( * ) FROM tab2, tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 16 AS col1, col2 * + - col2 FROM tab1
----
16
-3481
16
-4624
16
-9216

query II rowsort
SELECT DISTINCT + col2, + col2 AS col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT + ( + SUM( ALL + col0 ) ) * - + SUM( col2 ) - - COUNT( * ) * SUM( + - col2 ) AS col0 FROM tab2 AS cor0
----
-22748

skipif mysql # not compatible
query I rowsort label-5419
SELECT + ( + SUM ( ALL + col0 ) ) * - + SUM ( col2 ) - - COUNT ( * ) * SUM ( + - col2 ) AS col0 FROM tab2 AS cor0
----
-22748

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5420
SELECT DISTINCT * FROM tab2 WHERE NOT 9 IN ( CAST( + col0 AS DECIMAL ) * 49 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5420
SELECT DISTINCT * FROM tab2 WHERE NOT 9 IN ( CAST ( + col0 AS REAL ) * 49 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL COUNT( * ) * 72 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL COUNT ( * ) * 72 FROM tab1
----
216

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 * + col1 + - 18 ) NOT IN ( + col0 * - col2 )
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT + 31 < - col2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + col2 * 5 FROM tab0 WHERE NULL IS NULL
----
235
495
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT ( col1 ) <> col0 - - ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5425
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( col1 ) <> col0 - - ( - col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT ALL + col0 + - 60 DIV 29 FROM tab0
----
13
85
95

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + col0 + - 60 / 29 FROM tab0
----
13
85
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT ALL - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 50 AS col2 FROM tab0
----
1050
4050
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT MAX( col0 ) FROM tab1 WHERE NOT NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT MAX ( col0 ) FROM tab1 WHERE NOT NULL <= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL COUNT( * ) * - 83 FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL COUNT ( * ) * - 83 FROM tab2
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT - MIN( ALL col2 ) * - 48 FROM tab2
----
1104

skipif mysql # not compatible
query I rowsort label-5431
SELECT - MIN ( ALL col2 ) * - 48 FROM tab2
----
1104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 75 col1 FROM tab0 WHERE col0 * col0 - 21 IS NOT NULL
----
162
172
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT 80 + + 67 * MIN( col0 * col0 ) AS col0 FROM tab1
----
174347

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT 80 + + 67 * MIN ( col0 * col0 ) AS col0 FROM tab1
----
174347

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT DISTINCT MIN( - col2 ) * ( - ( + COUNT( * ) ) * MAX( ALL col1 * ( + col1 ) ) ) FROM tab0
----
1948617

skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT MIN ( - col2 ) * ( - ( + COUNT ( * ) ) * MAX ( ALL col1 * ( + col1 ) ) ) FROM tab0
----
1948617

query I rowsort
SELECT ( 60 ) AS col2 FROM tab1 WHERE NOT ( col1 ) BETWEEN - col1 + 45 AND - 38
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT MIN( DISTINCT 88 ) * COUNT( * ) FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-5436
SELECT MIN ( DISTINCT 88 ) * COUNT ( * ) FROM tab2
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5437
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) - - 41 IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-5437
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) - - 41 IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * col0 NOT BETWEEN ( NULL ) AND + 53
----

query I rowsort
SELECT DISTINCT - ( 5 ) FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT - 0 * + COUNT( ALL + 41 ) + - 67 AS col0 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-5440
SELECT - 0 * + COUNT ( ALL + 41 ) + - 67 AS col0 FROM tab0
----
-67

query III rowsort
SELECT * FROM tab0 WHERE col2 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 73 * 52 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
3796
3796
3796

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT COUNT( * ) + - 56 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-5443
SELECT COUNT ( * ) + - 56 FROM tab2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT MAX( ALL ( - col1 ) ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5444
SELECT MAX ( ALL ( - col1 ) ) AS col1 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT + MAX( ALL col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5445
SELECT + MAX ( ALL col2 ) AS col2 FROM tab2
----
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + + 84 <= ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5447
SELECT DISTINCT - col1 - col1 DIV - 74 AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT - col1 - col1 / - 74 AS col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + col2 <= col2 - col0 * col1
----

query I rowsort
SELECT - 11 + - 96 AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL 36 + col1 FROM tab2 cor0
----
103
113
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5452
SELECT ALL 2 + + col0 DIV - ( col2 ) AS col2 FROM tab1 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL 2 + + col0 / - ( col2 ) AS col2 FROM tab1 cor0
----
1
1
2

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) <= + col1
----

query I rowsort
SELECT ( col0 ) + - col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 84 < col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5457
SELECT - 22 + COUNT( + CAST( NULL AS DECIMAL ) - col2 ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5457
SELECT - 22 + COUNT ( + CAST ( NULL AS REAL ) - col2 ) FROM tab0 AS cor0
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT - ( COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5459
SELECT - ( COUNT ( * ) ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT ( + CAST( - col2 AS SIGNED ) ) * 20 AS col0 FROM tab2
----
-1160
-460
-800

skipif mysql # not compatible
query I rowsort label-5460
SELECT ( + CAST ( - col2 AS INTEGER ) ) * 20 AS col0 FROM tab2
----
-1160
-460
-800

query I rowsort
SELECT DISTINCT + 91 FROM tab0 AS cor0 CROSS JOIN tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5462
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
-9

query I rowsort
SELECT 67 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT - ( - 27 ) AS col1 FROM tab0 AS cor0
----
27
27
27

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 * 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT + + SUM( ALL + col2 ) col2 FROM tab1 cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5466
SELECT + + SUM ( ALL + col2 ) col2 FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT COUNT( * ) * 7 AS col0 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5467
SELECT COUNT ( * ) * 7 AS col0 FROM tab0 AS cor0
----
21

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN ( NULL ) AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5469
SELECT + col0 DIV - + col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-5469
SELECT + col0 / - + col1 FROM tab1
----
-1
-17
-3

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + + col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT DISTINCT MAX( col1 ) + - 38 AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT MAX ( col1 ) + - 38 AS col2 FROM tab1
----
9

query I rowsort
SELECT DISTINCT - ( + - 50 ) FROM tab0
----
50

query I rowsort
SELECT ALL - col1 + + - col2 AS col0 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT ALL - COUNT( DISTINCT 19 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL - COUNT ( DISTINCT 19 ) FROM tab2
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - col2 * col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5477
SELECT - CAST( + 90 AS SIGNED ) DIV col0 + - col1 FROM tab1 AS cor0
----
-15
-47
-6

skipif mysql # not compatible
query I rowsort label-5477
SELECT - CAST ( + 90 AS INTEGER ) / col0 + - col1 FROM tab1 AS cor0
----
-15
-47
-6

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col2 ) NOT BETWEEN col1 + 65 AND + 86 - + ( + 0 )
----

query I rowsort
SELECT + col2 + + + 95 + 2 AS col0 FROM tab0 cor0
----
107
144
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT DISTINCT - COUNT( ALL col1 ) * MIN( ALL + col1 * col1 + + col1 ) FROM tab2 AS cor0
----
-7956

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT - COUNT ( ALL col1 ) * MIN ( ALL + col1 * col1 + + col1 ) FROM tab2 AS cor0
----
-7956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5481
SELECT ALL + col0 + - col1 FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN 63 AND col1
----

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL + col0 + - col1 FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN 63 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT DISTINCT - COUNT( * ) * - 34 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT - COUNT ( * ) * - 34 FROM tab2 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT + + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT + + col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT DISTINCT MAX( col0 ) + + + 19 col0 FROM tab1
----
110

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5485
SELECT DISTINCT MAX ( col0 ) + + + 19 col0 FROM tab1
----
110

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= ( + 44 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, + col0 col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT - col1 * + 37 AS col0 FROM tab0 AS cor0
----
-2997
-37
-777

query I rowsort
SELECT ALL col0 + + - 6 AS col2 FROM tab1 AS cor0
----
45
79
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> 6
----
0

skipif mysql # not compatible
query I rowsort label-5491
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> 6
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5492
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-5492
SELECT * FROM tab0 AS cor0 WHERE ( ( + CAST ( col1 AS INTEGER ) ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 57 AS col1 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL - col2 - - col1 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT - COUNT( + + 39 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT - COUNT ( + + 39 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT col1 * + - col1 + - 18 FROM tab1
----
-214
-2227
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ALL + MIN( + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL + MIN ( + col1 ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( + + col2 ) AND - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * col1 - 69 NOT IN ( ( 41 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT SUM( 1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5500
SELECT SUM ( 1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT col1 * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 DIV - - 23 IN ( ( + 29 ) DIV 6 )
----
-210
-3807

skipif mysql # not compatible
query I rowsort label-5501
SELECT col1 * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 / - - 23 IN ( ( + 29 ) / 6 )
----
-210
-3807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT DISTINCT + ( - - col1 ) DIV + - col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT + ( - - col1 ) / + - col2 FROM tab0
----
-1
-2
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col1, - 68 FROM tab2
----
51
-68
67
-68
77
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL - + MIN( ALL + 95 ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-95

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL - + MIN ( ALL + 95 ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT + MIN( DISTINCT - - col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5507
SELECT + MIN ( DISTINCT - - col2 ) AS col1 FROM tab0
----
10

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab2 AS cor0 WHERE NOT 41 + - col0 + - 0 IS NOT NULL
----

query I rowsort
SELECT - + col1 * + - 64 * - + col0 + - col0 FROM tab2 AS cor0
----
-150190
-315456
-321675

query I rowsort
SELECT - col0 * + 52 * + + col2 + col2 * 79 - col1 AS col1 FROM tab1 AS cor0
----
-247022
-256124
-316451

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT - ( + MIN( DISTINCT 35 ) ) * COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 3 * 45 * col1 * - col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5511
SELECT - ( + MIN ( DISTINCT 35 ) ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 3 * 45 * col1 * - col0 >= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <> - 40 / - col0
----

query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * + - col0 <> - col0 * + 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5514
SELECT DISTINCT - col2 DIV 64 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT - col2 / 64 AS col1 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT - 73 FROM tab1 AS cor0 WHERE NOT col0 * + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT - col1 * - CAST( + CAST( 52 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - CAST( NULL AS SIGNED ) - + - col1 )
----

skipif mysql # not compatible
query I rowsort label-5516
SELECT - col1 * - CAST ( + CAST ( 52 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - CAST ( NULL AS INTEGER ) - + - col1 )
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT 16 / 45 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 94 * col1 * col2 + - - 63 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN 7 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN ( 67 * col2 ) AND ( + 3 ) )
----

query II rowsort
SELECT ALL col2, col2 + 3 + col0 - + col2 + - 59 FROM tab1
----
59
29
68
35
96
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL ( - MIN( ALL 51 ) ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL ( - MIN ( ALL 51 ) ) FROM tab0
----
-51

query II rowsort
SELECT + col0, + 38 FROM tab2
----
46
38
64
38
75
38

query II rowsort
SELECT ALL + col1, col0 AS col2 FROM tab0
----
1
97
21
87
81
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT + MAX( DISTINCT + ( col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5526
SELECT + MAX ( DISTINCT + ( col0 ) ) FROM tab1
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 * ( + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0, col2 * + col1 FROM tab0
----
15
3807
87
210
97
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5529
SELECT ALL COUNT( * ) + MIN( ( + + CAST( NULL AS SIGNED ) ) ) * + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL COUNT ( * ) + MIN ( ( + + CAST ( NULL AS INTEGER ) ) ) * + + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + 73 AS col1 FROM tab2 cor0 WHERE NOT NULL <= + 4
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col0 )
----

query I rowsort
SELECT DISTINCT + col2 * + col2 - + col0 * - 35 AS col2 FROM tab1 AS cor0 WHERE NOT + 94 * 50 * - - 24 + - col2 * 51 <> NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + col1 FROM tab1 cor0 WHERE NOT + col0 * - 96 IS NULL
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 60 IS NULL
----

query II rowsort
SELECT DISTINCT + + 56 * col2 AS col1, + 4 + - ( 15 ) FROM tab0 AS cor0 WHERE ( NULL = NULL )
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 87 AS col0, col2 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
87
59
87
68
87
96

query I rowsort
SELECT ALL - - 71 - - - 46 AS col1 FROM tab2 cor0
----
25
25
25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT - COUNT( * ) * - - 30 * - 14 AS col1 FROM tab2
----
1260

skipif mysql # not compatible
query I rowsort label-5540
SELECT - COUNT ( * ) * - - 30 * - 14 AS col1 FROM tab2
----
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5541
SELECT col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 23 * + + col0 AS col2 FROM tab1
----
1173
1955
2093

onlyif mysql # aggregate syntax: 
query II rowsort label-5543
SELECT ALL + 50 AS col0, - COUNT( * ) AS col1 FROM tab1
----
50
-3

skipif mysql # not compatible
query II rowsort label-5543
SELECT ALL + 50 AS col0, - COUNT ( * ) AS col1 FROM tab1
----
50
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5544
SELECT DISTINCT + col0 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT + col0 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 / - - ( + 91 ) ) BETWEEN col0 + col1 AND ( + - col1 )
----
15
87
97

query I rowsort
SELECT DISTINCT + 93 * + - col2 AS col1 FROM tab0 AS cor0
----
-4371
-9207
-930

query I rowsort
SELECT 97 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
97
97
97

query II rowsort
SELECT ALL col0 * + col1 AS col0, 8 FROM tab2
----
2346
8
4928
8
5025
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT col0 FROM tab2 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) > + col1
----

skipif mysql # not compatible
query I rowsort label-5549
SELECT col0 FROM tab2 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) > + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5551
SELECT DISTINCT + 29 DIV 36 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT + 29 / 36 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col1 * col0 - col2 AS col0 FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> NULL OR - + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> NULL OR - + col1 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT - ( - 37 ) DIV + col1 col2 FROM tab0 AS cor0
----
0
1
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5554
SELECT - ( - 37 ) / + col1 col2 FROM tab0 AS cor0
----
0
1
37

query I rowsort
SELECT - - col0 * - - col0 + + 64 AS col1 FROM tab0 AS cor0
----
289
7633
9473

query I rowsort
SELECT - - col1 * + - col0 AS col2 FROM tab1 cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 * + + 74 * - - col2 * - col0 ) OR NOT ( col1 + + 64 + 80 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + ( + 96 ), + col2 * - 64 AS col0 FROM tab2 cor0
----
96
-1472
96
-2560
96
-3712

query II rowsort
SELECT DISTINCT + col2, + col2 AS col0 FROM tab0 WHERE NOT ( - col2 * col1 ) BETWEEN col2 AND NULL
----
10
10
47
47
99
99

query I rowsort
SELECT ALL + ( - col1 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - col0 AS col1 FROM tab2 WHERE + - col0 + - - col2 * ( + 16 ) * + - col0 <> NULL
----

query I rowsort
SELECT 61 + ( + - 35 ) FROM tab1
----
26
26
26

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5563
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col0 * ( 97 ) AND - - col0 AND NOT - CAST( NULL AS DECIMAL ) NOT IN ( + - col0 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-5563
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col0 * ( 97 ) AND - - col0 AND NOT - CAST ( NULL AS REAL ) NOT IN ( + - col0 + - col0 )
----

query I rowsort
SELECT ALL + col0 + - 88 AS col0 FROM tab0 AS cor0
----
-1
-73
9

query I rowsort
SELECT ALL - + 37 + col2 AS col0 FROM tab0 AS cor0
----
-27
10
62

query I rowsort
SELECT - + 92 * + col1 * - col1 + - - col0 AS col2 FROM tab1 AS cor0
----
18083
203319
2385

query I rowsort
SELECT ALL + + 99 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query III rowsort
SELECT * FROM tab2 WHERE NULL < - 79
----

query I rowsort
SELECT ALL - 16 + - 97 FROM tab0
----
-113
-113
-113

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT DISTINCT - MAX( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT DISTINCT + CAST( - + col0 AS SIGNED ) + + 73 - - 36 AS col0 FROM tab2 AS cor0
----
34
45
63

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + CAST ( - + col0 AS INTEGER ) + + 73 - - 36 AS col0 FROM tab2 AS cor0
----
34
45
63

query I rowsort
SELECT 30 - + - col2 AS col1 FROM tab0 AS cor0
----
129
40
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT ALL col0 - + col1 + CAST( + - 41 AS SIGNED ) * + 80 * - col1 * - col2 + + col0 AS col0 FROM tab1 AS cor0
----
-10482745
-4408232
-967435

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL col0 - + col1 + CAST ( + - 41 AS INTEGER ) * + 80 * - col1 * - col2 + + col0 AS col0 FROM tab1 AS cor0
----
-10482745
-4408232
-967435

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT COUNT( + + col0 ) * + COUNT( * ) - 32 col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5575
SELECT COUNT ( + + col0 ) * + COUNT ( * ) - 32 col0 FROM tab2 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-5576
SELECT ALL 44 + + + col0 DIV - col2 col0 FROM tab1 AS cor0
----
43
43
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5576
SELECT ALL 44 + + + col0 / - col2 col0 FROM tab1 AS cor0
----
43
43
44

query I rowsort
SELECT DISTINCT + col2 - + + col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ALL + COUNT( 15 ) - + SUM( col1 ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL + COUNT ( 15 ) - + SUM ( col1 ) FROM tab0 AS cor0
----
-100

query I rowsort
SELECT 81 + - + ( 82 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 * - 56 * 57 + + 18 * - col2 AS col1 FROM tab0 AS cor0
----
-277884
-311406
-48726

query I rowsort
SELECT DISTINCT + + 19 - - 55 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
74

query I rowsort
SELECT ALL col1 * + + 56 AS col0 FROM tab2
----
2856
3752
4312

query I rowsort
SELECT col2 * - + 25 AS col0 FROM tab0
----
-1175
-2475
-250

onlyif mysql # DIV for integer division: 
query I rowsort label-5584
SELECT + col2 DIV - - 99 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5584
SELECT + col2 / - - 99 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 80 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT - + 74 AS col1 FROM tab1 cor0
----
-74

query I rowsort
SELECT DISTINCT - col1 * + 87 FROM tab1
----
-1218
-4089
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ( + MAX( DISTINCT - 58 ) ) FROM tab1 WHERE NOT ( + col2 * - + 32 * - col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT ( + MAX ( DISTINCT - 58 ) ) FROM tab1 WHERE NOT ( + col2 * - + 32 * - col1 ) IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + col1 * 74 + - col0, + 85 AS col1 FROM tab2 AS cor0
----
3728
85
4883
85
5634
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT + COUNT( * ) * - - 90 AS col0 FROM tab1 cor0
----
270

skipif mysql # not compatible
query I rowsort label-5590
SELECT + COUNT ( * ) * - - 90 AS col0 FROM tab1 cor0
----
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5591
SELECT DISTINCT - MIN( - + 34 ) + + + 6 + - + 21 - - - CAST( NULL AS SIGNED ) * AVG ( ALL + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT - MIN ( - + 34 ) + + + 6 + - + 21 - - - CAST ( NULL AS INTEGER ) * AVG ( ALL + col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 39 + + col2 AS col1 FROM tab0 AS cor0
----
-29
60
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT ALL + 3 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL + 3 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 5 + - 7 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL + ( + - COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL + ( + - COUNT ( * ) ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5596
SELECT 43 / CAST( - + col0 AS SIGNED ) / - ( + - 85 ) * + CAST( NULL AS SIGNED ) * + ( + - 88 ) * - col0 + - - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5596
SELECT 43 / CAST ( - + col0 AS INTEGER ) / - ( + - 85 ) * + CAST ( NULL AS INTEGER ) * + ( + - 88 ) * - col0 + - - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( ( + 80 ) ) * - 31 * - 17 AS col1 FROM tab0
----
42160
42160
42160

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT ALL - 93 * + MIN( + + col1 ) AS col1 FROM tab2
----
-4743

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - 93 * + MIN ( + + col1 ) AS col1 FROM tab2
----
-4743

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + 67 * col2 NOT IN ( 17 * - col0 * - col2 * col0 - + + col2 + + + 99 * - + col1 + - 34 )
----

query I rowsort
SELECT + 90 * - - col1 FROM tab1
----
1260
4230
450

query I rowsort
SELECT - ( - + col1 ) FROM tab1 WHERE col1 NOT IN ( col2, col2 * 1 - 60 + - col1 + + + col1 / col0 )
----
14
47
5

query I rowsort
SELECT ALL - 11 * + col1 + - col0 + - 21 FROM tab0
----
-129
-339
-927

query II rowsort
SELECT ALL - 27 + col2, col2 FROM tab2
----
-4
23
13
40
31
58

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5605
SELECT ALL - CAST( NULL AS SIGNED ) + + + col0 * CAST( NULL AS SIGNED ) - - col0 AS col0, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5605
SELECT ALL - CAST ( NULL AS INTEGER ) + + + col0 * CAST ( NULL AS INTEGER ) - - col0 AS col0, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT ALL + 79 + + COUNT( * ) + + 50 AS col1 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL + 79 + + COUNT ( * ) + + 50 AS col1 FROM tab1 AS cor0
----
132

query I rowsort
SELECT col1 * + 78 + - col1 FROM tab0 AS cor0
----
1617
6237
77

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - 80 * + + col0 * col2 + + col0 AS col0 FROM tab0
----
-56385
-69513
-768143

query I rowsort
SELECT 61 + - col2 AS col2 FROM tab2
----
21
3
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT ALL - col1 DIV + + col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - col1 / + + col1 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - - 47 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT DISTINCT - COUNT( * ) + - ( - MIN( - + col1 ) ) AS col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT - COUNT ( * ) + - ( - MIN ( - + col1 ) ) AS col1 FROM tab0 AS cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - col2 col0 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT 32 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - + 8 ) col1 FROM tab1 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 35, + col2 col1 FROM tab2 AS cor0
----
35
23
35
40
35
58

onlyif mysql # CAST sy