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 syntax: SIGNED type: 
query I rowsort label-5619
SELECT CAST( - - 54 AS SIGNED ) AS col1 FROM tab0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-5619
SELECT CAST ( - - 54 AS INTEGER ) AS col1 FROM tab0
----
54
54
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5620
SELECT 64, COUNT( DISTINCT - col0 ) col2 FROM tab2
----
64
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5620
SELECT 64, COUNT ( DISTINCT - col0 ) col2 FROM tab2
----
64
3

query I rowsort
SELECT col0 * 53 AS col2 FROM tab2
----
2438
3392
3975

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT DISTINCT + COUNT( * ) * 78 AS col2 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT + COUNT ( * ) * 78 AS col2 FROM tab0
----
234

query I rowsort
SELECT DISTINCT + ( + - 93 ) AS col0 FROM tab2
----
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT SUM( ALL + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5628
SELECT SUM ( ALL + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT + 76 * + - col1 * col1 * + col1 FROM tab1 AS cor0
----
-208544
-7890548
-9500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5630
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT + ( - MAX( 89 ) ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + ( - MAX ( 89 ) ) FROM tab2
----
-89

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

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN + col1 + - 73 - - + ( col0 ) - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT DISTINCT - 75 * - + COUNT( * ) FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT - 75 * - + COUNT ( * ) FROM tab1 AS cor0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5635
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - ( CAST( + col1 AS SIGNED ) ) * 58 >= - col1
----

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - ( CAST ( + col1 AS INTEGER ) ) * 58 >= - col1
----

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

query II rowsort
SELECT - col1 * + col0 AS col0, - col2 FROM tab2 cor0
----
-2346
-23
-4928
-40
-5025
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5638
SELECT ALL + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 42 > NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5641
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 14 col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT ALL - col0 DIV + col2 + + col1 + + 9 * col1 * - 70 * + 58 FROM tab2
----
-1863491
-2448114
-2813504

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - col0 / + col2 + + col1 + + 9 * col1 * - 70 * + 58 FROM tab2
----
-1863491
-2448114
-2813504

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE ( NULL ) <> - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 - col1 col2 FROM tab2 AS cor0
----
-18
-8
8

query I rowsort
SELECT - 34 * - col2 AS col0 FROM tab0 AS cor0
----
1598
3366
340

query I rowsort
SELECT 50 - - - 3 AS col1 FROM tab2
----
47
47
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5650
SELECT 82 DIV + 75 - - + col0 * 96 AS col0 FROM tab2
----
4417
6145
7201

skipif mysql # not compatible
query I rowsort label-5650
SELECT 82 / + 75 - - + col0 * 96 AS col0 FROM tab2
----
4417
6145
7201

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT DISTINCT + - MIN( + col2 ) * + COUNT( * ) FROM tab1 cor0 WHERE col2 / col0 <> 40
----
-177

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT + - MIN ( + col2 ) * + COUNT ( * ) FROM tab1 cor0 WHERE col2 / col0 <> 40
----
-177

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

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - ( - ( + col0 ) ) AS col0 FROM tab1
----
51
85
91

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5659
SELECT + CAST( MAX( ALL - col1 ) AS SIGNED ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5659
SELECT + CAST ( MAX ( ALL - col1 ) AS INTEGER ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 31 AND - 52
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5662
SELECT + col0 AS col2, - 15 DIV col0 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-5662
SELECT + col0 AS col2, - 15 / col0 FROM tab1
----
51
0
85
0
91
0

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

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT ( - MIN ( - - 16 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-16

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

query I rowsort
SELECT DISTINCT - col0 + - 52 + + col0 * - + 33 FROM tab1 AS cor0
----
-1786
-2942
-3146

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5671
SELECT ALL - 72 * + + 0 AS col0, - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5671
SELECT ALL - 72 * + + 0 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0
0

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

skipif mysql # not compatible
query I rowsort label-5672
SELECT - COUNT ( * ) * 55 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + 66 * - 30 AS col2, - col1 AS col2, + col1 col2 FROM tab0
----
9 values hashing to 5dce72b6fe2673c9dba3cdd3e2d8b4b1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * + 61 * + col0 col0 FROM tab2
----
-44896
-62464
-73200

query II rowsort
SELECT DISTINCT col1 + - col2 AS col1, + col0 * + ( col2 ) FROM tab0
----
-98
9603
11
870
34
705

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NULL > ( 26 * - col1 * - col1 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL COUNT( * ) * - 91 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL COUNT ( * ) * - 91 FROM tab1
----
-273

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

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

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

query II rowsort
SELECT DISTINCT col0 AS col1, + 84 + - col0 AS col2 FROM tab0 AS cor0
----
15
69
87
-3
97
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5684
SELECT col2 * - - col2 + - CAST( 53 AS SIGNED ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2156
47
9748

skipif mysql # not compatible
query I rowsort label-5684
SELECT col2 * - - col2 + - CAST ( 53 AS INTEGER ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2156
47
9748

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT - 78 DIV col1 col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5685
SELECT - 78 / col1 col2 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 51 * - col1 IS NOT NULL
----

query II rowsort
SELECT + 48, col1 FROM tab1 AS cor0
----
48
14
48
47
48
5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ALL COUNT( * ) * + 72 + COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
657

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL COUNT ( * ) * + 72 + COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
657

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + col1 col0, col1 FROM tab2
----
2346
51
4928
77
5025
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT - + COUNT( * ) FROM tab2 WHERE NOT - col1 = + ( - + col0 ) + + + col1
----
-3

skipif mysql # not compatible
query I rowsort label-5694
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT - col1 = + ( - + col0 ) + + + col1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col0 * col0 + - - 89 col0, col2 AS col2 FROM tab2 AS cor0
----
163929
40
326339
58
48757
23

query I rowsort
SELECT 85 + col0 + - col2 FROM tab0 AS cor0
----
162
53
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5697
SELECT ALL ( + CAST( - - AVG ( CAST( + - col0 AS SIGNED ) ) AS SIGNED ) ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL ( + CAST ( - - AVG ( CAST ( + - col0 AS INTEGER ) ) AS INTEGER ) ) FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT DISTINCT - SUM( ALL col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT - SUM ( ALL col2 ) AS col0 FROM tab2
----
-121

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + 85 + + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5700
SELECT ALL * FROM tab0 WHERE + - col0 / - + col1 BETWEEN - CAST( NULL AS SIGNED ) + CAST( col1 AS SIGNED ) AND - col0
----

skipif mysql # not compatible
query III rowsort label-5700
SELECT ALL * FROM tab0 WHERE + - col0 / - + col1 BETWEEN - CAST ( NULL AS INTEGER ) + CAST ( col1 AS INTEGER ) AND - col0
----

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab2 WHERE NULL BETWEEN - - 4 AND - col1 * - ( - col1 ) + 59 + - col0
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT col0 - + - 26 DIV - col2 + - - col1 AS col0 FROM tab2 cor0
----
141
142
96

skipif mysql # not compatible
query I rowsort label-5704
SELECT col0 - + - 26 / - col2 + - - col1 AS col0 FROM tab2 cor0
----
141
142
96

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5706
SELECT + + ( 54 ) * + COUNT( * ) - MIN( ALL - - col0 ) - - 0 col1, COUNT( * ) * + 19 AS col0 FROM tab1 AS cor0
----
111
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5706
SELECT + + ( 54 ) * + COUNT ( * ) - MIN ( ALL - - col0 ) - - 0 col1, COUNT ( * ) * + 19 AS col0 FROM tab1 AS cor0
----
111
57

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT ALL col1 - + col1 DIV + col0 + col1 * - col1 * + + col2 FROM tab2 AS cor0
----
-237084
-260295
-59773

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL col1 - + col1 / + col0 + col1 * - col1 * + + col2 FROM tab2 AS cor0
----
-237084
-260295
-59773

query I rowsort
SELECT + col0 * + 29 + - col1 FROM tab0
----
2502
2812
354

query I rowsort
SELECT + 76 + col0 * + 17 * ( col0 ) AS col0 FROM tab2
----
36048
69708
95701

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= ( - + col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT CAST( 88 AS SIGNED ) + col0 + + + col2 FROM tab1
----
232
235
247

skipif mysql # not compatible
query I rowsort label-5714
SELECT CAST ( 88 AS INTEGER ) + col0 + + + col2 FROM tab1
----
232
235
247

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

query I rowsort
SELECT ALL + ( + + col0 ) * + + col1 + col1 FROM tab0 AS cor0
----
1296
1848
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5717
SELECT CAST( NULL AS SIGNED ), + 97 * col2 AS col2 FROM tab0 AS cor0
----
NULL
4559
NULL
9603
NULL
970

skipif mysql # not compatible
query II rowsort label-5717
SELECT CAST ( NULL AS INTEGER ), + 97 * col2 AS col2 FROM tab0 AS cor0
----
NULL
4559
NULL
9603
NULL
970

onlyif mysql # DIV for integer division: 
query I rowsort label-5718
SELECT DISTINCT + col0 + ( + col1 ) DIV - - col0 col1 FROM tab2 AS cor0
----
47
65
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5718
SELECT DISTINCT + col0 + ( + col1 ) / - - col0 col1 FROM tab2 AS cor0
----
47
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT + + MAX( + 58 ) * - 18 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1044

skipif mysql # not compatible
query I rowsort label-5719
SELECT + + MAX ( + 58 ) * - 18 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1044

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

query I rowsort
SELECT 0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + + 71 * - - ( + + col0 ) AS col0 FROM tab2 cor0 WHERE NULL < col2
----

query I rowsort
SELECT DISTINCT + 12 * - 44 FROM tab1 AS cor0
----
-528

query I rowsort
SELECT col2 * + + col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT ALL - - 74 AS col1 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT ALL 3 AS col1 FROM tab2 AS cor0
----
3
3
3

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL + col0 FROM tab2 WHERE + CAST ( col2 AS INTEGER ) NOT BETWEEN NULL AND - 65 * - col2
----

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

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

query II rowsort
SELECT ALL - 78, - ( - 58 ) AS col2 FROM tab2
----
-78
58
-78
58
-78
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT MAX( col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5733
SELECT MAX ( col1 ) FROM tab1
----
47

query I rowsort
SELECT - 6 * 55 FROM tab2
----
-330
-330
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT SUM( DISTINCT - 86 ) AS col2 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-5735
SELECT SUM ( DISTINCT - 86 ) AS col2 FROM tab0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5736
SELECT 58 DIV + col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-5736
SELECT 58 / + col2 FROM tab0 AS cor0
----
0
1
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - ( + + ( - ( ( col2 ) ) ) ) * - 95 * - 85 + ( + col1 )
----

query I rowsort
SELECT DISTINCT - 48 + - 96 + - col1 FROM tab0 cor0
----
-145
-165
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT DISTINCT - col1 * 28 DIV ( - - col2 ) * - col1 + col1 * col2 * - - col0 FROM tab2 cor0
----
201201
293594
57120

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT - col1 * 28 / ( - - col2 ) * - col1 + col1 * col2 * - - col0 FROM tab2 cor0
----
201201
293594
57120

query I rowsort
SELECT 99 + - + col2 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
0
52
89

query I rowsort
SELECT DISTINCT 44 AS col0 FROM tab1 cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT + 40 + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT + 40 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - CAST( NULL AS SIGNED ) ) AND + 92
----

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - CAST ( NULL AS INTEGER ) ) AND + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT 52 * MAX( + + 94 ) FROM tab0 AS cor0 WHERE 24 * + col0 * + 23 + - + 76 + + 60 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT 52 * MAX ( + + 94 ) FROM tab0 AS cor0 WHERE 24 * + col0 * + 23 + - + 76 + + 60 IS NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + - + col0 col2 FROM tab2 WHERE + col1 <= + - ( + + col0 )
----

query I rowsort
SELECT 59 FROM tab0, tab1 cor0 WHERE - + 37 = NULL
----

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

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

query I rowsort
SELECT ALL 24 * - - col2 AS col1 FROM tab2
----
1392
552
960

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

query I rowsort
SELECT DISTINCT + col0 * - col0 + - + col1 AS col1 FROM tab0 AS cor0
----
-306
-7590
-9410

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

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

query I rowsort
SELECT DISTINCT 97 * + col1 FROM tab2
----
4947
6499
7469

onlyif mysql # DIV for integer division: 
query II rowsort label-5755
SELECT 89, col1 DIV - col1 AS col0 FROM tab0
----
89
-1
89
-1
89
-1

skipif mysql # not compatible
query II rowsort label-5755
SELECT 89, col1 / - col1 AS col0 FROM tab0
----
89
-1
89
-1
89
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT - COUNT( 55 ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

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

query I rowsort
SELECT DISTINCT + - ( - - 2 ) AS col0 FROM tab2 AS cor0
----
-2

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 / 9 + + 53 AND + 41 + + col1
----

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

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

query I rowsort
SELECT + col2 * + col2 + + 36 FROM tab1 AS cor0
----
3517
4660
9252

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5764
SELECT ALL - CAST( NULL AS SIGNED ) col1, - col1 + ( col0 ) + + + col2 - - - 61 * col0 AS col1 FROM tab0 AS cor0
----
NULL
-5231
NULL
-5722
NULL
-934

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5764
SELECT ALL - CAST ( NULL AS INTEGER ) col1, - col1 + ( col0 ) + + + col2 - - - 61 * col0 AS col1 FROM tab0 AS cor0
----
NULL
-5231
NULL
-5722
NULL
-934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5765
SELECT col0 * + CAST( + 25 AS SIGNED ) FROM tab2 AS cor0
----
1150
1600
1875

skipif mysql # not compatible
query I rowsort label-5765
SELECT col0 * + CAST ( + 25 AS INTEGER ) FROM tab2 AS cor0
----
1150
1600
1875

query I rowsort
SELECT DISTINCT + 66 * + - 2 FROM tab2 AS cor0
----
-132

query I rowsort
SELECT ALL - + 74 * - col2 - - + col2 + + + col1 + + + col2 FROM tab2 AS cor0
----
1799
3117
4475

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT SUM( + + col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-5769
SELECT SUM ( + + col1 ) FROM tab0 cor0
----
103

query I rowsort
SELECT ALL + ( - + 10 ) * + col0 AS col2 FROM tab2
----
-460
-640
-750

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

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

query I rowsort
SELECT - + 6 + - ( + ( - - 91 ) ) AS col0 FROM tab2 AS cor0
----
-97
-97
-97

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

query I rowsort
SELECT ALL - - col0 * - 76 + - + 54 AS col2 FROM tab0 AS cor0
----
-1194
-6666
-7426

onlyif mysql # DIV for integer division: 
query II rowsort label-5775
SELECT DISTINCT - - col0 DIV col1 AS col2, col0 DIV + + col2 AS col2 FROM tab2 AS cor0
----
0
1
0
2
1
1

skipif mysql # not compatible
query II rowsort label-5775
SELECT DISTINCT - - col0 / col1 AS col2, col0 / + + col2 AS col2 FROM tab2 AS cor0
----
0
1
0
2
1
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5776
SELECT ALL - - COUNT( * ) * - 38 col2, 0 + CAST( NULL AS DECIMAL ) + 44 AS col0 FROM tab0 AS cor0
----
-114
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5776
SELECT ALL - - COUNT ( * ) * - 38 col2, 0 + CAST ( NULL AS REAL ) + 44 AS col0 FROM tab0 AS cor0
----
-114
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 51 + - + col0 * + + col2 * + col1 BETWEEN + + ( - + col2 ) AND NULL
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 17 - 69 FROM tab0 AS cor0
----
-52

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT + - COUNT( * ) - SUM( col2 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5784
SELECT + - COUNT ( * ) - SUM ( col2 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT 23 / + 85 AS col0 FROM tab2 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT COUNT( * ) + - SUM( ALL + col2 ) AS col0 FROM tab2 cor0
----
-118

skipif mysql # not compatible
query I rowsort label-5786
SELECT COUNT ( * ) + - SUM ( ALL + col2 ) AS col0 FROM tab2 cor0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL COUNT( * ) - 82 AS col2 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL COUNT ( * ) - 82 AS col2 FROM tab0
----
-79

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE + - 32 NOT BETWEEN NULL AND + - col2
----
15
81
47
97
1
99

query I rowsort
SELECT ALL + 67 * + - 38 AS col2 FROM tab1
----
-2546
-2546
-2546

query I rowsort
SELECT DISTINCT + + col2 * + 7 AS col1 FROM tab1 AS cor0
----
413
476
672

query I rowsort
SELECT col2 * - - 34 FROM tab1 AS cor0 WHERE NOT ( ( NOT + col2 IN ( 55 ) ) )
----

query I rowsort
SELECT ALL ( - col2 ) * + 98 FROM tab1
----
-5782
-6664
-9408

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL - MAX( + + 97 ) FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL - MAX ( + + 97 ) FROM tab1
----
-97

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

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

query I rowsort
SELECT 81 * 27 * + col0 * + 87 AS col1 FROM tab0
----
16553403
18456093
2854035

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT col2 DIV - 5 FROM tab0 AS cor0
----
-19
-2
-9

skipif mysql # not compatible
query I rowsort label-5800
SELECT col2 / - 5 FROM tab0 AS cor0
----
-19
-2
-9

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5802
SELECT ALL + COUNT( * ), MAX( - col0 ) AS col1 FROM tab0
----
3
-15

skipif mysql # not compatible
query II rowsort label-5802
SELECT ALL + COUNT ( * ), MAX ( - col0 ) AS col1 FROM tab0
----
3
-15

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5806
SELECT - col0 DIV + 67 col1 FROM tab2
----
-1
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT DISTINCT - MIN( 35 ) * COUNT( * ) FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5807
SELECT DISTINCT - MIN ( 35 ) * COUNT ( * ) FROM tab2 AS cor0
----
-105

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT ALL - 45 + - + CAST( - - 57 AS SIGNED ) + - + col0 * - col0 * + + col1 AS col1 FROM tab2 AS cor0
----
107814
315290
376773

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL - 45 + - + CAST ( - - 57 AS INTEGER ) + - + col0 * - col0 * + + col1 AS col1 FROM tab2 AS cor0
----
107814
315290
376773

query I rowsort
SELECT ALL + col0 * + - 76 - - col0 FROM tab1 cor0
----
-3825
-6375
-6825

onlyif mysql # DIV for integer division: 
query I rowsort label-5811
SELECT DISTINCT + col0 DIV 15 * - col2 AS col0 FROM tab1
----
-288
-295
-408

skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT + col0 / 15 * - col2 AS col0 FROM tab1
----
-288
-295
-408

query I rowsort
SELECT col0 + + + col2 FROM tab2
----
104
133
69

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

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

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

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL COUNT ( * ) / - ( + 26 ) FROM tab2
----
0

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

query II rowsort
SELECT DISTINCT col1 + - - 13 AS col0, + 72 * col2 FROM tab0
----
14
7128
34
720
94
3384

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

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

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

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

query II rowsort
SELECT ALL 44 * + ( + + 11 ) + + ( - - 62 ), col1 AS col0 FROM tab1 cor0
----
546
14
546
47
546
5

query I rowsort
SELECT DISTINCT + + col2 * ( - + col1 ) + + - 6 + col2 + - 54 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 84
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT ALL - col0 DIV - col2 + + 8 + col2 FROM tab0 AS cor0
----
107
26
55

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL - col0 / - col2 + + 8 + col2 FROM tab0 AS cor0
----
107
26
55

query I rowsort
SELECT ALL - + col0 * + ( 85 ) * col0 - + + col0 - - - col2 FROM tab2 AS cor0
----
-179929
-348264
-478258

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

query I rowsort
SELECT 66 * - col1 - + ( + + col1 ) AS col0 FROM tab1
----
-3149
-335
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL - COUNT( + col2 ) * - + 49 - - SUM( DISTINCT + col2 ) col2 FROM tab1
----
370

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5828
SELECT ALL - COUNT ( + col2 ) * - + 49 - - SUM ( DISTINCT + col2 ) col2 FROM tab1
----
370

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 46 IS NOT NULL
----

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

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

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

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

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

query I rowsort
SELECT + ( + col1 ) * col1 + + + col0 AS col1 FROM tab1
----
110
2300
247

onlyif mysql # aggregate syntax: 
query II rowsort label-5834
SELECT ALL + COUNT( * ) AS col2, 47 * 45 col1 FROM tab2 AS cor0
----
3
2115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5834
SELECT ALL + COUNT ( * ) AS col2, 47 * 45 col1 FROM tab2 AS cor0
----
3
2115

query I rowsort
SELECT + ( + ( + + 12 ) ) * + col1 AS col1 FROM tab0
----
12
252
972

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5838
SELECT ALL 34 - - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col0 * + 24 + + col1 FROM tab1 cor0
----
-1210
-2035
-2137

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5842
SELECT CAST ( + - 1 AS INTEGER ) col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + ( + col0 ) * - - 2 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT + 0 * + col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5845
SELECT 47 * + col0 DIV + col0 FROM tab0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-5845
SELECT 47 * + col0 / + col0 FROM tab0
----
47
47
47

query I rowsort
SELECT DISTINCT + 13 * 72 + - col2 AS col1 FROM tab2
----
878
896
913

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL 23 + - COUNT( * ) col2 FROM tab1
----
20

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5851
SELECT col2 + 2 DIV + col0 * + 58 AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5851
SELECT col2 + 2 / + col0 * + 58 AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL - 17 * - col2 + + 35 AS col0 FROM tab0 AS cor0
----
1718
205
834

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT + MIN( ALL 97 ) + - + 38 * - MAX( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
2301

skipif mysql # not compatible
query I rowsort label-5853
SELECT + MIN ( ALL 97 ) + - + 38 * - MAX ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
2301

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

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

query I rowsort
SELECT + - col2 - - + 93 FROM tab0 cor0
----
-6
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT - MIN( ALL 72 ) - - 40 AS col2 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5856
SELECT - MIN ( ALL 72 ) - - 40 AS col2 FROM tab2 AS cor0
----
-32

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

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

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

query II rowsort
SELECT DISTINCT - col0 - 37 AS col2, col0 AS col0 FROM tab2 AS cor0
----
-101
64
-112
75
-83
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT ALL + MAX( - col2 ) + COUNT( * ) * 32 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL + MAX ( - col2 ) + COUNT ( * ) * 32 FROM tab2 AS cor0
----
73

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

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

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

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

query I rowsort
SELECT 79 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5866
SELECT ALL - 44 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL - 44 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5867
SELECT DISTINCT 98 AS col1, COUNT( * ) DIV 53 AS col1 FROM tab0 AS cor0
----
98
0

skipif mysql # not compatible
query II rowsort label-5867
SELECT DISTINCT 98 AS col1, COUNT ( * ) / 53 AS col1 FROM tab0 AS cor0
----
98
0

query I rowsort
SELECT ALL 14 * + 63 FROM tab0
----
882
882
882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5869
SELECT ALL - + CAST( - col2 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL - + CAST ( - col2 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT 9 * COUNT( * ) * + 12 AS col1 FROM tab0
----
324

skipif mysql # not compatible
query I rowsort label-5870
SELECT 9 * COUNT ( * ) * + 12 AS col1 FROM tab0
----
324

query I rowsort
SELECT ALL col2 * + 88 * + ( + - col2 ) * - col0 AS col0 FROM tab2
----
2141392
22202400
9011200

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT - col1 DIV col1 * 22 * 62 * - 17 AS col0 FROM tab2 AS cor0
----
23188
23188
23188

skipif mysql # not compatible
query I rowsort label-5873
SELECT - col1 / col1 * 22 * 62 * - 17 AS col0 FROM tab2 AS cor0
----
23188
23188
23188

query I rowsort
SELECT DISTINCT 96 FROM tab1 AS cor0 WHERE ( 93 ) < NULL
----

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 37 / col0 >= NULL
----

query I rowsort
SELECT 3 + - col1 AS col1 FROM tab2 cor0
----
-48
-64
-74

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

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL col2 * + ( + col2 ) + + + col0, col0 FROM tab0 AS cor0
----
187
87
2224
15
9898
97

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

query I rowsort
SELECT - - 31 * - col2 FROM tab1 AS cor0
----
-1829
-2108
-2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5883
SELECT - CAST( NULL AS SIGNED ) * - 88 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT - CAST ( NULL AS INTEGER ) * - 88 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT + MIN( + col0 ) * + + ( - - COUNT( * ) ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-5884
SELECT + MIN ( + col0 ) * + + ( - - COUNT ( * ) ) AS col1 FROM tab1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT + COUNT( * ) * + 44 * 26 AS col1 FROM tab1
----
3432

skipif mysql # not compatible
query I rowsort label-5885
SELECT + COUNT ( * ) * + 44 * 26 AS col1 FROM tab1
----
3432

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5886
SELECT ALL + CAST( + - col0 AS SIGNED ) + 50 DIV + col1, col0 AS col1 FROM tab2
----
-46
46
-64
64
-75
75

skipif mysql # not compatible
query II rowsort label-5886
SELECT ALL + CAST ( + - col0 AS INTEGER ) + 50 / + col1, col0 AS col1 FROM tab2
----
-46
46
-64
64
-75
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 50 / + - col0 = NULL
----

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

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

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

query I rowsort
SELECT ALL col2 * + col1 + 90 AS col1 FROM tab1
----
1434
3286
385

query I rowsort
SELECT - - 9 AS col1 FROM tab2 WHERE - + col0 BETWEEN - 31 AND - 85 * - + col1 * - - col1
----

query I rowsort
SELECT ALL ( - col0 ) * ( - - ( 52 ) ) * - col1 + - + 97 AS col1 FROM tab2 AS cor0
----
121895
256159
261203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5893
SELECT col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5893
SELECT col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col2 + + + 41 AS col2 FROM tab2
----
64
81
99

query I rowsort
SELECT col1 + 86 FROM tab0
----
107
167
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT + COUNT( - ( 72 ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5897
SELECT + COUNT ( - ( 72 ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
9

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

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

query I rowsort
SELECT - 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL 62 * - + COUNT( * ) AS col1 FROM tab1 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL 62 * - + COUNT ( * ) AS col1 FROM tab1 cor0
----
-186

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

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

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

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

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

query II rowsort
SELECT ALL col0, + col2 + - 93 + col2 FROM tab0
----
15
1
87
-73
97
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 44 AS col1, 6 col1 FROM tab0
----
44
6
44
6
44
6

query I rowsort
SELECT DISTINCT - + 38 FROM tab0 WHERE - 30 IS NOT NULL
----
-38

query II rowsort
SELECT col2 AS col1, - col2 - + 44 FROM tab1
----
59
-103
68
-112
96
-140

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

query I rowsort
SELECT ALL col1 * + 20 AS col2 FROM tab1
----
100
280
940

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

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

query I rowsort
SELECT ALL col0 * col0 * + - 80 AS col2 FROM tab2 AS cor0
----
-169280
-327680
-450000

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT DISTINCT - MIN( ALL 72 ) FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT - MIN ( ALL 72 ) FROM tab0 AS cor0
----
-72

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT 23 + - col2 AS col1 FROM tab1 AS cor0
----
-36
-45
-73

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

skipif mysql # not compatible
query I rowsort label-5917
SELECT - col1 + col1 + - 60 / + + ( + col0 ) FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + 29 * - col1 AS col1 FROM tab0 AS cor0
----
-2349
-29
-609

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5919
SELECT - - col1 + 78 * CAST( NULL AS DECIMAL ) * + 46 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT - - col1 + 78 * CAST ( NULL AS REAL ) * + 46 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 * + 43 * + - 47 AS col0, - 93 FROM tab2
----
-129344
-93
-151575
-93
-92966
-93

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

query I rowsort
SELECT col1 + + ( + 28 ) + - col2 FROM tab2
----
37
56
65

query III rowsort
SELECT * FROM tab0 WHERE ( - + col0 ) IS NULL
----

query I rowsort
SELECT ALL + col0 + + ( + + col1 ) * + col2 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT DISTINCT - + col2 - 34 FROM tab0 AS cor0
----
-133
-44
-81

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

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

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

query I rowsort
SELECT DISTINCT - col1 + 61 FROM tab0
----
-20
40
60

query I rowsort
SELECT DISTINCT + col2 * col2 + - col2 FROM tab1
----
3422
4556
9120

query I rowsort
SELECT ALL + col1 + 30 FROM tab2
----
107
81
97

query I rowsort
SELECT DISTINCT + col0 * col1 AS col1 FROM tab1 WHERE NOT ( 62 ) + + col2 IS NULL
----
425
4277
714

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

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

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

query I rowsort
SELECT ALL 47 AS col1 FROM tab1 WHERE NOT NULL BETWEEN col2 - col2 * - col2 AND 2 * col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 84 / - col0 = NULL
----

query I rowsort
SELECT 30 + - col2 FROM tab2
----
-10
-28
7

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

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

query I rowsort
SELECT ALL 75 * 64 + col1 FROM tab1 WHERE NOT ( NULL ) IN ( 26 )
----

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

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

query I rowsort
SELECT ALL 75 * 15 - - col2 * + col0 AS col0 FROM tab1
----
6021
6140
7313

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT SUM( - 54 ) col1 FROM tab0
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5942
SELECT SUM ( - 54 ) col1 FROM tab0
----
-162

query I rowsort
SELECT ALL 2 * + col1 + col2 AS col2 FROM tab0
----
101
209
52

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

query III rowsort
SELECT * FROM tab1 WHERE 6 / - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 + 88 / 75 AS col0 FROM tab0 WHERE ( + col0 + col1 ) BETWEEN - col1 AND - col1 * + col2
----

query I rowsort
SELECT ALL ( + ( col2 ) ) + - col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5948
SELECT ( CAST( NULL AS DECIMAL ) ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5948
SELECT ( CAST ( NULL AS REAL ) ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT 4 BETWEEN ( 12 ) AND col2 * - col1
----
-425
-4277
-714

query I rowsort
SELECT ALL col2 * 8 FROM tab1 cor0
----
472
544
768

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT IN ( - col0 + 89 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT IN ( col0 + 94 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + COUNT ( * ) - COUNT ( * ) FROM tab1 WHERE ( col2 ) IS NULL
----
0

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

query I rowsort
SELECT + col2 + + 23 FROM tab1
----
119
82
91

query I rowsort
SELECT + + 23 * - col0 + col2 FROM tab0 AS cor0
----
-1991
-2132
-298

onlyif mysql # DIV for integer division: 
query I rowsort label-5959
SELECT + - col0 + 95 DIV col2 FROM tab2 AS cor0
----
-42
-62
-74

skipif mysql # not compatible
query I rowsort label-5959
SELECT + - col0 + 95 / col2 FROM tab2 AS cor0
----
-42
-62
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5960
SELECT DISTINCT col0 DIV col0 + + ( 44 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT col0 / col0 + + ( 44 ) FROM tab1 AS cor0
----
45

query I rowsort
SELECT DISTINCT + + 2 AS col0 FROM tab0 cor0
----
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + col0 BETWEEN col2 AND NULL
----
15
81
47

query I rowsort
SELECT ALL - 5 + + 61 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT + 77 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( 9 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * 63 = col1 / - 92
----
-3

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * 63 = col1 / - 92
----
-3

query I rowsort
SELECT DISTINCT + + col2 + + 66 AS col0 FROM tab2 AS cor0
----
106
124
89

query I rowsort
SELECT - 25 * + 94 FROM tab0 AS cor0
----
-2350
-2350
-2350

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5969
SELECT ALL + + col0 DIV CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL + + col0 / CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT + + 42 * 4 AS col0 FROM tab0 AS cor0
----
168
168
168

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

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

query I rowsort
SELECT DISTINCT 39 * - col2 FROM tab1
----
-2301
-2652
-3744

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT 83 * SUM( 70 ) FROM tab0
----
17430

skipif mysql # not compatible
query I rowsort label-5975
SELECT 83 * SUM ( 70 ) FROM tab0
----
17430

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 52 + 8 <> - 90 + col1
----

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

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

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

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

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

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

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

query I rowsort
SELECT col2 + 99 FROM tab0 cor0
----
109
146
198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5983
SELECT ALL + + 96 - 7 DIV + ( ( MAX( DISTINCT col1 ) ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL + + 96 - 7 / + ( ( MAX ( DISTINCT col1 ) ) ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT - COUNT( * ) * - 88 AS col0 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-5984
SELECT - COUNT ( * ) * - 88 AS col0 FROM tab1 AS cor0
----
264

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

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

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

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

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

query II rowsort
SELECT + + col1, + col0 + col0 * + col2 AS col2 FROM tab1 cor0
----
14
4947
47
6279
5
5100

query II rowsort
SELECT DISTINCT - 55, col2 AS col0 FROM tab0 AS cor0
----
-55
10
-55
47
-55
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 32 ) = ( + 19 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL + - MIN( DISTINCT 62 ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL + - MIN ( DISTINCT 62 ) FROM tab1 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 / col0 * + ( - col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5994
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 / col0 * + ( - col0 ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 4 col0 FROM tab2 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT + MAX( DISTINCT - + col0 ) col0 FROM tab2
----
-46

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL MAX ( ALL + 89 ) AS col0 FROM tab2
----
89

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * col2 FROM tab1 WHERE col0 IS NOT NULL
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * col2 FROM tab1 WHERE col0 IS NOT NULL
----
4896
5015
6188

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

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

query I rowsort
SELECT + col1 * col0 + + 30 AS col0 FROM tab2 WHERE NOT + + 27 + + 59 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 43 IN ( + col0 * 98 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + + - 28 FROM tab0 AS cor0
----
-13
59
69

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

query I rowsort
SELECT DISTINCT col2 * + col1 * - col1 * - col0 AS col1 FROM tab2 AS cor0
----
15178240
19527150
2751858

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6008
SELECT + CAST( + ( + AVG ( ALL + 43 ) ) AS SIGNED ) + + 73 FROM tab1 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-6008
SELECT + CAST ( + ( + AVG ( ALL + 43 ) ) AS INTEGER ) + + 73 FROM tab1 AS cor0
----
116

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL + 84 * COUNT( * ) FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL + 84 * COUNT ( * ) FROM tab1 AS cor0
----
252

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( ( 75 ) ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 45 * 9 + - - 19 IS NOT NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = - 94
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6018
SELECT ALL - + col0 * + - col1 + 87 + col2 DIV - - 70 FROM tab0 AS cor0
----
1302
185
1914

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL - + col0 * + - col1 + 87 + col2 / - - 70 FROM tab0 AS cor0
----
1302
185
1914

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT - - 10 * - col1 * + + 85 + + + col2 + - - 32 + col0 * 15 DIV - 21 col0 FROM tab0 AS cor0
----
-17870
-68781
-788

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6020
SELECT - - 10 * - col1 * + + 85 + + + col2 + - - 32 + col0 * 15 / - 21 col0 FROM tab0 AS cor0
----
-17870
-68781
-788

query I rowsort
SELECT DISTINCT - col2 - + 59 FROM tab0 AS cor0
----
-106
-158
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 72 NOT BETWEEN NULL AND ( - 13 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL COUNT ( * ) / - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col2 + - col1 col2 FROM tab0 AS cor0
----
-19
195
76

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + ( col2 ) + + 73 - + 85 * - + col1 FROM tab2
----
4431
5826
6658

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT ALL 67 + + COUNT( * ) FROM tab2, tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL 67 + + COUNT ( * ) FROM tab2, tab1 AS cor0
----
76

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

query I rowsort
SELECT col1 * 35 FROM tab0 WHERE + - 40 * col0 - - - 38 IS NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6037
SELECT - + ( + CAST( + - ( - col0 ) AS SIGNED ) ) * col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-6037
SELECT - + ( + CAST ( + - ( - col0 ) AS INTEGER ) ) * col1 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 31 - - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 / - col2 IN ( + 14 * - - 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6041
SELECT + 43 * COUNT( * ) DIV - MAX( - col1 ) AS col0 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-6041
SELECT + 43 * COUNT ( * ) / - MAX ( - col1 ) AS col0 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT + 38 - + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
47

skipif mysql # not compatible
query I rowsort label-6042
SELECT + 38 - + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6043
SELECT DISTINCT + + 68 DIV col0 AS col1 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT + + 68 / col0 AS col1 FROM tab0 AS cor0
----
0
4

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

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

query II rowsort
SELECT - 85 AS col1, - 81 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 59 AS col0 FROM tab2 AS cor0
----
59
59
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6047
SELECT ( ( + col2 ) ) DIV 4 FROM tab2
----
10
14
5

skipif mysql # not compatible
query I rowsort label-6047
SELECT ( ( + col2 ) ) / 4 FROM tab2
----
10
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL + SUM( ALL - - 26 ) AS col1 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL + SUM ( ALL - - 26 ) AS col1 FROM tab0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6049
SELECT ALL + 88 + + col0 + - + CAST( col2 AS SIGNED ) FROM tab1
----
111
114
43

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL + 88 + + col0 + - + CAST ( col2 AS INTEGER ) FROM tab1
----
111
114
43

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

query I rowsort
SELECT + 60 * - col2 AS col2 FROM tab1
----
-3540
-4080
-5760

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

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

query I rowsort
SELECT + ( + + col2 ) FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6054
SELECT - col2, CAST( NULL AS SIGNED ) col2 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-6054
SELECT - col2, CAST ( NULL AS INTEGER ) col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT DISTINCT - 29 + COUNT( * ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT - 29 + COUNT ( * ) FROM tab0 AS cor0
----
-26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6058
SELECT + col2 DIV 83 + 50 FROM tab2
----
50
50
50

skipif mysql # not compatible
query I rowsort label-6058
SELECT + col2 / 83 + 50 FROM tab2
----
50
50
50

query I rowsort
SELECT - 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6060
SELECT - SUM( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT - SUM ( CAST ( NULL AS REAL ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL 47 + - col2 + + col2 AS col1 FROM tab1
----
47
47
47

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( - ( - - col0 ) * - 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT + 65 + COUNT( * ) FROM tab0 cor0
----
68

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT + 65 + COUNT ( * ) FROM tab0 cor0
----
68

query I rowsort
SELECT DISTINCT col1 * col2 * ( col1 ) - 68 + - 39 FROM tab2 AS cor0
----
237053
260255
59716

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6066
SELECT - CAST( CAST( - 50 AS DECIMAL ) AS SIGNED ) * 86 - + - col1 AS col1, + ( - 46 ) * 80 * - ( - 10 ) AS col1 FROM tab2
----
4351
-36800
4367
-36800
4377
-36800

skipif mysql # not compatible
query II rowsort label-6066
SELECT - CAST ( CAST ( - 50 AS REAL ) AS INTEGER ) * 86 - + - col1 AS col1, + ( - 46 ) * 80 * - ( - 10 ) AS col1 FROM tab2
----
4351
-36800
4367
-36800
4377
-36800

query II rowsort
SELECT DISTINCT - col2 * 39 * + col1, col2 FROM tab0
----
-148473
47
-3861
99
-8190
10

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

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

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

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

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

query I rowsort
SELECT ALL - col2 * + 32 AS col2 FROM tab2
----
-1280
-1856
-736

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6072
SELECT - - CAST( + + col0 AS SIGNED ) DIV + - 6 AS col0 FROM tab0 AS cor0
----
-14
-16
-2

skipif mysql # not compatible
query I rowsort label-6072
SELECT - - CAST ( + + col0 AS INTEGER ) / + - 6 AS col0 FROM tab0 AS cor0
----
-14
-16
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6073
SELECT DISTINCT - 86 DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT - 86 / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-28

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

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

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

query I rowsort
SELECT ALL - ( + - 18 ) AS col0 FROM tab2 AS cor0
----
18
18
18

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

query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 59, - col2 col1 FROM tab0
----
59
-10
59
-47
59
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 * col1 * - 65 col2 FROM tab1
----
268840
28600
80080

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT ALL col2 DIV + 57 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL col2 / + 57 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( + col0 ) AND + 8
----

query I rowsort
SELECT DISTINCT + 92 * - col2 FROM tab0 cor0
----
-4324
-9108
-920

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 27 * col0 * + col1 )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - 20 + 7 NOT BETWEEN + 87 * + 88 AND + - 88 * + + 90
----

query II rowsort
SELECT ALL 33 AS col0, col0 FROM tab1 AS cor0
----
33
51
33
85
33
91

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6090
SELECT - - col2 DIV + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6090
SELECT - - col2 / + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6091
SELECT - col1 DIV - - 77 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6091
SELECT - col1 / - - 77 AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6092
SELECT - 20 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6092
SELECT - 20 / col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 28 * - col1 AS col1 FROM tab1
----
-1316
-140
-392

query I rowsort
SELECT ALL + 78 + - col1 AS col2 FROM tab0
----
-3
57
77

query I rowsort
SELECT - 2 * + 19 AS col2 FROM tab1 WHERE - col1 * 14 NOT IN ( - + 95 + + + col1 * - + col1 + - col0, 16 )
----
-38
-38
-38

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

skipif mysql # not compatible
query I rowsort label-6096
SELECT - COUNT ( * ) + CAST ( + AVG ( DISTINCT + col2 ) AS INTEGER ) FROM tab2
----
37

query I rowsort
SELECT col0 FROM tab1 WHERE - - 21 IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT DISTINCT col0 * col1 DIV col2 + + + col2 FROM tab2
----
125
144
163

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT col0 * col1 / col2 + + + col2 FROM tab2
----
125
144
163

query I rowsort
SELECT DISTINCT + col1 + 79 AS col2 FROM tab1 AS cor0 WHERE - col2 + + + col0 + - col2 * 81 * + - col0 IS NOT NULL
----
126
84
93

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL 70 + - COUNT( * ) * COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL 70 + - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-11

query II rowsort
SELECT ALL + col2, 35 AS col1 FROM tab1
----
59
35
68
35
96
35

query I rowsort
SELECT + 70 AS col1 FROM tab2 AS cor0 WHERE 49 + + + 42 IN ( + col0, - 22 )
----

query I rowsort
SELECT ALL 62 - - col2 * col2 * + + col1 + + + col0 + - + 95 - + - ( - col0 ) * - 25 + + col0 AS col2 FROM tab1 cor0
----
130368
19667
219752

query II rowsort
SELECT - - 64 + col0 - - col0, + col1 AS col0 FROM tab1 AS cor0
----
166
14
234
5
246
47

query I rowsort
SELECT 43 + + col0 AS col0 FROM tab0 AS cor0
----
130
140
58

query I rowsort
SELECT ALL + - 63 + 38 FROM tab1 AS cor0
----
-25
-25
-25

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

skipif mysql # not compatible
query I rowsort label-6109
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE CAST ( + col2 AS INTEGER ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - 47 * - 83 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + - - ( - 15 ) < NULL
----

query II rowsort
SELECT + col1 * col1 AS col0, + col2 AS col0 FROM tab2
----
2601
23
4489
58
5929
40

query I rowsort
SELECT DISTINCT col1 * + 34 AS col0 FROM tab2
----
1734
2278
2618

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT - 61 + 59 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6116
SELECT + 49 * 60 col2, + col2 DIV - col1 FROM tab2
----
2940
0
2940
0
2940
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6116
SELECT + 49 * 60 col2, + col2 / - col1 FROM tab2
----
2940
0
2940
0
2940
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT ALL COUNT( * ) * - + 77 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL COUNT ( * ) * - + 77 FROM tab1
----
-231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6119
SELECT + COUNT( ALL + + col1 ) DIV 17 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6119
SELECT + COUNT ( ALL + + col1 ) / 17 FROM tab2 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT ALL - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6122
SELECT + 97 + + 93 + - SUM( + - 48 ) AS col0, 49 FROM tab1, tab0 AS cor0
----
622
49

skipif mysql # not compatible
query II rowsort label-6122
SELECT + 97 + + 93 + - SUM ( + - 48 ) AS col0, 49 FROM tab1, tab0 AS cor0
----
622
49

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

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

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL - MIN ( ALL + - 59 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
59

query I rowsort
SELECT col1 * - - col2 FROM tab2
----
1173
3080
3886

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

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

query I rowsort
SELECT - 22 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 + - ( col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
2295
4851
4958

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

skipif mysql # not compatible
query I rowsort label-6130
SELECT - 71 * + + col1 - - 40 + 69 * + col1 + col1 + + col1 / - - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 72 IS NOT NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 78 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6136
SELECT - - 25 + + col0 * + col1 FROM tab1 AS cor0 WHERE ( - CAST( + - 63 AS SIGNED ) ) / + col2 * - col2 - 1 + - + 71 - 32 + - col0 > - 56
----

skipif mysql # not compatible
query I rowsort label-6136
SELECT - - 25 + + col0 * + col1 FROM tab1 AS cor0 WHERE ( - CAST ( + - 63 AS INTEGER ) ) / + col2 * - col2 - 1 + - + 71 - 32 + - col0 > - 56
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT - 2 DIV + + 96 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6137
SELECT - 2 / + + 96 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * - + col1 * - col2 AS col2 FROM tab0
----
178929
2100
9801

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6140
SELECT + 68 DIV + col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6140
SELECT + 68 / + col0 FROM tab0
----
0
0
4

query II rowsort
SELECT 87 AS col0, col2 - col2 * - col0 FROM tab1
----
87
4992
87
5074
87
6256

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

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

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

query II rowsort
SELECT + col1, 98 FROM tab2
----
51
98
67
98
77
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT ALL - 34 DIV col1 + - col0 col2 FROM tab0
----
-131
-15
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6145
SELECT ALL - 34 / col1 + - col0 col2 FROM tab0
----
-131
-15
-88

query I rowsort
SELECT + 98 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT - col0 NOT IN ( - 25 ) )
----

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

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

query I rowsort
SELECT DISTINCT - 33 FROM tab2 AS cor0 WHERE NOT 5 + 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6150
SELECT DISTINCT + 77, MIN( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
77
5

skipif mysql # not compatible
query II rowsort label-6150
SELECT DISTINCT + 77, MIN ( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
77
5

query I rowsort
SELECT DISTINCT + + 94 - - col0 AS col2 FROM tab2 AS cor0
----
140
158
169

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NULL >= ( - ( - + col1 ) * - 84 + + - 73 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6153
SELECT + + ( - - col1 ) DIV 90 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6153
SELECT + + ( - - col1 ) / 90 AS col1 FROM tab1 cor0
----
0
0
0

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <= NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * - - 10 AS col2 FROM tab1
----
510
850
910

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

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

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

query I rowsort
SELECT DISTINCT 66 * - + col0 FROM tab1 cor0
----
-3366
-5610
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT + - SUM( ALL 92 ) AS col0 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-6165
SELECT + - SUM ( ALL 92 ) AS col0 FROM tab0 AS cor0
----
-276

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 >= - ( - 25 )
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT DISTINCT + 53 AS col2 FROM tab0 WHERE NULL = - CAST( NULL AS SIGNED ) / + ( - 87 )
----

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT + 53 AS col2 FROM tab0 WHERE NULL = - CAST ( NULL AS INTEGER ) / + ( - 87 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT - CAST( + - MIN( ALL col1 ) AS SIGNED ) FROM tab2 cor0
----
51

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

query I rowsort
SELECT ALL - 43 + + 95 * col1 FROM tab1 AS cor0
----
1287
432
4422

query I rowsort
SELECT DISTINCT - col1 * + + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2346
-4928
-5025

query I rowsort
SELECT + + col2 * 11 AS col1 FROM tab1 AS cor0
----
1056
649
748

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

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

query I rowsort
SELECT ALL col2 * - col1 * + ( + ( - 46 ) ) AS col0 FROM tab2 AS cor0
----
141680
178756
53958

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

query I rowsort
SELECT ALL 11 * - col2 AS col0 FROM tab2
----
-253
-440
-638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6176
SELECT ALL - 51 DIV ( COUNT( * ) ) AS col0 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - 51 / ( COUNT ( * ) ) AS col0 FROM tab0
----
-17

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

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

query I rowsort
SELECT ALL - 92 FROM tab0 WHERE NOT - 54 <> NULL OR NOT - 19 IS NULL
----
-92
-92
-92

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

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL + col2 / 13 FROM tab0
----
0
3
7

query I rowsort
SELECT col2 + + + 60 FROM tab2
----
100
118
83

query III rowsort
SELECT * FROM tab0 WHERE col2 / - 82 + + col0 + - + ( - - 2 ) + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - 52 + + + col0 * + col1 AS col1 FROM tab1
----
4316
458
713

query I rowsort
SELECT DISTINCT - 56 + col2 AS col0 FROM tab0
----
-46
-9
43

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6190
SELECT + + col0 DIV + + ( + 36 ) FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6190
SELECT + + col0 / + + ( + 36 ) FROM tab2 cor0
----
1
1
2

query I rowsort
SELECT + col0 * - + col2 * - + 23 * 15 AS col0 FROM tab0 AS cor0
----
243225
300150
3313035

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( col1 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 0 ) * - 80 * - col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + col2 col2 FROM tab2
----
-1058
-2560
-4350

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

query I rowsort
SELECT ( - 90 ) * 68 * + col0 FROM tab2 AS cor0
----
-281520
-391680
-459000

onlyif mysql # aggregate syntax: 
query II rowsort label-6199
SELECT MAX( DISTINCT + col0 ) AS col1, + COUNT( * ) * - - 65 AS col2 FROM tab0 AS cor0
----
97
195

skipif mysql # not compatible
query II rowsort label-6199
SELECT MAX ( DISTINCT + col0 ) AS col1, + COUNT ( * ) * - - 65 AS col2 FROM tab0 AS cor0
----
97
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-6201
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = 99
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 23 / col2 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 col1 FROM tab1 AS cor0
----
36125
36414
389207

query I rowsort
SELECT ALL 20 * col2 AS col0 FROM tab0 AS cor0 WHERE NOT 23 <> - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - + col0 ) col2 FROM tab0 AS cor0 WHERE NOT NULL <= 19
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6207
SELECT col0 DIV 82 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6207
SELECT col0 / 82 AS col1 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT - COUNT ( * ) / 93 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT COUNT( * ) * MIN( ALL col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6209
SELECT COUNT ( * ) * MIN ( ALL col1 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6210
SELECT ALL - COUNT( - col0 ) DIV + - 53 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL - COUNT ( - col0 ) / + - 53 FROM tab2
----
0

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

query I rowsort
SELECT - col1 * + ( - - col1 ) AS col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT - COUNT( DISTINCT - col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6213
SELECT - COUNT ( DISTINCT - col2 ) AS col2 FROM tab0
----
-3

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 26 > 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 + - col1 col2 FROM tab0 AS cor0
----
-24
-4
-84

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

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

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

query I rowsort
SELECT col1 * - + col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6220
SELECT CAST( - col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-6220
SELECT CAST ( - col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-425
-4277
-714

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

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

query II rowsort
SELECT ALL + col1 AS col0, 63 FROM tab1
----
14
63
47
63
5
63

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

query II rowsort
SELECT + 39 AS col0, - col2 * - 24 AS col2 FROM tab0
----
39
1128
39
2376
39
240

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

skipif mysql # not compatible
query I rowsort label-6225
SELECT - MIN ( ALL + col1 ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6226
SELECT DISTINCT 18 AS col2, COUNT( * ) + + + COUNT( * ) AS col0 FROM tab2
----
18
6

skipif mysql # not compatible
query II rowsort label-6226
SELECT DISTINCT 18 AS col2, COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab2
----
18
6

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

query I rowsort
SELECT - - 82 - - + 90 AS col0 FROM tab2 WHERE NOT NULL = + + col0
----

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

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

query I rowsort
SELECT - 42 * col2 + col2 FROM tab0 AS cor0
----
-1927
-4059
-410

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

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

query I rowsort
SELECT DISTINCT - - ( 71 ) * - ( + 60 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-4260

query I rowsort
SELECT - 11 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6234
SELECT DISTINCT + MIN( DISTINCT + CAST( - - 33 AS SIGNED ) ) * 48 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1584

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT + MIN ( DISTINCT + CAST ( - - 33 AS INTEGER ) ) * 48 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1584

query I rowsort
SELECT DISTINCT + - 86 * - col1 * - 90 + col0 AS col1 FROM tab2 AS cor0
----
-394694
-518505
-595916

query I rowsort
SELECT DISTINCT + - 39 - + col2 * col2 FROM tab0 AS cor0
----
-139
-2248
-9840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + 69 col2 FROM tab1 AS cor0
----
128
137
165

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

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

query I rowsort
SELECT ALL - col2 * + col0 + - col0 + + col2 AS col2 FROM tab2 AS cor0
----
-1081
-2584
-4367

query I rowsort
SELECT + 10 * - - 78 + + col2 FROM tab0 cor0
----
790
827
879

query I rowsort
SELECT DISTINCT + 30 AS col1 FROM tab0
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT + col2 + + col2 NOT IN ( + 18, + ( + 79 ), - col2, + + 31, - col2, + - 5 )
----
0

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col2 + + col2 NOT IN ( + 18, + ( + 79 ), - col2, + + 31, - col2, + - 5 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col1 col1 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT 51 * - col1 FROM tab1
----
-2397
-255
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT DISTINCT COUNT( * ) * + ( + COUNT( * ) ) - - + MIN( DISTINCT - col1 ) + - COUNT( DISTINCT + + 74 ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT COUNT ( * ) * + ( + COUNT ( * ) ) - - + MIN ( DISTINCT - col1 ) + - COUNT ( DISTINCT + + 74 ) FROM tab1 AS cor0
----
-39

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 89 col1 FROM tab2
----
4094
5696
6675

query II rowsort
SELECT ALL + 91 * col0, + col0 - + 57 * - 55 * - - 81 * - + 7 AS col1 FROM tab0
----
1365
-1777530
7917
-1777458
8827
-1777448

query I rowsort
SELECT ALL + 32 AS col2 FROM tab2 WHERE NOT + - col1 = - 35
----
32
32
32

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6251
SELECT COUNT ( * ) col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + + 99 * col2 * - - col2 AS col2 FROM tab0 AS cor0
----
218691
970299
9900

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-6257
SELECT DISTINCT - 76 / COUNT ( + + col2 ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT - 16 * - col0 FROM tab0 AS cor0
----
1392
1552
240

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

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

query II rowsort
SELECT ALL + 62, 8 * - col0 AS col0 FROM tab2
----
62
-368
62
-512
62
-600

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6262
SELECT 2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 <= - - col0
----

query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab1 cor0 WHERE + col0 * + - 37 IS NULL
----

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

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

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

query I rowsort
SELECT ALL - 30 AS col0 FROM tab1
----
-30
-30
-30

query I rowsort
SELECT DISTINCT + - 38 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 69 col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

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

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

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

query I rowsort
SELECT DISTINCT 40 + 26 AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6275
SELECT + MIN( + 84 ) AS col2 FROM tab1 AS cor0 WHERE ( - col1 ) NOT IN ( - col2, + 26 * CAST( - col2 AS SIGNED ) )
----
84

skipif mysql # not compatible
query I rowsort label-6275
SELECT + MIN ( + 84 ) AS col2 FROM tab1 AS cor0 WHERE ( - col1 ) NOT IN ( - col2, + 26 * CAST ( - col2 AS INTEGER ) )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT DISTINCT - 2 - CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT - 2 - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT DISTINCT + - 34 - - MIN( - - col2 ) - + + 31 col0 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6278
SELECT DISTINCT + - 34 - - MIN ( - - col2 ) - + + 31 col0 FROM tab0 AS cor0
----
-55

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 99 - - col0 col2, + 81 FROM tab2 AS cor0
----
145
81
163
81
174
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT - 48 * - - COUNT( * ) AS col2 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-6281
SELECT - 48 * - - COUNT ( * ) AS col2 FROM tab0
----
-144

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

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

query I rowsort
SELECT DISTINCT col0 * + 50 FROM tab2
----
2300
3200
3750

query I rowsort
SELECT 46 * - + col1 FROM tab1 AS cor0
----
-2162
-230
-644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6285
SELECT + MAX( DISTINCT ( - CAST( NULL AS SIGNED ) ) ), MAX( DISTINCT + col1 ) col0 FROM tab1 cor0
----
NULL
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6285
SELECT + MAX ( DISTINCT ( - CAST ( NULL AS INTEGER ) ) ), MAX ( DISTINCT + col1 ) col0 FROM tab1 cor0
----
NULL
47

query I rowsort
SELECT col1 * col2 * 2 * + - col0 FROM tab0
----
-114210
-19206
-36540

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

query I rowsort
SELECT + + col2 * col0 * + col0 * col2 + + ( - - 11 ) FROM tab0 cor0
----
497036
756911
92217620

query I rowsort
SELECT DISTINCT + 4 * - 30 * col1 * + 14 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-112560
-129360
-85680

query I rowsort
SELECT 64 AS col0 FROM tab2 cor0
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * - 14 col2, ( 76 ) * col2 AS col0 FROM tab0
----
1218
760
1358
7524
210
3572

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

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

query II rowsort
SELECT ALL - col1 * - + col2, 9 * - col2 AS col2 FROM tab0
----
210
-90
3807
-423
99
-891

onlyif mysql # DIV for integer division: 
query II rowsort label-6294
SELECT ALL 7 DIV + col1 AS col1, col0 col2 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6294
SELECT ALL 7 / + col1 AS col1, col0 col2 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT MAX( DISTINCT + 66 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6295
SELECT MAX ( DISTINCT + 66 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT COUNT( * ) + + + 39 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT COUNT ( * ) + + + 39 FROM tab1
----
42

query I rowsort
SELECT - col2 * - col1 * + 31 + + 63 AS col2 FROM tab1
----
41727
9208
99139

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 = 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6299
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT DISTINCT - MIN( + col1 ) FROM tab0 WHERE 25 NOT BETWEEN - 83 AND - col1 OR NOT col0 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT - MIN ( + col1 ) FROM tab0 WHERE 25 NOT BETWEEN - 83 AND - col1 OR NOT col0 IS NOT NULL
----
-1

query I rowsort
SELECT col1 * + col0 FROM tab0 WHERE NULL IN ( - + 3 + + col0 + - + col0 )
----

query I rowsort
SELECT DISTINCT + ( col0 ) + - + ( 78 ) FROM tab2
----
-14
-3
-32

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

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

query I rowsort
SELECT DISTINCT + ( - 17 ) * - 33 + - - col0 FROM tab0 AS cor0
----
576
648
658

query I rowsort
SELECT + 33 - - col0 + + + col2 * col0 FROM tab2 cor0
----
1137
2657
4458

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

query I rowsort
SELECT ALL - col2 + + col1 + - - col1 FROM tab2 AS cor0
----
114
76
79

query I rowsort
SELECT + + 15 + - col1 AS col1 FROM tab2 AS cor0
----
-36
-52
-62

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

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

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

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

query I rowsort
SELECT ALL - + 6 * col0 - + 42 AS col0 FROM tab0 AS cor0
----
-132
-564
-624

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6313
SELECT ALL col2, col0 DIV col0 + + 49 + - - col2 FROM tab1
----
59
109
68
118
96
146

skipif mysql # not compatible
query II rowsort label-6313
SELECT ALL col2, col0 / col0 + + 49 + - - col2 FROM tab1
----
59
109
68
118
96
146

query I rowsort
SELECT 27 * + - 49 FROM tab1
----
-1323
-1323
-1323

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT 34 * + MIN( DISTINCT + col1 ) AS col0 FROM tab2
----
1734

skipif mysql # not compatible
query I rowsort label-6316
SELECT 34 * + MIN ( DISTINCT + col1 ) AS col0 FROM tab2
----
1734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 29 col2 FROM tab1
----
-1711
-1972
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6318
SELECT - + CAST( NULL AS SIGNED ) col0 FROM tab1 WHERE NOT col0 * - ( + + 37 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6318
SELECT - + CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE NOT col0 * - ( + + 37 ) IS NULL
----
NULL
NULL
NULL

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

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

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

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

query II rowsort
SELECT DISTINCT + col0 * + - col2, + col1 FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < col2 - + + col0 + + 94
----
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT DISTINCT - 86 DIV - col1 FROM tab1
----
1
17
6

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT - 86 / - col1 FROM tab1
----
1
17
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT DISTINCT col0 DIV col1 DIV - 27 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT col0 / col1 / - 27 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab0 WHERE NULL >= col2
----

query II rowsort
SELECT ALL + col0, 89 FROM tab0 WHERE NULL IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, 46 * + col1 * - - col1 + - 51 FROM tab1
----
59
1099
68
101563
96
8965

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

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

query II rowsort
SELECT DISTINCT + col0 * col0 + 31, - col0 AS col2 FROM tab0 AS cor0
----
256
-15
7600
-87
9440
-97

query I rowsort
SELECT ALL - 26 + + + col2 AS col2 FROM tab0 AS cor0
----
-16
21
73

query I rowsort
SELECT DISTINCT - 84 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT - col1 + + col1 + col1 * col0 DIV + + 7 col1 FROM tab2
----
335
704
717

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6337
SELECT - col1 + + col1 + col1 * col0 / + + 7 col1 FROM tab2
----
335
704
717

query I rowsort
SELECT - col0 + - 64 AS col0 FROM tab0
----
-151
-161
-79

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

query I rowsort
SELECT DISTINCT + col1 + + 83 AS col1 FROM tab2 cor0
----
134
150
160

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - + col0 ) <= - col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT DISTINCT col2 + - - col1 * - - CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0
----
2277
292
84

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT col2 + - - col1 * - - CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
2277
292
84

query II rowsort
SELECT + col1 - + col0, col2 AS col0 FROM tab2 AS cor0
----
-8
58
13
40
5
23

query I rowsort
SELECT - col0 / + 56 AS col2 FROM tab2 AS cor0 WHERE NULL > NULL OR - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6345
SELECT ALL + + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6347
SELECT ALL + COUNT( - CAST( 81 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL + COUNT ( - CAST ( 81 AS INTEGER ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT MAX( - ( - + 84 ) ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-6348
SELECT MAX ( - ( - + 84 ) ) FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT MIN( DISTINCT 82 ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-6349
SELECT MIN ( DISTINCT 82 ) FROM tab0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - col0 - + col1 FROM tab2
----
23
-97
40
-141
58
-142

query II rowsort
SELECT DISTINCT col1 AS col1, - 62 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 82 col2 FROM tab0
----
1230
7134
7954

query I rowsort
SELECT 65 * 48 FROM tab0
----
3120
3120
3120

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6356
SELECT - 37 DIV - - col1 AS col1 FROM tab0 cor0
----
-1
-37
0

skipif mysql # not compatible
query I rowsort label-6356
SELECT - 37 / - - col1 AS col1 FROM tab0 cor0
----
-1
-37
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 75 * + 25 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT DISTINCT MAX( DISTINCT - 36 ) AS col2 FROM tab1 WHERE + col0 IS NOT NULL
----
-36

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT MAX ( DISTINCT - 36 ) AS col2 FROM tab1 WHERE + col0 IS NOT NULL
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col2, 52 + + 48 col1 FROM tab0
----
10
100
47
100
99
100

query I rowsort
SELECT ALL - col1 * + col1 + - col0 FROM tab1 AS cor0
----
-110
-2300
-247

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + + 25 NOT BETWEEN NULL AND + + 72
----
0

skipif mysql # not compatible
query I rowsort label-6361
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + + 25 NOT BETWEEN NULL AND + + 72
----
0

query II rowsort
SELECT DISTINCT + - 45 AS col1, col0 AS col2 FROM tab2 AS cor0
----
-45
46
-45
64
-45
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT ALL - - 38 * + COUNT( * ) FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL - - 38 * + COUNT ( * ) FROM tab1 AS cor0
----
114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT - SUM( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT - SUM ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col0 * + 3 + + col0 AS col1 FROM tab2 AS cor0
----
184
256
300

query I rowsort
SELECT ALL 55 * col1 + - 35 AS col0 FROM tab1 AS cor0
----
240
2550
735

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

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

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NULL IN ( + + 82 * + + col1, col1 / - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6370
SELECT col2 + - - 30 + - col0 DIV + col2 FROM tab2
----
51
69
87

skipif mysql # not compatible
query I rowsort label-6370
SELECT col2 + - - 30 + - col0 / + col2 FROM tab2
----
51
69
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT ALL 60 + + ( + - CAST( - col1 AS SIGNED ) ) FROM tab0
----
141
61
81

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL 60 + + ( + - CAST ( - col1 AS INTEGER ) ) FROM tab0
----
141
61
81

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

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query II rowsort
SELECT DISTINCT + + col0 + + col1 AS col2, + col0 FROM tab2 AS cor0
----
141
64
142
75
97
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6376
SELECT 29 + + COUNT( * ) AS col2, 29 FROM tab0 AS cor0
----
32
29

skipif mysql # not compatible
query II rowsort label-6376
SELECT 29 + + COUNT ( * ) AS col2, 29 FROM tab0 AS cor0
----
32
29

query I rowsort
SELECT ALL - 46 * - 17 + - 45 + - col2 * + col2 FROM tab1 AS cor0
----
-2744
-3887
-8479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT ALL - 25 * + ( + + ( CAST( + col0 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-1150
-1600
-1875

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL - 25 * + ( + + ( CAST ( + col0 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-1150
-1600
-1875

query I rowsort
SELECT DISTINCT + col2 * col0 * - col0 - - + ( col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
-249614
-426221
-563087

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

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT COUNT ( ALL - col2 ) FROM tab1
----
3

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

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

query I rowsort
SELECT - col0 - + + 22 AS col2 FROM tab1
----
-107
-113
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-6383
SELECT - 66 + + col0 DIV + 61 col2, + 52 * - + 99 FROM tab1 cor0
----
-65
-5148
-65
-5148
-66
-5148

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6383
SELECT - 66 + + col0 / + 61 col2, + 52 * - + 99 FROM tab1 cor0
----
-65
-5148
-65
-5148
-66
-5148

onlyif mysql # DIV for integer division: 
query I rowsort label-6384
SELECT 33 DIV + 61 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6384
SELECT 33 / + 61 AS col2 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6386
SELECT - CAST( NULL AS DECIMAL ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6386
SELECT - CAST ( NULL AS REAL ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 * - - col1 col1 FROM tab2 AS cor0
----
3876
5092
5852

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6389
SELECT ALL COUNT( * ) AS col2, + COUNT( 82 ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( + + CAST( - col1 AS SIGNED ), col2, + + col1 * 5 )
----
0
0

skipif mysql # not compatible
query II rowsort label-6389
SELECT ALL COUNT ( * ) AS col2, + COUNT ( 82 ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( + + CAST ( - col1 AS INTEGER ), col2, + + col1 * 5 )
----
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT DISTINCT 18 * + - SUM( DISTINCT col0 ) AS col0 FROM tab0
----
-3582

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT 18 * + - SUM ( DISTINCT col0 ) AS col0 FROM tab0
----
-3582

query I rowsort
SELECT DISTINCT - col1 * + col1 * - - col2 FROM tab0
----
-308367
-4410
-99

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

query I rowsort
SELECT 93 * - col0 FROM tab0
----
-1395
-8091
-9021

query I rowsort
SELECT ALL - ( + - col2 ) * 97 AS col2 FROM tab0
----
4559
9603
970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 WHERE NOT + 39 IS NULL
----
14
47
5

query I rowsort
SELECT - col0 * + 96 FROM tab2
----
-4416
-6144
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT DISTINCT - 81 * + COUNT( * ) col0 FROM tab1 AS cor0
----
-243

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 85 ) col0 FROM tab2
----
-85
-85
-85

query III rowsort
SELECT * FROM tab2 WHERE NOT + 23 IS NOT NULL
----

query I rowsort
SELECT + + 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT ALL col0 DIV - col0 + - col1 AS col2 FROM tab0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL col0 / - col0 + - col1 AS col2 FROM tab0
----
-2
-22
-82

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

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

query I rowsort
SELECT col0 + - + col2 FROM tab1 AS cor0
----
-45
23
26

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6407
SELECT + COUNT( * ) + - + COUNT( * ) + + 12 + - - COUNT( * ) + 38 AS col0, - 8 - - - COUNT( ALL + col2 ) FROM tab1 AS cor0
----
53
-11

skipif mysql # not compatible
query II rowsort label-6407
SELECT + COUNT ( * ) + - + COUNT ( * ) + + 12 + - - COUNT ( * ) + 38 AS col0, - 8 - - - COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
53
-11

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

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

query I rowsort
SELECT ALL + 99 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col2 / + - col1
----

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

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

query II rowsort
SELECT ALL col2 AS col1, - col1 * - 51 AS col0 FROM tab1
----
59
255
68
2397
96
714

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

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

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

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

query I rowsort
SELECT 25 * - - col2 FROM tab0
----
1175
2475
250

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT MIN( - - 85 ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-6417
SELECT MIN ( - - 85 ) FROM tab2
----
85

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

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL + - 11 * - + 59 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT DISTINCT - COUNT( * ) * + MAX( col2 ) + SUM( ALL - col2 ) - - + 24 AS col0 FROM tab0 cor0
----
-429

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT - COUNT ( * ) * + MAX ( col2 ) + SUM ( ALL - col2 ) - - + 24 AS col0 FROM tab0 cor0
----
-429

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( 62 ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6421
SELECT - MAX ( + + 84 ) FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT - ( + + MIN( 44 ) ) AS col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-6422
SELECT - ( + + MIN ( 44 ) ) AS col0 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT DISTINCT ( 61 ) AS col1 FROM tab0
----
61

query I rowsort
SELECT ALL - 8 * + ( - 44 ) * + 0 AS col2 FROM tab1
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-6426
SELECT - MIN ( ALL - 86 ) AS col0 FROM tab0
----
86

query I rowsort
SELECT DISTINCT 48 * col2 AS col1 FROM tab1
----
2832
3264
4608

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6429
SELECT ALL - 3 * - col2 + + - col2 + - CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
120
174
69

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL - 3 * - col2 + + - col2 + - CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
120
174
69

query I rowsort
SELECT - 80 * + 10 AS col1 FROM tab0 AS cor0
----
-800
-800
-800

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 * - + col0 col0 FROM tab0 AS cor0
----
-1410
-8178
-9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 98 ) - + col1 * - col2 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
197
308
3905

query I rowsort
SELECT - 64 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6436
SELECT DISTINCT + col2 + + 60 DIV - 79 AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT + col2 + + 60 / - 79 AS col1 FROM tab1
----
59
68
96

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 * 18 ) <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + 42 > NULL
----

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

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

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

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

query I rowsort
SELECT + col0 * col1 - col2 FROM tab2
----
2323
4888
4967

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

query I rowsort
SELECT DISTINCT - col1 * ( + col1 ) AS col0 FROM tab2
----
-2601
-4489
-5929

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6448
SELECT ALL - CAST( col1 AS SIGNED ) AS col2 FROM tab2 WHERE col0 * - 77 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 WHERE col0 * - 77 IS NULL
----

query I rowsort
SELECT col2 * 94 + + 3 FROM tab1
----
5549
6395
9027

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT COUNT( * ) * + 30 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-6451
SELECT COUNT ( * ) * + 30 FROM tab1
----
90

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

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

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

query I rowsort
SELECT ALL + col0 - + col1 AS col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT DISTINCT 21 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT 21 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
63

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab0 ) WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT DISTINCT ( - 8 ) FROM tab0 AS cor0 CROSS JOIN tab0
----
-8

query I rowsort
SELECT ALL - 90 * 46 FROM tab0 AS cor0
----
-4140
-4140
-4140

query I rowsort
SELECT + 4 * col2 + - col2 * 85 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 * - 93 IS NULL
----
-3807
-8019
-810

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

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

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

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

query I rowsort
SELECT ALL AVG ( 55 ) FROM tab0 cor0 WHERE NULL NOT BETWEEN + col1 + col2 AND ( col2 + - col2 / col1 )
----
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 49 - - 34 / col2 ) <> col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6467
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + col2 NOT BETWEEN ( - 30 - + 99 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6467
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + col2 NOT BETWEEN ( - 30 - + 99 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6468
SELECT - 19 DIV 10 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6468
SELECT - 19 / 10 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT + + MAX( col0 ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6469
SELECT + + MAX ( col0 ) col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + - 0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + 19 AS col1 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
115
78
87

query I rowsort
SELECT col1 + 23 * col2 AS col2 FROM tab0 WHERE NOT ( - 5 ) NOT BETWEEN + 86 * + col1 + 28 * + 69 AND NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6474
SELECT DISTINCT 12 DIV + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT 12 / + col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6475
SELECT DISTINCT + 21 DIV - + 51 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT + 21 / - + 51 FROM tab2
----
0

query I rowsort
SELECT ALL - ( + 47 ) * 37 FROM tab2
----
-1739
-1739
-1739

query I rowsort
SELECT + 14 * col2 AS col2 FROM tab1 WHERE NOT - col2 + 49 NOT BETWEEN col0 * col0 AND ( - 98 ) * col2
----

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

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

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

query I rowsort
SELECT ALL 40 FROM tab1 cor0
----
40
40
40

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

query I rowsort
SELECT DISTINCT + 24 * + col1 FROM tab1
----
1128
120
336

query I rowsort
SELECT - col2 * + + col0 + + 62 * + 21 FROM tab0
----
-8301
432
597

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT ALL COUNT( * ) + CAST( - 24 AS SIGNED ) * COUNT( * ) AS col1 FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON 68 IN ( 45 )
----
-69

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL COUNT ( * ) + CAST ( - 24 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON 68 IN ( 45 )
----
-69

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

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

query I rowsort
SELECT ALL col1 * + col1 + + 6 AS col2 FROM tab0 AS cor0
----
447
6567
7

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

query I rowsort
SELECT DISTINCT + ( col1 ) * col2 FROM tab0 AS cor0 WHERE col1 IN ( - - 89 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6492
SELECT ALL - col0 DIV - - col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL - col0 / - - col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT DISTINCT COUNT( * ) + 35 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - - col0
----
35

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT COUNT ( * ) + 35 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - - col0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 / col0 col0 FROM tab0 WHERE NOT - 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6496
SELECT ALL COUNT( DISTINCT - - col1 ), ( COUNT( * ) ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-6496
SELECT ALL COUNT ( DISTINCT - - col1 ), ( COUNT ( * ) ) AS col0 FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6497
SELECT - ( 37 ) AS col1 FROM tab1 WHERE col0 NOT BETWEEN + CAST( - col1 AS SIGNED ) * col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6497
SELECT - ( 37 ) AS col1 FROM tab1 WHERE col0 NOT BETWEEN + CAST ( - col1 AS INTEGER ) * col0 AND NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 WHERE + - 28 BETWEEN ( - col1 * - col2 ) AND ( 24 )
----

query I rowsort
SELECT 48 - - 21 AS col0 FROM tab2
----
69
69
69

query I rowsort
SELECT col1 - + + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 * + 42 * - col2 * col1 - + 8 AS col1 FROM tab0
----
-12951422
-185228
-4166

query I rowsort
SELECT ALL + 6 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( + col2 ) AND ( NULL ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL COUNT ( * ) + - + 5 FROM tab0
----
-2

query I rowsort
SELECT 58 * 30 - - + col1 * col2 FROM tab0
----
1839
1950
5547

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

query I rowsort
SELECT 97 - - 60 * col0 + - - 75 FROM tab0
----
1072
5392
5992

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

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

query I rowsort
SELECT - col1 * + - col2 + + 7 * + col0 FROM tab2 AS cor0
----
1495
3528
4411

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL + 13 + + COUNT( * ) * + - MAX( + 31 ) AS col0 FROM tab1 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL + 13 + + COUNT ( * ) * + - MAX ( + 31 ) AS col0 FROM tab1 cor0
----
-80

query I rowsort
SELECT - 75 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6513
SELECT DISTINCT MIN( ALL + CAST( - 12 AS SIGNED ) ) AS col0 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT MIN ( ALL + CAST ( - 12 AS INTEGER ) ) AS col0 FROM tab2
----
-12

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

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

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN col1 AND + col2 / + col1 + col0 + 4
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + ( - col1 ) * + col1 - + 95 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT ALL COUNT( * ) * - 34 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL COUNT ( * ) * - 34 FROM tab2
----
-102

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 IN ( + 47 )
----

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

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

query I rowsort
SELECT DISTINCT col0 * col2 * + 45 FROM tab2
----
115200
195750
47610

onlyif mysql # DIV for integer division: 
query I rowsort label-6523
SELECT + col0 DIV + ( + + 57 ) FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6523
SELECT + col0 / + ( + + 57 ) FROM tab1
----
0
1
1

query II rowsort
SELECT 34 AS col1, ( - 29 ) AS col2 FROM tab1
----
34
-29
34
-29
34
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6525
SELECT DISTINCT - CAST( - 49 AS SIGNED ) + + col2 * col0, ( - col2 ) + - col0 * 41 AS col1 FROM tab0
----
754
-662
919
-3577
9652
-4076

skipif mysql # not compatible
query II rowsort label-6525
SELECT DISTINCT - CAST ( - 49 AS INTEGER ) + + col2 * col0, ( - col2 ) + - col0 * 41 AS col1 FROM tab0
----
754
-662
919
-3577
9652
-4076

query I rowsort
SELECT - 34 AS col0 FROM tab1 WHERE NOT - 62 / - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 37 col1 FROM tab0
----
3219
3589
555

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

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

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

query I rowsort
SELECT ALL - 9 + - col0 FROM tab2 AS cor0
----
-55
-73
-84

query I rowsort
SELECT + col0 + 38 FROM tab0 AS cor0
----
125
135
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <= 74 / - col0
----

query II rowsort
SELECT - col2 + col1, - col1 + 19 * + col2 AS col0 FROM tab0 AS cor0
----
-98
1880
11
169
34
812

query I rowsort
SELECT DISTINCT - - 84 + - 6 + - col2 * + + 5 AS col2 FROM tab2 AS cor0
----
-122
-212
-37

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

query I rowsort
SELECT + 18 FROM tab1 WHERE + 68 IS NOT NULL
----
18
18
18

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 < - + 53
----

query I rowsort
SELECT - 10 AS col0 FROM tab0 AS cor0 WHERE ( + col1 / col0 * col2 + - + 37 BETWEEN col2 AND ( + col1 + + col1 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6543
SELECT + col0 + + + col0 DIV 49 FROM tab1 cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-6543
SELECT + col0 + + + col0 / 49 FROM tab1 cor0
----
52
86
92

query I rowsort
SELECT + 81 * 81 + + 8 FROM tab1 AS cor0
----
6569
6569
6569

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6545
SELECT CAST( + col0 AS DECIMAL ) col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - 81 / - + col1 * + 17 * + - col1 AND ( - - col1 / + + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6545
SELECT CAST ( + col0 AS REAL ) col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - 81 / - + col1 * + 17 * + - col1 AND ( - - col1 / + + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6546
SELECT + MAX( + col2 ) + - ( MAX( ALL - col1 ) ) DIV 17 AS col1 FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-6546
SELECT + MAX ( + col2 ) + - ( MAX ( ALL - col1 ) ) / 17 AS col1 FROM tab2 cor0
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT - - COUNT( * ) + + 70 - + ( + 89 ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6549
SELECT - - COUNT ( * ) + + 70 - + ( + 89 ) FROM tab1 AS cor0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6550
SELECT DISTINCT COUNT( * ) - - CAST( 64 AS SIGNED ) DIV - + COUNT( * ) col1 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6550
SELECT DISTINCT COUNT ( * ) - - CAST ( 64 AS INTEGER ) / - + COUNT ( * ) col1 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT ALL col2 * + 1 FROM tab0 WHERE NOT + col0 - - 45 IS NULL
----
10
47
99

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

query I rowsort
SELECT DISTINCT ( + - col2 ) * + col1 - + ( + + 60 ) + col2 FROM tab1
----
-1308
-296
-3188

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 57 col0 FROM tab2
----
-10
-20
6

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

skipif mysql # not compatible
query I rowsort label-6556
SELECT col0 / + ( - col0 ) FROM tab1
----
-1
-1
-1

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

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

query I rowsort
SELECT DISTINCT col1 * + 53 AS col0 FROM tab0 WHERE NULL BETWEEN col2 AND NULL OR NOT ( NOT ( NOT ( + 87 * + col1 ) IS NULL ) )
----
1113
4293
53

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

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

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

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

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

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

query I rowsort
SELECT ALL + 23 FROM tab2 AS cor0 WHERE NOT 0 > col1
----
23
23
23

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 + 98 NOT IN ( + col0 * + col0, + col0 + - 26 )
----

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

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

query I rowsort
SELECT ALL + col2 * + 22 FROM tab1 cor0
----
1298
1496
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT DISTINCT - + ( + - 76 ) * - COUNT( * ) FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT - + ( + - 76 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-228

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + - col2 >= + 14
----

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

query I rowsort
SELECT ALL - 60 AS col2 FROM tab2
----
-60
-60
-60

query I rowsort
SELECT DISTINCT col2 * - - col2 + - 72 * ( 73 ) - col0 FROM tab1
----
-1860
-723
3909

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT MAX( - col0 ) * 78 FROM tab1
----
-3978

skipif mysql # not compatible
query I rowsort label-6572
SELECT MAX ( - col0 ) * 78 FROM tab1
----
-3978

query I rowsort
SELECT ALL + 72 * col1 FROM tab1 AS cor0
----
1008
3384
360

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 68 * 22 IS NULL
----

query I rowsort
SELECT + col2 + - 31 AS col2 FROM tab2 cor0 WHERE NULL IN ( + col0 * + - col1, ( col1 ) * 26 + col2 + - col2 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 66 ) + + - col0 col1 FROM tab2
----
-112
-130
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT + MAX( + - 69 ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT + MAX ( + - 69 ) FROM tab1 AS cor0
----
-69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 28 <= 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + - 97 - + - col0 AS col0 FROM tab2 AS cor0
----
-4416
-6144
-7200

query I rowsort
SELECT DISTINCT 44 + - col0 AS col2 FROM tab2 cor0
----
-2
-20
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 / + - col1, col0 col1 FROM tab1 AS cor0 WHERE col2 * + col0 / + 65 IS NULL
----

query I rowsort
SELECT + 60 * + - col1 + + - col2 + col1 * ( + - col0 ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + ( col0 ) - col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT - 32 - 6 + col2 FROM tab0 AS cor0
----
-28
61
9

query I rowsort
SELECT DISTINCT + col1 - + 22 * + col0 FROM tab0 AS cor0
----
-1893
-2133
-249

query I rowsort
SELECT ALL + col1 * - + col2 * col2 FROM tab0
----
-178929
-2100
-9801

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT ALL - SUM( DISTINCT - + col1 ) * ( - COUNT( * ) ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL - SUM ( DISTINCT - + col1 ) * ( - COUNT ( * ) ) FROM tab0
----
-309

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <= + - 26 * col0 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT + COUNT( * ) * - + MIN( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-6594
SELECT + COUNT ( * ) * - + MIN ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
231

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6596
SELECT DISTINCT col0 * - CAST( 42 AS SIGNED ) AS col2 FROM tab1
----
-2142
-3570
-3822

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT col0 * - CAST ( 42 AS INTEGER ) AS col2 FROM tab1
----
-2142
-3570
-3822

query I rowsort
SELECT ALL 96 * + - col1 AS col2 FROM tab0
----
-2016
-7776
-96

query I rowsort
SELECT - - 60 * + 96 AS col2 FROM tab0 AS cor0
----
5760
5760
5760

query I rowsort
SELECT + col0 * - + col1 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT 44 * 37 * col1, + col2 + - col2 AS col2 FROM tab0 AS cor0
----
131868
0
1628
0
34188
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6601
SELECT col2 * CAST( + col0 AS SIGNED ) FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-6601
SELECT col2 * CAST ( + col0 AS INTEGER ) FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-6602
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + 30 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT ALL 26 DIV 45 * - - 44 DIV 96 DIV + col2 + + - col2 * + 23 * 56 FROM tab1
----
-123648
-75992
-87584

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL 26 / 45 * - - 44 / 96 / + col2 + + - col2 * + 23 * 56 FROM tab1
----
-123648
-75992
-87584

query I rowsort
SELECT ALL col0 + + - 2 AS col2 FROM tab0
----
13
85
95

onlyif mysql # aggregate syntax: 
query II rowsort label-6606
SELECT + MIN( ( - col2 ) ) AS col2, MIN( - 19 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-58
-19

skipif mysql # not compatible
query II rowsort label-6606
SELECT + MIN ( ( - col2 ) ) AS col2, MIN ( - 19 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-58
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT + MAX( ALL - + col1 ) + + 28 + MIN( col0 ) col1 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6608
SELECT + MAX ( ALL - + col1 ) + + 28 + MIN ( col0 ) col1 FROM tab1 AS cor0
----
74

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

query I rowsort
SELECT DISTINCT + + col0 + col0 - + - col1 FROM tab2 AS cor0
----
143
205
217

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 41 - + 92 AS col0 FROM tab0 AS cor0
----
-51

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = ( NULL )
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( - - col2 ) <= NULL )
----

query I rowsort
SELECT + - 55 - col2 FROM tab0 AS cor0
----
-102
-154
-65

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 67 ) IS NULL
----

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

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

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

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

query I rowsort
SELECT + - 1 + + + col0 + - + col2 + col1 AS col0 FROM tab0 AS cor0
----
-2
48
97

query I rowsort
SELECT + 87 * + + col2 + 88 * + col2 FROM tab0 AS cor0
----
17325
1750
8225

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

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

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

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

query I rowsort
SELECT ALL - - 78 AS col1 FROM tab0 AS cor0 WHERE NOT 12 = - col2
----
78
78
78

query I rowsort
SELECT DISTINCT 20 * - 91 FROM tab1
----
-1820

query I rowsort
SELECT DISTINCT col2 * + col2 * - col2 + - - col1 AS col1 FROM tab2 AS cor0
----
-12116
-195045
-63923

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT + MAX( - 90 ) AS col1 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6631
SELECT + MAX ( - 90 ) AS col1 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT ALL col0 * ( col2 ) FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6633
SELECT + - CAST( + 86 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-107
-167
-87

skipif mysql # not compatible
query I rowsort label-6633
SELECT + - CAST ( + 86 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-107
-167
-87

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

skipif mysql # not compatible
query I rowsort label-6634
SELECT col2 + - + 25 / + col1 FROM tab2 AS cor0
----
23
40
58

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

query I rowsort
SELECT DISTINCT 26 + + - col1 + 60 AS col1 FROM tab1
----
39
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT ( + COUNT( 57 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6637
SELECT ( + COUNT ( 57 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) col0 FROM tab0
----
9

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

query I rowsort
SELECT DISTINCT - col1 * + 43 + + - 52 FROM tab2
----
-2245
-2933
-3363

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT - MAX( - - 76 ) FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-6640
SELECT - MAX ( - - 76 ) FROM tab2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6641
SELECT ALL + CAST( NULL AS SIGNED ) + + 88 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 < - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL + CAST ( NULL AS INTEGER ) + + 88 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 < - + 33
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT SUM( ALL + - 38 ) + - 26 * - + ( - MAX( DISTINCT col2 ) ) AS col2 FROM tab0
----
-2688

skipif mysql # not compatible
query I rowsort label-6643
SELECT SUM ( ALL + - 38 ) + - 26 * - + ( - MAX ( DISTINCT col2 ) ) AS col2 FROM tab0
----
-2688

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( 9 / + + col0 + + col2 * + + col1 + - - CAST( + col2 AS SIGNED ), col2 + - - 93 )
----

skipif mysql # not compatible
query I rowsort label-6645
SELECT col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( 9 / + + col0 + + col2 * + + col1 + - - CAST ( + col2 AS INTEGER ), col2 + - - 93 )
----

query II rowsort
SELECT + col0 * + - col2 - + + col1 - + col0 AS col0, + col0 * + + 46 FROM tab2 AS cor0
----
-1155
2116
-2701
2944
-4492
3450

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

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

query II rowsort
SELECT ALL 60 AS col0, col0 FROM tab2
----
60
46
60
64
60
75

query I rowsort
SELECT ALL ( + col0 ) * + 99 FROM tab1
----
5049
8415
9009

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT + SUM( DISTINCT + 15 ) * MAX( DISTINCT + col1 ) * + + COUNT( * ) AS col1 FROM tab0
----
3645

skipif mysql # not compatible
query I rowsort label-6653
SELECT + SUM ( DISTINCT + 15 ) * MAX ( DISTINCT + col1 ) * + + COUNT ( * ) AS col1 FROM tab0
----
3645

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT DISTINCT + SUM( DISTINCT 3 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT + SUM ( DISTINCT 3 ) FROM tab2
----
3

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

skipif mysql # not compatible
query I rowsort label-6655
SELECT + COUNT ( 87 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL - 47 * + COUNT( * ) col2 FROM tab2
----
-141

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <> 26 * 15
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 23 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT - col2 DIV col0 DIV + 63 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6659
SELECT - col2 / col0 / + 63 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6660
SELECT ALL - ( - - CAST( - 4 AS SIGNED ) ) + col2 FROM tab1 AS cor0
----
100
63
72

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL - ( - - CAST ( - 4 AS INTEGER ) ) + col2 FROM tab1 AS cor0
----
100
63
72

query I rowsort
SELECT DISTINCT + 75 + + col2 * - 39 * - + ( 61 ) FROM tab2 AS cor0
----
138057
54792
95235

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

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

query I rowsort
SELECT ALL + 45 + + col1 FROM tab1 AS cor0
----
50
59
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT - COUNT( * ) col2 FROM tab0 AS cor0 WHERE + 81 * + col2 * - ( + col0 ) IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6665
SELECT - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE + 81 * + col2 * - ( + col0 ) IS NOT NULL
----
-3

query I rowsort
SELECT 65 * + 64 FROM tab2 AS cor0
----
4160
4160
4160

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6668
SELECT ALL + - SUM( DISTINCT - + col2 ) DIV - 2 AS col0 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL + - SUM ( DISTINCT - + col2 ) / - 2 AS col0 FROM tab1 AS cor0
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + + col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + + col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT + col2 + col2 + - - col1 * - col2 AS col1 FROM tab2
----
-1127
-3000
-3770

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

query II rowsort
SELECT DISTINCT + ( + 3 ) AS col1, - col2 FROM tab0
----
3
-10
3
-47
3
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT DISTINCT COUNT( * ) * + 52 * - 85 FROM tab0
----
-13260

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT COUNT ( * ) * + 52 * - 85 FROM tab0
----
-13260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT ALL - col0 + - col0 * - ( CAST( - - col2 AS SIGNED ) ) FROM tab2
----
1012
2496
4275

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - col0 + - col0 * - ( CAST ( - - col2 AS INTEGER ) ) FROM tab2
----
1012
2496
4275

onlyif mysql # aggregate syntax: 
query II rowsort label-6675
SELECT DISTINCT COUNT( * ) + 62, - 41 AS col0 FROM tab1
----
65
-41

skipif mysql # not compatible
query II rowsort label-6675
SELECT DISTINCT COUNT ( * ) + 62, - 41 AS col0 FROM tab1
----
65
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6676
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 33 FROM tab2 WHERE NOT NULL BETWEEN - ( - - col0 ) AND - 96
----

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT CAST ( NULL AS REAL ) * - 33 FROM tab2 WHERE NOT NULL BETWEEN - ( - - col0 ) AND - 96
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6678
SELECT ALL 89 * 56, COUNT( * ) AS col0 FROM tab1 WHERE NOT - - 19 IS NULL
----
4984
3

skipif mysql # not compatible
query II rowsort label-6678
SELECT ALL 89 * 56, COUNT ( * ) AS col0 FROM tab1 WHERE NOT - - 19 IS NULL
----
4984
3

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

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

query I rowsort
SELECT ALL col2 + - + col1 * col0 AS col1 FROM tab0
----
-1168
-1817
2

query III rowsort
SELECT * FROM tab0 WHERE - col2 * col1 + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 / - 18 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT + MAX( - 83 ) * - COUNT( * ) AS col0 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-6683
SELECT + MAX ( - 83 ) * - COUNT ( * ) AS col0 FROM tab0
----
249

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

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

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

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

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

query II rowsort
SELECT + col1, + 95 * + 43 * + col2 FROM tab1 AS cor0
----
14
392160
47
277780
5
241015

query I rowsort
SELECT - ( + 57 ) FROM tab2 cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT ALL - + SUM( 23 ) AS col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL - + SUM ( 23 ) AS col0 FROM tab1 AS cor0
----
-69

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 10 ) >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6693
SELECT + ( - COUNT( * ) ) col1, + 18 FROM tab0
----
-3
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6693
SELECT + ( - COUNT ( * ) ) col1, + 18 FROM tab0
----
-3
18

query I rowsort
SELECT 48 FROM tab0 WHERE NOT NULL IS NOT NULL
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT DISTINCT + ( + MAX( - col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT + ( + MAX ( - col2 ) ) FROM tab0
----
-10

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6698
SELECT + 63 DIV - MAX( ALL col2 ) + + 43 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-6698
SELECT + 63 / - MAX ( ALL col2 ) + + 43 FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6699
SELECT ALL 4, MIN( DISTINCT - - col1 ) AS col0 FROM tab2
----
4
51

skipif mysql # not compatible
query II rowsort label-6699
SELECT ALL 4, MIN ( DISTINCT - - col1 ) AS col0 FROM tab2
----
4
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6700
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN - 21 AND CAST( NULL AS SIGNED ) * + 29
----

skipif mysql # not compatible
query III rowsort label-6700
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN - 21 AND CAST ( NULL AS INTEGER ) * + 29
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT + MIN( ALL + + 71 ) + + 95 AS col1 FROM tab0
----
166

skipif mysql # not compatible
query I rowsort label-6702
SELECT + MIN ( ALL + + 71 ) + + 95 AS col1 FROM tab0
----
166

query I rowsort
SELECT DISTINCT 73 * col0 FROM tab1 AS cor0
----
3723
6205
6643

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= - col0
----

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

query II rowsort
SELECT DISTINCT + - col0, col1 FROM tab0 AS cor0 WHERE ( NOT col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL + COUNT( * ) * - 99 FROM tab2 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL + COUNT ( * ) * - 99 FROM tab2 cor0
----
-297

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 80 * + col2 AS col0 FROM tab2
----
-1840
-3200
-4640

query I rowsort
SELECT col0 * + 4 * + col2 FROM tab1
----
19584
20060
24752

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

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

query II rowsort
SELECT DISTINCT 46 + + 37 + + - col1 * 69 AS col2, col0 FROM tab2
----
-3436
46
-4540
75
-5230
64

query I rowsort
SELECT 83 * + 52 FROM tab2
----
4316
4316
4316

query I rowsort
SELECT + 23 * + - 46 - + col1 FROM tab0
----
-1059
-1079
-1139

query I rowsort
SELECT DISTINCT col1 + - - ( + 99 ) FROM tab1
----
104
113
146

query I rowsort
SELECT - 21 + + col1 FROM tab1 AS cor0
----
-16
-7
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col2 ) + - col0 col1 FROM tab2 AS cor0
----
-104
-133
-69

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

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

query I rowsort
SELECT DISTINCT + + col2 + 11 AS col2 FROM tab2 WHERE NOT - 60 * - ( - col1 ) + col0 - + col1 * + - 68 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE NOT - + ( - 76 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT ALL + COUNT( * ) * 84 AS col0 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + COUNT ( * ) * 84 AS col0 FROM tab0
----
252

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL
----

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

query I rowsort
SELECT + 50 * + 1 AS col1 FROM tab2 AS cor0
----
50
50
50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 IN ( - + 33 + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6727
SELECT DISTINCT - 2 DIV - col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT - 2 / - col1 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6728
SELECT + MAX( + col0 ) DIV + 59 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6728
SELECT + MAX ( + col0 ) / + 59 FROM tab2 AS cor0
----
1

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - col1
----

query I rowsort
SELECT DISTINCT + col2 * 46 AS col2 FROM tab2
----
1058
1840
2668

query II rowsort
SELECT ALL col1 AS col0, - col1 * - col2 FROM tab2 cor0
----
51
1173
67
3886
77
3080

query I rowsort
SELECT + 86 + col0 AS col2 FROM tab1 AS cor0
----
137
171
177

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE ( - 94 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE ( - 94 ) IS NULL
----
0

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

query I rowsort
SELECT + col1 * + col1 * col1 AS col1 FROM tab1 AS cor0
----
103823
125
2744

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

query I rowsort
SELECT ALL - 39 * - 66 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ba8bc773a022efc716cfb9d60b40ab8

query I rowsort
SELECT DISTINCT 68 AS col2 FROM tab2
----
68

query I rowsort
SELECT DISTINCT + 21 + + 53 AS col2 FROM tab1 AS cor0
----
74

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

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

query II rowsort
SELECT ALL 32 + 9 AS col2, - 67 * + 91 * 94 + + col0 * + 59 * - 69 AS col0 FROM tab0 AS cor0
----
41
-634183
41
-927295
41
-968005

query I rowsort
SELECT 51 * - ( + col1 ) * + col2 * 59 - 37 AS col0 FROM tab0 AS cor0
----
-11455300
-297928
-631927

query II rowsort
SELECT - + col0 - col2 - - + 35 - + 42 AS col1, - 19 FROM tab1 AS cor0
----
-151
-19
-154
-19
-166
-19

query I rowsort
SELECT ALL + + 15 + - 22 FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT ALL + + col0 + 94 * + 79 AS col2 FROM tab2 AS cor0
----
7472
7490
7501

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

query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab0, tab0 cor0
----
-35

query I rowsort
SELECT ( + col2 ) * 89 AS col2 FROM tab0
----
4183
8811
890

onlyif mysql # DIV for integer division: 
query I rowsort label-6750
SELECT DISTINCT ( - col2 ) DIV - col1 + + col2 - + col2 * - 82 AS col2 FROM tab2
----
1909
3320
4814

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT ( - col2 ) / - col1 + + col2 - + col2 * - 82 AS col2 FROM tab2
----
1909
3320
4814

query I rowsort
SELECT ALL + - col1 + + 71 AS col2 FROM tab1 AS cor0
----
24
57
66

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 96 = ( 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE NOT + - 99 * - col0 + - 31 IN ( - + 64 * col1 + - col2, col1 + 81, - 67 )
----
-3

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + - 99 * - col0 + - 31 IN ( - + 64 * col1 + - col2, col1 + 81, - 67 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6756
SELECT - ( + 79 ) + + MAX( + + col2 ) - - CAST( NULL AS SIGNED ) * + - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT - ( + 79 ) + + MAX ( + + col2 ) - - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col2 <= NULL
----
NULL

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

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

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

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

query II rowsort
SELECT DISTINCT - 20 AS col2, 47 FROM tab0 AS cor0
----
-20
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT DISTINCT + ( + SUM( - + 53 ) ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT + ( + SUM ( - + 53 ) ) FROM tab0 AS cor0
----
-159

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

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL - CAST ( CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NULL IS NOT NULL OR NOT NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT - 82 AS col1 FROM tab2
----
-82
-82
-82

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

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

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

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

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

query I rowsort
SELECT ALL - 89 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab2 AS cor0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6771
SELECT DISTINCT - 31 DIV - 18 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT - 31 / - 18 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6773
SELECT col0 + - col2 * - + col1 - + col1 - - 61 DIV + ( + col1 ) FROM tab2
----
1169
3067
3894

skipif mysql # not compatible
query I rowsort label-6773
SELECT col0 + - col2 * - + col1 - + col1 - - 61 / + ( + col1 ) FROM tab2
----
1169
3067
3894

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

skipif mysql # not compatible
query I rowsort label-6774
SELECT MAX ( - col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT - - col2 - + 19 AS col2 FROM tab0 AS cor0
----
-9
28
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT ALL - col1 + + - 62 DIV - col2 + - + col1 FROM tab0 AS cor0
----
-161
-2
-36

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL - col1 + + - 62 / - col2 + - + col1 FROM tab0 AS cor0
----
-161
-2
-36

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) - - col2 col0 FROM tab0
----
100
128
31

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

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

query I rowsort
SELECT ALL 25 * - col0 AS col1 FROM tab2
----
-1150
-1600
-1875

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6782
SELECT ( + - col2 ) - + + col0 + 38 DIV + col1 AS col2 FROM tab1
----
-137
-145
-159

skipif mysql # not compatible
query I rowsort label-6782
SELECT ( + - col2 ) - + + col0 + 38 / + col1 AS col2 FROM tab1
----
-137
-145
-159

query I rowsort
SELECT ALL 78 - - + col0 + + - col1 * - col2 FROM tab2
----
1297
3222
4039

query II rowsort
SELECT DISTINCT col0 AS col1, col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
15
47
87
10
97
99

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

query I rowsort
SELECT DISTINCT ( - col1 ) * - 70 FROM tab0
----
1470
5670
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6787
SELECT ALL 5 * + 0 DIV - + ( col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL 5 * + 0 / - + ( col1 ) FROM tab0 AS cor0
----
0
0
0

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

query II rowsort
SELECT DISTINCT + 94, - 88 AS col0 FROM tab2 cor0
----
94
-88

query I rowsort
SELECT + 90 * + - 39 FROM tab2 AS cor0
----
-3510
-3510
-3510

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6793
SELECT DISTINCT - col0 * ( - + col1 ) * CAST( 30 AS SIGNED ) FROM tab0
----
2910
36450
54810

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT - col0 * ( - + col1 ) * CAST ( 30 AS INTEGER ) FROM tab0
----
2910
36450
54810

query III rowsort
SELECT 53 AS col2, - 11 AS col2, - col1 AS col0 FROM tab2
----
9 values hashing to a7b19251ddddb08173ba446cd028ce3e

query II rowsort
SELECT + col0 AS col1, col0 * + col2 + col2 - - col0 AS col2 FROM tab0
----
15
767
87
967
97
9799

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT DISTINCT - COUNT( * ) * 79 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT - COUNT ( * ) * 79 FROM tab1
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6798
SELECT * FROM tab2 WHERE + 49 * - + 94 * + col1 = + CAST( NULL AS SIGNED ) + + col0 - col2
----

skipif mysql # not compatible
query III rowsort label-6798
SELECT * FROM tab2 WHERE + 49 * - + 94 * + col1 = + CAST ( NULL AS INTEGER ) + + col0 - col2
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE + + col1 IS NULL
----

query I rowsort
SELECT - 84 + col0 AS col2 FROM tab2
----
-20
-38
-9

query I rowsort
SELECT - + col0 + - 58 + - + col1 + col2 + - col2 AS col2 FROM tab0 AS cor0
----
-154
-156
-166

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6803
SELECT + COUNT( * ) AS col1, + 46 + + COUNT( * ) FROM tab1 AS cor0
----
3
49

skipif mysql # not compatible
query II rowsort label-6803
SELECT + COUNT ( * ) AS col1, + 46 + + COUNT ( * ) FROM tab1 AS cor0
----
3
49

onlyif mysql # aggregate syntax: 
query II rowsort label-6804
SELECT DISTINCT 36 + COUNT( * ), + SUM( + - 50 ) AS col1 FROM tab0 AS cor0
----
39
-150

skipif mysql # not compatible
query II rowsort label-6804
SELECT DISTINCT 36 + COUNT ( * ), + SUM ( + - 50 ) AS col1 FROM tab0 AS cor0
----
39
-150

query I rowsort
SELECT DISTINCT + col0 * - col0 + - 56 FROM tab2 AS cor0
----
-2172
-4152
-5681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - + 15 ) col2 FROM tab2 AS cor0
----
-345
-600
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) * - 59 * + + COUNT( * ) * 84 AS col1 FROM tab2 AS cor0
----
133812

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) * - 59 * + + COUNT ( * ) * 84 AS col1 FROM tab2 AS cor0
----
133812

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT DISTINCT ( + + COUNT( * ) ) + + + COUNT( * ) * - 64 * + COUNT( * ) FROM tab2
----
-573

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT ( + + COUNT ( * ) ) + + + COUNT ( * ) * - 64 * + COUNT ( * ) FROM tab2
----
-573

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

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

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

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NULL > CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT + ( - col1 ) + + col0 + + 18 AS col1 FROM tab0 cor0
----
-48
114
84

query I rowsort
SELECT - - col2 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT DISTINCT - - ( - 48 ) + - 91 FROM tab2 AS cor0
----
-139

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

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

query I rowsort
SELECT DISTINCT + col2 * - + col2 + - ( + 14 ) + + + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1654
-3436
-566

query I rowsort
SELECT DISTINCT - col2 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - - 22 - - + col0 FROM tab0 AS cor0
----
109
119
37

query I rowsort
SELECT - 56 + + col2 AS col0 FROM tab2 AS cor0
----
-16
-33
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT - 66 + - COUNT( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6819
SELECT - 66 + - COUNT ( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
-69

query II rowsort
SELECT 11 + ( + - col0 ) AS col1, 82 + + col0 + col0 * - col0 - - 63 - - col2 FROM tab2
----
-35
-1902
-53
-3847
-64
-5347

query II rowsort
SELECT 88, col2 AS col1 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6822
SELECT ALL 89 * - COUNT( - col2 ), - COUNT( * ) AS col0 FROM tab1
----
-267
-3

skipif mysql # not compatible
query II rowsort label-6822
SELECT ALL 89 * - COUNT ( - col2 ), - COUNT ( * ) AS col0 FROM tab1
----
-267
-3

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6826
SELECT 69 col1, - COUNT( * ) * + 4 AS col0 FROM tab2
----
69
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6826
SELECT 69 col1, - COUNT ( * ) * + 4 AS col0 FROM tab2
----
69
-12

query I rowsort
SELECT + 71 * - - 68 FROM tab0
----
4828
4828
4828

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT DISTINCT - 45, + MIN( DISTINCT - + col2 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-45
-174

skipif mysql # not compatible
query II rowsort label-6830
SELECT DISTINCT - 45, + MIN ( DISTINCT - + col2 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-45
-174

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT DISTINCT MAX( DISTINCT 24 ) + 31 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
55

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT MAX ( DISTINCT 24 ) + 31 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL - MAX( + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL - MAX ( + col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT - col0 * col0 + + 99 FROM tab0 AS cor0
----
-126
-7470
-9310

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

query I rowsort
SELECT ALL + + 91 * + - 31 * + + col0 FROM tab0 AS cor0
----
-245427
-273637
-42315

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT ALL + COUNT( * ) * 65 FROM tab1 AS cor0 WHERE NOT col1 / + - col1 - - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + COUNT ( * ) * 65 FROM tab1 AS cor0 WHERE NOT col1 / + - col1 - - col2 IS NOT NULL
----
0

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

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

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

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

query I rowsort
SELECT - 94 * 72 AS col1 FROM tab2
----
-6768
-6768
-6768

query I rowsort
SELECT col2 * - 90 * - col2 FROM tab1
----
313290
416160
829440

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - col1 * col2 col1 FROM tab2
----
46
-1173
64
-3080
75
-3886

query I rowsort
SELECT DISTINCT + col1 + + + col2 AS col0 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT + 49 + + col1 FROM tab2
----
100
116
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT - MIN( ALL + 92 ) FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-6846
SELECT - MIN ( ALL + 92 ) FROM tab0
----
-92

query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab1 WHERE - col1 + col2 IS NOT NULL
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT DISTINCT + MIN( + + col1 ) * + + 73 AS col2 FROM tab0 cor0
----
73

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT + MIN ( + + col1 ) * + + 73 AS col2 FROM tab0 cor0
----
73

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6851
SELECT ALL + col0 DIV col2 + + col1 AS col2 FROM tab0 AS cor0
----
1
29
81

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL + col0 / col2 + + col1 AS col2 FROM tab0 AS cor0
----
1
29
81

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6854
SELECT col0 AS col2, col0 + + 4 - - 85 + - 54 DIV col0 FROM tab0 cor0
----
15
101
87
176
97
186

skipif mysql # not compatible
query II rowsort label-6854
SELECT col0 AS col2, col0 + + 4 - - 85 + - 54 / col0 FROM tab0 cor0
----
15
101
87
176
97
186

onlyif mysql # DIV for integer division: 
query I rowsort label-6855
SELECT DISTINCT ( - 40 ) DIV + col1 FROM tab0
----
-1
-40
0

skipif mysql # not compatible
query I rowsort label-6855
SELECT DISTINCT ( - 40 ) / + col1 FROM tab0
----
-1
-40
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT 61 + + + col2 * 36 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT - + MIN( - 33 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT - + MIN ( - 33 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6858
SELECT DISTINCT COUNT( * ) AS col2, 37 AS col2 FROM tab1, tab0 AS cor0
----
9
37

skipif mysql # not compatible
query II rowsort label-6858
SELECT DISTINCT COUNT ( * ) AS col2, 37 AS col2 FROM tab1, tab0 AS cor0
----
9
37

query I rowsort
SELECT + 80 * + 52 FROM tab2
----
4160
4160
4160

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT ( NULL ) <= 65
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6861
SELECT + ( + 48 ), - COUNT( * ) DIV 55 AS col1 FROM tab0 AS cor0
----
48
0

skipif mysql # not compatible
query II rowsort label-6861
SELECT + ( + 48 ), - COUNT ( * ) / 55 AS col1 FROM tab0 AS cor0
----
48
0

query II rowsort
SELECT DISTINCT 65, - ( 41 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
65
-41

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * col2 col2, - 92 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + - col1 col1 FROM tab0 cor0
----
-11
-34
98

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

query I rowsort
SELECT DISTINCT + 12 + - - col0 FROM tab2 AS cor0
----
58
76
87

query I rowsort
SELECT + - 43 * ( + - col2 ) + - col2 + col2 AS col1 FROM tab2 AS cor0
----
1720
2494
989

query I rowsort
SELECT ALL col1 * - 46 FROM tab1 AS cor0
----
-2162
-230
-644

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

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

query II rowsort
SELECT ALL - - col1, - col1 AS col0 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - + 69 col0 FROM tab1 AS cor0
----
-116
-74
-83

query I rowsort
SELECT DISTINCT + ( col2 ) * col1 * - col2 AS col1 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT - 52 + - col1 FROM tab1
----
-57
-66
-99

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6877
SELECT DISTINCT + 0 + COUNT ( * ) col1, CAST ( NULL AS INTEGER ) FROM tab1
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6878
SELECT - CAST( + col0 AS SIGNED ) AS col2, col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif mysql # not compatible
query II rowsort label-6878
SELECT - CAST ( + col0 AS INTEGER ) AS col2, col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6879
SELECT ALL + 94 DIV COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL + 94 / COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT 92 * + 85 + + + SUM( DISTINCT - + 27 ) FROM tab1 AS cor0
----
7793

skipif mysql # not compatible
query I rowsort label-6880
SELECT 92 * + 85 + + + SUM ( DISTINCT - + 27 ) FROM tab1 AS cor0
----
7793

query I rowsort
SELECT DISTINCT - + col1 * + + 92 AS col2 FROM tab0 AS cor0
----
-1932
-7452
-92

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6882
SELECT DISTINCT - COUNT ( * ) / - ( COUNT ( col1 ) ) col1 FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 99 * - - 32 / - 85 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT - 36 DIV + col1 + + ( 87 ) FROM tab0 AS cor0
----
51
86
87

skipif mysql # not compatible
query I rowsort label-6884
SELECT - 36 / + col1 + + ( 87 ) FROM tab0 AS cor0
----
51
86
87

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

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

query I rowsort
SELECT - 32 AS col1 FROM tab2 cor0
----
-32
-32
-32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT ALL + SUM( 60 ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL + SUM ( 60 ) FROM tab1
----
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab0 WHERE + 9 BETWEEN NULL AND ( NULL )
----

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

query I rowsort
SELECT DISTINCT - 92 AS col1 FROM tab1
----
-92

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

query III rowsort
SELECT + 56 AS col0, + col0 AS col2, + - col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to 4ad32505bbc9b4563610c8b7cc379996

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

query I rowsort
SELECT ALL + 54 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT ALL + MIN( DISTINCT - + 72 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL + MIN ( DISTINCT - + 72 ) FROM tab2
----
-72

query II rowsort
SELECT DISTINCT ( - col2 ), 51 * + col0 AS col0 FROM tab1 AS cor0
----
-59
4335
-68
4641
-96
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT COUNT( * ) + + MIN( + 99 ) FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-6898
SELECT COUNT ( * ) + + MIN ( + 99 ) FROM tab1 AS cor0
----
102

query I rowsort
SELECT ALL + 15 * + col0 + + - col1 AS col0 FROM tab0 AS cor0
----
1284
144
1454

query I rowsort
SELECT ALL - + col2 + + 15 FROM tab0 AS cor0
----
-32
-84
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT DISTINCT COUNT( * ) + 42 AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT COUNT ( * ) + 42 AS col1 FROM tab1
----
45

query I rowsort
SELECT ALL - 18 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 + + col2 + col1 / + + 60 - col1 * - col0 + col0 = NULL
----

query II rowsort
SELECT col1, - 51 AS col0 FROM tab0
----
1
-51
21
-51
81
-51

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

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

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

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

query I rowsort
SELECT 13 + col1 FROM tab2 AS cor0
----
64
80
90

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

query I rowsort
SELECT DISTINCT + col1 * 53 + col1 + - - col1 AS col0 FROM tab1 cor0
----
2585
275
770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col0 col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT DISTINCT 92 DIV + col1 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT 92 / + col1 AS col0 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 77 * col1 NOT IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 40 col1 FROM tab0
----
3480
3880
600

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT DISTINCT + 44 DIV col0 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6918
SELECT DISTINCT + 44 / col0 col1 FROM tab1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6920
SELECT 45 * - col2 FROM tab2 WHERE NOT ( 35 ) NOT IN ( CAST( NULL AS SIGNED ) * + 64 - - col2 )
----

skipif mysql # not compatible
query I rowsort label-6920
SELECT 45 * - col2 FROM tab2 WHERE NOT ( 35 ) NOT IN ( CAST ( NULL AS INTEGER ) * + 64 - - col2 )
----

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

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

query I rowsort
SELECT 11 - - col1 AS col0 FROM tab1
----
16
25
58

query I rowsort
SELECT DISTINCT + ( - col0 ) + - 97 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL ( - 26 ) FROM tab1
----
-26
-26
-26

query I rowsort
SELECT - 40 - - col2 FROM tab0
----
-30
59
7

query I rowsort
SELECT ALL 2 - 18 FROM tab2
----
-16
-16
-16

query III rowsort
SELECT * FROM tab1 WHERE - ( 10 ) = ( col0 )
----

query I rowsort
SELECT DISTINCT ( col0 ) + - ( + 52 ) AS col0 FROM tab2
----
-6
12
23

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 - col1 NOT BETWEEN 7 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT ALL SUM( 13 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL SUM ( 13 ) FROM tab2
----
39

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

skipif mysql # not compatible
query I rowsort label-6931
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - 79
----

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

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

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

query I rowsort
SELECT 33 FROM tab2 AS cor0 WHERE NOT ( 86 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab2 AS cor0 WHERE 55 > NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL MIN ( ALL 46 ) AS col0 FROM tab0 AS cor0
----
46

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

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

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

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

query I rowsort
SELECT DISTINCT - 29 + - 6 * - 70 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
391

query I rowsort
SELECT DISTINCT - 14 * col0 + + col1 * col0 FROM tab1
----
-765
0
3003

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

query I rowsort
SELECT ( + col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

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

query I rowsort
SELECT + 15 + 27 FROM tab2 AS cor0
----
42
42
42

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

query I rowsort
SELECT + - 84 * ( + 6 * col0 ) + col0 AS col2 FROM tab0 AS cor0
----
-43761
-48791
-7545

query I rowsort
SELECT ALL - ( + col0 ) - + 23 FROM tab0 AS cor0
----
-110
-120
-38

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 / - 78 ) IS NOT NULL
----

query I rowsort
SELECT col0 + - + col1 * + 7 AS col0 FROM tab0
----
-552
-60
90

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

query I rowsort
SELECT ( 62 ) + col0 AS col1 FROM tab1
----
113
147
153

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

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

query I rowsort
SELECT col1 FROM tab2 WHERE + col1 <> col2
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE + 27 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT ALL + COUNT( * ) + 42 col0 FROM tab2
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6960
SELECT ALL + COUNT ( * ) + 42 col0 FROM tab2
----
45

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( col1 * 84 )
----

query III rowsort
SELECT * FROM tab1 WHERE 9 * 20 >= NULL
----

query I rowsort
SELECT 44 * - 18 AS col2 FROM tab2 WHERE - 25 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL SUM( ALL + 55 ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL SUM ( ALL + 55 ) FROM tab1
----
165

query I rowsort
SELECT ALL + 5 + + col2 FROM tab0
----
104
15
52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * col1 IS NULL AND NULL IN ( - col1 / + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6968
SELECT - col2 DIV - 52 - + col2 FROM tab2 AS cor0
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-6968
SELECT - col2 / - 52 - + col2 FROM tab2 AS cor0
----
-23
-40
-57

query I rowsort
SELECT ALL col2 - + 36 AS col2 FROM tab1 AS cor0
----
23
32
60

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

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

query I rowsort
SELECT + - col1 / 24 + 31 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT ALL + 25 - - COUNT( * ) * 2 FROM tab2 WHERE ( NOT col0 IN ( col1 ) )
----
31

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL + 25 - - COUNT ( * ) * 2 FROM tab2 WHERE ( NOT col0 IN ( col1 ) )
----
31

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 91 * col0 IS NOT NULL )
----

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

query I rowsort
SELECT DISTINCT + ( + 59 ) FROM tab1
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 + col1 col0 FROM tab0 AS cor0 WHERE NOT ( col2 + - - 81 + + col1 * col1 * + col2 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT DISTINCT MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - col2 * col1 + - + col0 * col1 FROM tab1 AS cor0
----
-2058
-720
-7473

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 45 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6984
SELECT DISTINCT - 75 AS col0, CAST( + 11 AS SIGNED ) FROM tab2 AS cor0
----
-75
11

skipif mysql # not compatible
query II rowsort label-6984
SELECT DISTINCT - 75 AS col0, CAST ( + 11 AS INTEGER ) FROM tab2 AS cor0
----
-75
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6985
SELECT ALL + MAX( ALL 57 ) FROM tab2 WHERE col0 < - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL + MAX ( ALL 57 ) FROM tab2 WHERE col0 < - CAST ( NULL AS INTEGER )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 83 + + ( - 48 ) <= NULL
----

query I rowsort
SELECT - 17 * - + ( + 80 ) AS col2 FROM tab1
----
1360
1360
1360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT ALL + CAST( + + 46 AS SIGNED ) + + ( col2 ) * - 58 AS col0 FROM tab1
----
-3376
-3898
-5522

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL + CAST ( + + 46 AS INTEGER ) + + ( col2 ) * - 58 AS col0 FROM tab1
----
-3376
-3898
-5522

query I rowsort
SELECT DISTINCT col0 + - col1 * col0 + + col2 + col1 * 46 FROM tab0
----
-764
145
2573

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + 45 + + - ( - + col0 ) * + 18 ) BETWEEN ( - col1 ) AND col0 * - 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT MAX( - 92 ) FROM tab0 WHERE + 16 * - 37 <= NULL OR + 24 IS NOT NULL
----
-92

skipif mysql # not compatible
query I rowsort label-6994
SELECT MAX ( - 92 ) FROM tab0 WHERE + 16 * - 37 <= NULL OR + 24 IS NOT NULL
----
-92

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

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

query I rowsort
SELECT col1 + 46 FROM tab2
----
113
123
97

query II rowsort
SELECT ( + col1 ) + - col2 AS col2, col2 AS col1 FROM tab0 cor0
----
-98
99
11
10
34
47

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <= + col2
----

query I rowsort
SELECT ALL - + col0 + - - col0 * + 90 * 69 FROM tab0 AS cor0
----
540183
602273
93135

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7001
SELECT * FROM tab0 AS cor0 WHERE 33 BETWEEN ( + - col0 * + ( - CAST( NULL AS SIGNED ) ) ) AND ( - 85 )
----

skipif mysql # not compatible
query III rowsort label-7001
SELECT * FROM tab0 AS cor0 WHERE 33 BETWEEN ( + - col0 * + ( - CAST ( NULL AS INTEGER ) ) ) AND ( - 85 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) + 63 / + + 42 IS NOT NULL
----
0

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

query I rowsort
SELECT ALL col1 * - - 18 + + + col0 FROM tab1 cor0
----
175
303
937

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT ALL - MAX( col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL - MAX ( col2 ) FROM tab0 AS cor0
----
-99

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

query III rowsort
SELECT * FROM tab1 WHERE NULL = - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT - 98 * - - 92 * + - COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
27048

skipif mysql # not compatible
query I rowsort label-7008
SELECT - 98 * - - 92 * + - COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
27048

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

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL + col2 / 92 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col1 col0 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT - MIN( + 68 ) - - - COUNT( * ) AS col0 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-7011
SELECT - MIN ( + 68 ) - - - COUNT ( * ) AS col0 FROM tab1
----
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7012
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 31 + + col1 / - - CAST( NULL AS DECIMAL ) + + col1 BETWEEN + col2 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-7012
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 31 + + col1 / - - CAST ( NULL AS REAL ) + + col1 BETWEEN + col2 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT 63 - - - COUNT( * ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-7013
SELECT 63 - - - COUNT ( * ) AS col2 FROM tab2
----
60

query I rowsort
SELECT DISTINCT col1 + - + col2 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query II rowsort
SELECT - - col0 AS col0, + 35 + + 33 + ( - col1 ) AS col1 FROM tab2 AS cor0
----
46
17
64
-9
75
1

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 + - + 46 NOT BETWEEN - + ( + col1 ) / + col0 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + col0 + 48 * col2 * 32 FROM tab2 WHERE NOT col2 IN ( - col0 )
----
35374
61504
89163

query I rowsort
SELECT + 60 * + + 88 AS col0 FROM tab1
----
5280
5280
5280

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 - ( - col1 ) * ( - 3 ) <= ( col1 + + 68 )
----

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 30 IS NULL
----
-23
-40
-58

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - 87
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT ALL + col2 * - CAST( 96 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2208
-3840
-5568

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL + col2 * - CAST ( 96 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2208
-3840
-5568

query II rowsort
SELECT ALL - 53 * ( - col1 ) * - 87 * 60 AS col2, 58 FROM tab0 AS cor0
----
-22409460
58
-276660
58
-5809860
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7032
SELECT + + col1 DIV + col1 + 82 FROM tab2 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-7032
SELECT + + col1 / + col1 + 82 FROM tab2 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT SUM( + col1 ) FROM tab2 WHERE NOT - 19 IS NULL
----
195

skipif mysql # not compatible
query I rowsort label-7033
SELECT SUM ( + col1 ) FROM tab2 WHERE NOT - 19 IS NULL
----
195

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 97 / col2 ) BETWEEN + 36 * - + 85 - + 52 - - - 50 AND + 87
----

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

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

query I rowsort
SELECT ALL 14 * 46 AS col1 FROM tab1
----
644
644
644

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT MIN( ALL - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7039
SELECT MIN ( ALL - col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT - col0 IS NULL OR NULL IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + 11 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7042
SELECT DISTINCT * FROM tab2 WHERE ( - - col1 * - 72 + - 93 * + CAST( NULL AS SIGNED ) * - CAST( + - 1 AS SIGNED ) - col1 ) = - col2 + col0 * col0
----

skipif mysql # not compatible
query III rowsort label-7042
SELECT DISTINCT * FROM tab2 WHERE ( - - col1 * - 72 + - 93 * + CAST ( NULL AS INTEGER ) * - CAST ( + - 1 AS INTEGER ) - col1 ) = - col2 + col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL + MAX( + + col0 ) + 19 FROM tab1
----
110

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL + MAX ( + + col0 ) + 19 FROM tab1
----
110

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

query I rowsort
SELECT DISTINCT - col2 + col1 * + + 78 FROM tab1 AS cor0
----
331
3598
996

query II rowsort
SELECT + col0, - col2 / + + col2 AS col0 FROM tab2 AS cor0 WHERE + 45 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT + 40 + - SUM( ALL - col2 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 63 AND ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT + 40 + - SUM ( ALL - col2 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 63 AND ( col0 )
----
NULL

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

query I rowsort
SELECT + 77 * + - 36 FROM tab0 AS cor0
----
-2772
-2772
-2772

query I rowsort
SELECT - ( - col0 ) * - 18 AS col2 FROM tab1 cor0
----
-1530
-1638
-918

query I rowsort
SELECT DISTINCT 14 * col1 FROM tab0 AS cor0
----
1134
14
294

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT DISTINCT + MIN( ALL + - 47 ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT + MIN ( ALL + - 47 ) FROM tab2
----
-47

query I rowsort
SELECT 35 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL + 18 - + COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL + 18 - + COUNT ( * ) FROM tab1 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7055
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 >= + + col1 + + CAST( NULL AS SIGNED ) / col2
----

skipif mysql # not compatible
query III rowsort label-7055
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 >= + + col1 + + CAST ( NULL AS INTEGER ) / col2
----

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

query I rowsort
SELECT 73 + - - 87 AS col2 FROM tab1 AS cor0
----
160
160
160

onlyif mysql # aggregate syntax: 
query II rowsort label-7058
SELECT + 60 + + COUNT( * ) AS col0, SUM( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
63
-121

skipif mysql # not compatible
query II rowsort label-7058
SELECT + 60 + + COUNT ( * ) AS col0, SUM ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
63
-121

query I rowsort
SELECT ALL - 43 - - - col1 AS col0 FROM tab1
----
-48
-57
-90

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT + SUM( ALL + 43 ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-7062
SELECT + SUM ( ALL + 43 ) FROM tab1
----
129

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7063
SELECT col0 / - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7064
SELECT + MAX( - 59 ) DIV 4 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7064
SELECT + MAX ( - 59 ) / 4 FROM tab2 AS cor0
----
-14

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

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

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

query I rowsort
SELECT ALL + 91 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

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

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

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

query I rowsort
SELECT + col2 + + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
110
115
64

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

query II rowsort
SELECT DISTINCT + col2 * col2 AS col0, - col2 AS col0 FROM tab2 AS cor0
----
1600
-40
3364
-58
529
-23

query I rowsort
SELECT ALL + 75 * col0 AS col1 FROM tab1 AS cor0
----
3825
6375
6825

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN 12 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT 45 * col2 AS col1 FROM tab0 WHERE - col0 = + + col2
----

query I rowsort
SELECT 60 AS col2 FROM tab0 WHERE NOT 28 + + 92 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + + col1 * - 83, + col0 col0 FROM tab2
----
-4182
46
-5494
75
-6314
64

query I rowsort
SELECT - col1 * - + col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT ALL col0 + - - col0 AS col1 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT - 82 + - 18 AS col2 FROM tab1
----
-100
-100
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT ALL MIN( - + 81 ) + - ( - + ( + ( - COUNT( * ) ) ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL MIN ( - + 81 ) + - ( - + ( + ( - COUNT ( * ) ) ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-90

query II rowsort
SELECT - 53 * col2 + + - col1 AS col0, col2 * col1 FROM tab0
----
-2572
3807
-5248
99
-551
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 + - ( + + col2 ) col2 FROM tab2
----
17
35
52

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

query I rowsort
SELECT ALL + col1 - - col2 * 72 FROM tab1 AS cor0
----
4253
4943
6926

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT ALL - 27 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL - 27 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-24

query II rowsort
SELECT + col2 - + + 48 + col1 AS col1, - col2 FROM tab0 AS cor0
----
-17
-10
52
-99
80
-47

query I rowsort
SELECT ALL + col2 + 0 FROM tab0 AS cor0
----
10
47
99

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 WHERE + col1 IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT - COUNT( * ) * MIN( DISTINCT - col2 ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-7096
SELECT - COUNT ( * ) * MIN ( DISTINCT - col2 ) AS col1 FROM tab1
----
288

onlyif mysql # DIV for integer division: 
query II rowsort label-7097
SELECT DISTINCT col0 * + col1 AS col0, 84 DIV - col1 + col2 AS col2 FROM tab1
----
425
43
4277
67
714
90

skipif mysql # not compatible
query II rowsort label-7097
SELECT DISTINCT col0 * + col1 AS col0, 84 / - col1 + col2 AS col2 FROM tab1
----
425
43
4277
67
714
90

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

query I rowsort
SELECT DISTINCT + - ( - 83 ) * - - col2 FROM tab1 AS cor0
----
4897
5644
7968

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + col1 * + - 69 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL + col2 * + 24 * col0 FROM tab0 cor0
----
16920
20880
230472

query I rowsort
SELECT - ( - - col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + col2 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * - col1 NOT IN ( + + 47, + 20 * - + col0 * col1 )
----

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

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

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

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

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

query I rowsort
SELECT + col1 * - - col0 + col2 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT col2 * - col2 + - col1 * col2 AS col0 FROM tab0
----
-310
-6016
-9900

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT - 19 + COUNT( * ) * + 70 FROM tab2
----
191

skipif mysql # not compatible
query I rowsort label-7114
SELECT - 19 + COUNT ( * ) * + 70 FROM tab2
----
191

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 * - + col0 NOT BETWEEN NULL AND 26
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7118
SELECT ALL col2 + + 8 - col1 DIV - 1 AS col2 FROM tab0 AS cor0
----
108
136
39

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL col2 + + 8 - col1 / - 1 AS col2 FROM tab0 AS cor0
----
108
136
39

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

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

query I rowsort
SELECT col1 * + 49 * 82 FROM tab2 AS cor0
----
204918
269206
309386

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

query I rowsort
SELECT - col2 * - 36 + col0 FROM tab2 cor0
----
1504
2163
874

query I rowsort
SELECT DISTINCT - 9 + - + 90 - 76 + 2 + - 52 - - col0 FROM tab0 AS cor0
----
-128
-138
-210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - col0 col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL + COUNT( DISTINCT + 9 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL + COUNT ( DISTINCT + 9 ) FROM tab1 AS cor0
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7128
SELECT ALL - 34 AS col2, COUNT( ALL - + col2 ) AS col0 FROM tab2
----
-34
3

skipif mysql # not compatible
query II rowsort label-7128
SELECT ALL - 34 AS col2, COUNT ( ALL - + col2 ) AS col0 FROM tab2
----
-34
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT ALL - COUNT( * ) * - + 30 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL - COUNT ( * ) * - + 30 FROM tab1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 35 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 35 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT + 64 * 9 AS col0 FROM tab2
----
576
576
576

query II rowsort
SELECT 70, - 3 AS col0 FROM tab1
----
70
-3
70
-3
70
-3

query I rowsort
SELECT + - 38 * + - 56 * 68 * col2 + + 40 + - - col0 + - ( col2 ) FROM tab1 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * ( + col1 ) AS col0, 38 col1 FROM tab0
----
-1
38
-441
38
-6561
38

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col2 * - col1, + 22 + + + col0 / - - 86 / - 19, col1 )
----

query I rowsort
SELECT DISTINCT col0 * col0 * - + col2 AS col0 FROM tab0
----
-10575
-75690
-931491

query I rowsort
SELECT - col2 * - 43 AS col2 FROM tab0 AS cor0
----
2021
4257
430

query I rowsort
SELECT - - col1 * col2 - 80 * + 60 AS col1 FROM tab0 AS cor0
----
-4590
-4701
-993

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND NULL OR NOT + 75 + + - 71 BETWEEN NULL AND NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7143
SELECT - 33 DIV + - col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7143
SELECT - 33 / + - col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7144
SELECT COUNT( + 78 ), - 88 col1 FROM tab0
----
3
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7144
SELECT COUNT ( + 78 ), - 88 col1 FROM tab0
----
3
-88

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

query I rowsort
SELECT col1 * - col1 + + - 11 FROM tab2 AS cor0
----
-2612
-4500
-5940

onlyif mysql # aggregate syntax: 
query II rowsort label-7147
SELECT DISTINCT + - ( + COUNT( * ) ) col2, 64 + + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7147
SELECT DISTINCT + - ( + COUNT ( * ) ) col2, 64 + + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3
61

query I rowsort
SELECT - - col2 * + - col2 + + col1 * + ( - + col1 ) * + 86 AS col1 FROM tab0 AS cor0
----
-38026
-566455
-9887

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT ALL - ( - COUNT( * ) ) + + 1 AS col1 FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL - ( - COUNT ( * ) ) + + 1 AS col1 FROM tab2 cor0
----
4

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7151
SELECT 59 DIV - COUNT( * ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-7151
SELECT 59 / - COUNT ( * ) FROM tab0
----
-19

query II rowsort
SELECT col2 AS col1, - col2 * 51 * 54 AS col2 FROM tab0
----
10
-27540
47
-129438
99
-272646

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT MIN( ALL 40 ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-7154
SELECT MIN ( ALL 40 ) FROM tab0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT COUNT( * ) * + + 20 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-7155
SELECT COUNT ( * ) * + + 20 FROM tab2
----
60

query I rowsort
SELECT col0 - col0 * - - 13 FROM tab2
----
-552
-768
-900

query I rowsort
SELECT ALL col1 + + - 46 + + + 64 FROM tab1 AS cor0
----
23
32
65

query I rowsort
SELECT + col1 + 15 + + 48 * + col0 FROM tab2 AS cor0
----
2274
3164
3682

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT DISTINCT - COUNT( * ) - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) FROM tab0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7160
SELECT + 66 * - CAST( 27 AS SIGNED ) * + COUNT( * ) + + 53 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-15985

skipif mysql # not compatible
query I rowsort label-7160
SELECT + 66 * - CAST ( 27 AS INTEGER ) * + COUNT ( * ) + + 53 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-15985

query I rowsort
SELECT DISTINCT - 93 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 16 ) IS NULL
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT - MAX( + col0 ) FROM tab0 WHERE NULL IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-7162
SELECT - MAX ( + col0 ) FROM tab0 WHERE NULL IS NULL
----
-97

query I rowsort
SELECT DISTINCT + 34 FROM tab0 cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7164
SELECT + 5 * col1 * - CAST( NULL AS SIGNED ) * - - col1 + + col2 FROM tab1 cor0 WHERE NOT - 10 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT + 5 * col1 * - CAST ( NULL AS INTEGER ) * - - col1 + + col2 FROM tab1 cor0 WHERE NOT - 10 IS NULL
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7166
SELECT DISTINCT COUNT( * ) AS col2, - 61 * + 29 FROM tab2 AS cor0
----
3
-1769

skipif mysql # not compatible
query II rowsort label-7166
SELECT DISTINCT COUNT ( * ) AS col2, - 61 * + 29 FROM tab2 AS cor0
----
3
-1769

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT - MIN( DISTINCT - ( - - col0 ) ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7167
SELECT - MIN ( DISTINCT - ( - - col0 ) ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 / + 58 < + col0 * - col0 - - col1
----
3

skipif mysql # not compatible
query I rowsort label-7168
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 / + 58 < + col0 * - col0 - - col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7169
SELECT ( + 1 ) col0, 37 * - col2 * + + CAST( + - 61 AS SIGNED ) AS col1 FROM tab1
----
1
133163
1
153476
1
216672

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7169
SELECT ( + 1 ) col0, 37 * - col2 * + + CAST ( + - 61 AS INTEGER ) AS col1 FROM tab1
----
1
133163
1
153476
1
216672

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

query II rowsort
SELECT 11 AS col0, 21 * + 75 FROM tab1 WHERE NOT + 35 > - col0
----

query I rowsort
SELECT DISTINCT col2 * - - ( - 30 ) * - col2 AS col0 FROM tab1
----
104430
138720
276480

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - ( - - 63 ) / + col2 * + + 47 + - + 64 IN ( - + 29 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 29 IN ( col1, - 77 * ( - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT - - col0 * - - col0 + 20 FROM tab1 AS cor0 WHERE 18 + + col2 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7177
SELECT ALL ( + + COUNT( * ) ) + + COUNT( + - CAST( - 40 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL ( + + COUNT ( * ) ) + + COUNT ( + - CAST ( - 40 AS INTEGER ) ) AS col1 FROM tab0 cor0
----
6

query I rowsort
SELECT ALL + + 38 + + col2 AS col0 FROM tab0 AS cor0
----
137
48
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - - col1 * - + 25 col1, + 97 * col1 FROM tab1 AS cor0
----
-1243
4559
-184
485
-446
1358

query II rowsort
SELECT DISTINCT + col0 + - col1 * + col2, col1 + - - col0 * - + col2 + + 51 AS col0 FROM tab2 AS cor0
----
-1127
-956
-3016
-2432
-3811
-4232

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

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

query I rowsort
SELECT + - 40 + col1 + + + 97 AS col0 FROM tab0 AS cor0
----
138
58
78

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 + col2 col0 FROM tab0
----
135
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT DISTINCT COUNT( * ) * - 88 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT COUNT ( * ) * - 88 FROM tab0
----
-264

query I rowsort
SELECT + 18 FROM tab1 WHERE ( - 45 IS NOT NULL )
----
18
18
18

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 9 IS NOT NULL
----

query I rowsort
SELECT col2 + - + 71 + - col0 + - + 4 AS col1 FROM tab2
----
-92
-98
-99

query I rowsort
SELECT DISTINCT + - 6 FROM tab2 WHERE NOT ( col0 ) BETWEEN - 24 AND - col0
----
-6

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

query I rowsort
SELECT 77 + + + col1 - + col0 FROM tab2
----
69
82
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7192
SELECT ALL + SUM( DISTINCT col0 ) DIV 22 AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL + SUM ( DISTINCT col0 ) / 22 AS col0 FROM tab1
----
10

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

query I rowsort
SELECT ( + col2 ) + - col1 AS col0 FROM tab2
----
-28
-37
-9

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

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

skipif mysql # not compatible
query I rowsort label-7196
SELECT COUNT ( * ) FROM tab0 WHERE + col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 37 col1, col0 FROM tab1 WHERE + col2 - + - col2 IS NULL
----

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

query I rowsort
SELECT ALL col0 + col2 * - col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT ALL - col0 * - col2 - 22 AS col0 FROM tab0 AS cor0
----
683
848
9581

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT + SUM( ALL - + 27 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-243

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT + SUM ( ALL - + 27 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-243

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

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

skipif mysql # not compatible
query I rowsort label-7204
SELECT + + CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7206
SELECT CAST( - 54 AS SIGNED ) * - 60 FROM tab1 AS cor0
----
3240
3240
3240

skipif mysql # not compatible
query I rowsort label-7206
SELECT CAST ( - 54 AS INTEGER ) * - 60 FROM tab1 AS cor0
----
3240
3240
3240

query II rowsort
SELECT - col1 AS col0, 9 FROM tab0 cor0
----
-1
9
-21
9
-81
9

query I rowsort
SELECT - col2 * - - col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT - SUM( - + col1 ) col0 FROM tab1 AS cor0
----
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT SUM( + col2 ) FROM tab0 AS cor0 WHERE NOT col1 BETWEEN col2 * + - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT SUM ( + col2 ) FROM tab0 AS cor0 WHERE NOT col1 BETWEEN col2 * + - col0 AND NULL
----
NULL

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

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

query I rowsort
SELECT 98 + + - col0 AS col1 FROM tab1 WHERE NOT NULL < + - col1 + - - 25 + - + col1 * + col2
----

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

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

query I rowsort
SELECT - col0 * + - 21 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1344
1575
966

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

skipif mysql # not compatible
query I rowsort label-7217
SELECT - MAX ( DISTINCT 61 ) AS col2 FROM tab1
----
-61

query I rowsort
SELECT col1 * - + ( + 79 ) FROM tab2
----
-4029
-5293
-6083

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7220
SELECT MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-7221
SELECT DISTINCT + + 97 AS col2, 26 DIV - 10 FROM tab2 AS cor0
----
97
-2

skipif mysql # not compatible
query II rowsort label-7221
SELECT DISTINCT + + 97 AS col2, 26 / - 10 FROM tab2 AS cor0
----
97
-2

query I rowsort
SELECT + 45 FROM tab1 WHERE NOT + ( + col0 ) IS NULL
----
45
45
45

query I rowsort
SELECT col0 * + - col2 + - col1 FROM tab1
----
-4910
-5020
-6235

query I rowsort
SELECT ALL 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 0 + - 36 * - - col2, + col0 col0 FROM tab0 AS cor0
----
-1692
15
-3564
97
-360
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL + COUNT( * ) * - 89 + + MAX( DISTINCT + col2 ) FROM tab2 cor0
----
-209

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL + COUNT ( * ) * - 89 + + MAX ( DISTINCT + col2 ) FROM tab2 cor0
----
-209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + - + col2 col2 FROM tab1 cor0
----
4800
4956
6120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7228
SELECT ALL - 12 DIV - 32 AS col2, ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-7228
SELECT ALL - 12 / - 32 AS col2, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT ALL + col0 * - col2 * - 4 + + col1 - - 50 + + col1 FROM tab0 AS cor0
----
3032
3572
38464

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7230
SELECT ALL - - COUNT ( + col2 ) AS col1, + COUNT ( * ) col1 FROM tab2 cor0
----
3
3

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

query I rowsort
SELECT DISTINCT + - col0 * + - col1 * col1 FROM tab2 AS cor0
----
119646
336675
379456

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

query I rowsort
SELECT ALL col1 * 58 AS col2 FROM tab1 AS cor0
----
2726
290
812

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7235
SELECT * FROM tab2 WHERE + + 8 * col1 * + CAST( NULL AS SIGNED ) + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7235
SELECT * FROM tab2 WHERE + + 8 * col1 * + CAST ( NULL AS INTEGER ) + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT col1 + - + 84 AS col2 FROM tab0
----
-3
-63
-83

query II rowsort
SELECT - 56 - - 31 * - col2 AS col0, + 92 AS col0 FROM tab1
----
-1885
92
-2164
92
-3032
92

query I rowsort
SELECT - col1 - - 36 AS col2 FROM tab1
----
-11
22
31

query II rowsort
SELECT ALL col0 + - col0 - + + col2, ( - + 51 ) AS col0 FROM tab2
----
-23
-51
-40
-51
-58
-51

query I rowsort
SELECT col1 - - - ( - col1 ) AS col2 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7242
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) * ( 4 ) + - 91 AS col2 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) * ( 4 ) + - 91 AS col2 FROM tab0
----
-79

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

query II rowsort
SELECT 37 * - col0 + - + col1, + 24 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT ALL - - 50 AS col2 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - - 43 + - CAST( NULL AS SIGNED ) * col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL - - 50 AS col2 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - - 43 + - CAST ( NULL AS INTEGER ) * col2 AND NULL
----

query I rowsort
SELECT col1 - + 91 AS col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 52 > + 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - col0 * + + ( 11 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7251
SELECT ALL - 14 DIV + + 41 + - - col1 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL - 14 / + + 41 + - - col1 AS col1 FROM tab2 AS cor0
----
51
67
77

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

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

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

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

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

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

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

query I rowsort
SELECT - 83 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT DISTINCT - 58 * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT - 58 * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT ALL - col1, col1 - + - 38 AS col0 FROM tab1 AS cor0
----
-14
52
-47
85
-5
43

query I rowsort
SELECT DISTINCT + col0 * + + 84 * - 60 AS col2 FROM tab0 AS cor0
----
-438480
-488880
-75600

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT 7 * + ( + - COUNT( * ) ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-7260
SELECT 7 * + ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT DISTINCT COUNT( * ) * + - 53 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT COUNT ( * ) * + - 53 FROM tab2 AS cor0
----
-159

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 cor1 ON NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT DISTINCT 20 + - - COUNT( * ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT 20 + - - COUNT ( * ) FROM tab2
----
23

query I rowsort
SELECT ALL col0 + - 63 * - + col1 AS col1 FROM tab1
----
3052
400
933

query III rowsort
SELECT * FROM tab1 cor0 WHERE 26 + - col1 < - - 78
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( 52 ) + - 38 AS col1 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT ALL col1 - + - col0 + + + 46 * - ( - 64 ) AS col1 FROM tab2 AS cor0
----
3041
3085
3086

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT + 26 + + - COUNT( * ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7271
SELECT + 26 + + - COUNT ( * ) FROM tab2 AS cor0
----
23

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

query I rowsort
SELECT + col2 + - 24 + col1 AS col0 FROM tab0 cor0
----
104
7
76

query I rowsort
SELECT - 46 * - - 83 + - col1 * - col0 AS col1 FROM tab1
----
-3104
-3393
459

query III rowsort
SELECT * FROM tab1 WHERE + - col0 <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 77, + col0 FROM tab2 WHERE NULL < - + 50 * + 6
----

query I rowsort
SELECT + 85 - - - ( - - 2 ) AS col2 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT ALL - col2 * + 14 + + - col1 - + - 79 FROM tab0 AS cor0
----
-1308
-660
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL + MIN( - 51 ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL + MIN ( - 51 ) FROM tab0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

query II rowsort
SELECT + col0 * + - ( + + col2 ) AS col0, col1 AS col2 FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 91 NOT IN ( + 61, - 3 * - col0, col2 * col2 + col2 + col0 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7287
SELECT ( - SUM( col2 ) ) DIV + 63 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7287
SELECT ( - SUM ( col2 ) ) / + 63 FROM tab2 AS cor0
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7289
SELECT DISTINCT CAST( NULL AS SIGNED ), ( + col2 ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-7289
SELECT DISTINCT CAST ( NULL AS INTEGER ), ( + col2 ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

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

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT SUM ( ALL col1 ) AS col0 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT - ( + + ( - - COUNT( * ) ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7291
SELECT - ( + + ( - - COUNT ( * ) ) ) AS col1 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 62 col1 FROM tab0
----
-5394
-6014
-930

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 - + + 77 IS NULL
----

query I rowsort
SELECT ALL 24 * + - col1 AS col2 FROM tab2
----
-1224
-1608
-1848

query I rowsort
SELECT DISTINCT col0 * + 85 + col0 - 14 + + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 19 + + - col2 / 60 + - - col0 + + - 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT ALL + - MIN( ALL + 43 ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL + - MIN ( ALL + 43 ) FROM tab0 AS cor0
----
-43

query I rowsort
SELECT DISTINCT + - 67 * - ( 34 ) * - - col2 + + + ( col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
134546
155063
218835

query II rowsort
SELECT col2 AS col1, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND col2 * 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7300
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT ALL + ( - 61 ) - - col2 + - + col2 FROM tab2 cor0
----
-61
-61
-61

query I rowsort
SELECT + col1 * + - 75 - + col1 AS col1 FROM tab2
----
-3876
-5092
-5852

query II rowsort
SELECT ALL + col1 AS col1, col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT col2 - - 83 AS col2 FROM tab0
----
130
182
93

onlyif mysql # DIV for integer division: 
query II rowsort label-7305
SELECT ALL + col0, col1 * + col1 + col1 DIV + col2 col1 FROM tab1
----
51
196
85
25
91
2209

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7305
SELECT ALL + col0, col1 * + col1 + col1 / + col2 col1 FROM tab1
----
51
196
85
25
91
2209

query I rowsort
SELECT - col0 - + - col2 * - + col1 FROM tab1
----
-1395
-3287
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col1, 6 * - col1 col1 FROM tab2
----
-2601
-306
-4489
-402
-5929
-462

query I rowsort
SELECT col0 * - + col0 * + col2 FROM tab1
----
-249696
-426275
-563108

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 66 ) <= - 15 + col0
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7310
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7310
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL - 82 * - + col0 + + 95 + - 20 * + 68 * col1 AS col0, - col1 + + col1 AS col2 FROM tab0 AS cor0
----
-108835
0
-21331
0
6689
0

query I rowsort
SELECT + + ( 99 ) AS col2 FROM tab0 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - col2 * - - col2 * + - col1 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT - 8 AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( - 95 * + + col1 + + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7316
SELECT + COUNT( * ) * + MIN( - col1 ) AS col2, + COUNT( * ) FROM tab0 AS cor0
----
-243
3

skipif mysql # not compatible
query II rowsort label-7316
SELECT + COUNT ( * ) * + MIN ( - col1 ) AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
-243
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7317
SELECT col0 DIV + + col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7317
SELECT col0 / + + col0 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL <= + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT - ( - + COUNT( + - ( - col2 ) ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7319
SELECT - ( - + COUNT ( + - ( - col2 ) ) ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + col1, col0 AS col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT 11 + - col1 AS col2 FROM tab1
----
-3
-36
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT - ( + COUNT( * ) ) FROM tab1 WHERE NULL >= - col2 * - - col0 + + + col2 + + 90 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-7322
SELECT - ( + COUNT ( * ) ) FROM tab1 WHERE NULL >= - col2 * - - col0 + + + col2 + + 90 * - col2
----
0

query I rowsort
SELECT DISTINCT col0 + - 87 FROM tab0
----
-72
0
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL + 73 * - - COUNT( * ) AS col0 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL + 73 * - - COUNT ( * ) AS col0 FROM tab1
----
219

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7325
SELECT DISTINCT - ( - 29 ) DIV + + CAST( col1 AS SIGNED ), col2 FROM tab0
----
0
47
1
10
29
99

skipif mysql # not compatible
query II rowsort label-7325
SELECT DISTINCT - ( - 29 ) / + + CAST ( col1 AS INTEGER ), col2 FROM tab0
----
0
47
1
10
29
99

query I rowsort
SELECT ALL col2 + - 33 AS col1 FROM tab2
----
-10
25
7

query III rowsort
SELECT * FROM tab2 WHERE + 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + - col0 ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT - COUNT( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7329
SELECT - COUNT ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT - MIN( DISTINCT - - 63 ) AS col1 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7330
SELECT - MIN ( DISTINCT - - 63 ) AS col1 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT - + 89 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT COUNT( * ) * - 34 AS col0 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-7332
SELECT COUNT ( * ) * - 34 AS col0 FROM tab2
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-7333
SELECT - COUNT( + 89 ) AS col2, 80 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
80

skipif mysql # not compatible
query II rowsort label-7333
SELECT - COUNT ( + 89 ) AS col2, 80 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
80

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7334
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 93 >= - 81 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-7334
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 93 >= - 81 * - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > col0
----

query I rowsort
SELECT ALL + - col2 + + + col1 AS col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7337
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + ( - col1 ) + - col0 * - 1 + + 78 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + ( - col1 ) + - col0 * - 1 + + 78 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT + COUNT( * ) + + - MIN( + 99 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7338
SELECT + COUNT ( * ) + + - MIN ( + 99 ) FROM tab0 AS cor0
----
-96

query II rowsort
SELECT DISTINCT col2 AS col0, - col1 AS col0 FROM tab0 AS cor0 WHERE + ( + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 76 * - col0 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7341
SELECT - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 83 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7343
SELECT DISTINCT col0, CAST( NULL AS SIGNED ) * col0 col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7343
SELECT DISTINCT col0, CAST ( NULL AS INTEGER ) * col0 col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7345
SELECT - MIN( ALL + col0 ) DIV - 25 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7345
SELECT - MIN ( ALL + col0 ) / - 25 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7346
SELECT + - CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) AS col1, 77 FROM tab1 AS cor0
----
-14
77
-47
77
-5
77

skipif mysql # not compatible
query II rowsort label-7346
SELECT + - CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col1, 77 FROM tab1 AS cor0
----
-14
77
-47
77
-5
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 14 - - 6 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7349
SELECT 81, COUNT( ALL 96 ) AS col2 FROM tab0
----
81
3

skipif mysql # not compatible
query II rowsort label-7349
SELECT 81, COUNT ( ALL 96 ) AS col2 FROM tab0
----
81
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7350
SELECT CAST( NULL AS SIGNED ), + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-7350
SELECT CAST ( NULL AS INTEGER ), + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT + ( + col1 ) * 7 + + col1 AS col1 FROM tab0
----
168
648
8

query I rowsort
SELECT ALL 75 AS col1 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT - - ( - - 12 ) + + col0 AS col2 FROM tab2 AS cor0
----
58
76
87

query I rowsort
SELECT col0 * - col2 * + + 98 AS col2 FROM tab0 AS cor0
----
-69090
-85260
-941094

query I rowsort
SELECT DISTINCT col1 * + col1 + + col0 AS col1 FROM tab0 cor0
----
528
6576
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT + COUNT( * ) * - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7356
SELECT + COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-27

query I rowsort
SELECT ALL + 46 AS col2 FROM tab0 cor0
----
46
46
46

query II rowsort
SELECT 61 * - + col2, - col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 AND - col2 + - 83
----

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN NULL AND + - col1
----

query I rowsort
SELECT ALL col0 * + col0 * - col0 * + - ( - + col0 ) FROM tab0
----
-50625
-57289761
-88529281

onlyif mysql # DIV for integer division: 
query II rowsort label-7361
SELECT - col0 DIV - 7 AS col1, - col1 * - 64 AS col2 FROM tab0
----
12
1344
13
64
2
5184

skipif mysql # not compatible
query II rowsort label-7361
SELECT - col0 / - 7 AS col1, - col1 * - 64 AS col2 FROM tab0
----
12
1344
13
64
2
5184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7362
SELECT CAST( - - col2 AS SIGNED ) AS col1, + col0 * col0 FROM tab0
----
10
7569
47
225
99
9409

skipif mysql # not compatible
query II rowsort label-7362
SELECT CAST ( - - col2 AS INTEGER ) AS col1, + col0 * col0 FROM tab0
----
10
7569
47
225
99
9409

query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab1 WHERE NOT ( 52 / - col0 IS NOT NULL )
----

query I rowsort
SELECT ALL + 78 * - 28 FROM tab0 cor0
----
-2184
-2184
-2184

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE col1 BETWEEN col2 / + 63 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7366
SELECT + col0 + - - col0 + CAST( + col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
153
255
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7366
SELECT + col0 + - - col0 + CAST ( + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
153
255
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7367
SELECT - CAST( NULL AS SIGNED ) + + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7367
SELECT - CAST ( NULL AS INTEGER ) + + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 59 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT + col0 + + 87 FROM tab0 AS cor0
----
102
174
184

query I rowsort
SELECT DISTINCT 24 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT + col1 + + + col1 + + 31 + - col2 + + - col1 * - 62 + - + 96 AS col1 FROM tab0 cor0
----
-100
1269
5072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7372
SELECT - COUNT( * ) DIV 8 + + + 48 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7372
SELECT - COUNT ( * ) / 8 + + + 48 FROM tab0 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7373
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + col1 + + - col2 * - - 47 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7373
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + col1 + + - col2 * - - 47 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7374
SELECT CAST( - - CAST( NULL AS DECIMAL ) 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-7374
SELECT CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col0 * - 12 * col2 AS col0 FROM tab0
----
115236
219240
685260

query III rowsort
SELECT * FROM tab0 WHERE NOT 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT + CAST( - - 35 AS SIGNED ) AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7377
SELECT + CAST ( - - 35 AS INTEGER ) AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 30 AS col0 FROM tab2
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7379
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7379
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7381
SELECT DISTINCT + 69 * SUM( + col0 ) DIV 45 FROM tab1
----
348

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT + 69 * SUM ( + col0 ) / 45 FROM tab1
----
348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7382
SELECT - SUM( - + CAST( + col1 AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-7382
SELECT - SUM ( - + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT ALL COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT 28 + + col2 + - - 10 AS col2 FROM tab0
----
137
48
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT - + col1 DIV - + 51 - col0 * + col1 FROM tab0 AS cor0
----
-1214
-1827
-97

skipif mysql # not compatible
query I rowsort label-7385
SELECT - + col1 / - + 51 - col0 * + col1 FROM tab0 AS cor0
----
-1214
-1827
-97

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN + + col1 - + - 1 AND 93 + col0 * - col0
----

query II rowsort
SELECT ALL - col1 AS col2, col2 * + - col0 AS col1 FROM tab1 AS cor0
----
-14
-4896
-47
-6188
-5
-5015

query I rowsort
SELECT DISTINCT 27 * col0 AS col0 FROM tab2 AS cor0
----
1242
1728
2025

query I rowsort
SELECT DISTINCT + 61 * col2 AS col2 FROM tab2 AS cor0
----
1403
2440
3538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7390
SELECT ALL COUNT( DISTINCT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7390
SELECT ALL COUNT ( DISTINCT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT ALL - 46 * - COUNT( * ) * - + 85 AS col1 FROM tab1
----
-11730

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL - 46 * - COUNT ( * ) * - + 85 AS col1 FROM tab1
----
-11730

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT ( + - COUNT( * ) ) + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7392
SELECT ( + - COUNT ( * ) ) + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT + + 43 FROM tab1 WHERE 92 IS NOT NULL
----
43
43
43

query I rowsort
SELECT DISTINCT + - col0 * - - 63 FROM tab2 WHERE ( 4 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7395
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL ( - 61 ) + - col1 * + col2 FROM tab1
----
-1405
-3257
-356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - col2 col0 FROM tab2
----
116
46
80

onlyif mysql # DIV for integer division: 
query II rowsort label-7398
SELECT - 81, 17 DIV - 26 AS col2 FROM tab1 AS cor0
----
-81
0
-81
0
-81
0

skipif mysql # not compatible
query II rowsort label-7398
SELECT - 81, 17 / - 26 AS col2 FROM tab1 AS cor0
----
-81
0
-81
0
-81
0

query I rowsort
SELECT + - 15 * + col2 + + + col2 FROM tab2 AS cor0
----
-322
-560
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT ALL + + ( + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL + + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7401
SELECT + SUM( + col1 ) col1, + 91 FROM tab0 cor0
----
103
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7401
SELECT + SUM ( + col1 ) col1, + 91 FROM tab0 cor0
----
103
91

query I rowsort
SELECT ALL + col2 * - col0 - + 36 AS col1 FROM tab0 AS cor0
----
-741
-906
-9639

query I rowsort
SELECT ALL - 37 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT + COUNT( ALL col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7404
SELECT + COUNT ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT 19 / + col0, 21 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT ALL + - col2 DIV col1 - + 30 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL + - col2 / col1 - + 30 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7407
SELECT DISTINCT - 27 DIV - col2 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT - 27 / - col2 AS col2 FROM tab2 AS cor0
----
0
1

query II rowsort
SELECT DISTINCT - col2, ( + col1 ) FROM tab0
----
-10
21
-47
81
-99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col1 FROM tab0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN 25 AND - + ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN 25 AND - + ( - col2 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7411
SELECT - col0 * - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT - col0 * - + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT + CAST( - 39 AS SIGNED ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT + CAST ( - 39 AS INTEGER ) IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT DISTINCT MIN( + 69 ) AS col1 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT MIN ( + 69 ) AS col1 FROM tab2
----
69

query I rowsort
SELECT ALL col0 * ( - col0 ) FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT + 87 * + 98 FROM tab1
----
8526
8526
8526

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7416
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + ( + - 49 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT CAST ( NULL AS REAL ) / + ( + - 49 ) FROM tab0
----
NULL

query II rowsort
SELECT - 9 AS col2, 75 AS col0 FROM tab0 AS cor0
----
-9
75
-9
75
-9
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT - COUNT( + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7418
SELECT - COUNT ( + col2 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 59 >= ( col2 )
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT col2 - - col1 AS col1 FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7421
SELECT ALL * FROM tab0 WHERE - CAST( NULL AS SIGNED ) / ( - col0 ) + 27 BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query III rowsort label-7421
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) / ( - col0 ) + 27 BETWEEN NULL AND - col1
----

query III rowsort
SELECT * FROM tab1 WHERE ( 41 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT ALL - MIN( col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL - MIN ( col0 ) AS col1 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT - COUNT( * ) * + 5 AS col0 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-7424
SELECT - COUNT ( * ) * + 5 AS col0 FROM tab1
----
-15

query I rowsort
SELECT 91 * ( - ( col2 ) ) AS col0 FROM tab2
----
-2093
-3640
-5278

query I rowsort
SELECT ALL col1 * + 19 + + col0 FROM tab2
----
1015
1348
1527

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT ALL 65 * - COUNT( * ) FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL 65 * - COUNT ( * ) FROM tab1
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 69 col2 FROM tab1
----
4071
4692
6624

query I rowsort
SELECT - 35 AS col0 FROM tab2 WHERE NULL IS NULL
----
-35
-35
-35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IN ( 1 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT + MIN( col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7432
SELECT + MIN ( col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT DISTINCT + MAX( - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT + MAX ( - col2 ) FROM tab2
----
-23

query I rowsort
SELECT 15 + - ( 24 ) * 38 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-897
-897
-897

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 < 2
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + col2 AS col2 FROM tab2 WHERE NOT 20 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7438
SELECT - 93 * + 60 FROM tab0 WHERE NOT - 3 / CAST( NULL AS DECIMAL ) IS NOT NULL
----
-5580
-5580
-5580

skipif mysql # not compatible
query I rowsort label-7438
SELECT - 93 * + 60 FROM tab0 WHERE NOT - 3 / CAST ( NULL AS REAL ) IS NOT NULL
----
-5580
-5580
-5580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * col1 col2 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT - CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7440
SELECT - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT - MAX( 23 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7441
SELECT - MAX ( 23 ) FROM tab2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7442
SELECT ALL + CAST( NULL AS SIGNED ) * MIN( 63 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL + CAST ( NULL AS INTEGER ) * MIN ( 63 ) AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT + 31 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7443
SELECT + 31 / + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 - - 85 * + ( 41 * - 5 ) FROM tab0
----
-17344
-17404
-17424

query I rowsort
SELECT 99 + 29 AS col2 FROM tab0
----
128
128
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( + 68 ) col2 FROM tab0
----
1020
5916
6596

query I rowsort
SELECT 5 * - col1 FROM tab2
----
-255
-335
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-7448
SELECT ( + col1 ) + - 15 DIV 94 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7448
SELECT ( + col1 ) + - 15 / 94 AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 27 + col0 AS col1 FROM tab1 AS cor0 WHERE - 73 IS NOT NULL
----
112
118
78

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE + col0 > ( - 73 )
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * ( 47 ) > col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 ) NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( col0 ) * - col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT DISTINCT + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 ) WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 ) WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7456
SELECT - COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
0

skipif mysql # not compatible
query I rowsort label-7456
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
0

query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab0 WHERE NOT ( col0 / col2 + + col2 ) NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT - col2 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 + col2 ) BETWEEN col0 + - col0 AND ( NULL )
----

query I rowsort
SELECT ALL + - ( 63 ) * col0 FROM tab2 AS cor0
----
-2898
-4032
-4725

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7460
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT - + MAX( ALL + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7461
SELECT - + MAX ( ALL + col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab0 AS cor0
----
45

query I rowsort
SELECT + ( - 86 ) FROM tab2
----
-86
-86
-86

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT DISTINCT CAST( + col1 AS SIGNED ) FROM tab1 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT CAST ( + col1 AS INTEGER ) FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE col1 < - col1
----
0

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE col1 < - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 79 / col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 79 / col1 FROM tab0
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - col1 + - col0 + col2 AS col1 FROM tab1
----
-31
-70
31

query I rowsort
SELECT + col2 * + 93 AS col0 FROM tab0 AS cor0
----
4371
9207
930

query I rowsort
SELECT ALL 10 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 13 * - col1 AS col0 FROM tab1 AS cor0
----
182
611
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 69 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, 52 * + + col2 - - 25 AS col1 FROM tab0
----
-10
545
-47
2469
-99
5173

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 * col1 ) IN ( 33 )
----

query I rowsort
SELECT DISTINCT - 95 FROM tab1 WHERE NULL NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE - 3 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT - COUNT( ALL - 13 ) FROM tab2 WHERE ( + 48 * ( + 52 ) ) > + col1
----
-3

skipif mysql # not compatible
query I rowsort label-7478
SELECT - COUNT ( ALL - 13 ) FROM tab2 WHERE ( + 48 * ( + 52 ) ) > + col1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col0 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT DISTINCT ( + SUM( - 80 ) ) / 83 FROM tab1 WHERE NOT - + col2 <> ( 32 / col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT ( + SUM ( - 80 ) ) / 83 FROM tab1 WHERE NOT - + col2 <> ( 32 / col2 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 83 * col0 + + col2 * - col2 < col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT ALL + + col2 + - col2 DIV + - col0 FROM tab1 AS cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL + + col2 + - col2 / + - col0 FROM tab1 AS cor0
----
59
68
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT COUNT( + 34 ) FROM tab1 AS cor0 WHERE + col2 + + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7484
SELECT COUNT ( + 34 ) FROM tab1 AS cor0 WHERE + col2 + + col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT DISTINCT + - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT + - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - col1 + - ( + - col0 ) FROM tab0 AS cor0
----
-66
66
96

query II rowsort
SELECT ALL - + col1, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT - + 47 + - 14 DIV - - ( + 52 ) FROM tab0 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-7488
SELECT - + 47 + - 14 / - - ( + 52 ) FROM tab0 AS cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7489
SELECT ALL * FROM tab2 cor0 WHERE ( CAST( - col1 AS SIGNED ) ) NOT BETWEEN ( 74 * - col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7489
SELECT ALL * FROM tab2 cor0 WHERE ( CAST ( - col1 AS INTEGER ) ) NOT BETWEEN ( 74 * - col2 ) AND NULL
----

query I rowsort
SELECT + 83 + - 77 AS col1 FROM tab2
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL - COUNT( * ) - - - 50 + 69 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL - COUNT ( * ) - - - 50 + 69 FROM tab2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7492
SELECT col2 DIV + 57 + col2 DIV col0 + - col1 FROM tab2
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-7492
SELECT col2 / + 57 + col2 / col0 + - col1 FROM tab2
----
-51
-66
-77

query III rowsort
SELECT * FROM tab2 WHERE - + col0 = 61 / 26 + col0
----

query I rowsort
SELECT - 50 + col2 + + ( col1 ) FROM tab0
----
-19
50
78

query III rowsort
SELECT * FROM tab2 WHERE ( - - 79 ) > - col2 * 63 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) >= 4
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT - - COUNT( * ) FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT - - COUNT ( * ) FROM tab1 WHERE col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ( + - ( - - MIN( ALL + 53 ) ) ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-7499
SELECT ( + - ( - - MIN ( ALL + 53 ) ) ) FROM tab0
----
-53

query III rowsort
SELECT * FROM tab0 WHERE 34 * - 50 + + 96 * - col0 <> ( + 9 + 3 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7501
SELECT DISTINCT col2 * + 50 * - col1 + - 12 DIV col2 AS col0 FROM tab0
----
-10501
-190350
-4950

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT col2 * + 50 * - col1 + - 12 / col2 AS col0 FROM tab0
----
-10501
-190350
-4950

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 18 * col1 IS NULL
----

query I rowsort
SELECT ALL - - col1 - - col2 AS col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT + - ( - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7504
SELECT + - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT 96 IS NULL
----
46
64
75

query I rowsort
SELECT ALL col2 / col0 AS col2 FROM tab2 WHERE NOT - 11 >= - col2
----

query I rowsort
SELECT col1 * - + 30 FROM tab1
----
-1410
-150
-420

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + 77 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ( - COUNT( - 93 ) ) * - ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7509
SELECT ( - COUNT ( - 93 ) ) * - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - col1 * 70 AS col0 FROM tab2 AS cor0
----
-3570
-4690
-5390

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col2 NOT BETWEEN NULL AND ( 63 + - + 68 - col1 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7512
SELECT ALL + + col0 * - - 61 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL + + col0 * - - 61 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL + SUM( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL + SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT + COUNT( DISTINCT + + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7514
SELECT + COUNT ( DISTINCT + + col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + 84 AS col0 FROM tab1 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL + MAX( col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL + MAX ( col2 ) AS col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + + 7 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + 39 FROM tab0 WHERE + col1 + ( - 83 ) / col2 IS NOT NULL
----
-60
-8
29

query I rowsort
SELECT DISTINCT - col0 * - - 17 + col2 + - 48 FROM tab0 WHERE + col0 BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7520
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT - col1 - - + col1 NOT BETWEEN + col1 AND - - col1 * ( col1 * + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7520
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col1 - - + col1 NOT BETWEEN + col1 AND - - col1 * ( col1 * + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ( + - SUM( - - 8 ) ) AS col1 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-7521
SELECT ( + - SUM ( - - 8 ) ) AS col1 FROM tab0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7522
SELECT col1, - ( + CAST( 25 AS SIGNED ) ) FROM tab0
----
1
-25
21
-25
81
-25

skipif mysql # not compatible
query II rowsort label-7522
SELECT col1, - ( + CAST ( 25 AS INTEGER ) ) FROM tab0
----
1
-25
21
-25
81
-25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ( + COUNT( * ) ) * 13 * + COUNT( + - col1 ) AS col2 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-7524
SELECT ( + COUNT ( * ) ) * 13 * + COUNT ( + - col1 ) AS col2 FROM tab2
----
117

query II rowsort
SELECT DISTINCT col1 AS col2, + 30 + + ( + 16 ) FROM tab1 AS cor0
----
14
46
47
46
5
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7526
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + col2 + - ( - - 8 ) AS col0 FROM tab2
----
15
32
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + - col2 col2 FROM tab1
----
-4992
-5074
-6256

query I rowsort
SELECT ALL + - ( + + 24 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7530
SELECT ALL * FROM tab0 cor0 WHERE - ( CAST( - + col0 AS SIGNED ) ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7530
SELECT ALL * FROM tab0 cor0 WHERE - ( CAST ( - + col0 AS INTEGER ) ) = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT DISTINCT col2 - + col0 DIV + 12 FROM tab1 AS cor0
----
52
61
92

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT col2 - + col0 / + 12 FROM tab1 AS cor0
----
52
61
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7532
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 3 + + + CAST( NULL AS SIGNED ) < ( - - col0 )
----

skipif mysql # not compatible
query III rowsort label-7532
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 3 + + + CAST ( NULL AS INTEGER ) < ( - - col0 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7534
SELECT ALL - col0 DIV - col1 - + 77 AS col0 FROM tab0 AS cor0
----
-73
-77
20

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL - col0 / - col1 - + 77 AS col0 FROM tab0 AS cor0
----
-73
-77
20

query I rowsort
SELECT ALL - 74 - - ( - col0 ) + - col2 * - 7 AS col0 FROM tab0 AS cor0
----
-91
240
522

query I rowsort
SELECT + ( + ( + col0 ) ) FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7537
SELECT ALL CAST( - CAST( 19 AS SIGNED ) AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT ( NOT - ( + 88 ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL CAST ( - CAST ( 19 AS INTEGER ) AS REAL ) FROM tab0 AS cor0 WHERE NOT ( NOT - ( + 88 ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7538
SELECT DISTINCT + col1 * + col0 * CAST( col0 AS SIGNED ) FROM tab2 cor0
----
107916
315392
376875

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT + col1 * + col0 * CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
107916
315392
376875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7539
SELECT - + COUNT( * ) / - CAST( NULL AS SIGNED ) * 79 - + + COUNT( * ) AS col2 FROM tab0 WHERE - col1 <= - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT - + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * 79 - + + COUNT ( * ) AS col2 FROM tab0 WHERE - col1 <= - - col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7540
SELECT ALL - CAST( NULL AS SIGNED ) - - - col2 * col2 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7540
SELECT ALL - CAST ( NULL AS INTEGER ) - - - col2 * col2 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 71 ) AS col0 FROM tab2
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7542
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( - col1 AS SIGNED ) > - 85
----

skipif mysql # not compatible
query III rowsort label-7542
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( - col1 AS INTEGER ) > - 85
----

query I rowsort
SELECT + + col1 AS col0 FROM tab2 WHERE NULL >= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT + ( 56 ) - + + COUNT( ALL col1 ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-7544
SELECT + ( 56 ) - + + COUNT ( ALL col1 ) FROM tab2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7545
SELECT - CAST( - + 87 AS SIGNED ) * col1 - + + 33 AS col1 FROM tab2
----
4404
5796
6666

skipif mysql # not compatible
query I rowsort label-7545
SELECT - CAST ( - + 87 AS INTEGER ) * col1 - + + 33 AS col1 FROM tab2
----
4404
5796
6666

query I rowsort
SELECT ( - col2 ) - - - 53 FROM tab0
----
-100
-152
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7547
SELECT * FROM tab0 WHERE - - col2 * - - col1 + + - col1 BETWEEN + CAST( NULL AS SIGNED ) + ( 7 ) AND + 98
----

skipif mysql # not compatible
query III rowsort label-7547
SELECT * FROM tab0 WHERE - - col2 * - - col1 + + - col1 BETWEEN + CAST ( NULL AS INTEGER ) + ( 7 ) AND + 98
----

query I rowsort
SELECT col0 + 66 * - + col2 + + col0 * + + 7 FROM tab2
----
-1150
-2128
-3228

query I rowsort
SELECT + 66 + + - 31 AS col2 FROM tab1
----
35
35
35

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( col2 ) <> - + col1 + - col0 * - col1 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT DISTINCT SUM( DISTINCT - + 48 ) AS col2 FROM tab0 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT SUM ( DISTINCT - + 48 ) AS col2 FROM tab0 cor0
----
-48

query II rowsort
SELECT ALL + 20 AS col2, col0 AS col0 FROM tab1 AS cor0
----
20
51
20
85
20
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT - SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT - SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
-121

query II rowsort
SELECT + col2 AS col1, + 9 FROM tab0 cor0
----
10
9
47
9
99
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL + MIN( DISTINCT 71 ) FROM tab1 cor0
----
71

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL + MIN ( DISTINCT 71 ) FROM tab1 cor0
----
71

query I rowsort
SELECT ALL + + 37 AS col2 FROM tab1 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT DISTINCT + SUM( ALL - + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT + SUM ( ALL - + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7558
SELECT + 64, + col1 / + CAST( NULL AS SIGNED ) + + col2 * + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 91
----

skipif mysql # not compatible
query II rowsort label-7558
SELECT + 64, + col1 / + CAST ( NULL AS INTEGER ) + + col2 * + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 91
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7559
SELECT - + COUNT( * ) DIV - + ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7559
SELECT - + COUNT ( * ) / - + ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7560
SELECT CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 22 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7560
SELECT CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 22 = ( NULL )
----

query I rowsort
SELECT ALL + + col0 * col1 * col2 + - col2 * - ( col0 ) FROM tab1 AS cor0
----
297024
30090
73440

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7563
SELECT col2, + col2 DIV + 81 + - col0 col0 FROM tab0
----
10
-87
47
-15
99
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7563
SELECT col2, + col2 / + 81 + - col0 col0 FROM tab0
----
10
-87
47
-15
99
-96

query I rowsort
SELECT ALL 24 * 64 FROM tab1
----
1536
1536
1536

query I rowsort
SELECT col2 * 27 AS col1 FROM tab1
----
1593
1836
2592

query I rowsort
SELECT 2 + + col0 FROM tab0
----
17
89
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 80 col0 FROM tab1 WHERE + + 82 * + col2 - 25 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7568
SELECT ALL + 0 + - + COUNT( * ) * COUNT( + + ( + + CAST( - col1 AS SIGNED ) ) ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL + 0 + - + COUNT ( * ) * COUNT ( + + ( + + CAST ( - col1 AS INTEGER ) ) ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT ALL ( 73 ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT DISTINCT + 91 * - - CAST( NULL AS SIGNED ) + + - 46 - - - 83 * 67 + - col0 + - 2 FROM tab0 cor0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT + 91 * - - CAST ( NULL AS INTEGER ) + + - 46 - - - 83 * 67 + - col0 + - 2 FROM tab0 cor0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7571
SELECT DISTINCT - 49 DIV - 35 + + - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-101
-169
-181

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT - 49 / - 35 + + - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-101
-169
-181

query I rowsort
SELECT + col1 * + 88 FROM tab0 cor0
----
1848
7128
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT DISTINCT - ( - col1 ) DIV + col2 - - col2 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT - ( - col1 ) / + col2 - - col2 FROM tab2 AS cor0
----
25
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ALL COUNT( * ) * + - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT DISTINCT + col1 + 77 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7576
SELECT DISTINCT + col2 DIV + ( - 78 ) AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT + col2 / + ( - 78 ) AS col2 FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - + col2 + col0 col2 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - col0 + - + col0 AS col2 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT ALL - col2 * - col0 + + col2 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7580
SELECT DISTINCT - - 19 + + + CAST( - col2 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
119
2228
9820

skipif mysql # not compatible
query I rowsort label-7580
SELECT DISTINCT - - 19 + + + CAST ( - col2 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
119
2228
9820

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT - ( COUNT( * ) ) + + - 25 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7582
SELECT - ( COUNT ( * ) ) + + - 25 FROM tab2 AS cor0
----
-28

query I rowsort
SELECT + AVG ( col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL AND ( col0 ) NOT BETWEEN NULL AND ( - 99 + + - 13 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT ALL COUNT( * ) + - 27 FROM tab2 cor0 WHERE ( + ( - 2 ) ) IN ( - col2 )
----
-27

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL COUNT ( * ) + - 27 FROM tab2 cor0 WHERE ( + ( - 2 ) ) IN ( - col2 )
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 + - col2 col0 FROM tab2 AS cor0
----
-22
-40
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7586
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 72 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 72 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7587
SELECT * FROM tab0 AS cor0 WHERE ( + 9 * - col2 / - ( + - col1 ) * + - 98 ) NOT IN ( col0 * - 86, - CAST( NULL AS SIGNED ), + 31 )
----

skipif mysql # not compatible
query III rowsort label-7587
SELECT * FROM tab0 AS cor0 WHERE ( + 9 * - col2 / - ( + - col1 ) * + - 98 ) NOT IN ( col0 * - 86, - CAST ( NULL AS INTEGER ), + 31 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7588
SELECT * FROM tab0 WHERE + + col0 - + - col0 - - 45 + + 1 / - CAST( NULL AS SIGNED ) NOT IN ( - col0 + - - col2 )
----

skipif mysql # not compatible
query III rowsort label-7588
SELECT * FROM tab0 WHERE + + col0 - + - col0 - - 45 + + 1 / - CAST ( NULL AS INTEGER ) NOT IN ( - col0 + - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7589
SELECT - 28 DIV + col0 * + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7589
SELECT - 28 / + col0 * + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7590
SELECT ( COUNT( * ) ) DIV - COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7590
SELECT ( COUNT ( * ) ) / - COUNT ( * ) AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT DISTINCT COUNT( - col1 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT COUNT ( - col1 ) AS col1 FROM tab2 cor0
----
3

query II rowsort
SELECT ( col1 ), + col0 + + + 31 AS col2 FROM tab1 AS cor0
----
14
82
47
122
5
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT SUM( + 72 ) AS col1 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-7593
SELECT SUM ( + 72 ) AS col1 FROM tab0
----
216

query I rowsort
SELECT + col1 * - 81 AS col2 FROM tab0
----
-1701
-6561
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT DISTINCT + MIN( DISTINCT col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT + MIN ( DISTINCT col1 ) FROM tab1
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 + + col0 + + col1 > - - 47
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-3

query II rowsort
SELECT DISTINCT + col0 AS col2, 86 + + col2 FROM tab1 AS cor0
----
51
182
85
145
91
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL - + COUNT( - + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL - + COUNT ( - + col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7600
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 95 > - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7600
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 95 > - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col2 / 53 + 86 FROM tab1 WHERE - col1 * + col0 * 94 + + col0 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT DISTINCT - MIN( ALL + 67 ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT - MIN ( ALL + 67 ) FROM tab1
----
-67

query I rowsort
SELECT ALL col0 + + + 3 AS col0 FROM tab2
----
49
67
78

query I rowsort
SELECT DISTINCT ( 45 ) + 93 FROM tab2
----
138

query I rowsort
SELECT ALL + ( - col0 ) * col1 FROM tab2 WHERE NULL IS NULL
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT - COUNT( * ) + - 32 AS col2 FROM tab2, tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-7606
SELECT - COUNT ( * ) + - 32 AS col2 FROM tab2, tab1 AS cor0
----
-41

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - 66 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7609
SELECT col0 * - col0 - + - col2 DIV - 92 FROM tab1 AS cor0
----
-2602
-7225
-8281

skipif mysql # not compatible
query I rowsort label-7609
SELECT col0 * - col0 - + - col2 / - 92 FROM tab1 AS cor0
----
-2602
-7225
-8281

query I rowsort
SELECT DISTINCT + col2 + + 34 FROM tab1 AS cor0
----
102
130
93

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT - 87 - + + ( + col0 ) + 21 * + col2 FROM tab1 cor0
----
1067
1250
1878

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * col0 / + 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col0 * + + 82 + + col2 - + 39 - + col1 AS col0 FROM tab2 AS cor0
----
-3839
-5324
-6198

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT - MAX( DISTINCT + - 72 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-7615
SELECT - MAX ( DISTINCT + - 72 ) FROM tab0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - col0 - col2 col0 FROM tab1
----
14
-147
47
-159
5
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT + MAX( - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT + MAX ( - col1 ) AS col0 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT COUNT( * ) * - ( + - COUNT( * ) ) col0 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7618
SELECT COUNT ( * ) * - ( + - COUNT ( * ) ) col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL + MIN( + col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL + MIN ( + col1 ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT + SUM( DISTINCT + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7620
SELECT + SUM ( DISTINCT + col2 ) AS col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT + COUNT( col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7621
SELECT + COUNT ( col0 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT SUM( + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7622
SELECT SUM ( + col1 ) AS col2 FROM tab1
----
66

query I rowsort
SELECT ALL + 90 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7624
SELECT DISTINCT COUNT( * ) DIV + 25 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT COUNT ( * ) / + 25 AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col2 FROM tab0 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT ALL - ( - - COUNT( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - ( - - COUNT ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL + + col0, - col2 AS col1 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7628
SELECT DISTINCT - + ( + col1 ), col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * col1 AND + CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-7628
SELECT DISTINCT - + ( + col1 ), col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * col1 AND + CAST ( + col0 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 6 IS NULL
----

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE NOT col2 * - 70 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7631
SELECT DISTINCT - CAST( + AVG ( + col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT - CAST ( + AVG ( + col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + 50 ) <> NULL
----

query I rowsort
SELECT - 17 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-17
-17
-17

query II rowsort
SELECT DISTINCT - col1 AS col1, - col1 AS col1 FROM tab1
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 51 + + col0 FROM tab2
----
115
126
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 IN ( - col0, - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT DISTINCT ( + + 4 ) * + + col1 + - + 4 + col1 * - 10 / + + CAST( NULL AS SIGNED ) * + 29 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT ( + + 4 ) * + + col1 + - + 4 + col1 * - 10 / + + CAST ( NULL AS INTEGER ) * + 29 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 - - 36 AS col0 FROM tab0 AS cor0
----
-51
-61
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT DISTINCT + - col2 * - CAST( NULL AS SIGNED ) * + 84 - + col0 * + - col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) * + 84 - + col0 * + - col0 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT + col1 + - + CAST( NULL AS SIGNED ) 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-7641
SELECT + col1 + - + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT col2 + - CAST( + - ( - ( - ( col2 ) ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
116
46
80

skipif mysql # not compatible
query I rowsort label-7642
SELECT col2 + - CAST ( + - ( - ( - ( col2 ) ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
116
46
80

query I rowsort
SELECT DISTINCT 77 * col2 AS col1 FROM tab0 AS cor0
----
3619
7623
770

query II rowsort
SELECT - ( - col0 ) AS col0, 66 + - - col0 * col0 FROM tab1 AS cor0
----
51
2667
85
7291
91
8347

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT COUNT( * ) * + 0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7646
SELECT COUNT ( * ) * + 0 AS col1 FROM tab1
----
0

query I rowsort
SELECT - 23 * - 3 AS col0 FROM tab1
----
69
69
69

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - col2 * - - col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT ALL - MIN( ALL - - col0 ) * + - COUNT( - col0 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL - MIN ( ALL - - col0 ) * + - COUNT ( - col0 ) FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT ALL COUNT( * ) * - COUNT( - ( col1 ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL COUNT ( * ) * - COUNT ( - ( col1 ) ) FROM tab0
----
-9

query II rowsort
SELECT + 86, col0 AS col2 FROM tab1
----
86
51
86
85
86
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7653
SELECT - col0 FROM tab1 WHERE NOT - - col1 NOT IN ( + 22 - col1, 81, - CAST( 59 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7653
SELECT - col0 FROM tab1 WHERE NOT - - col1 NOT IN ( + 22 - col1, 81, - CAST ( 59 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT MIN( 73 ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-7654
SELECT MIN ( 73 ) FROM tab1
----
73

query I rowsort
SELECT + col2 * col0 + + - col0 AS col2 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT 26 FROM tab1 cor0
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 88 NOT BETWEEN - col2 / - + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7658
SELECT DISTINCT - - 75 DIV COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
8

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT - - 75 / COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
8

query II rowsort
SELECT ALL col2, + 23 FROM tab0
----
10
23
47
23
99
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT DISTINCT - COUNT( * ) + - 78 FROM tab2, tab1 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT - COUNT ( * ) + - 78 FROM tab2, tab1 cor0
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + 3 col1 FROM tab0
----
24
4
84

query I rowsort
SELECT ALL 8 * ( - - col2 ) FROM tab1
----
472
544
768

query I rowsort
SELECT - 90 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT DISTINCT + 37 * + col2 + - col2 FROM tab0
----
1692
3564
360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7665
SELECT - + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * - col0 + + col0, ( + col1 ) AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-7665
SELECT - + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - col0 + + col0, ( + col1 ) AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7666
SELECT DISTINCT - + CAST( - 67 AS SIGNED ) * + col0 * + col1 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT - + CAST ( - 67 AS INTEGER ) * + col0 * + col1 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT - MIN( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT - MIN ( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT - + ( - MAX( + col1 ) ) col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7668
SELECT - + ( - MAX ( + col1 ) ) col2 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT DISTINCT + MIN( - 88 ) FROM tab0 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT + MIN ( - 88 ) FROM tab0 cor0
----
-88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( - ( col2 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 5 col1, + col0 FROM tab0 cor0
----
-5
15
-5
87
-5
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col0 FROM tab2 AS cor0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7673
SELECT + col2 / + CAST( NULL AS SIGNED ) * - ( CAST( - col1 AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT + col2 / + CAST ( NULL AS INTEGER ) * - ( CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 99 + - + ( + 45 ) col1 FROM tab1 WHERE NOT + col1 * + + col0 + + col1 + + col0 * + 24 + - col0 * + col2 / + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7675
SELECT DISTINCT + - 20 * ( + ( - col1 ) ) AS col0 FROM tab0 WHERE NULL IN ( - CAST( NULL AS SIGNED ) + + - 2, - 28 * - col0 + col0 )
----

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT + - 20 * ( + ( - col1 ) ) AS col0 FROM tab0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) + + - 2, - 28 * - col0 + col0 )
----

query I rowsort
SELECT DISTINCT ( + ( - 95 ) ) AS col2 FROM tab0
----
-95

query I rowsort
SELECT DISTINCT - col2 + - + col1 + - col1 FROM tab2
----
-125
-192
-194

query I rowsort
SELECT + col2 - + 11 * + col2 FROM tab2
----
-230
-400
-580

query I rowsort
SELECT ( col1 ) - + col0 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT + 59 - MIN( ALL - + 47 ) FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-7680
SELECT + 59 - MIN ( ALL - + 47 ) FROM tab0
----
106

query I rowsort
SELECT ALL 28 + + col2 - + - 59 * - + col0 * 14 AS col2 FROM tab1
----
-42002
-70123
-75070

query I rowsort
SELECT + col0 - ( col2 ) AS col0 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT DISTINCT + ( MAX( ALL col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT + ( MAX ( ALL col1 ) ) FROM tab2
----
77

query I rowsort
SELECT ALL col2 + + 62 AS col0 FROM tab1
----
121
130
158

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7685
SELECT DISTINCT col0 + CAST( - col0 AS SIGNED ) DIV + 9 - col2 FROM tab1 AS cor0
----
-50
13
17

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT col0 + CAST ( - col0 AS INTEGER ) / + 9 - col2 FROM tab1 AS cor0
----
-50
13
17

query I rowsort
SELECT + + ( col0 ) + - - 11 * - 57 AS col2 FROM tab1 AS cor0
----
-536
-542
-576

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + 97 * + col0 )
----

query II rowsort
SELECT + 7 + - col2 + - 2 AS col0, - col0 * + + 39 + + col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-18
-1748
-35
-2432
-53
-2850

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL - COUNT( * ) col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7690
SELECT ALL - COUNT ( * ) col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

query II rowsort
SELECT col1, 91 + + col2 FROM tab2
----
51
114
67
149
77
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7692
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7692
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT DISTINCT SUM( ALL + 73 ) AS col0 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT SUM ( ALL + 73 ) AS col0 FROM tab0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL - ( SUM( + 81 ) ) col2 FROM tab0 AS cor0 WHERE 93 BETWEEN + col1 AND - 22
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7694
SELECT ALL - ( SUM ( + 81 ) ) col2 FROM tab0 AS cor0 WHERE 93 BETWEEN + col1 AND - 22
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND + - col2 / + - 39
----

query I rowsort
SELECT DISTINCT + col2 * - 28 * - - 44 AS col2 FROM tab2 AS cor0
----
-28336
-49280
-71456

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL + SUM( ALL + - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL + SUM ( ALL + - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT ( - + COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7700
SELECT ( - + COUNT ( * ) ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * - col2 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7702
SELECT * FROM tab1 WHERE NOT + CAST( - 76 AS SIGNED ) NOT IN ( col2, col0 + - 31 * 87 + col0 )
----

skipif mysql # not compatible
query III rowsort label-7702
SELECT * FROM tab1 WHERE NOT + CAST ( - 76 AS INTEGER ) NOT IN ( col2, col0 + - 31 * 87 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL + 30 * + COUNT( * ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL + 30 * + COUNT ( * ) FROM tab2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7704
SELECT ALL col0 * CAST( NULL AS SIGNED ) FROM tab1 WHERE ( NOT NULL < NULL )
----

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL col0 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( NOT NULL < NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7705
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - ( 86 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - ( 86 ) >= NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col2 * - col0 - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL SUM( ALL - - 43 ) FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL SUM ( ALL - - 43 ) FROM tab1 AS cor0
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7708
SELECT DISTINCT + - COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT + - COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT COUNT( * ) AS col0 FROM tab2 WHERE + 26 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7709
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE + 26 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( - col1 )
----

query I rowsort
SELECT col2 + + - col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7712
SELECT ALL - 57 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT ALL - 57 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + + col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7714
SELECT ALL + col0 * + - CAST( NULL AS SIGNED ) * - col0, col1 col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7714
SELECT ALL + col0 * + - CAST ( NULL AS INTEGER ) * - col0, col1 col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query II rowsort
SELECT DISTINCT - - 71 * + 83 * 74 AS col1, + col0 FROM tab0 AS cor0
----
436082
15
436082
87
436082
97

query II rowsort
SELECT - col0 + 30, + 42 AS col1 FROM tab0
----
-57
42
-67
42
15
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT - COUNT( * ) + + 28 + + 94 AS col0 FROM tab0
----
119

skipif mysql # not compatible
query I rowsort label-7717
SELECT - COUNT ( * ) + + 28 + + 94 AS col0 FROM tab0
----
119

query I rowsort
SELECT + + col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7719
SELECT DISTINCT COUNT( * ) DIV - COUNT( ALL col0 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT COUNT ( * ) / - COUNT ( ALL col0 ) FROM tab0
----
-1

query I rowsort
SELECT + col1 FROM tab0 WHERE col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT + + col1 - + col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7722
SELECT DISTINCT CAST( - ( - 38 ) AS SIGNED ) * COUNT( * ) * 45 * COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
138510

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7722
SELECT DISTINCT CAST ( - ( - 38 ) AS INTEGER ) * COUNT ( * ) * 45 * COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
138510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7723
SELECT + COUNT( * ) DIV - - 99 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7723
SELECT + COUNT ( * ) / - - 99 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 + - 18 * - col0 ) <= ( NULL )
----

query I rowsort
SELECT - 43 * + 84 FROM tab2 AS cor0
----
-3612
-3612
-3612

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT DISTINCT COUNT( DISTINCT 44 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT COUNT ( DISTINCT 44 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT DISTINCT MIN( ALL - - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT MIN ( ALL - - col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT + COUNT( * ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7728
SELECT + COUNT ( * ) col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT - SUM( col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT - SUM ( col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT + + COUNT( * ) * + 79 FROM tab1 WHERE NOT - 87 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7730
SELECT + + COUNT ( * ) * + 79 FROM tab1 WHERE NOT - 87 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT ALL + - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL + - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT + ( COUNT( * ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7732
SELECT + ( COUNT ( * ) ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7733
SELECT DISTINCT - CAST( + + 82 AS SIGNED ) * 92 - COUNT( * ) AS col0 FROM tab0
----
-7547

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT - CAST ( + + 82 AS INTEGER ) * 92 - COUNT ( * ) AS col0 FROM tab0
----
-7547

query II rowsort
SELECT + col0 AS col0, + 49 + col0 FROM tab1
----
51
100
85
134
91
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT + COUNT( * ) * - ( - COUNT( * ) ) * + - MIN( DISTINCT + 83 ) AS col2 FROM tab1
----
-747

skipif mysql # not compatible
query I rowsort label-7735
SELECT + COUNT ( * ) * - ( - COUNT ( * ) ) * + - MIN ( DISTINCT + 83 ) AS col2 FROM tab1
----
-747

query I rowsort
SELECT + 42 AS col2 FROM tab2
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + + col0 col2 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT - - col0 * + col0 + - col0 FROM tab1 AS cor0
----
2550
7140
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT MAX( - - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7739
SELECT MAX ( - - col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7740
SELECT COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE + col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL - 31 * - + col1 + 31 FROM tab0
----
2542
62
682

query I rowsort
SELECT ALL - 73 + + col1 FROM tab2 AS cor0
----
-22
-6
4

query I rowsort
SELECT 43 AS col0 FROM tab2 cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7745
SELECT ALL col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 45 * + col1 AS col1, - col2 AS col1 FROM tab0 cor0
----
3645
-47
45
-99
945
-10

query I rowsort
SELECT ALL + 80 + col1 * + 27 + + col0 + + - 16 FROM tab2 AS cor0
----
1487
1948
2207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 * col0 - - col0 col2 FROM tab2 AS cor0
----
4462
6208
7275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7749
SELECT DISTINCT - MIN( ( + col2 ) ) DIV 65 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT - MIN ( ( + col2 ) ) / 65 AS col2 FROM tab1
----
0

query I rowsort
SELECT 7 - - + col2 FROM tab2
----
30
47
65

query I rowsort
SELECT DISTINCT - 79 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 14 - - col1 - col0 AS col2, + col0 * col2 + + col0 AS col0 FROM tab0
----
-52
957
-82
9700
80
720

query I rowsort
SELECT - 2 - 97 FROM tab0
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT col2 * - CAST( NULL AS SIGNED ) * 3 - - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7754
SELECT col2 * - CAST ( NULL AS INTEGER ) * 3 - - + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7755
SELECT DISTINCT MIN( - col1 ) + + COUNT( ALL + + CAST( NULL AS SIGNED ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT MIN ( - col1 ) + + COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT COUNT( * ) * - + COUNT( * ) + + - 14 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-7756
SELECT COUNT ( * ) * - + COUNT ( * ) + + - 14 FROM tab0
----
-23

query II rowsort
SELECT DISTINCT ( 13 ) + - col0 AS col2, 36 * - 42 + - col2 FROM tab0
----
-2
-1559
-74
-1522
-84
-1611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7758
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL MIN( DISTINCT + 10 ) AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL MIN ( DISTINCT + 10 ) AS col1 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT DISTINCT COUNT( DISTINCT - - 7 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT COUNT ( DISTINCT - - 7 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7762
SELECT + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + + ( - col0 ) * + 80 FROM tab0 cor0
----
-1200
-6960
-7760

onlyif mysql # DIV for integer division: 
query II rowsort label-7764
SELECT ALL + col2 DIV - col1 AS col2, + 42 FROM tab0 cor0
----
-99
42
0
42
0
42

skipif mysql # not compatible
query II rowsort label-7764
SELECT ALL + col2 / - col1 AS col2, + 42 FROM tab0 cor0
----
-99
42
0
42
0
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT DISTINCT - 45 * + ( + COUNT( * ) ) AS col0 FROM tab0 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT - 45 * + ( + COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-135

query II rowsort
SELECT ALL col2 AS col1, - 22 FROM tab2 AS cor0
----
23
-22
40
-22
58
-22

query II rowsort
SELECT col2 AS col0, 41 * + - col0 AS col0 FROM tab1 AS cor0
----
59
-3485
68
-3731
96
-2091

query II rowsort
SELECT DISTINCT col0, ( - 17 ) FROM tab1 AS cor0
----
51
-17
85
-17
91
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 77 AS col1, + col0 col1 FROM tab0 AS cor0
----
77
15
77
87
77
97

query II rowsort
SELECT + col0, - 43 FROM tab0 AS cor0
----
15
-43
87
-43
97
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0, 60 col2 FROM tab0 AS cor0
----
15
60
87
60
97
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7772
SELECT + - MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT + - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT ALL ( - SUM( + col1 ) ) * 75 AS col1 FROM tab0
----
-7725

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL ( - SUM ( + col1 ) ) * 75 AS col1 FROM tab0
----
-7725

query II rowsort
SELECT DISTINCT col0 + 18, - ( - 98 ) AS col1 FROM tab1
----
103
98
109
98
69
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7775
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7776
SELECT ALL + 24 * - 39 + 57 AS col0, CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
-879
NULL
-879
NULL
-879
NULL

skipif mysql # not compatible
query II rowsort label-7776
SELECT ALL + 24 * - 39 + 57 AS col0, CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
-879
NULL
-879
NULL
-879
NULL

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT 32 * - col1 NOT BETWEEN NULL AND + ( + - col1 ) * - col0 + + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col1 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT ALL + 77 * + + 99 FROM tab2 AS cor0
----
7623
7623
7623

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = 6
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col0 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7782
SELECT DISTINCT - - SUM( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT - - SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 6 * + col2 <= 77
----
87
21
10

query I rowsort
SELECT DISTINCT 24 * 53 AS col1 FROM tab1
----
1272

query I rowsort
SELECT - col1 * - 51 AS col0 FROM tab1
----
2397
255
714

query I rowsort
SELECT ALL 97 * col2 * col0 + 81 FROM tab0 AS cor0
----
68466
84471
931572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7788
SELECT ( ( + CAST( 94 AS SIGNED ) ) ) + - COUNT( * ) * + CAST( - 77 AS SIGNED ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
787

skipif mysql # not compatible
query I rowsort label-7788
SELECT ( ( + CAST ( 94 AS INTEGER ) ) ) + - COUNT ( * ) * + CAST ( - 77 AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
787

query I rowsort
SELECT ALL + col1 + + 97 FROM tab0 AS cor0
----
118
178
98

query I rowsort
SELECT DISTINCT - 32 + 32 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT - 84 + + - COUNT( * ) FROM tab0 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7792
SELECT - 84 + + - COUNT ( * ) FROM tab0 cor0
----
-87

query I rowsort
SELECT col2 + col2 - - col0 - + + col2 * col1 - + - 11 - + col0 * 97 + + - col1 * col0 AS col1 FROM tab2 cor0
----
-14061
-15984
-7878

query I rowsort
SELECT + + 63 + - + 69 + - - col0 AS col2 FROM tab0 AS cor0
----
81
9
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT + - 84 - - + 61 * COUNT( * ) AS col2 FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
99

skipif mysql # not compatible
query I rowsort label-7795
SELECT + - 84 - - + 61 * COUNT ( * ) AS col2 FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
99

query I rowsort
SELECT + 97 + - - 93 + - col0 FROM tab1 AS cor0
----
105
139
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 < col1 + + 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT DISTINCT + col1 - - col0 DIV col2 AS col2 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT + col1 - - col0 / col2 AS col2 FROM tab2
----
53
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT ALL + - MAX( + col2 ) col0 FROM tab1 WHERE NOT - 43 NOT IN ( - - 13, ( 19 ) + + + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7800
SELECT ALL + - MAX ( + col2 ) col0 FROM tab1 WHERE NOT - 43 NOT IN ( - - 13, ( 19 ) + + + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7801
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( - 91 AS SIGNED ) * 70 + + 71 IN ( - - CAST( - + 59 AS DECIMAL ), col2 * - + col1 - + 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7801
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( - 91 AS INTEGER ) * 70 + + 71 IN ( - - CAST ( - + 59 AS REAL ), col2 * - + col1 - + 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - col1 ) + - col0 FROM tab1
----
-138
-65
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT ALL - 72 DIV col1 FROM tab0 AS cor0
----
-3
-72
0

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL - 72 / col1 FROM tab0 AS cor0
----
-3
-72
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 59 * - col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7805
SELECT DISTINCT COUNT( * ) * + - 86 col1 FROM tab1 AS cor0 WHERE col1 + - - 71 * col0 * + CAST( + 14 AS DECIMAL ) IN ( - 15, col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7805
SELECT DISTINCT COUNT ( * ) * + - 86 col1 FROM tab1 AS cor0 WHERE col1 + - - 71 * col0 * + CAST ( + 14 AS REAL ) IN ( - 15, col1 )
----
0

query I rowsort
SELECT DISTINCT 89 + AVG ( + col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT DISTINCT + 99 * - MAX( DISTINCT col1 ) col0 FROM tab1 AS cor0
----
-4653

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7807
SELECT DISTINCT + 99 * - MAX ( DISTINCT col1 ) col0 FROM tab1 AS cor0
----
-4653

query I rowsort
SELECT + col0 * + col1 + - 63 * + col0 AS col2 FROM tab1 AS cor0
----
-1456
-2499
-4930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7809
SELECT - + SUM( col2 ) DIV + + 83 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7809
SELECT - + SUM ( col2 ) / + + 83 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * 2 + + col0 <> NULL
----

query II rowsort
SELECT ( + col1 ) * + - col0 AS col0, - ( - - col2 ) FROM tab2 AS cor0
----
-2346
-23
-4928
-40
-5025
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT COUNT( * ) * + 31 FROM tab0 cor0
----
93

skipif mysql # not compatible
query I rowsort label-7812
SELECT COUNT ( * ) * + 31 FROM tab0 cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab2 AS cor0 WHERE NOT 58 / - col1 + - col0 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7814
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7814
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL + + 64 AS col0, - 7 FROM tab2 AS cor0
----
64
-7
64
-7
64
-7

query II rowsort
SELECT col1, col0 AS col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7817
SELECT ALL CAST( NULL AS SIGNED ) * - 82 FROM tab2 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL CAST ( NULL AS INTEGER ) * - 82 FROM tab2 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col0 ) * + col1 + col2 FROM tab2
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query II rowsort label-7819
SELECT - 19 AS col2, + COUNT( * ) AS col2 FROM tab2
----
-19
3

skipif mysql # not compatible
query II rowsort label-7819
SELECT - 19 AS col2, + COUNT ( * ) AS col2 FROM tab2
----
-19
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT - COUNT( * ) FROM tab2 WHERE NULL IN ( - 90 )
----
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT - COUNT ( * ) FROM tab2 WHERE NULL IN ( - 90 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7822
SELECT COUNT( * ), - 27 AS col1 FROM tab0
----
3
-27

skipif mysql # not compatible
query II rowsort label-7822
SELECT COUNT ( * ), - 27 AS col1 FROM tab0
----
3
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7823
SELECT ALL col0 + - - col0 + + col2 * - col1 DIV col1 AS col2 FROM tab1
----
111
114
6

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL col0 + - - col0 + + col2 * - col1 / col1 AS col2 FROM tab1
----
111
114
6

query I rowsort
SELECT ALL - 56 AS col2 FROM tab0
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab2 AS cor0 WHERE NOT - col1 + + + col2 = + - 67
----
-51
-67
-77

query I rowsort
SELECT ALL + + ( - + col0 ) + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT ALL + - COUNT( * ) + + MIN( DISTINCT + 24 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL + - COUNT ( * ) + + MIN ( DISTINCT + 24 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
15

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7830
SELECT + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab2
----
6

query I rowsort
SELECT col0 + - 7 * + - 57 FROM tab0
----
414
486
496

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT SUM( + - col0 ) col2 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7832
SELECT SUM ( + - col0 ) col2 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT + col2 - + - col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT - - 77 FROM tab1 AS cor0 WHERE col0 + + + col1 IS NOT NULL
----
77
77
77

query I rowsort
SELECT - - col0 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL COUNT( * ) * - ( COUNT( * ) ) - - 0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL COUNT ( * ) * - ( COUNT ( * ) ) - - 0 FROM tab0
----
-9

query II rowsort
SELECT DISTINCT + col1 AS col0, + col1 * - col2 AS col2 FROM tab2
----
51
-1173
67
-3886
77
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT + MIN( ALL + 94 ) col0 FROM tab2
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7838
SELECT + MIN ( ALL + 94 ) col0 FROM tab2
----
94

query I rowsort
SELECT ALL - 25 * col0 * - 86 AS col1 FROM tab0
----
187050
208550
32250

query I rowsort
SELECT DISTINCT + col2 * - + col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-7841
SELECT ALL col2 DIV + 75 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL col2 / + 75 FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 * - 85 FROM tab0
----
-3995
-8415
-850

query I rowsort
SELECT DISTINCT col0 * - 22 AS col1 FROM tab2
----
-1012
-1408
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT DISTINCT MAX( + 85 ) AS col1 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT MAX ( + 85 ) AS col1 FROM tab2
----
85

query I rowsort
SELECT DISTINCT - 76 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7846
SELECT DISTINCT 92 - - 48 + + COUNT( * ) DIV ( - COUNT( * ) ) + 30 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
169

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT 92 - - 48 + + COUNT ( * ) / ( - COUNT ( * ) ) + 30 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT DISTINCT - MAX( DISTINCT + - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT - MAX ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT col1 * - ( - col0 ) * + + col1 FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT col2 * - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7850
SELECT ALL col2 DIV - col0 * + col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL col2 / - col0 * + col1 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 43 col2 FROM tab1 cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT CAST( + 63 AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
-1323
-5103
-63

skipif mysql # not compatible
query I rowsort label-7852
SELECT CAST ( + 63 AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
-1323
-5103
-63

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 * + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT - - CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7855
SELECT - - CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT - COUNT( * ) * - + COUNT( * ) + - - 51 AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7856
SELECT - COUNT ( * ) * - + COUNT ( * ) + - - 51 AS col1 FROM tab1 AS cor0
----
60

query I rowsort
SELECT + 92 + + col2 FROM tab0
----
102
139
191

query I rowsort
SELECT + col2 + - + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ( - + col1 ) + + - col0 * + - 82 FROM tab2
----
3721
5171
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT DISTINCT COUNT( * ) + - 77 AS col1 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT COUNT ( * ) + - 77 AS col1 FROM tab2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL - SUM( + 95 ) FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL - SUM ( + 95 ) FROM tab1 AS cor0
----
-285

query I rowsort
SELECT col0 + + ( + - col0 ) * + col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT ALL - 17 + - col2 AS col0 FROM tab2 AS cor0
----
-40
-57
-75

query I rowsort
SELECT DISTINCT 39 + + 95 * + 29 FROM tab2 AS cor0
----
2794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + 83 col1 FROM tab1 AS cor0
----
-134
-168
-174

query I rowsort
SELECT ALL + 78 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-118
-2131
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT DISTINCT - MIN( + 39 ) - - 25 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT - MIN ( + 39 ) - - 25 FROM tab0 AS cor0
----
-14

query II rowsort
SELECT ALL + 8 + + col2 + - col1 - 8 AS col0, col2 AS col2 FROM tab1 AS cor0
----
21
68
54
59
82
96

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - col1 ) + col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( col0 ) - col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7871
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7871
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT + ( - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7872
SELECT + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT DISTINCT COUNT( * ) FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT COUNT ( * ) FROM tab1, tab0 AS cor0
----
9

query I rowsort
SELECT - col0 * - ( - - col0 ) FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7875
SELECT + 70 * - CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-7875
SELECT + 70 * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
-210

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + + col1 / + - col2 * col1 + 72
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT - ( 85 ) DIV - - 96 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7877
SELECT - ( 85 ) / - - 96 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 94 * - col2 * - col0 FROM tab2 AS cor0
----
240640
408900
99452

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT DISTINCT - SUM( ALL col2 ) AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT - SUM ( ALL col2 ) AS col2 FROM tab2 cor0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7881
SELECT ALL - SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 74 AS col2 FROM tab1 AS cor0
----
74

query I rowsort
SELECT - 88 * + 99 AS col2 FROM tab0 WHERE NOT + col1 * - - col2 + + - col2 IS NULL
----
-8712
-8712
-8712

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT DISTINCT COUNT( * ) * + - 68 + - 23 FROM tab2
----
-227

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT COUNT ( * ) * + - 68 + - 23 FROM tab2
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT ALL - + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL - + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT - MIN( - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7887
SELECT - MIN ( - col2 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL - 46 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 * - - 76 AS col1 FROM tab1 AS cor0
----
4484
5168
7296

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT DISTINCT - MIN( + 41 ) AS col2 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT - MIN ( + 41 ) AS col2 FROM tab2 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT + 29 * + COUNT( * ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7891
SELECT + 29 * + COUNT ( * ) FROM tab2 AS cor0
----
87

query III rowsort
SELECT * FROM tab1 WHERE - 80 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + + + 35 NOT BETWEEN + 84 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE + col0 NOT BETWEEN + - col1 AND - + col1 + - 52
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE + col0 NOT BETWEEN + - col1 AND - + col1 + - 52
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT DISTINCT 10 * + + MAX( ALL - col1 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT 10 * + + MAX ( ALL - col1 ) FROM tab0
----
-10

query II rowsort
SELECT ( - 70 ), + col0 FROM tab2
----
-70
46
-70
64
-70
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7897
SELECT + AVG ( ALL - CAST( NULL AS DECIMAL ) ), 42 / + CAST( NULL AS SIGNED ) - + SUM( + - col1 ) FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7897
SELECT + AVG ( ALL - CAST ( NULL AS REAL ) ), 42 / + CAST ( NULL AS INTEGER ) - + SUM ( + - col1 ) FROM tab0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL 55 + - COUNT( * ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL 55 + - COUNT ( * ) FROM tab1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7899
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE + col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE + col1 <> NULL
----

query I rowsort
SELECT ALL col2 + - 99 + - col0 FROM tab2
----
-116
-122
-123

query I rowsort
SELECT - - col2 + + 74 FROM tab2 AS cor0
----
114
132
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + ( 15 ) * 62 + + col2 col0 FROM tab2 AS cor0
----
-930

query I rowsort
SELECT DISTINCT col0 + - col2 * - 51 AS col0 FROM tab1 AS cor0
----
3094
3559
4947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT DISTINCT 62 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 - - + col0 - - - ( + col0 ) * col2 * CAST( + col0 AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT 62 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 - - + col0 - - - ( + col0 ) * col2 * CAST ( + col0 AS INTEGER ) AND - col1
----

query I rowsort
SELECT 35 + - col2 AS col2 FROM tab0
----
-12
-64
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7907
SELECT ALL + CAST( + + col1 AS SIGNED ) DIV - col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL + CAST ( + + col1 AS INTEGER ) / - col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + col0 + - col2 FROM tab0 WHERE NULL IS NULL
----
-2
-32
77

query I rowsort
SELECT 65 - + + col2 AS col0 FROM tab1 AS cor0
----
-3
-31
6

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 30 <= + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 ) NOT BETWEEN - - col1 + - col0 + + 83 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, + 30 FROM tab2 cor0
----
23
30
40
30
58
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7913
SELECT - COUNT( * ) AS col2, - MIN( ALL ( + + col1 ) ) AS col1 FROM tab2 AS cor0
----
-3
-51

skipif mysql # not compatible
query II rowsort label-7913
SELECT - COUNT ( * ) AS col2, - MIN ( ALL ( + + col1 ) ) AS col1 FROM tab2 AS cor0
----
-3
-51

query I rowsort
SELECT DISTINCT 28 * col2 * col2 AS col1 FROM tab1
----
129472
258048
97468

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7915
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT - + col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT - + CAST ( NULL AS REAL ) FROM tab1 WHERE NOT - + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT - SUM( - + 32 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-7916
SELECT - SUM ( - + 32 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1, + 94 AS col2, - + col0 col2 FROM tab1
----
9 values hashing to 5b3eed277cfa606205eb42455fe9b74a

query II rowsort
SELECT 64, 46 AS col2 FROM tab2
----
64
46
64
46
64
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT + SUM( DISTINCT + col2 ) * + - COUNT( * ) AS col2 FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-7919
SELECT + SUM ( DISTINCT + col2 ) * + - COUNT ( * ) AS col2 FROM tab2
----
-363

query II rowsort
SELECT ALL - col0, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT 6 * - - col2 AS col0 FROM tab2 AS cor0
----
138
240
348

query II rowsort
SELECT DISTINCT + col0 AS col0, 54 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + - 15 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT - COUNT( - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7923
SELECT - COUNT ( - col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-7924
SELECT col0 col1, col2 DIV col2 col2 FROM tab0 AS cor0
----
15
1
87
1
97
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7924
SELECT col0 col1, col2 / col2 col2 FROM tab0 AS cor0
----
15
1
87
1
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT - SUM( ALL - + ( - col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7925
SELECT - SUM ( ALL - + ( - col2 ) ) FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT ALL MAX( DISTINCT + ( + ( col0 ) ) ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL MAX ( DISTINCT + ( + ( col0 ) ) ) AS col2 FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7928
SELECT DISTINCT col2 DIV + - col2 + col2 AS col2 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT col2 / + - col2 + col2 AS col2 FROM tab1
----
58
67
95

query I rowsort
SELECT DISTINCT - - 32 * - col1 + col0 FROM tab2 cor0
----
-1586
-2069
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT DISTINCT - - COUNT( * ) * + MIN( 15 ) + + 62 + COUNT( * ) FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT - - COUNT ( * ) * + MIN ( 15 ) + + 62 + COUNT ( * ) FROM tab2 AS cor0
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-7931
SELECT - 9 DIV col2 col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7931
SELECT - 9 / col2 col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT DISTINCT - ( - COUNT( * ) ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT - ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL - + 2 * - ( + col1 ) FROM tab0 AS cor0
----
162
2
42

query II rowsort
SELECT - col1 + + col2, - 6 AS col0 FROM tab2 AS cor0
----
-28
-6
-37
-6
-9
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 7 * + col0 col0 FROM tab2 AS cor0
----
-322
-448
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT DISTINCT COUNT( col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT COUNT ( col1 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT + 71 + - COUNT( DISTINCT col1 ) AS col2 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-7937
SELECT + 71 + - COUNT ( DISTINCT col1 ) AS col2 FROM tab2
----
68

query I rowsort
SELECT ( + col0 ) * - col1 - - col0 * - col2 + - ( + + 97 ) * + - 29 * + col0 * - 97 + col1 AS col2 FROM tab1
----
-13921507
-23198620
-24840769

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT DISTINCT 57 * - COUNT( * ) + - - COUNT( * ) FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT 57 * - COUNT ( * ) + - - COUNT ( * ) FROM tab0
----
-168

onlyif mysql # DIV for integer division: 
query II rowsort label-7940
SELECT - col1 + ( col0 ) DIV + 76, - col2 col0 FROM tab2
----
-51
-23
-67
-58
-77
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7940
SELECT - col1 + ( col0 ) / + 76, - col2 col0 FROM tab2
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT DISTINCT - col0 * + + col1 * + col2 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL - + col1 + 44 + - 15 AS col1 FROM tab1 WHERE 7 NOT BETWEEN col1 AND + col0 + col2 - col2
----
-18
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT ALL - + ( - SUM( ALL + ( 26 ) ) ) * + 8 + + - 34 FROM tab0 AS cor0
----
590

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL - + ( - SUM ( ALL + ( 26 ) ) ) * + 8 + + - 34 FROM tab0 AS cor0
----
590

query I rowsort
SELECT ALL + - 99 - + 96 AS col2 FROM tab1 AS cor0
----
-195
-195
-195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7947
SELECT + - col1 * + CAST( + 95 AS SIGNED ) - col1 AS col1 FROM tab1 AS cor0
----
-1344
-4512
-480

skipif mysql # not compatible
query I rowsort label-7947
SELECT + - col1 * + CAST ( + 95 AS INTEGER ) - col1 AS col1 FROM tab1 AS cor0
----
-1344
-4512
-480

query I rowsort
SELECT ALL 10 + 83 FROM tab2
----
93
93
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT 72 DIV col1 AS col0 FROM tab0
----
0
3
72

skipif mysql # not compatible
query I rowsort label-7949
SELECT 72 / col1 AS col0 FROM tab0
----
0
3
72

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( 65 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT SUM( ALL + col0 ) * + COUNT( * ) AS col0 FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-7951
SELECT SUM ( ALL + col0 ) * + COUNT ( * ) AS col0 FROM tab2
----
555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT col0 * ( + 16 ) + + col1 / col2 AS col0 FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7952
SELECT col0 * ( + 16 ) + + col1 / col2 AS col0 FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * 13 col0 FROM tab0
----
-12
-252
-972

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT 12 * COUNT( * ) - ( 8 ) * 74 FROM tab1
----
-556

skipif mysql # not compatible
query I rowsort label-7955
SELECT 12 * COUNT ( * ) - ( 8 ) * 74 FROM tab1
----
-556

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT ALL COUNT( - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL COUNT ( - col2 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) > ( + 97 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT ( + col2 ) + CAST( NULL AS SIGNED ) FROM tab2 WHERE + col1 <= ( + 59 ) * + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT ( + col2 ) + CAST ( NULL AS INTEGER ) FROM tab2 WHERE + col1 <= ( + 59 ) * + col2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT - ( COUNT( DISTINCT 81 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7960
SELECT - ( COUNT ( DISTINCT 81 ) ) FROM tab0
----
-1

query I rowsort
SELECT - 18 + + col0 FROM tab2
----
28
46
57

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 - + col0 NOT IN ( 86 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT SUM( col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7963
SELECT SUM ( col2 ) AS col2 FROM tab0
----
156

query I rowsort
SELECT DISTINCT col0 * col0 + + col0 * - 11 AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
60
6612
8342

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7965
SELECT ALL SUM( DISTINCT + col1 ) FROM tab1 WHERE CAST( ( col2 ) AS DECIMAL ) * ( 65 + 65 * col0 ) IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL SUM ( DISTINCT + col1 ) FROM tab1 WHERE CAST ( ( col2 ) AS REAL ) * ( 65 + 65 * col0 ) IS NOT NULL
----
66

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( 96 ) FROM tab1
----
96

query I rowsort
SELECT - 15 + + col2 FROM tab0
----
-5
32
84

query I rowsort
SELECT - col0 + 23 AS col2 FROM tab2
----
-23
-41
-52

query I rowsort
SELECT DISTINCT - + 8 + col0 AS col2 FROM tab0 AS cor0
----
7
79
89

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 + - col2 * col1 IS NULL
----

query I rowsort
SELECT ALL - + 13 + - col0 * 91 AS col0 FROM tab2 AS cor0
----
-4199
-5837
-6838

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT + + col0 * + 62 FROM tab1 AS cor0
----
3162
5270
5642

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 <> ( col1 * + 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 53 ) < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT DISTINCT - - 26 * - COUNT( * ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT - - 26 * - COUNT ( * ) FROM tab1 AS cor0
----
-78

query I rowsort
SELECT DISTINCT - - 61 AS col2 FROM tab0 cor0
----
61

query I rowsort
SELECT - 26 AS col1 FROM tab1 cor0 WHERE 27 IS NOT NULL
----
-26
-26
-26

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab2
----
85

query I rowsort
SELECT col0 * col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
225
7569
9409

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7983
SELECT + COUNT( * ) * 26 + COUNT( * ) * + ( AVG ( DISTINCT + 22 ) ) AS col2 FROM tab1 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT + COUNT ( * ) * 26 + COUNT ( * ) * + ( AVG ( DISTINCT + 22 ) ) AS col2 FROM tab1 WHERE + CAST ( NULL AS REAL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + col1 * col0 - 98 AS col1 FROM tab1
----
327
4179
616

query I rowsort
SELECT ALL - 87 + + 78 FROM tab0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + col1 + - col0 AS col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT - 63 + + col1 FROM tab2
----
-12
14
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT SUM( DISTINCT + col0 ) + - 28 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-7988
SELECT SUM ( DISTINCT + col0 ) + - 28 FROM tab0
----
171

query I rowsort
SELECT - 50 + - col2 FROM tab1 cor0
----
-109
-118
-146

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT MIN( ALL 55 ) FROM tab0 AS cor0 WHERE - 91 IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7991
SELECT MIN ( ALL 55 ) FROM tab0 AS cor0 WHERE - 91 IN ( col2 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7993
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - + col0 * - 32 - col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - + col0 * - 32 - col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT 21 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7995
SELECT - ( - + CAST( - 63 AS SIGNED ) ) col1 FROM tab2
----
-63
-63
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7995
SELECT - ( - + CAST ( - 63 AS INTEGER ) ) col1 FROM tab2
----
-63
-63
-63

query I rowsort
SELECT ALL + 64 * - ( + - col1 ) AS col0 FROM tab0
----
1344
5184
64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 41 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT ALL - col0 DIV + ( + col1 ) + 63 FROM tab1 AS cor0
----
46
60
62

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL - col0 / + ( + col1 ) + 63 FROM tab1 AS cor0
----
46
60
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7999
SELECT DISTINCT + 44 col1, COUNT( * ) - - ( COUNT( * ) ) + - 4 col1 FROM tab0 cor0
----
44
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7999
SELECT DISTINCT + 44 col1, COUNT ( * ) - - ( COUNT ( * ) ) + - 4 col1 FROM tab0 cor0
----
44
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT 45 + col1 col1 FROM tab0 cor0 WHERE NOT NULL IN ( - CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8000
SELECT 45 + col1 col1 FROM tab0 cor0 WHERE NOT NULL IN ( - CAST ( col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT + - MAX( ALL - - col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8001
SELECT + - MAX ( ALL - - col0 ) AS col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL - col0 * - 18 FROM tab0 AS cor0
----
1566
1746
270

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8003
SELECT ALL - CAST( NULL AS DECIMAL ) + + col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL - CAST ( NULL AS REAL ) + + col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col1 )
----

query II rowsort
SELECT ALL - 80 * 4 AS col0, - col1 + + + col0 + col2 AS col0 FROM tab1
----
-320
112
-320
133
-320
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT - MAX( - ( 10 ) ) * - ( + 19 ) AS col2 FROM tab2
----
-190

skipif mysql # not compatible
query I rowsort label-8005
SELECT - MAX ( - ( 10 ) ) * - ( + 19 ) AS col2 FROM tab2
----
-190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8006
SELECT + SUM( ALL + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT 47 * + CAST( + - col1 AS SIGNED ) * - col0 * - col0 AS col2 FROM tab1
----
-1697875
-1711458
-18292729

skipif mysql # not compatible
query I rowsort label-8007
SELECT 47 * + CAST ( + - col1 AS INTEGER ) * - col0 * - col0 AS col2 FROM tab1
----
-1697875
-1711458
-18292729

query I rowsort
SELECT ALL 95 * col0 FROM tab0 WHERE NULL NOT IN ( + 65 * - col2 / - ( - 45 * col0 ) )
----

query I rowsort
SELECT ALL - col0 + - 6 AS col0 FROM tab1 WHERE NOT ( - 87 ) <> + col1
----

query I rowsort
SELECT - col2 * - col2 + - + col2 FROM tab2
----
1560
3306
506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8011
SELECT DISTINCT - COUNT( * ) * - MIN( DISTINCT + + 11 ) * - COUNT( - 1 ) DIV COUNT( * ) + - 80 col2 FROM tab1
----
-113

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8011
SELECT DISTINCT - COUNT ( * ) * - MIN ( DISTINCT + + 11 ) * - COUNT ( - 1 ) / COUNT ( * ) + - 80 col2 FROM tab1
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8012
SELECT ALL 27 DIV COUNT( - - 30 ) AS col2 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL 27 / COUNT ( - - 30 ) AS col2 FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8013
SELECT DISTINCT - 87 DIV MAX( ALL + ( col1 ) ) + + COUNT( * ) * + COUNT( - col1 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT - 87 / MAX ( ALL + ( col1 ) ) + + COUNT ( * ) * + COUNT ( - col1 ) FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + MAX( ALL 32 ) * + COUNT( * ) + + COUNT( * ) col0 FROM tab2 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8014
SELECT + MAX ( ALL 32 ) * + COUNT ( * ) + + COUNT ( * ) col0 FROM tab2 cor0
----
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( col0 ) IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 * + 75 col1 FROM tab1
----
7050

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 78 / - col0 NOT BETWEEN NULL AND ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0 + + col2 ) AND 92 NOT BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT col2 + - 16 DIV - col1 FROM tab0 AS cor0
----
10
115
47

skipif mysql # not compatible
query I rowsort label-8019
SELECT col2 + - 16 / - col1 FROM tab0 AS cor0
----
10
115
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT 68 + + COUNT( * ) col2 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8020
SELECT 68 + + COUNT ( * ) col2 FROM tab0 AS cor0
----
71

query I rowsort
SELECT DISTINCT - 54 - + 31 AS col0 FROM tab1 AS cor0
----
-85

query II rowsort
SELECT ALL - + 34 AS col2, + col1 FROM tab0 AS cor0
----
-34
1
-34
21
-34
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT COUNT( * ) + - - COUNT( + 69 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8023
SELECT COUNT ( * ) + - - COUNT ( + 69 ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL - COUNT( - 72 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL - COUNT ( - 72 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL 46 * 61 FROM tab0, tab0 AS cor0
----
9 values hashing to fdf56fc799eeab40aefdce2e91bd4d7a

query I rowsort
SELECT DISTINCT + ( - 13 ) AS col2 FROM tab2
----
-13

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + + col2 > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL - ( COUNT( * ) ) FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL - ( COUNT ( * ) ) FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----
0

query II rowsort
SELECT + col1 AS col2, col1 * 64 FROM tab2
----
51
3264
67
4288
77
4928

query I rowsort
SELECT DISTINCT col0 + + - 96 AS col2 FROM tab1
----
-11
-45
-5

query I rowsort
SELECT ALL col1 + + + col0 FROM tab0
----
108
96
98

query I rowsort
SELECT col1 FROM tab0 WHERE ( NOT ( col2 ) <= col1 )
----
1

query I rowsort
SELECT DISTINCT - 99 * 28 AS col1 FROM tab1
----
-2772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8034
SELECT - CAST( NULL AS SIGNED ) - - col0 * + + 59 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8034
SELECT - CAST ( NULL AS INTEGER ) - - col0 * + + 59 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 41 col1 FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT COUNT( * ) - - 16 AS col1 FROM tab0 WHERE NOT ( - 32 ) BETWEEN NULL AND NULL
----
16

skipif mysql # not compatible
query I rowsort label-8036
SELECT COUNT ( * ) - - 16 AS col1 FROM tab0 WHERE NOT ( - 32 ) BETWEEN NULL AND NULL
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT ALL + COUNT( + - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL + COUNT ( + - col1 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - - col1
----

query I rowsort
SELECT col2 * + ( ( - + col2 ) ) * - col0 AS col2 FROM tab0
----
33135
8700
950697

query II rowsort
SELECT ALL + ( + col0 ), col1 * - col1 * - col0 + col0 AS col2 FROM tab1 WHERE NOT 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT ALL - - SUM( + + col0 ) * + COUNT( * ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL - - SUM ( + + col0 ) * + COUNT ( * ) FROM tab1 AS cor0
----
681

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT + col0 DIV col0 * - + 69 FROM tab0 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-8042
SELECT + col0 / col0 * - + 69 FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT ALL + col1 / CAST( NULL AS SIGNED ) + + 67 * + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL + col1 / CAST ( NULL AS INTEGER ) + + 67 * + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 27
----

query I rowsort
SELECT + - 63 AS col1 FROM tab2 AS cor0
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - + 80 col2 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 > + + col1 / + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT - + col0 NOT IN ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-8048
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT - + col0 NOT IN ( - col0 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT - 18 * + - MIN( - + col0 ) AS col0 FROM tab2
----
-1350

skipif mysql # not compatible
query I rowsort label-8049
SELECT - 18 * + - MIN ( - + col0 ) AS col0 FROM tab2
----
-1350

query II rowsort
SELECT 59, - col1 + + col1 AS col0 FROM tab1
----
59
0
59
0
59
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( col0 + + + col2 * + col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col2 FROM tab0
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 + - ( + col2 ) + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT + MIN( + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8054
SELECT + MIN ( + col0 ) AS col2 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8055
SELECT DISTINCT + CAST( + col2 AS SIGNED ) + - col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + - col0 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8056
SELECT ALL + - col2 FROM tab2 WHERE CAST( NULL AS DECIMAL ) = - 32
----

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL + - col2 FROM tab2 WHERE CAST ( NULL AS REAL ) = - 32
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 25 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 WHERE + - 52 IS NULL
----

query I rowsort
SELECT ALL - + col0 + + + 25 + + 93 * col0 AS col1 FROM tab1 AS cor0
----
4717
7845
8397

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( 6 )
----

query I rowsort
SELECT - 3 AS col2 FROM tab0 AS cor0 WHERE + 66 = col2 - + - 87
----

query I rowsort
SELECT ALL - 97 - - col1 + col0 FROM tab2 AS cor0
----
0
44
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT DISTINCT + ( + - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col1 + - + col0 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT DISTINCT 9 - - ( + COUNT( * ) ) - + 96 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT 9 - - ( + COUNT ( * ) ) - + 96 FROM tab1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT - col0 + CAST( - - col2 AS SIGNED ) AS col2 FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-8069
SELECT - col0 + CAST ( - - col2 AS INTEGER ) AS col2 FROM tab0
----
-77
2
32

query I rowsort
SELECT - col1 + + - col0 * 26 AS col0 FROM tab1
----
-1340
-2215
-2413

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> - col1 * - - col1 + + col1 * - col0 / - 33
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 30 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT SUM( - - 16 ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-8073
SELECT SUM ( - - 16 ) FROM tab2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8074
SELECT + col0 FROM tab1 WHERE + col1 * - col2 / + col2 NOT IN ( + ( + - col2 ) / CAST( + col2 AS SIGNED ) ) OR NOT - 21 + col1 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8074
SELECT + col0 FROM tab1 WHERE + col1 * - col2 / + col2 NOT IN ( + ( + - col2 ) / CAST ( + col2 AS INTEGER ) ) OR NOT - 21 + col1 IS NULL
----
51
85
91

query I rowsort
SELECT 24 * + - col0 AS col2 FROM tab2
----
-1104
-1536
-1800

query I rowsort
SELECT DISTINCT + + 33 FROM tab2 cor0
----
33

query II rowsort
SELECT DISTINCT + + col1 AS col0, - col2 * + - col0 AS col1 FROM tab0 cor0
----
1
9603
21
870
81
705

query I rowsort
SELECT ALL 56 + - 59 FROM tab0 AS cor0 WHERE NOT col0 * + - col0 <> + + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT DISTINCT + - COUNT( DISTINCT 51 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT + - COUNT ( DISTINCT 51 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 ) BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8081
SELECT ALL - + 94 AS col1, SUM( ALL + + col2 ) AS col2 FROM tab2 AS cor0
----
-94
121

skipif mysql # not compatible
query II rowsort label-8081
SELECT ALL - + 94 AS col1, SUM ( ALL + + col2 ) AS col2 FROM tab2 AS cor0
----
-94
121

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 15 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col0, + col1 * - col2 col1 FROM tab2 AS cor0
----
-51
-1173
-67
-3886
-77
-3080

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - 87 IS NULL )
----

query I rowsort
SELECT ALL 82 * col0 * + - ( + - col0 ) AS col0 FROM tab1
----
213282
592450
679042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 77 col2 FROM tab1
----
124
82
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8087
SELECT DISTINCT 27 DIV - MIN( - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT 27 / - MIN ( - col0 ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE - - 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8089
SELECT ALL - SUM( DISTINCT 93 ) + COUNT( * ) DIV - COUNT( * ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL - SUM ( DISTINCT 93 ) + COUNT ( * ) / - COUNT ( * ) FROM tab0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8090
SELECT + ( - MIN( DISTINCT - + 98 ) ), - COUNT( * ) - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-8090
SELECT + ( - MIN ( DISTINCT - + 98 ) ), - COUNT ( * ) - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
98
NULL

query I rowsort
SELECT 95 FROM tab0 AS cor0 WHERE col1 * - - col0 > col2 / - col0 + + ( + col0 ) - - 9 / - - col0 * - col1 * + + 17 * 31
----
95
95
95

query I rowsort
SELECT ALL - + col2 * - 86 AS col0 FROM tab1 AS cor0
----
5074
5848
8256

query I rowsort
SELECT ALL - 94 FROM tab0 AS cor0 WHERE 87 + 17 NOT IN ( col0 )
----
-94
-94
-94

query I rowsort
SELECT ALL - col1 + 1 AS col0 FROM tab0 AS cor0
----
-20
-80
0

query I rowsort
SELECT + ( 76 ) + col1 AS col0 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT DISTINCT - - 43 DIV + col1 FROM tab1 AS cor0
----
0
3
8

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT - - 43 / + col1 FROM tab1 AS cor0
----
0
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT DISTINCT - - 44 + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT - - 44 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
47

query I rowsort
SELECT ALL - 30 - + - col2 FROM tab1 AS cor0
----
29
38
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8099
SELECT - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) / - - col2 * + - col2 * - + ( - 2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8099
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) / - - col2 * + - col2 * - + ( - 2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT ALL col1 * - + ( ( 35 ) ) * - + col2 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL col1 * - + ( ( 35 ) ) * - + col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT DISTINCT + 68 / - col0 + ( + CAST( NULL AS SIGNED ) ) + + col1 - col2 - 28 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT + 68 / - col0 + ( + CAST ( NULL AS INTEGER ) ) + + col1 - col2 - 28 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 * - col1 * col0 col0 FROM tab0
----
-120285
-180873
-9603

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT DISTINCT - 31 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT - 31 / col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8105
SELECT DISTINCT - col2 col1 FROM tab0 WHERE NOT + col1 + + + CAST( + - ( col2 ) AS SIGNED ) + + col0 + 36 IS NULL
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8105
SELECT DISTINCT - col2 col1 FROM tab0 WHERE NOT + col1 + + + CAST ( + - ( col2 ) AS INTEGER ) + + col0 + 36 IS NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT ALL ( + col2 ) DIV col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL ( + col2 ) / col1 FROM tab1
----
1
11
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - - ( + col1 ) col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( - 46 ) AS col0 FROM tab1
----
-46
-46
-46

query I rowsort
SELECT + col1 + + 79 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
126
84
93

query I rowsort
SELECT col0 * - 13 * + + col2 AS col1 FROM tab0 AS cor0
----
-11310
-124839
-9165

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 7 < ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + col0
----

query I rowsort
SELECT DISTINCT - + 68 + - + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT + MIN( DISTINCT 90 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + MIN ( DISTINCT 90 ) FROM tab0
----
90

query II rowsort
SELECT ALL - - col0 AS col1, + col1 AS col2 FROM tab1 WHERE NOT - ( + 90 ) BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT DISTINCT - COUNT( * ) * 46 * - + 42 FROM tab2
----
5796

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT - COUNT ( * ) * 46 * - + 42 FROM tab2
----
5796

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ALL COUNT( col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL COUNT ( col1 ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col0 FROM tab2 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT + COUNT( - ( + + 50 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8119
SELECT + COUNT ( - ( + + 50 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - ( + col1 ) + + col1 <= col1
----

query I rowsort
SELECT DISTINCT - - 9 * - + col2 * 2 AS col0 FROM tab0 AS cor0
----
-1782
-180
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8122
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 > NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + - col1 < NULL OR - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8124
SELECT + ( + 65 ) DIV - - col0 + - col2 FROM tab0
----
-10
-43
-99

skipif mysql # not compatible
query I rowsort label-8124
SELECT + ( + 65 ) / - - col0 + - col2 FROM tab0
----
-10
-43
-99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - + 30 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT + COUNT( ALL + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8126
SELECT + COUNT ( ALL + col1 ) AS col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, + col2 FROM tab0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - - col0 col2 FROM tab2
----
128
150
92

query I rowsort
SELECT + + 66 + + col2 FROM tab0 AS cor0
----
113
165
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 67 * - col1 * + col1 <> NULL
----

query I rowsort
SELECT 36 + + 5 * + + col0 FROM tab1
----
291
461
491

query I rowsort
SELECT ALL 11 - + 23 FROM tab0
----
-12
-12
-12

query I rowsort
SELECT + 77 * 9 AS col1 FROM tab1
----
693
693
693

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - col1 ) > + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL + MAX( ALL - 30 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-30

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL + MAX ( ALL - 30 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-30

query I rowsort
SELECT DISTINCT - col2 + 92 AS col2 FROM tab2
----
34
52
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ALL + 74 * MAX( - 84 ) + 49 * - MIN( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-9107

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL + 74 * MAX ( - 84 ) + 49 * - MIN ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-9107

query I rowsort
SELECT + + 87 - + 23 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT - MAX( DISTINCT + + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8139
SELECT - MAX ( DISTINCT + + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col1 * + 77 + - 93 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8141
SELECT 93 AS col0, + 76 * CAST( NULL AS SIGNED ) + + col2 * + + 5 FROM tab2
----
93
NULL
93
NULL
93
NULL

skipif mysql # not compatible
query II rowsort label-8141
SELECT 93 AS col0, + 76 * CAST ( NULL AS INTEGER ) + + col2 * + + 5 FROM tab2
----
93
NULL
93
NULL
93
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + + - 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL 17 * - MAX( ALL - col2 ) * + + COUNT( * ) col0 FROM tab1
----
3009

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8143
SELECT ALL 17 * - MAX ( ALL - col2 ) * + + COUNT ( * ) col0 FROM tab1
----
3009

onlyif mysql # aggregate syntax: 
query II rowsort label-8144
SELECT + COUNT( * ) col2, - COUNT( + 27 ) AS col2 FROM tab2
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8144
SELECT + COUNT ( * ) col2, - COUNT ( + 27 ) AS col2 FROM tab2
----
3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8145
SELECT ALL CAST( AVG ( col2 ) AS SIGNED ) AS col2, - CAST( - MAX( DISTINCT - + 46 ) AS SIGNED ) FROM tab2
----
40
-46

skipif mysql # not compatible
query II rowsort label-8145
SELECT ALL CAST ( AVG ( col2 ) AS INTEGER ) AS col2, - CAST ( - MAX ( DISTINCT - + 46 ) AS INTEGER ) FROM tab2
----
40
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 78 AS col0, 61 col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( + + 88 ) AS col0 FROM tab1
----
88

query I rowsort
SELECT ALL col2 * - 0 * - 25 AS col0 FROM tab0 WHERE NOT ( + + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + col2 * + - col1 * + col2
----

query II rowsort
SELECT ALL 25 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
25
-51
25
-67
25
-77

query I rowsort
SELECT DISTINCT + 25 FROM tab0 AS cor0 WHERE NOT - 48 IS NULL
----
25

query II rowsort
SELECT col0, col2 * col2 FROM tab2 AS cor0
----
46
529
64
1600
75
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT MAX( + 84 ) col1 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8153
SELECT MAX ( + 84 ) col1 FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT + 64 * + COUNT( * ) FROM tab2 WHERE NOT 58 * - - col0 * + col2 IS NULL
----
192

skipif mysql # not compatible
query I rowsort label-8154
SELECT + 64 * + COUNT ( * ) FROM tab2 WHERE NOT 58 * - - col0 * + col2 IS NULL
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT ALL - COUNT( col0 ) + - - AVG ( DISTINCT col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL - COUNT ( col0 ) + - - AVG ( DISTINCT col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 77 + col0 + 76 AS col1 FROM tab0 AS cor0
----
168
240
250

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
3

query I rowsort
SELECT 39 AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT col2 + - + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 72 + + col1 AS col0 FROM tab2 AS cor0
----
-21
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT - MIN( ( + 57 ) ) * - COUNT( * ) + + 77 AS col0 FROM tab1
----
248

skipif mysql # not compatible
query I rowsort label-8161
SELECT - MIN ( ( + 57 ) ) * - COUNT ( * ) + + 77 AS col0 FROM tab1
----
248

query I rowsort
SELECT + col2 + 60 FROM tab1
----
119
128
156

query I rowsort
SELECT col2 * + + col1 + + 43 AS col1 FROM tab2
----
1216
3123
3929

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT ALL ( + - col0 ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 WHERE NULL > + - col2
----

query I rowsort
SELECT DISTINCT col2 * 63 + + col1 + - + 12 * 22 * - col1 AS col2 FROM tab1
----
16739
5042
9758

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8168
SELECT COUNT( * ) * COUNT( * ) DIV + - 7 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8168
SELECT COUNT ( * ) * COUNT ( * ) / + - 7 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT + + COUNT( * ) + - SUM( DISTINCT + + 62 ) AS col2 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT + + COUNT ( * ) + - SUM ( DISTINCT + + 62 ) AS col2 FROM tab2 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT DISTINCT CAST( - 53 AS SIGNED ) + + 36 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT CAST ( - 53 AS INTEGER ) + + 36 FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT SUM( - 87 ) - - + COUNT( * ) * COUNT( * ) FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-8171
SELECT SUM ( - 87 ) - - + COUNT ( * ) * COUNT ( * ) FROM tab0
----
-252

query III rowsort
SELECT * FROM tab2 WHERE col0 - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE col0 * + 67 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT - SUM( - 28 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
252

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT - SUM ( - 28 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + - + 30 col2 FROM tab2
----
2316
4898
4995

query I rowsort
SELECT - col2 + + - 89 AS col2 FROM tab2
----
-112
-129
-147

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - ( - + col2 ) < NULL
----

query I rowsort
SELECT - col0 * + - 71 FROM tab0 AS cor0
----
1065
6177
6887

query I rowsort
SELECT DISTINCT - col1 * 63 + 4 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 * + + col0 + 19 * - 98
----

query I rowsort
SELECT - - col1 * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT + ( col1 ) IS NULL
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT + CAST( + - col2 AS SIGNED ) AS col1 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8181
SELECT + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT + + col0, 58 FROM tab2 cor0
----
46
58
64
58
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT ALL + + 98 DIV - 42 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL + + 98 / - 42 FROM tab1 AS cor0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 60 col2 FROM tab0 AS cor0
----
60
60
60

query II rowsort
SELECT col1, 1 FROM tab1 AS cor0
----
14
1
47
1
5
1

query I rowsort
SELECT DISTINCT + 66 FROM tab2 AS cor0 WHERE NULL IS NULL
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT DISTINCT + COUNT( * ) * + 94 AS col2 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT + COUNT ( * ) * + 94 AS col2 FROM tab0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT ALL COUNT( * ) * + 31 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL COUNT ( * ) * + 31 FROM tab0
----
93

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <= NULL
----

query I rowsort
SELECT col0 + + 84 + 56 + 82 FROM tab1
----
273
307
313

query I rowsort
SELECT DISTINCT - 10 + + - col1 AS col0 FROM tab2 AS cor0
----
-61
-77
-87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 93 NOT BETWEEN + + col2 AND NULL
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8193
SELECT 25 + AVG ( DISTINCT - CAST( - + 39 AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8193
SELECT 25 + AVG ( DISTINCT - CAST ( - + 39 AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT - COUNT( * ) + + 60 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT - COUNT ( * ) + + 60 FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT DISTINCT ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
3

query I rowsort
SELECT DISTINCT 91 AS col0 FROM tab2 AS cor0 WHERE NOT + 99 * - 55 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8198
SELECT 31 * - + col2 DIV - col2 AS col2 FROM tab0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-8198
SELECT 31 * - + col2 / - col2 AS col2 FROM tab0
----
31
31
31

query I rowsort
SELECT ( - 39 ) + col1 * col1 * - col2 * + - col2 FROM tab2
----
1375890
15100957
9486361

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT - COUNT( * ) col0 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8200
SELECT - COUNT ( * ) col0 FROM tab0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8201
SELECT ALL ( - + COUNT( * ) ) DIV - 41 + + 38 AS col0 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL ( - + COUNT ( * ) ) / - 41 + + 38 AS col0 FROM tab0 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT DISTINCT - col0 DIV + 43 + - ( + col0 ) FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT - col0 / + 43 + - ( + col0 ) FROM tab2 AS cor0
----
-47
-65
-76

query I rowsort
SELECT DISTINCT + + 17 - col1 FROM tab0 AS cor0
----
-4
-64
16

query I rowsort
SELECT + - 21 FROM tab1 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL 50 - 93 - MIN( ALL + col2 ) AS col2 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL 50 - 93 - MIN ( ALL + col2 ) AS col2 FROM tab2
----
-66

query I rowsort
SELECT - 32 + + 37 FROM tab1 WHERE + col2 <= - 78
----

query II rowsort
SELECT DISTINCT - col2 * - - 45 + + 64, + ( 44 ) AS col1 FROM tab0
----
-2051
44
-386
44
-4391
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + 32 * - + SUM( 95 ) AS col1 FROM tab2 AS cor0
----
-9120

skipif mysql # not compatible
query I rowsort label-8208
SELECT + 32 * - + SUM ( 95 ) AS col1 FROM tab2 AS cor0
----
-9120

onlyif mysql # aggregate syntax: 
query II rowsort label-8209
SELECT ALL - + 4 * + 61 + - - 20, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-224
3

skipif mysql # not compatible
query II rowsort label-8209
SELECT ALL - + 4 * + 61 + - - 20, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-224
3

query II rowsort
SELECT DISTINCT 16 AS col0, - 13 * + + 26 FROM tab1 AS cor0
----
16
-338

query I rowsort
SELECT - 37 * - col2 + col2 + - col2 FROM tab2 AS cor0
----
1480
2146
851

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8213
SELECT ALL + COUNT( * ) col0, - 78 FROM tab0 cor0
----
3
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8213
SELECT ALL + COUNT ( * ) col0, - 78 FROM tab0 cor0
----
3
-78

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT ( 73 ) AS col1 FROM tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT COUNT( DISTINCT + 54 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8216
SELECT COUNT ( DISTINCT + 54 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT DISTINCT - CAST( - - col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT 12 * COUNT( + - 75 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-8218
SELECT 12 * COUNT ( + - 75 ) FROM tab1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8219
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8220
SELECT ALL * FROM tab1 WHERE NOT - col2 * + - col1 >= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8220
SELECT ALL * FROM tab1 WHERE NOT - col2 * + - col1 >= + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col1 * 94 * + col1 AS col1 FROM tab1
----
18424
207646
2350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 * - 84 col0 FROM tab2
----
-2352
-2352
-2352

query II rowsort
SELECT ALL 69 * - + col1, col2 FROM tab1
----
-3243
68
-345
59
-966
96

query III rowsort
SELECT - col1 AS col1, + col2, + + 85 AS col0 FROM tab2
----
9 values hashing to ec99526c92bbf36117148849758badbb

query I rowsort
SELECT ALL col2 * - - col0 AS col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT col1 * + - col1 AS col1 FROM tab1
----
-196
-2209
-25

query II rowsort
SELECT DISTINCT + col1, + col0 * col0 AS col2 FROM tab0
----
1
9409
21
7569
81
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * + + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * + + col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 24 * + - col1 AS col0 FROM tab2 AS cor0
----
-1224
-1608
-1848

query II rowsort
SELECT - + col1, col0 AS col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL + 42 AS col0 FROM tab0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT + 45 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8234
SELECT * FROM tab0 AS cor0 WHERE col2 * - CAST( NULL AS SIGNED ) + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8234
SELECT * FROM tab0 AS cor0 WHERE col2 * - CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col0 + - col2 - + col0 + + col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8236
SELECT DISTINCT + col0 * 61 DIV col2 FROM tab0 AS cor0
----
19
530
59

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT + col0 * 61 / col2 FROM tab0 AS cor0
----
19
530
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT + MAX( - - col1 ) + - - SUM( - + col2 ) FROM tab2 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8237
SELECT + MAX ( - - col1 ) + - - SUM ( - + col2 ) FROM tab2 cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT SUM( ALL + 54 ) + 45 - - + 50 - - + 46 FROM tab1 AS cor0
----
303

skipif mysql # not compatible
query I rowsort label-8238
SELECT SUM ( ALL + 54 ) + 45 - - + 50 - - + 46 FROM tab1 AS cor0
----
303

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT + MIN( ALL - col1 ) + + 62 + - COUNT( * ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8239
SELECT + MIN ( ALL - col1 ) + + 62 + - COUNT ( * ) FROM tab2 AS cor0
----
-18

query III rowsort
SELECT * FROM tab0 WHERE - col0 <> ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 26 AS col0 FROM tab2
----
26
26
26

query I rowsort
SELECT col2 * + - col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL COUNT( * ) * + 4 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL COUNT ( * ) * + 4 FROM tab0
----
12

query I rowsort
SELECT ALL col2 + 63 AS col2 FROM tab2
----
103
121
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT DISTINCT - COUNT( * ) + + 80 AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT - COUNT ( * ) + + 80 AS col0 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT DISTINCT col0 col0 FROM tab0 WHERE NOT col0 < + col2 * - CAST( NULL AS SIGNED ) / + - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8246
SELECT DISTINCT col0 col0 FROM tab0 WHERE NOT col0 < + col2 * - CAST ( NULL AS INTEGER ) / + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT DISTINCT - COUNT( + - 86 ) AS col2 FROM tab1 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT - COUNT ( + - 86 ) AS col2 FROM tab1 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT - MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8248
SELECT - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT col2 + + ( 75 ) FROM tab0 AS cor0
----
122
174
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT - - MIN( ALL + col1 ) - - 54 col1 FROM tab0 cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8250
SELECT - - MIN ( ALL + col1 ) - - 54 col1 FROM tab0 cor0
----
55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - + col2 + - ( 32 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8252
SELECT + 11 DIV - - col1 + - col0 AS col1 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8252
SELECT + 11 / - - col1 + - col0 AS col1 FROM tab2 cor0
----
-46
-64
-75

query II rowsort
SELECT DISTINCT + ( + + col0 ), col2 + + col2 * + + col1 AS col1 FROM tab1 AS cor0
----
51
1440
85
354
91
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT - SUM( ALL + ( col1 ) ) - 90 col1 FROM tab2 AS cor0 WHERE NOT + col0 * + col2 * 18 >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8254
SELECT - SUM ( ALL + ( col1 ) ) - 90 col1 FROM tab2 AS cor0 WHERE NOT + col0 * + col2 * 18 >= NULL
----
NULL

query I rowsort
SELECT col1 * - + col2 * - - col0 - - 66 FROM tab2 AS cor0
----
-197054
-291384
-53892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8256
SELECT DISTINCT + 44 * COUNT( * ) FROM tab2 AS cor0 WHERE col0 * CAST( - - col2 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT + 44 * COUNT ( * ) FROM tab2 AS cor0 WHERE col0 * CAST ( - - col2 AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT DISTINCT 99 * COUNT( * ) * 34 col1 FROM tab1 AS cor0
----
10098

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8257
SELECT DISTINCT 99 * COUNT ( * ) * 34 col1 FROM tab1 AS cor0
----
10098

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + - col0 + + col2 * + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT + SUM( DISTINCT - 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8259
SELECT + SUM ( DISTINCT - 0 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 63 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8261
SELECT ALL CAST( - + CAST( ( - 14 ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL CAST ( - + CAST ( ( - 14 ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
14
14
14

query I rowsort
SELECT + col2 * 1 + - - col2 * + col2 AS col0 FROM tab0 AS cor0
----
110
2256
9900

onlyif mysql # DIV for integer division: 
query I rowsort label-8263
SELECT - + col0 DIV - + col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8263
SELECT - + col0 / - + col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT - col1 * - 95 * - 79 AS col1 FROM tab0 AS cor0
----
-157605
-607905
-7505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8265
SELECT col2 / + col0 * col2 / + 48 + + col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-8265
SELECT col2 / + col0 * col2 / + 48 + + col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - - col2 ), 15 col1 FROM tab2 AS cor0
----
23
15
40
15
58
15

query II rowsort
SELECT - col0 AS col1, - 47 AS col0 FROM tab1 cor0
----
-51
-47
-85
-47
-91
-47

query I rowsort
SELECT ALL - + 50 + - ( col2 ) FROM tab0 AS cor0
----
-149
-60
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col2 * + col0 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-23
1058
-40
2560
-58
4350

query I rowsort
SELECT ALL - + 55 * - col0 FROM tab2 AS cor0
----
2530
3520
4125

query I rowsort
SELECT ALL - + 97 * + + col2 + col0 FROM tab0 cor0
----
-4544
-883
-9506

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT DISTINCT + col0 DIV + - col2 + - col2 FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT + col0 / + - col2 + - col2 FROM tab1 AS cor0
----
-60
-69
-96

query I rowsort
SELECT + 8 AS col2 FROM tab2 cor0 WHERE + col2 < + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT DISTINCT - SUM( ALL + + col0 ) * - MIN( - col0 ) AS col0 FROM tab0
----
-19303

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT - SUM ( ALL + + col0 ) * - MIN ( - col0 ) AS col0 FROM tab0
----
-19303

query I rowsort
SELECT - ( - col0 ) - ( - col1 ) + col2 * - col0 FROM tab0
----
-609
-762
-9505

query I rowsort
SELECT 98 * + - col0 + col2 * + - 27 + - col0 FROM tab0
----
-12276
-2754
-8883

query II rowsort
SELECT col0 + 94 AS col2, - col0 FROM tab2
----
140
-46
158
-64
169
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT DISTINCT CAST( - - col0 AS SIGNED ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL col1 * + col2 * col1 + - col0 FROM tab0
----
2
308352
4323

query II rowsort
SELECT ALL - 52 + + col1 AS col1, col2 - + 63 AS col2 FROM tab1 cor0
----
-38
33
-47
-4
-5
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 29
----

query I rowsort
SELECT + 10 FROM tab2 cor0 WHERE NOT NULL <> + col0
----

query II rowsort
SELECT DISTINCT 80 AS col0, col2 FROM tab0
----
80
10
80
47
80
99

query II rowsort
SELECT ALL 70, 0 AS col0 FROM tab2
----
70
0
70
0
70
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8285
SELECT ALL - 27, - CAST( NULL AS SIGNED ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to 91d91fc5e4d178256273fa551ed558d6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8285
SELECT ALL - 27, - CAST ( NULL AS INTEGER ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to 91d91fc5e4d178256273fa551ed558d6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + AVG ( + - col1 ) ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > + col1
----
NULL

query I rowsort
SELECT DISTINCT + - 3 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 3 <> - 69 * - 72 + - + col2 * + 7 / - col1
----

query II rowsort
SELECT + col1, + col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 AS col2, col2 + col2 + + col0 * - + col1 col0 FROM tab0 AS cor0
----
1
101
21
-1807
81
-1121

query I rowsort
SELECT ( - 33 ) AS col2 FROM tab0
----
-33
-33
-33

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 42 * - col0 + 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT + ( + MIN( + + 59 ) ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-8293
SELECT + ( + MIN ( + + 59 ) ) FROM tab2
----
59

query I rowsort
SELECT col0 + + + col0 FROM tab0
----
174
194
30

query I rowsort
SELECT - col0 + + col1 + + 55 + col0 FROM tab1
----
102
60
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT - COUNT( - - col1 ) + - COUNT( ALL - col2 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-8296
SELECT - COUNT ( - - col1 ) + - COUNT ( ALL - col2 ) FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8297
SELECT + 10 + + 30 col0, + COUNT( * ) AS col2 FROM tab0
----
40
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8297
SELECT + 10 + + 30 col0, + COUNT ( * ) AS col2 FROM tab0
----
40
3

query I rowsort
SELECT DISTINCT - + 15 + - ( - - col0 ) FROM tab1 AS cor0
----
-100
-106
-66

query I rowsort
SELECT + ( - ( - 14 ) ) * + col0 + - - 70 AS col2 FROM tab2 AS cor0
----
1120
714
966

query II rowsort
SELECT DISTINCT + 85 * + - col2 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
-5015
-85
-5780
-91
-8160
-51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 IN ( - col2 * + + col2 + + 66, + col0 / - col2 - col1, - 23, + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT + 18 * + COUNT( * ) FROM tab0 cor0
----
54

skipif mysql # not compatible
query I rowsort label-8302
SELECT + 18 * + COUNT ( * ) FROM tab0 cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8303
SELECT DISTINCT col0 DIV + + 21 AS col0 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT col0 / + + 21 AS col0 FROM tab0
----
0
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8304
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8305
SELECT - COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8305
SELECT - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ALL - SUM( + 72 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
648

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL - SUM ( + 72 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
648

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 78 / + col2 + - - col2 AND NULL
----

query I rowsort
SELECT ALL + - col2 + - col1 - - - 23 AS col1 FROM tab1 AS cor0
----
-133
-138
-87

query I rowsort
SELECT + col2 + 28 * - ( 67 ) FROM tab0 AS cor0
----
-1777
-1829
-1866

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 66 IS NULL
----

query I rowsort
SELECT col1 + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col0 col1 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE 78 + + - col0 * + 0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8313
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE 78 + + - col0 * + 0 IS NULL
----
0

query I rowsort
SELECT + ( 64 ) AS col1 FROM tab1
----
64
64
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8315
SELECT CAST( 9 AS SIGNED ) AS col0, + COUNT( * ) FROM tab2
----
9
3

skipif mysql # not compatible
query II rowsort label-8315
SELECT CAST ( 9 AS INTEGER ) AS col0, + COUNT ( * ) FROM tab2
----
9
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8316
SELECT * FROM tab0 WHERE ( NOT - CAST( NULL AS SIGNED ) + 48 BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query III rowsort label-8316
SELECT * FROM tab0 WHERE ( NOT - CAST ( NULL AS INTEGER ) + 48 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT + COUNT( * ) - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8317
SELECT + COUNT ( * ) - + COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN + + 24 AND NULL
----

query I rowsort
SELECT DISTINCT 89 * + + ( + - 99 ) AS col0 FROM tab1
----
-8811

query I rowsort
SELECT ( + col2 ) * + col0 AS col2 FROM tab0
----
705
870
9603

query II rowsort
SELECT DISTINCT - col2 * - col0 AS col2, col1 FROM tab2 AS cor0
----
1058
51
2560
77
4350
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8322
SELECT ALL COUNT( * ) DIV - + 5 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL COUNT ( * ) / - + 5 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8323
SELECT DISTINCT - 72 DIV - 93 + - - col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT - 72 / - 93 + - - col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL MAX( col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL MAX ( col2 ) AS col0 FROM tab1
----
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT + MIN( + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8327
SELECT + MIN ( + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL + + 80 AS col0 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT + 92 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT + SUM( ALL 90 ) * + 46 AS col1 FROM tab0 AS cor0
----
12420

skipif mysql # not compatible
query I rowsort label-8330
SELECT + SUM ( ALL 90 ) * + 46 AS col1 FROM tab0 AS cor0
----
12420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - + col0 ) AS col2, 27 * + - col1 col2 FROM tab1 AS cor0
----
-51
-378
-85
-135
-91
-1269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8332
SELECT ALL + ( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL + ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8333
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 33, - col2 AS col2 FROM tab0
----
-33
-10
-33
-47
-33
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8335
SELECT - COUNT( * ), 46 AS col2 FROM tab1
----
-3
46

skipif mysql # not compatible
query II rowsort label-8335
SELECT - COUNT ( * ), 46 AS col2 FROM tab1
----
-3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ( - COUNT( ALL col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8336
SELECT ( - COUNT ( ALL col2 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT DISTINCT + 76 + + COUNT( * ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT + 76 + + COUNT ( * ) FROM tab2 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT ALL + MIN( DISTINCT + 89 ) col2 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8338
SELECT ALL + MIN ( DISTINCT + 89 ) col2 FROM tab2 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8339
SELECT * FROM tab1 AS cor0 WHERE + CAST( - col0 AS SIGNED ) / ( + col1 ) BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query III rowsort label-8339
SELECT * FROM tab1 AS cor0 WHERE + CAST ( - col0 AS INTEGER ) / ( + col1 ) BETWEEN NULL AND - col2
----

query I rowsort
SELECT col2 + + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-28
-37
-9

query II rowsort
SELECT DISTINCT - - col2, col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL - col2 + col1 - + col2 * + 38 + + - 65 FROM tab0 cor0
----
-1817
-3925
-434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8343
SELECT + 53 FROM tab1 WHERE col2 IN ( - + col2 * - + 68 + - 21 - - 74, + CAST( NULL AS SIGNED ), + ( ( - ( + + col2 ) ) ) * - 56, + - 71 )
----

skipif mysql # not compatible
query I rowsort label-8343
SELECT + 53 FROM tab1 WHERE col2 IN ( - + col2 * - + 68 + - 21 - - 74, + CAST ( NULL AS INTEGER ), + ( ( - ( + + col2 ) ) ) * - 56, + - 71 )
----

query II rowsort
SELECT ALL - col1 + - col0 AS col2, - col0 + - col1 * col1 FROM tab0 AS cor0
----
-108
-528
-96
-6576
-98
-98

query I rowsort
SELECT DISTINCT + - col2 - + ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-198
-20
-94

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 79 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + - col2 IS NULL
----

query I rowsort
SELECT - col1 * col0 - col2 AS col0 FROM tab1 cor0
----
-4345
-484
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT DISTINCT - 34 - MIN( + + 70 ) FROM tab0 cor0
----
-104

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT - 34 - MIN ( + + 70 ) FROM tab0 cor0
----
-104

query I rowsort
SELECT - col1 + + + 44 + - col0 AS col1 FROM tab1
----
-21
-46
-94

query I rowsort
SELECT col1 * + col1 * 37 AS col1 FROM tab0
----
16317
242757
37

query II rowsort
SELECT col1 * ( + + 60 ), 24 AS col1 FROM tab1
----
2820
24
300
24
840
24

query II rowsort
SELECT DISTINCT + 88 AS col2, - col2 * col1 AS col2 FROM tab1
----
88
-1344
88
-295
88
-3196

query I rowsort
SELECT + + col1 AS col1 FROM tab2 WHERE NOT NULL <= + + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT 5 * COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8355
SELECT 5 * COUNT ( * ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8356
SELECT COUNT( * ) * - 76 * COUNT( * ) col2, 82 FROM tab1
----
-684
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8356
SELECT COUNT ( * ) * - 76 * COUNT ( * ) col2, 82 FROM tab1
----
-684
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8357
SELECT + COUNT( * ) DIV + + COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8357
SELECT + COUNT ( * ) / + + COUNT ( * ) AS col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - col1 col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT - - 36 AS col2 FROM tab2 WHERE NOT + + col2 - col2 >= col0 + - - col0
----
36
36
36

query I rowsort
SELECT DISTINCT col0 * - - 21 FROM tab2
----
1344
1575
966

query II rowsort
SELECT col2 * + - 14 * col2 AS col0, - col1 AS col2 FROM tab1
----
-129024
-14
-48734
-5
-64736
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8362
SELECT ALL - ( - COUNT( + + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL - ( - COUNT ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 / - 21 NOT BETWEEN col2 - - 12 AND - - 62
----

query I rowsort
SELECT + col2 * - 97 AS col2 FROM tab2 AS cor0
----
-2231
-3880
-5626

query I rowsort
SELECT ALL col1 * + - col0 + - col0 + - col0 + 59 AS col0 FROM tab1 cor0
----
-4400
-536
-757

query I rowsort
SELECT + 90 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 73 col0 FROM tab0 AS cor0
----
73
73
73

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 57 ) = + col0 + col1
----

query I rowsort
SELECT + ( - ( 5 ) ) AS col1 FROM tab2
----
-5
-5
-5

query II rowsort
SELECT ALL - col1, + 97 AS col0 FROM tab1
----
-14
97
-47
97
-5
97

query II rowsort
SELECT DISTINCT col1, + col0 + - col0 * col2 FROM tab0
----
1
-9506
21
-783
81
-690

query I rowsort
SELECT ALL - ( - + 46 ) * - + col2 * + col1 FROM tab1
----
-13570
-147016
-61824

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL 65 * - MIN( ( 96 ) ) FROM tab1
----
-6240

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL 65 * - MIN ( ( 96 ) ) FROM tab1
----
-6240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT ALL + + 53 + + col2, - col2 AS col2 FROM tab0 AS cor0
----
100
-47
152
-99
63
-10

query I rowsort
SELECT ALL - ( - - ( - col2 ) ) AS col2 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN + 26 * + + col0 AND - - col0 * + 37
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT + - 90 DIV col1 FROM tab0 AS cor0
----
-1
-4
-90

skipif mysql # not compatible
query I rowsort label-8378
SELECT + - 90 / col1 FROM tab0 AS cor0
----
-1
-4
-90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 IS NULL AND - 55 + col1 IS NULL
----

query I rowsort
SELECT + 37 + - 19 AS col1 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT - - 36 + - col1 FROM tab1 AS cor0
----
-11
22
31

query III rowsort
SELECT * FROM tab2 WHERE 4 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT COUNT( ALL + + col1 ) + + 62 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-8383
SELECT COUNT ( ALL + + col1 ) + + 62 FROM tab0
----
65

query I rowsort
SELECT col1 + - col1 + - 19 AS col1 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT DISTINCT - col2 + - col1 * + 2 AS col0 FROM tab2
----
-125
-192
-194

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT col2 + - col0 DIV col1 col2 FROM tab2
----
23
40
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8386
SELECT col2 + - col0 / col1 col2 FROM tab2
----
23
40
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT DISTINCT - 87 * + COUNT( * ) AS col2 FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT - 87 * + COUNT ( * ) AS col2 FROM tab2
----
-261

query I rowsort
SELECT ALL + col1 + + - ( + - ( - + col0 ) ) AS col0 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT COUNT( + 55 ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8389
SELECT COUNT ( + 55 ) FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT + 87 FROM tab0 AS cor0 WHERE - col0 * + col0 + - col1 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - + - col0 * + - 29 + + 14 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 37 + col1 FROM tab0
----
-16
-36
44

query II rowsort
SELECT DISTINCT 67 AS col0, col1 FROM tab1
----
67
14
67
47
67
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT ALL col0 + + col2 * + + col2 DIV + col2 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL col0 + + col2 * + + col2 / + col2 FROM tab2
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 + + col2 + - 99 col0 FROM tab2 AS cor0
----
-1
-19
-36

query I rowsort
SELECT ALL + col1 - col0 - col1 + + col2 * 51 * + 48 AS col2 FROM tab0 AS cor0
----
115041
242255
24393

query I rowsort
SELECT DISTINCT - col1 - + + col2 * - 47 FROM tab2 AS cor0
----
1030
1803
2659

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + + ( + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 10 * + col0 - col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8401
SELECT DISTINCT - COUNT( * ), 27 AS col2 FROM tab2 AS cor0
----
-3
27

skipif mysql # not compatible
query II rowsort label-8401
SELECT DISTINCT - COUNT ( * ), 27 AS col2 FROM tab2 AS cor0
----
-3
27

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + 72 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 6 col2 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT + 23 * - 12 AS col2 FROM tab0
----
-276

query I rowsort
SELECT - col0 * - + col1 + + col2 + - 64 * - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - + 26 AND NULL
----

query I rowsort
SELECT col0 * - - col1 AS col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT - MAX( ALL - ( col1 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8408
SELECT - MAX ( ALL - ( col1 ) ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT 64 * - 23 * + + col1 / + - col2 * col0 FROM tab0 AS cor0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT - 83 * - 30 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43facb1d5aed772d13e68224fe99c63b

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT - - COUNT( * ) * 43 * - 21 + - + 39 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-8166

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8412
SELECT - - COUNT ( * ) * 43 * - 21 + - + 39 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-8166

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL MIN( DISTINCT + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL MIN ( DISTINCT + col1 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT + 82 + + ( + - COUNT( * ) ) * - - COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-8414
SELECT + 82 + + ( + - COUNT ( * ) ) * - - COUNT ( * ) FROM tab0
----
73

query II rowsort
SELECT + 52 AS col0, - 56 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 85 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 col0 FROM tab1 AS cor0
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 99 col1, + col2 FROM tab2 AS cor0
----
-99
23
-99
40
-99
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL - 22 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL - 22 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT DISTINCT MAX( DISTINCT col2 ) * - 60 AS col0 FROM tab0 cor0
----
-5940

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT MAX ( DISTINCT col2 ) * - 60 AS col0 FROM tab0 cor0
----
-5940

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8420
SELECT COUNT( * ) AS col1, CAST( NULL AS DECIMAL ) + + MIN( + col0 ) AS col0 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8420
SELECT COUNT ( * ) AS col1, CAST ( NULL AS REAL ) + + MIN ( + col0 ) AS col0 FROM tab1
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT DISTINCT COUNT( * ) * - 19 AS col2 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT COUNT ( * ) * - 19 AS col2 FROM tab1
----
-57

query I rowsort
SELECT ALL - 21 + - + col0 * 47 + col0 * col0 + + - 54 FROM tab1
----
129
3155
3929

query I rowsort
SELECT + col2 + - - col2 AS col0 FROM tab1
----
118
136
192

query I rowsort
SELECT col1 * - + 31 + - col2 FROM tab1
----
-1525
-214
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT DISTINCT + 63 + - 66 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT + 63 + - 66 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT ALL 56 DIV - - col2 + col0 * - col2 AS col2 FROM tab1 cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL 56 / - - col2 + col0 * - col2 AS col2 FROM tab1 cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL + COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT - - 22 FROM tab1 cor0
----
22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 - - - 19 + - col1 * - + col0 >= + - ( - col0 ) + + 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8431
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8432
SELECT - CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8432
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8433
SELECT ALL 41 AS col0, COUNT( * ) DIV + + MAX( + col2 ) AS col0 FROM tab0
----
41
0

skipif mysql # not compatible
query II rowsort label-8433
SELECT ALL 41 AS col0, COUNT ( * ) / + + MAX ( + col2 ) AS col0 FROM tab0
----
41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT SUM( DISTINCT + col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8434
SELECT SUM ( DISTINCT + col1 ) AS col2 FROM tab0
----
103

query II rowsort
SELECT + col2, col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8436
SELECT - CAST( NULL AS DECIMAL ) * + + 62 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT - CAST ( NULL AS REAL ) * + + 62 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT - COUNT( * ) * - MIN( + + col0 ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-8437
SELECT - COUNT ( * ) * - MIN ( + + col0 ) FROM tab1
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( - - col2 ) col0 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT + 4 * - col2 AS col2 FROM tab1
----
-236
-272
-384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT DISTINCT CAST( 32 AS SIGNED ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT CAST ( 32 AS INTEGER ) FROM tab1 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8441
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 32 + + + ( - CAST( NULL AS SIGNED ) ) * col1 + + 55 + - + ( + col0 ), 72, - col1 * - + 73 + - col1 * 30 * - col0 * + - col2 / - 47 + col2 + + col1, + col1 )
----

skipif mysql # not compatible
query III rowsort label-8441
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 32 + + + ( - CAST ( NULL AS INTEGER ) ) * col1 + + 55 + - + ( + col0 ), 72, - col1 * - + 73 + - col1 * 30 * - col0 * + - col2 / - 47 + col2 + + col1, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT COUNT( ALL - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8442
SELECT COUNT ( ALL - col0 ) FROM tab2
----
3

query I rowsort
SELECT ALL ( ( col1 ) ) FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + 15 * col1 AS col1 FROM tab0
----
1215
15
315

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8445
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 BETWEEN - col2 + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8445
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 BETWEEN - col2 + - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT ( 47 ) AS col0 FROM tab0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT COUNT( col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8448
SELECT COUNT ( col0 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT + COUNT( * ) * - MAX( 16 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-8449
SELECT + COUNT ( * ) * - MAX ( 16 ) FROM tab0
----
-48

query I rowsort
SELECT DISTINCT - 97 * 11 FROM tab2
----
-1067

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 FROM tab2 WHERE - col2 * + col0 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + ( 9 ) + col2 FROM tab1
----
105
68
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 - 19 ) >= ( - 45 * - 51 )
----

query I rowsort
SELECT 30 * - col2 AS col1 FROM tab1
----
-1770
-2040
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT 99 * COUNT( * ) FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-8456
SELECT 99 * COUNT ( * ) FROM tab2
----
297

query I rowsort
SELECT col1 * ( col1 ) AS col0 FROM tab0
----
1
441
6561

query I rowsort
SELECT DISTINCT - col1 + + col1 * 36 AS col0 FROM tab2
----
1785
2345
2695

query I rowsort
SELECT col0 * 26 AS col1 FROM tab0
----
2262
2522
390

query I rowsort
SELECT 42 - col2 * - col0 FROM tab1
----
4938
5057
6230

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT DISTINCT 76 * + COUNT( * ) AS col2 FROM tab1 WHERE ( 2 + 99 ) IN ( - col1 + - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT 76 * + COUNT ( * ) AS col2 FROM tab1 WHERE ( 2 + 99 ) IN ( - col1 + - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT COUNT( * ) - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8462
SELECT COUNT ( * ) - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT col1 * 91 AS col0 FROM tab2
----
4641
6097
7007

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 >= - col0 + + 91
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 58 col2 FROM tab2
----
116
81
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT - SUM( col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8466
SELECT - SUM ( col2 ) FROM tab0
----
-156

query I rowsort
SELECT ALL 60 * col1 AS col2 FROM tab1
----
2820
300
840

query I rowsort
SELECT ALL + col2 * ( + col1 ) FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT - 84 + - 74 FROM tab0 AS cor0
----
-158

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE ( + ( 92 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + 80 FROM tab2 AS cor0
----
126
144
155

query I rowsort
SELECT ALL 68 * col0 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8474
SELECT ALL * FROM tab1 cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8474
SELECT ALL * FROM tab1 cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 11 ) NOT IN ( + ( - col2 ) )
----

query I rowsort
SELECT DISTINCT col1 * 72 - - col1 FROM tab0 AS cor0
----
1533
5913
73

query I rowsort
SELECT 89 * col1 - + col0 FROM tab1 AS cor0
----
1195
360
4092

query I rowsort
SELECT ALL - col2 * col1 - col2 AS col1 FROM tab2 AS cor0
----
-1196
-3120
-3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN col1 AND col2 + + col1
----

skipif mysql # not compatible
query I rowsort label-8479
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN col1 AND col2 + + col1
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE 55 + - col1 * 34 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 IN ( - 67 - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT 4 + + col0 IN ( - 54 + - col2 * - 58 )
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8484
SELECT - CAST( NULL AS DECIMAL ) * + ( + col0 * 79 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT - CAST ( NULL AS REAL ) * + ( + col0 * 79 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 57 ) NOT BETWEEN col1 + 95 AND + 67
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8486
SELECT COUNT( * ) col2 FROM tab2 cor0 WHERE NOT + col2 * - ( - CAST( NULL AS SIGNED ) ) <> + col1 - - 49
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8486
SELECT COUNT ( * ) col2 FROM tab2 cor0 WHERE NOT + col2 * - ( - CAST ( NULL AS INTEGER ) ) <> + col1 - - 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT + + 67 * - COUNT( * ) col0 FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8487
SELECT + + 67 * - COUNT ( * ) col0 FROM tab0 AS cor0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT + COUNT( 37 ) + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 44
----
0

skipif mysql # not compatible
query I rowsort label-8488
SELECT + COUNT ( 37 ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 44
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8489
SELECT ALL + MIN( CAST( col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + MIN ( CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8491
SELECT DISTINCT col0 DIV - + 10 FROM tab0
----
-1
-8
-9

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT col0 / - + 10 FROM tab0
----
-1
-8
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE - 13 + - 86 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8493
SELECT ALL * FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) - + 87 ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8493
SELECT ALL * FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) - + 87 ) > NULL
----

query I rowsort
SELECT col2 / + col2 - + col0 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8495
SELECT + 39 DIV - col1 + + 53 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
53
53
53

skipif mysql # not compatible
query I rowsort label-8495
SELECT + 39 / - col1 + + 53 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
53
53
53

query I rowsort
SELECT DISTINCT + 49 AS col1 FROM tab0
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8497
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col2 AND + 52 / CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8497
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col2 AND + 52 / CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT - COUNT( * ) * - 78 AS col2 FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-8498
SELECT - COUNT ( * ) * - 78 AS col2 FROM tab2 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8499
SELECT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 28 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT 4 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
4

query I rowsort
SELECT ALL - 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT - - 16 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT + + COUNT( * ) col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8505
SELECT + + COUNT ( * ) col0 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + + col2 + 22 AS col1 FROM tab2 AS cor0
----
45
62
80

query II rowsort
SELECT 14, + col0 FROM tab0 AS cor0
----
14
15
14
87
14
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT DISTINCT + + MIN( DISTINCT + 9 ) + - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT + + MIN ( DISTINCT + 9 ) + - COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8509
SELECT + 29 AS col0, - SUM( DISTINCT + col1 ) * COUNT( * ) + - 7 * - 96 FROM tab2 AS cor0
----
29
87

skipif mysql # not compatible
query II rowsort label-8509
SELECT + 29 AS col0, - SUM ( DISTINCT + col1 ) * COUNT ( * ) + - 7 * - 96 FROM tab2 AS cor0
----
29
87

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - col1 + + - col0 + col2 * col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT DISTINCT + COUNT( * ) * - 55 * - COUNT( * ) + - 71 FROM tab2 AS cor0
----
424

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT + COUNT ( * ) * - 55 * - COUNT ( * ) + - 71 FROM tab2 AS cor0
----
424

query I rowsort
SELECT DISTINCT col0 * + col0 + - col2 + - 79 FROM tab1 AS cor0
----
2426
7087
8134

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 + + col1 * 94 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 * col0 - 85 - col0 col0 FROM tab0 AS cor0
----
1310
8006
8936

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT MIN( + col0 ) FROM tab0 AS cor0 WHERE - col1 * + col0 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-8515
SELECT MIN ( + col0 ) FROM tab0 AS cor0 WHERE - col1 * + col0 IS NOT NULL
----
15

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT + MAX( ALL ( 69 ) ) + - MAX( col1 ) AS col2 FROM tab2 WHERE - 39 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT + MAX ( ALL ( 69 ) ) + - MAX ( col1 ) AS col2 FROM tab2 WHERE - 39 IS NULL
----
NULL

query I rowsort
SELECT ALL + col1 * - 47 AS col1 FROM tab2
----
-2397
-3149
-3619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8519
SELECT CAST( NULL AS SIGNED ) + + ( - col2 ) - - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT CAST ( NULL AS INTEGER ) + + ( - col2 ) - - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8520
SELECT DISTINCT col0 FROM tab2 WHERE NOT - col1 * CAST( NULL AS SIGNED ) NOT IN ( + col2 ) AND - 21 * + 82 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT col0 FROM tab2 WHERE NOT - col1 * CAST ( NULL AS INTEGER ) NOT IN ( + col2 ) AND - 21 * + 82 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( + 96 ) + + col0 FROM tab2
----
-21
-32
-50

query I rowsort
SELECT DISTINCT 78 + col0 AS col2 FROM tab1
----
129
163
169

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NOT col2 NOT IN ( + 12 ) ) )
----

query I rowsort
SELECT DISTINCT - 63 + + + 23 FROM tab1 AS cor0
----
-40

query I rowsort
SELECT ALL - col2 - - + col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 10 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > 94 / - ( - col1 )
----

query I rowsort
SELECT 42 * - 16 FROM tab0
----
-672
-672
-672

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8530
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - CAST( NULL AS SIGNED ) AND - + col2 - ( - 45 ) - + col0
----

skipif mysql # not compatible
query III rowsort label-8530
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - CAST ( NULL AS INTEGER ) AND - + col2 - ( - 45 ) - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT DISTINCT - 36 + ( 57 + - COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 + + 55 + + col2 / col0 IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT - 36 + ( 57 + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 + + 55 + + col2 / col0 IS NOT NULL
----
21

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT MIN( + - 53 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - ( col2 ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8533
SELECT MIN ( + - 53 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - ( col2 ) ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT + + CAST( - - ( - 67 ) AS SIGNED ) FROM tab0 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-8534
SELECT + + CAST ( - - ( - 67 ) AS INTEGER ) FROM tab0 AS cor0
----
-67
-67
-67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 / + col1 * - 43 < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT + 39 DIV ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8536
SELECT + 39 / ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT + 79 + - - col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * + 76 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ALL SUM( col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL SUM ( col0 ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-8540
SELECT + COUNT( * ), - 57 col2 FROM tab0
----
3
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8540
SELECT + COUNT ( * ), - 57 col2 FROM tab0
----
3
-57

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + 5 ) = NULL
----

query I rowsort
SELECT DISTINCT + col0 + - - 70 AS col1 FROM tab1
----
121
155
161

query I rowsort
SELECT col2 * + 28 + + col1 FROM tab0
----
1397
2773
301

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, col0 * + col2 col1 FROM tab0
----
15
705
87
870
97
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT DISTINCT - MIN( + + 73 ) FROM tab1, tab1 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT - MIN ( + + 73 ) FROM tab1, tab1 cor0
----
-73

query I rowsort
SELECT - 44 * - - 83 AS col1 FROM tab1
----
-3652
-3652
-3652

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT ALL - + COUNT( + 9 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL - + COUNT ( + 9 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT CAST( - - col0 AS SIGNED ) * - 36 + 51 * - + 66 AS col0 FROM tab1 AS cor0
----
-5202
-6426
-6642

skipif mysql # not compatible
query I rowsort label-8549
SELECT CAST ( - - col0 AS INTEGER ) * - 36 + 51 * - + 66 AS col0 FROM tab1 AS cor0
----
-5202
-6426
-6642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8550
SELECT COUNT( * ) DIV - + CAST( + 86 AS SIGNED ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8550
SELECT COUNT ( * ) / - + CAST ( + 86 AS INTEGER ) AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8551
SELECT DISTINCT + col1 DIV - col1 + - col1 + + - col0 * col1 FROM tab1
----
-431
-4325
-729

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT + col1 / - col1 + - col1 + + - col0 * col1 FROM tab1
----
-431
-4325
-729

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( + col2 IN ( 62 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8554
SELECT - SUM( col1 ) * - 99 + ( - 20 ), - MAX( DISTINCT + + col0 ) - - ( - COUNT( + 8 ) ) AS col2 FROM tab0 AS cor0
----
10177
-100

skipif mysql # not compatible
query II rowsort label-8554
SELECT - SUM ( col1 ) * - 99 + ( - 20 ), - MAX ( DISTINCT + + col0 ) - - ( - COUNT ( + 8 ) ) AS col2 FROM tab0 AS cor0
----
10177
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL MIN( ALL 83 ) FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL MIN ( ALL 83 ) FROM tab1 AS cor0
----
83

query II rowsort
SELECT + 55 + - col0, + col2 AS col2 FROM tab2 AS cor0
----
-20
58
-9
40
9
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT DISTINCT + MIN( col2 ) * - COUNT( * ) - + 20 AS col1 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT + MIN ( col2 ) * - COUNT ( * ) - + 20 AS col1 FROM tab2 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT - COUNT( - col0 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8558
SELECT - COUNT ( - col0 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT - ( + 8 ) + COUNT( * ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8559
SELECT - ( + 8 ) + COUNT ( * ) FROM tab2 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 * - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8561
SELECT + CAST( - 57 AS SIGNED ) FROM tab0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-8561
SELECT + CAST ( - 57 AS INTEGER ) FROM tab0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT + col2 * + 14 - col0 + + col0 AS col1 FROM tab0
----
1386
140
658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col0 col1 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT ALL MIN( DISTINCT + + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL MIN ( DISTINCT + + col2 ) FROM tab0
----
10

query II rowsort
SELECT DISTINCT - 2 + + col0 * - col2 AS col0, col1 FROM tab1
----
-4898
14
-5017
5
-6190
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col0 FROM tab2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8567
SELECT - - 73 + + 16 + + COUNT( ALL col0 ) DIV - ( 62 ) FROM tab1 WHERE + col1 DIV - + col0 <> - 58
----
89

skipif mysql # not compatible
query I rowsort label-8567
SELECT - - 73 + + 16 + + COUNT ( ALL col0 ) / - ( 62 ) FROM tab1 WHERE + col1 / - + col0 <> - 58
----
89

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col2 FROM tab1
----
62
62
62

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) IN ( col1 * - 26 * + + col2 * 94 / + - 8 + col2 )
----

query I rowsort
SELECT ALL 23 + + 98 AS col2 FROM tab2
----
121
121
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT - CAST( NULL AS SIGNED ) - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT - CAST ( NULL AS INTEGER ) - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + 48 ) FROM tab1 cor0
----
48

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8575
SELECT ALL * FROM tab2 WHERE NOT ( - col2 * - CAST( NULL AS SIGNED ) + col0 + + col0 + - 0 ) < col1
----

skipif mysql # not compatible
query III rowsort label-8575
SELECT ALL * FROM tab2 WHERE NOT ( - col2 * - CAST ( NULL AS INTEGER ) + col0 + + col0 + - 0 ) < col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8576
SELECT ALL + - ( - + 96 ) DIV + col2 + - col0 + + ( + col2 ) FROM tab0 AS cor0
----
-68
2
34

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL + - ( - + 96 ) / + col2 + - col0 + + ( + col2 ) FROM tab0 AS cor0
----
-68
2
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8577
SELECT DISTINCT - COUNT( + CAST( col1 AS SIGNED ) ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT - COUNT ( + CAST ( col1 AS INTEGER ) ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8578
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + - 45 AS col0 FROM tab1 AS cor0
----
-45
-45
-45

query I rowsort
SELECT - - 27 FROM tab2 cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT + + MAX( ALL col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8581
SELECT + + MAX ( ALL col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8582
SELECT * FROM tab2 WHERE NOT NULL <= + 44 + - col2 + - CAST( + 83 AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-8582
SELECT * FROM tab2 WHERE NOT NULL <= + 44 + - col2 + - CAST ( + 83 AS INTEGER ) * - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 53 + col2 / - + col2 < + col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT DISTINCT + COUNT( ALL + + col0 ) * COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT + COUNT ( ALL + + col0 ) * COUNT ( * ) AS col2 FROM tab2
----
9

query II rowsort
SELECT DISTINCT - col1, + col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT ALL + 83 * + SUM( DISTINCT - 72 ) col2 FROM tab0
----
-5976

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8586
SELECT ALL + 83 * + SUM ( DISTINCT - 72 ) col2 FROM tab0
----
-5976

query I rowsort
SELECT ALL - 77 * col1 AS col2 FROM tab2
----
-3927
-5159
-5929

query I rowsort
SELECT DISTINCT + col1 + - - 27 FROM tab0
----
108
28
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8589
SELECT CAST( + col0 AS SIGNED ) * + - col2 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-8589
SELECT CAST ( + col0 AS INTEGER ) * + - col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query II rowsort label-8590
SELECT DISTINCT COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8590
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1
----
3
3

query I rowsort
SELECT 5 * + - col1 * 39 AS col0 FROM tab2
----
-13065
-15015
-9945

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 79 ) NOT IN ( - col1, + 56 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 + - - ( - 0 ) col2 FROM tab2
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT + 47 + + 22 * + - 55 * COUNT( * ) AS col2 FROM tab1
----
-3583

skipif mysql # not compatible
query I rowsort label-8594
SELECT + 47 + + 22 * + - 55 * COUNT ( * ) AS col2 FROM tab1
----
-3583

query I rowsort
SELECT - 2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + col2 col2, + col1 AS col0 FROM tab1
----
-4896
14
-5015
5
-6188
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8597
SELECT - ( + - COUNT( * ) ) AS col0, COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-8597
SELECT - ( + - COUNT ( * ) ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 40 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----

query II rowsort
SELECT + col2 AS col0, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT ALL + 19 * + + 14 + - COUNT( * ) + 37 FROM tab1 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL + 19 * + + 14 + - COUNT ( * ) + 37 FROM tab1 AS cor0
----
300

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 46 IS NULL
----

query I rowsort
SELECT - + 52 FROM tab0 cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8604
SELECT DISTINCT - CAST( 66 AS SIGNED ) AS col2 FROM tab2 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT - CAST ( 66 AS INTEGER ) AS col2 FROM tab2 cor0
----
-66

query I rowsort
SELECT ALL col2 - col0 AS col0 FROM tab0 cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8606
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8607
SELECT ALL + - 4 AS col0, - CAST( NULL AS SIGNED ) * + + MIN( + col1 ) AS col2 FROM tab2 AS cor0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-8607
SELECT ALL + - 4 AS col0, - CAST ( NULL AS INTEGER ) * + + MIN ( + col1 ) AS col2 FROM tab2 AS cor0
----
-4
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8608
SELECT col2 * - col2 * + CAST( NULL AS SIGNED ) - - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT col2 * - col2 * + CAST ( NULL AS INTEGER ) - - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 32 * + col2 FROM tab2 WHERE - 69 IS NOT NULL
----
-1280
-1856
-736

query I rowsort
SELECT + 67 + - col0 AS col0 FROM tab0
----
-20
-30
52

query I rowsort
SELECT 78 + - 59 FROM tab1
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT DISTINCT MAX( ALL + + 82 ) col2 FROM tab2
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8612
SELECT DISTINCT MAX ( ALL + + 82 ) col2 FROM tab2
----
82

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col2 * - col0 * - col2 AND + col2 + + col2 + - 91
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8614
SELECT col0 DIV + 77 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8614
SELECT col0 / + 77 FROM tab0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8615
SELECT DISTINCT CAST( + col2 AS SIGNED ) * col2 * - col0 + + ( - + 12 ) - col2 AS col2, col0 AS col0 FROM tab1
----
-295956
85
-420864
91
-470124
51

skipif mysql # not compatible
query II rowsort label-8615
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * col2 * - col0 + + ( - + 12 ) - col2 AS col2, col0 AS col0 FROM tab1
----
-295956
85
-420864
91
-470124
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 * + col0 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( col2 ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col1 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT + CAST( + + 65 AS SIGNED ) FROM tab1
----
65
65
65

skipif mysql # not compatible
query I rowsort label-8620
SELECT + CAST ( + + 65 AS INTEGER ) FROM tab1
----
65
65
65

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT ( ( NOT + col0 IS NULL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + + + 44 AS col2 FROM tab0 cor0
----
-37
23
43

query I rowsort
SELECT ALL - col2 * - + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 88 * - - 62
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 4 + - col2 * col0 + + col0 < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8626
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) * + 97 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8626
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * + 97 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + - col1 * + ( - col0 ) FROM tab0
----
1296
1848
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 2 * - col0 col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT COUNT( * ) * + - COUNT( * ) + - 83 AS col1 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-8629
SELECT COUNT ( * ) * + - COUNT ( * ) + - 83 AS col1 FROM tab2 AS cor0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT + CAST( - col1 AS SIGNED ) * CAST( col0 AS SIGNED ) + - 79 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8630
SELECT + CAST ( - col1 AS INTEGER ) * CAST ( col0 AS INTEGER ) + - 79 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8631
SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col2 > NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8632
SELECT + + col0 AS col2 FROM tab0 AS cor0 WHERE col1 * + - CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND 51
----

skipif mysql # not compatible
query I rowsort label-8632
SELECT + + col0 AS col2 FROM tab0 AS cor0 WHERE col1 * + - CAST ( NULL AS REAL ) NOT BETWEEN NULL AND 51
----

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT - col2 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8634
SELECT ALL 5 + + CAST( NULL AS SIGNED ) - + ( + ( - + 12 ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL 5 + + CAST ( NULL AS INTEGER ) - + ( + ( - + 12 ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NULL IN ( - col2 + ( 0 ), + CAST( + + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NULL IN ( - col2 + ( 0 ), + CAST ( + + col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT MIN( 89 ) + + 7 col2 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8636
SELECT MIN ( 89 ) + + 7 col2 FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT - MIN( DISTINCT + + col1 ) AS col1 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8637
SELECT - MIN ( DISTINCT + + col1 ) AS col1 FROM tab2 cor0
----
-51

query I rowsort
SELECT + ( + 35 ) AS col1 FROM tab2 AS cor0
----
35
35
35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 22 * - col0 NOT IN ( col0 + - 61, + col2 / - col0, - col0, + ( + + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT CAST( NULL AS SIGNED ) * - 82 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT CAST ( NULL AS INTEGER ) * - 82 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8641
SELECT DISTINCT + COUNT( DISTINCT col1 ) DIV + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT + COUNT ( DISTINCT col1 ) / + COUNT ( * ) FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 / - + col2 * + - col1 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT + COUNT( + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8644
SELECT + COUNT ( + col2 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 83 AS col2 FROM tab1
----
83

query II rowsort
SELECT + - 12 / + + col2 * + ( - + col2 ) AS col0, - col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT - 58, + col1 FROM tab1 AS cor0
----
-58
14
-58
47
-58
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8648
SELECT ALL + + col1, - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8648
SELECT ALL + + col1, - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT DISTINCT 83 * - - COUNT( * ) col1 FROM tab2
----
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8649
SELECT DISTINCT 83 * - - COUNT ( * ) col1 FROM tab2
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT + - MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8650
SELECT + - MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8651
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 / col2, - col0, CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8651
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 / col2, - col0, CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT - + COUNT( * ) * + 77 FROM tab2 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-8652
SELECT - + COUNT ( * ) * + 77 FROM tab2 cor0
----
-231

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 44 IN ( 75, 1 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 19 FROM tab0 AS cor0 WHERE NOT col1 * - - 7 < ( + 72 )
----
19

query I rowsort
SELECT ALL col0 * + - ( col0 ) * 48 AS col1 FROM tab0 AS cor0
----
-10800
-363312
-451632

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8656
SELECT * FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) * - col1 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-8656
SELECT * FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 48 * + 89 FROM tab0
----
4272

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL + ( + COUNT( * ) ) + + + 0 AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL + ( + COUNT ( * ) ) + + + 0 AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL 35 + + col0 FROM tab1
----
120
126
86

query III rowsort
SELECT * FROM tab0 WHERE + + col1 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT ALL + + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL + + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 * + 69 col1 FROM tab2 AS cor0
----
5037
5037
5037

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT - + COUNT( * ) * 44 AS col0 FROM tab1 cor0
----
-132

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT - + COUNT ( * ) * 44 AS col0 FROM tab1 cor0
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8664
SELECT DISTINCT COUNT( * ) * - - CAST( - COUNT( * ) AS SIGNED ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT COUNT ( * ) * - - CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL - col1 * ( + + 3 ) + - - col1 FROM tab0 cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8666
SELECT * FROM tab1 AS cor0 WHERE + 80 DIV - col2 + + CAST( - col1 AS SIGNED ) BETWEEN col1 DIV col0 + - col1 AND + + 77
----
51
14
96

skipif mysql # not compatible
query III rowsort label-8666
SELECT * FROM tab1 AS cor0 WHERE + 80 / - col2 + + CAST ( - col1 AS INTEGER ) BETWEEN col1 / col0 + - col1 AND + + 77
----
51
14
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 1 - col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( col0 ) - ( 1 ) AS col0 FROM tab0 AS cor0
----
14
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT DISTINCT COUNT( * ) + - 71 col1 FROM tab0
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8669
SELECT DISTINCT COUNT ( * ) + - 71 col1 FROM tab0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-8670
SELECT - COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-8670
SELECT - COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND NULL
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8671
SELECT + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8671
SELECT + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 > NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT DISTINCT col1 DIV - col2 col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8674
SELECT DISTINCT col1 / - col2 col2 FROM tab0
----
-1
-2
0

query I rowsort
SELECT 29 * - col2 FROM tab1
----
-1711
-1972
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT - SUM( DISTINCT - + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8676
SELECT - SUM ( DISTINCT - + col0 ) FROM tab0
----
199

query I rowsort
SELECT ( - ( - col0 ) ) * + + 32 + 87 AS col0 FROM tab2
----
1559
2135
2487

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT - COUNT( + 94 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8678
SELECT - COUNT ( + 94 ) FROM tab0
----
-3

query I rowsort
SELECT col2 * - 15 AS col2 FROM tab0
----
-1485
-150
-705

query I rowsort
SELECT ALL - + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL 19 * - 81 + - col1 AS col0 FROM tab2 AS cor0
----
-1590
-1606
-1616

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL SUM( ALL col2 ) col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8683
SELECT ALL SUM ( ALL col2 ) col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT - - 56 * - col0 AS col1 FROM tab0 cor0
----
-4872
-5432
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8685
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + - 44 ) AS col1 FROM tab2
----
-44
-44
-44

query I rowsort
SELECT ALL col2 + - col0 AS col1 FROM tab0 cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8688
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 - col2 + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 - col2 + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab2 AS cor0
----
-40

query II rowsort
SELECT DISTINCT col1, + col2 AS col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT - ( - col1 ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - ( - 88 ) FROM tab1 cor0
----
88
88
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8693
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) / SUM( DISTINCT - col1 ) / + + 69 AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) / SUM ( DISTINCT - col1 ) / + + 69 AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( - + col2 ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT col0 + + - 76 + + + 65 AS col1 FROM tab0
----
4
76
86

query I rowsort
SELECT + col0 * - + 32 AS col1 FROM tab2
----
-1472
-2048
-2400

query II rowsort
SELECT DISTINCT 97 + - col1 AS col1, col0 * - ( - - col2 ) FROM tab1
----
50
-6188
83
-4896
92
-5015

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 >= + + col1 + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8699
SELECT + MAX( ALL - + 82 ), - ( 4 ) AS col1 FROM tab2 AS cor0
----
-82
-4

skipif mysql # not compatible
query II rowsort label-8699
SELECT + MAX ( ALL - + 82 ), - ( 4 ) AS col1 FROM tab2 AS cor0
----
-82
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8700
SELECT DISTINCT + 56 + 7, 10 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
63
30

skipif mysql # not compatible
query II rowsort label-8700
SELECT DISTINCT + 56 + 7, 10 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
63
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT + ( - MAX( + - col1 ) ) - - + CAST( + 90 AS SIGNED ) FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-8701
SELECT + ( - MAX ( + - col1 ) ) - - + CAST ( + 90 AS INTEGER ) FROM tab2 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT DISTINCT 46 + + - COUNT( * ) AS col2 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT 46 + + - COUNT ( * ) AS col2 FROM tab1
----
43

query I rowsort
SELECT DISTINCT col1 * + - col0 * + + col0 * col2 * + 6 FROM tab0
----
-5139450
-5588946
-9536940

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT ALL + col0 DIV + - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL + col0 / + - col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT col0 DIV + col0 col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8705
SELECT col0 / + col0 col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8706
SELECT DISTINCT - + col1 / + col1 * - CAST( NULL AS SIGNED ) + + + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT - + col1 / + col1 * - CAST ( NULL AS INTEGER ) + + + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT + SUM( ALL + + ( + - 39 ) ) AS col2 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-8707
SELECT + SUM ( ALL + + ( + - 39 ) ) AS col2 FROM tab0 AS cor0
----
-117

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8708
SELECT CAST( NULL AS DECIMAL ) AS col1, + col2 * + col2 * + col1 col0 FROM tab1 cor0
----
NULL
129024
NULL
17405
NULL
217328

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8708
SELECT CAST ( NULL AS REAL ) AS col1, + col2 * + col2 * + col1 col0 FROM tab1 cor0
----
NULL
129024
NULL
17405
NULL
217328

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8709
SELECT * 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-8709
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8710
SELECT - 48, CAST( + - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-48
-46
-48
-64
-48
-75

skipif mysql # not compatible
query II rowsort label-8710
SELECT - 48, CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-48
-46
-48
-64
-48
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT ALL + MIN( + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL + MIN ( + col2 ) AS col1 FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8712
SELECT ALL + col1 DIV + col0 + col2 FROM tab0 AS cor0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL + col1 / + col0 + col2 FROM tab0 AS cor0
----
10
52
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 84 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL COUNT( * ) * + 96 FROM tab1, tab1 cor0
----
864

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL COUNT ( * ) * + 96 FROM tab1, tab1 cor0
----
864

query I rowsort
SELECT DISTINCT 37 * - col2 * + - 88 FROM tab1
----
192104
221408
312576

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT 39 DIV - - 82 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8716
SELECT 39 / - - 82 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col2 * + 54 * 88 AS col2 FROM tab1 AS cor0
----
280073
319940
454848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col1 FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT col0 * + - col0 + + 12 AS col2 FROM tab2 AS cor0
----
-2104
-4084
-5613

query I rowsort
SELECT - + 55 AS col2 FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT - CAST( - + 46 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-8721
SELECT - CAST ( - + 46 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT ALL + + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8723
SELECT DISTINCT + col2 DIV - + col0 col1 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8723
SELECT DISTINCT + col2 / - + col0 col1 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT 69 AS col0 FROM tab0 AS cor0 WHERE ( 90 IS NOT NULL )
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT + - 76 + + + 97 * - - COUNT( * ) FROM tab0 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT + - 76 + + + 97 * - - COUNT ( * ) FROM tab0 AS cor0
----
215

query I rowsort
SELECT ALL - - 27 FROM tab1 AS cor0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col2 FROM tab2 cor0
----
75

query III rowsort
SELECT * FROM tab0 WHERE - 87 < - col0
----
15
81
47

query II rowsort
SELECT DISTINCT + 64 AS col2, - col1 * - col0 AS col1 FROM tab1
----
64
425
64
4277
64
714

query I rowsort
SELECT - 9 + - col0 * 87 FROM tab2
----
-4011
-5577
-6534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT ALL col0 + - CAST( + + col1 AS SIGNED ) AS col0 FROM tab1
----
37
44
80

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL col0 + - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT 55 - + + 57 AS col2 FROM tab2
----
-2

query I rowsort
SELECT col0 + + - 76 AS col2 FROM tab1 AS cor0
----
-25
15
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT MIN( 3 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8734
SELECT MIN ( 3 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + + 33 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) FROM tab1, tab0 AS cor0
----
-9
9

skipif mysql # not compatible
query II rowsort label-8736
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) FROM tab1, tab0 AS cor0
----
-9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT - COUNT( * ) * + + MAX( DISTINCT + 85 ) FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-8737
SELECT - COUNT ( * ) * + + MAX ( DISTINCT + 85 ) FROM tab0
----
-255

query I rowsort
SELECT + ( + + col2 ) * - + col0 AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT - col0 / + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT - col0 / + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 89 - col2 NOT BETWEEN + col2 AND - + ( - ( - - 76 ) )
----
75
67
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 99 * - 91 * - 1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT + 86 * + COUNT( * ) AS col0 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT + 86 * + COUNT ( * ) AS col0 FROM tab2
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT ALL CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL SUM( DISTINCT + 83 ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL SUM ( DISTINCT + 83 ) FROM tab1
----
83

query I rowsort
SELECT ( - + 97 ) AS col1 FROM tab0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT - 45 * + col2 AS col2 FROM tab1
----
-2655
-3060
-4320

query I rowsort
SELECT DISTINCT - col2 * 34 FROM tab0
----
-1598
-3366
-340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8749
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - - col1 * + - col1 AS col0 FROM tab0 cor0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT ALL - + 33 DIV - - 72 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL - + 33 / - - 72 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT MAX( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8752
SELECT MAX ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
-15

query II rowsort
SELECT + col0 AS col2, 59 * - col2 AS col2 FROM tab2 AS cor0
----
46
-1357
64
-2360
75
-3422

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8754
SELECT + SUM( 26 ), COUNT( * ) DIV + 14 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
234
0

skipif mysql # not compatible
query II rowsort label-8754
SELECT + SUM ( 26 ), COUNT ( * ) / + 14 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
234
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - 38 + + 10 col0 FROM tab0 AS cor0
----
147
58
95

query I rowsort
SELECT DISTINCT 34 + 64 FROM tab2 cor0
----
98

query I rowsort
SELECT + col0 + + col1 * ( - col2 ) FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT DISTINCT + COUNT( - col1 ) + + 20 AS col1 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT + COUNT ( - col1 ) + + 20 AS col1 FROM tab0 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT - - col2 DIV 79 + - col1 - - col2 * - col1 AS col0 FROM tab0 AS cor0
----
-231
-3888
-99

skipif mysql # not compatible
query I rowsort label-8759
SELECT - - col2 / 79 + - col1 - - col2 * - col1 AS col0 FROM tab0 AS cor0
----
-231
-3888
-99

query I rowsort
SELECT + + 60 * - + ( + - col2 ) + col2 + 84 + + ( + col1 ) * col1 FROM tab1 cor0
----
3708
6136
6441

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 IN ( - 29, + 52 + + col0, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL + COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL + COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - - 4 AS col0 FROM tab1 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 65 col1 FROM tab0
----
152
162
80

query II rowsort
SELECT 92 * ( + 56 ) AS col0, col1 FROM tab1
----
5152
14
5152
47
5152
5

query I rowsort
SELECT DISTINCT col1 + + - col2 FROM tab0
----
-98
11
34

query II rowsort
SELECT ALL 4 * 87 * + 8 AS col1, + col0 FROM tab1
----
2784
51
2784
85
2784
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 - - ( + col1 ) * ( col2 ) col1, 87 AS col2 FROM tab2 AS cor0
----
1150
87
3040
87
3828
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT - col1 DIV + 90 - + - col1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8769
SELECT - col1 / + 90 - + - col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL - + 81 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT + 58 * + + col1 FROM tab1
----
2726
290
812

onlyif mysql # DIV for integer division: 
query II rowsort label-8772
SELECT + col2 DIV col0, ( - 84 ) AS col0 FROM tab0 AS cor0
----
0
-84
1
-84
3
-84

skipif mysql # not compatible
query II rowsort label-8772
SELECT + col2 / col0, ( - 84 ) AS col0 FROM tab0 AS cor0
----
0
-84
1
-84
3
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT - + SUM( ALL + + col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8773
SELECT - + SUM ( ALL + + col1 ) FROM tab0 cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 57 col1, 11 AS col0 FROM tab2 cor0
----
-57
11
-57
11
-57
11

query II rowsort
SELECT ALL - col1, 46 AS col2 FROM tab1 AS cor0
----
-14
46
-47
46
-5
46

query I rowsort
SELECT DISTINCT - ( + col1 ) FROM tab0 AS cor0 WHERE - 97 * 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL - - SUM( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL - - SUM ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT - 62 * col0 AS col1 FROM tab2 AS cor0
----
-2852
-3968
-4650

query II rowsort
SELECT - - 28 AS col2, + 32 FROM tab1 AS cor0
----
28
32
28
32
28
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8780
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN - CAST( + col1 AS SIGNED ) AND - 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8780
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN - CAST ( + col1 AS INTEGER ) AND - 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - + 66
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8782
SELECT ALL - CAST( ( + COUNT( * ) ) AS SIGNED ) * + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL - CAST ( ( + COUNT ( * ) ) AS INTEGER ) * + COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT - MAX( ALL + + col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT - MAX ( ALL + + col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + col1 * 64 AS col1 FROM tab1
----
3008
320
896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 34 col2 FROM tab0
----
121
131
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT DISTINCT 61 + COUNT( * ) + - 64 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8786
SELECT DISTINCT 61 + COUNT ( * ) + - 64 col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL + 34 * - 36, + ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-1224
-1
-1224
-21
-1224
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 43 IN ( col1, col2, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8789
SELECT 19 * + col2 + 2 DIV col1 FROM tab2 AS cor0
----
1102
437
760

skipif mysql # not compatible
query I rowsort label-8789
SELECT 19 * + col2 + 2 / col1 FROM tab2 AS cor0
----
1102
437
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8790
SELECT ALL + col2 * col1 * + 13 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL + col2 * col1 * + 13 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * 70 AS col2 FROM tab2
----
-3570
-4690
-5390

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8793
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( + + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8793
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( + + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8794
SELECT DISTINCT + COUNT( * ) AS col1, - 76 col0 FROM tab1
----
3
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8794
SELECT DISTINCT + COUNT ( * ) AS col1, - 76 col0 FROM tab1
----
3
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col0 FROM tab0
----
-92
-92
-92

query I rowsort
SELECT ALL col0 + + col0 * 93 AS col2 FROM tab1
----
4794
7990
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT - + 55 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2 / - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT DISTINCT + col1 * col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT + col1 * col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT - MAX( DISTINCT + - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8800
SELECT - MAX ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT - + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = + - col1 + - - col1 * - col1
----

query I rowsort
SELECT DISTINCT - col2 - + 35 AS col1 FROM tab2 AS cor0
----
-58
-75
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( 58 ) + + 41 <= - col2
----
3

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( 58 ) + + 41 <= - col2
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 90 + 41 * - ( + col0 ) * + + col0 = NULL
----

query II rowsort
SELECT - col1 - ( + col2 ) AS col2, 13 FROM tab0 AS cor0
----
-100
13
-128
13
-31
13

query I rowsort
SELECT + col1 + - col0 + col0 AS col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8807
SELECT DISTINCT 62 DIV - COUNT( * ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT 62 / - COUNT ( * ) AS col2 FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT ALL + COUNT( col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL + COUNT ( col2 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT DISTINCT - 35 + COUNT( * ) AS col0 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT - 35 + COUNT ( * ) AS col0 FROM tab0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 + + col1 * - 29 col2 FROM tab2
----
-1463
-1927
-2217

query III rowsort
SELECT * FROM tab1 WHERE col0 * + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT - + CAST( col0 AS SIGNED ) FROM tab2 AS cor0 WHERE ( + 47 + + col2 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-8812
SELECT - + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0 WHERE ( + 47 + + col2 IS NULL )
----

query I rowsort
SELECT DISTINCT + + 71 * + 21 FROM tab1 cor0
----
1491

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL + - SUM( DISTINCT - 52 ) FROM tab0 cor0
----
52

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL + - SUM ( DISTINCT - 52 ) FROM tab0 cor0
----
52

query I rowsort
SELECT ( col2 ) * col2 * - + col2 FROM tab2
----
-12167
-195112
-64000

query I rowsort
SELECT 7 * - col2 AS col0 FROM tab0
----
-329
-693
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL - SUM( DISTINCT - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - SUM ( DISTINCT - col2 ) FROM tab1
----
223

query I rowsort
SELECT ( + - 26 ) * + col1 AS col1 FROM tab0 AS cor0
----
-2106
-26
-546

query II rowsort
SELECT DISTINCT - col1, - col0 * + col1 + - 71 AS col1 FROM tab0 AS cor0
----
-1
-168
-21
-1898
-81
-1286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 col2 FROM tab2 cor0
----
-77

query I rowsort
SELECT - + 52 * - + 36 AS col1 FROM tab0 AS cor0
----
1872
1872
1872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT - + CAST( 52 AS SIGNED ) FROM tab0 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-8823
SELECT - + CAST ( 52 AS INTEGER ) FROM tab0 AS cor0
----
-52
-52
-52

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT col2 + + CAST( - - 42 AS SIGNED ) col2 FROM tab0
----
141
52
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8825
SELECT col2 + + CAST ( - - 42 AS INTEGER ) col2 FROM tab0
----
141
52
89

query II rowsort
SELECT DISTINCT col0 + - + col2 * + col0 * - ( + col0 ) * - - col0 + col2 AS col2, 35 + col0 + + 62 FROM tab0
----
158687
112
6585127
184
90354823
194

query II rowsort
SELECT ALL col1 AS col0, col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8828
SELECT + CAST( NULL AS DECIMAL ) + + - CAST( NULL AS SIGNED ) + - 66 + + - COUNT( * ) col2 FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8828
SELECT + CAST ( NULL AS REAL ) + + - CAST ( NULL AS INTEGER ) + - 66 + + - COUNT ( * ) col2 FROM tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - col2 + + 43 AS col2 FROM tab0
----
-153
-19
-54

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8831
SELECT DISTINCT 34 * + + CAST( NULL AS SIGNED ) AS col0, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8831
SELECT DISTINCT 34 * + + CAST ( NULL AS INTEGER ) AS col0, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT + + col2 AS col0 FROM tab2 AS cor0 WHERE 40 <= + col0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT ALL 40 DIV - col1 + + + col2 + + col1 FROM tab0 cor0
----
128
30
60

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL 40 / - col1 + + + col2 + + col1 FROM tab0 cor0
----
128
30
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT DISTINCT + 47 + + 50 * - MAX( 51 ) AS col1 FROM tab2 AS cor0
----
-2503

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT + 47 + + 50 * - MAX ( 51 ) AS col1 FROM tab2 AS cor0
----
-2503

query I rowsort
SELECT ALL - 27 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-27
-27
-27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT - 20 + + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT - 20 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL - MIN( + 51 ) * + 57 * 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-223839

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL - MIN ( + 51 ) * + 57 * 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-223839

query I rowsort
SELECT + col2 FROM tab2 WHERE col1 / + - 47 * 9 >= + col2 * - col0 + - - col2
----
23
40
58

query I rowsort
SELECT col0 + col0 - - - col1 FROM tab0 AS cor0
----
-51
153
193

query I rowsort
SELECT + - col2 + - 48 - - + 18 FROM tab2 AS cor0
----
-53
-70
-88

query II rowsort
SELECT DISTINCT col2 + - col1 AS col1, col2 FROM tab1 AS cor0
----
21
68
54
59
82
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 17 + - col1 col2 FROM tab2 AS cor0
----
-68
-84
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8845
SELECT DISTINCT + + ( COUNT( DISTINCT - + col2 ) ) DIV - 1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT + + ( COUNT ( DISTINCT - + col2 ) ) / - 1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 - 70 + - + col0 FROM tab0 AS cor0
----
-70
-70
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 - + + col0 col1 FROM tab2 AS cor0
----
19
37
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8848
SELECT ( CAST( + 44 AS SIGNED ) ), 74 AS col2 FROM tab1 AS cor0
----
44
74
44
74
44
74

skipif mysql # not compatible
query II rowsort label-8848
SELECT ( CAST ( + 44 AS INTEGER ) ), 74 AS col2 FROM tab1 AS cor0
----
44
74
44
74
44
74

query II rowsort
SELECT + col2, - col1 / - col0 / + col1 * - - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * col1 * + col0 col2, col0 * 20 col2 FROM tab1 AS cor0
----
-25075
1700
-290836
1820
-68544
1020

query I rowsort
SELECT ALL - col2 - + - col0 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8852
SELECT COUNT( * ) DIV - 44 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8852
SELECT COUNT ( * ) / - 44 AS col0 FROM tab0
----
0

query I rowsort
SELECT + col0 * + + col0 * - col1 FROM tab1
----
-36125
-36414
-389207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 25 col1, col0 FROM tab2
----
25
46
25
64
25
75

query I rowsort
SELECT DISTINCT - col1 * - - col2 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8856
SELECT - + 24 DIV + COUNT( * ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8856
SELECT - + 24 / + COUNT ( * ) FROM tab1 AS cor0
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 93 ) * col1 + + + 78 + 11 col0 FROM tab1 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT - ( + col2 ) * + col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT 38 FROM tab2 cor0
----
38
38
38

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT ( COUNT( * ) ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8861
SELECT ( COUNT ( * ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 73 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8863
SELECT + 85 DIV - 4 AS col2 FROM tab1
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-8863
SELECT + 85 / - 4 AS col2 FROM tab1
----
-21
-21
-21

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT MIN( DISTINCT - + 47 ) col0 FROM tab0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8865
SELECT MIN ( DISTINCT - + 47 ) col0 FROM tab0
----
-47

query I rowsort
SELECT DISTINCT - - col2 * - - col2 + - + col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 * ( + ( + - col1 ) ) + - - col0 FROM tab0
----
-1200
-1740
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8868
SELECT - COUNT( * ) + CAST( + ( - 64 ) AS SIGNED ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-8868
SELECT - COUNT ( * ) + CAST ( + ( - 64 ) AS INTEGER ) FROM tab1
----
-67

query I rowsort
SELECT ALL + ( col1 ) * - - col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 WHERE - col2 < - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 54 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT - col0 * - + col2 * 82 AS col2 FROM tab2
----
209920
356700
86756

query I rowsort
SELECT ALL - col0 - + col1 * + + col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT 75 - + + col0 AS col0 FROM tab2 AS cor0
----
0
11
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ALL MIN( + + col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL MIN ( + + col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND + col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + - col1 - + 65 - - 62 IS NOT NULL AND col1 > - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col0 - + + col1 FROM tab0 cor0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT CAST( - + col1 AS SIGNED ) + + - col2 FROM tab2 cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-8878
SELECT CAST ( - + col1 AS INTEGER ) + + - col2 FROM tab2 cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8880
SELECT - MIN( ALL - col2 ), - 76 AS col1 FROM tab1
----
96
-76

skipif mysql # not compatible
query II rowsort label-8880
SELECT - MIN ( ALL - col2 ), - 76 AS col1 FROM tab1
----
96
-76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col1 AND - col1 + - 82 + - + col0 * + col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL SUM( 73 ) AS col2 FROM tab0 WHERE - ( col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL SUM ( 73 ) AS col2 FROM tab0 WHERE - ( col1 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT - SUM( col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8883
SELECT - SUM ( col0 ) FROM tab2 cor0
----
-185

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE ( NULL ) <= + + 49 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT - MAX( ALL col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8885
SELECT - MAX ( ALL col2 ) FROM tab1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8886
SELECT DISTINCT col0 DIV - 36 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT col0 / - 36 FROM tab0
----
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8887
SELECT DISTINCT + col0 DIV 52 + - 59 FROM tab0
----
-58
-59

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT + col0 / 52 + - 59 FROM tab0
----
-58
-59

query I rowsort
SELECT + - 85 + - + ( + - col2 ) + - - 66 * col2 * col1 - + col1 * + + 62 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
19134
208005
87847

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT DISTINCT 5 DIV + col1 col2 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8889
SELECT DISTINCT 5 / + col1 col2 FROM tab1 cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 + - 32 col2 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT ALL + ( - 60 ) FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT 23 * - 88 * + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6069

skipif mysql # not compatible
query I rowsort label-8892
SELECT 23 * - 88 * + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6069

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8894
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + col1 * + - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + col1 * + - col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col2, col1 FROM tab0 cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL ( + - MAX( - + 1 ) ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL ( + - MAX ( - + 1 ) ) FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8897
SELECT + col0 + - + col0 + + CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT + col0 + - + col0 + + CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + 3 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT DISTINCT MAX( - - 68 ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT MAX ( - - 68 ) FROM tab0 AS cor0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8900
SELECT + col2 + - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT + col2 + - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT COUNT( ALL 96 ) + - + ( + + 9 ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8901
SELECT COUNT ( ALL 96 ) + - + ( + + 9 ) AS col1 FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT DISTINCT + SUM( DISTINCT - - 29 ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT + SUM ( DISTINCT - - 29 ) FROM tab0
----
29

query I rowsort
SELECT + col2 + - - 26 + + 56 FROM tab0
----
129
181
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT COUNT( * ) * + 76 AS col0 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT COUNT ( * ) * + 76 AS col0 FROM tab0
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT DISTINCT CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * + + col2 * + + col2 AS col1 FROM tab2
----
-102400
-24334
-252300

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL - col0 + + + 4 FROM tab0
----
-11
-83
-93

query II rowsort
SELECT col0, 80 FROM tab1 WHERE - + 20 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8910
SELECT ALL + col0 + + col0 + + 57 DIV 12 FROM tab2 cor0
----
132
154
96

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + col0 + + col0 + + 57 / 12 FROM tab2 cor0
----
132
154
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8911
SELECT - ( - - 73 ) * - + COUNT( * ) * - - COUNT( * ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
657
3

skipif mysql # not compatible
query II rowsort label-8911
SELECT - ( - - 73 ) * - + COUNT ( * ) * - - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
657
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8912
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT DISTINCT + col1 DIV - col0 - - + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT + col1 / - col0 - - + col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT - col0 DIV - col2 - + - 2 + + 61 AS col2 FROM tab2
----
64
64
65

skipif mysql # not compatible
query I rowsort label-8914
SELECT - col0 / - col2 - + - 2 + + 61 AS col2 FROM tab2
----
64
64
65

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 IS NULL )
----

query I rowsort
SELECT ALL col2 - + 66 AS col1 FROM tab0 AS cor0
----
-19
-56
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT + + MIN( - + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8917
SELECT + + MIN ( - + col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL + + 48 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
-4176
-4656
-720

query II rowsort
SELECT + col2, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col0 FROM tab2 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ALL - MIN( DISTINCT - + col1 ) col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8921
SELECT ALL - MIN ( DISTINCT - + col1 ) col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT - MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8922
SELECT - MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-59

query II rowsort
SELECT ALL 95, col1 FROM tab2 AS cor0
----
95
51
95
67
95
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT - ( + ( COUNT( * ) ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8924
SELECT - ( + ( COUNT ( * ) ) ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL + + SUM( ALL + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL + + SUM ( ALL + col2 ) FROM tab1 AS cor0
----
223

query II rowsort
SELECT DISTINCT col1 * - + col1, col2 AS col0 FROM tab0
----
-1
99
-441
10
-6561
47

query I rowsort
SELECT ALL ( + + col0 ) FROM tab1
----
51
85
91

query II rowsort
SELECT DISTINCT - 97 AS col1, 8 + + col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND - 86 + + col2
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + col0 * + - col1 IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 51 col0 FROM tab1
----
2601
4335
4641

query II rowsort
SELECT DISTINCT - 86 * 96, col2 AS col1 FROM tab0
----
-8256
10
-8256
47
-8256
99

query I rowsort
SELECT ALL ( - - col0 ) * + 35 + + + col2 AS col1 FROM tab0
----
3055
3494
572

query I rowsort
SELECT ALL - + 5 / col0 AS col2 FROM tab2 AS cor0 WHERE NOT 25 + - col2 + + col0 IS NOT NULL
----

query II rowsort
SELECT ALL - col0 AS col1, - 65 FROM tab2 AS cor0
----
-46
-65
-64
-65
-75
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8935
SELECT ALL 32 DIV + ( COUNT( * ) ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL 32 / + ( COUNT ( * ) ) FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL + COUNT( ALL + + 40 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL + COUNT ( ALL + + 40 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + 12 ) + + - 6 * - + col0 + 0 FROM tab0 WHERE NOT NULL = + - ( - ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT - - SUM( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT - - SUM ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE + col2 + + 79 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 12 + + + col0 FROM tab0 AS cor0
----
109
27
99

query I rowsort
SELECT ALL + + 8 + col2 AS col1 FROM tab2 AS cor0
----
31
48
66

query II rowsort
SELECT ALL + col2, col1 FROM tab0 cor0 WHERE NOT col2 * - col2 * + + col1 IS NULL
----
10
21
47
81
99
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND col2 + - - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL + + SUM( - 75 ) FROM tab1 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL + + SUM ( - 75 ) FROM tab1 cor0
----
-225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > - col1 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT DISTINCT - MAX( ALL col2 ) FROM tab2 WHERE ( ( NULL ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT - MAX ( ALL col2 ) FROM tab2 WHERE ( ( NULL ) IS NOT NULL )
----
NULL

query I rowsort
SELECT DISTINCT 67 * - - col1 + + + col1 FROM tab0
----
1428
5508
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT DISTINCT - COUNT( * ) + - - 23 AS col1 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT - COUNT ( * ) + - - 23 AS col1 FROM tab1
----
20

query I rowsort
SELECT ALL + col0 - col2 AS col0 FROM tab2 cor0
----
17
23
24

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( ( - col1 ) ) ) IS NOT NULL
----

query I rowsort
SELECT + 52 AS col2 FROM tab2 AS cor0 WHERE col1 * - - 82 < - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT MIN( col2 ) - + 5 * + COUNT( * ) FROM tab2 WHERE + ( + col1 ) IS NOT NULL
----
8

skipif mysql # not compatible
query I rowsort label-8953
SELECT MIN ( col2 ) - + 5 * + COUNT ( * ) FROM tab2 WHERE + ( + col1 ) IS NOT NULL
----
8

query I rowsort
SELECT 18 * 9 - - col0 FROM tab0
----
177
249
259

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT - MIN( col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8955
SELECT - MIN ( col2 ) AS col1 FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8956
SELECT 59 DIV ( 39 ) + - 92 FROM tab0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-8956
SELECT 59 / ( 39 ) + - 92 FROM tab0
----
-91
-91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 WHERE - 4 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( 52 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8959
SELECT * FROM tab0 WHERE NOT col2 * - col1 <= + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8959
SELECT * FROM tab0 WHERE NOT col2 * - col1 <= + CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 89 + 83 FROM tab1
----
172

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * - col0 ) < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * + col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT col0 * 78 = col1 * col0 + - col1
----
3

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT col0 * 78 = col1 * col0 + - col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8964
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( + col0 ) <= + ( - col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( + col0 ) <= + ( - col1 )
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 42 ) FROM tab1
----
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) < ( - 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( ( 27 ) ) AS col1 FROM tab0
----
27
27
27

query III rowsort
SELECT * FROM tab1 WHERE NOT + 63 NOT IN ( 66 * col2 + col2 )
----

query I rowsort
SELECT 55 FROM tab2 WHERE NOT NULL IS NOT NULL
----
55
55
55

query I rowsort
SELECT DISTINCT - col2 * - 1 FROM tab1 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND ( + col2 + - 86 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8971
SELECT CAST( NULL AS SIGNED ) * - 54 + 97 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT CAST ( NULL AS INTEGER ) * - 54 + 97 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT - COUNT( - 69 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8972
SELECT - COUNT ( - 69 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT + COUNT( * ) FROM tab0 WHERE NOT + col2 - + col2 BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8973
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + col2 - + col2 BETWEEN ( NULL ) AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT DISTINCT - MIN( - ( + col0 ) ) AS col1 FROM tab1 AS cor0 WHERE 28 * - col2 > col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT - MIN ( - ( + col0 ) ) AS col1 FROM tab1 AS cor0 WHERE 28 * - col2 > col1
----
NULL

query I rowsort
SELECT + 70 AS col1 FROM tab1 AS cor0 WHERE NOT 24 * col1 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT - MIN( col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8976
SELECT - MIN ( col2 ) AS col2 FROM tab1
----
-59

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 38 + 66 * 10 col2 FROM tab2 cor0
----
-1544
-214
-860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT CAST( + 24 AS SIGNED ) col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
24
24
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8979
SELECT CAST ( + 24 AS INTEGER ) col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL MAX( DISTINCT col1 ) FROM tab1 AS cor0 WHERE 29 * 16 <= - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL MAX ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE 29 * 16 <= - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 67 + - ( col1 ) col0 FROM tab2 AS cor0
----
-10
0
16

query I rowsort
SELECT - 33 FROM tab0 AS cor0 WHERE ( + 25 ) < ( ( + col0 ) )
----
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL - MAX( DISTINCT 58 ) * + 85 FROM tab0 AS cor0
----
-4930

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL - MAX ( DISTINCT 58 ) * + 85 FROM tab0 AS cor0
----
-4930

query I rowsort
SELECT - 81 + col1 AS col2 FROM tab1 AS cor0
----
-34
-67
-76

query I rowsort
SELECT + col0 + + 19 AS col2 FROM tab2 AS cor0
----
65
83
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8986
SELECT DISTINCT 55 / ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT 55 / ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 38 ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT DISTINCT CAST( col0 AS SIGNED ) * - col0 col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8988
SELECT DISTINCT CAST ( col0 AS INTEGER ) * - col0 col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8989
SELECT DISTINCT 61 DIV COUNT( * ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT 61 / COUNT ( * ) FROM tab1 AS cor0
----
20

query I rowsort
SELECT ( 24 ) * col2 + + 27 AS col1 FROM tab1 AS cor0
----
1443
1659
2331

query I rowsort
SELECT col2 / + col0 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT col0 * + 13 + + col2 AS col2 FROM tab2 AS cor0
----
1033
621
872

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT + 75 + 61 DIV 60 FROM tab0 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-8993
SELECT + 75 + 61 / 60 FROM tab0 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT + AVG ( ALL 96 ) - + MAX( - col2 + - col1 ) AS col1 FROM tab1 WHERE - 81 * col1 BETWEEN - 3 AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT + AVG ( ALL 96 ) - + MAX ( - col2 + - col1 ) AS col1 FROM tab1 WHERE - 81 * col1 BETWEEN - 3 AND + col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8995
SELECT ALL - col0 DIV - + col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - col0 / - + col2 FROM tab0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 + + col1 col2 FROM tab0
----
175
199
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT DISTINCT 25 DIV - 82 + col0 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT 25 / - 82 + col0 AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8998
SELECT ALL - COUNT( - ( col1 ) ) DIV ( - COUNT( * ) ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL - COUNT ( - ( col1 ) ) / ( - COUNT ( * ) ) AS col2 FROM tab2
----
1

query I rowsort
SELECT DISTINCT ( - 17 ) FROM tab2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9000
SELECT 52 DIV + col1 FROM tab0
----
0
2
52

skipif mysql # not compatible
query I rowsort label-9000
SELECT 52 / + col1 FROM tab0
----
0
2
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT DISTINCT 22 + + COUNT( * ) - 28 * - COUNT( * ) FROM tab0
----
109

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT 22 + + COUNT ( * ) - 28 * - COUNT ( * ) FROM tab0
----
109

query III rowsort
SELECT * FROM tab1 WHERE col0 + col2 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL ( - COUNT( 69 ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9003
SELECT ALL ( - COUNT ( 69 ) ) col0 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 27 ) >= + 21 * + col2
----

query I rowsort
SELECT DISTINCT col2 * - col1 - - col2 * col1 FROM tab2 WHERE col0 * col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE 61 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9007
SELECT CAST( + 89 AS SIGNED ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9007
SELECT CAST ( + 89 AS INTEGER ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT - col1 - + - 74 + 90 * CAST( NULL AS SIGNED ) * 22 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT - col1 - + - 74 + 90 * CAST ( NULL AS INTEGER ) * 22 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 12 - - col1 AS col0 FROM tab0 AS cor0
----
-11
69
9

query I rowsort
SELECT ALL + 44 - col0 AS col2 FROM tab2 AS cor0
----
-2
-20
-31

query I rowsort
SELECT - 68 + - col2 FROM tab1
----
-127
-136
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-9012
SELECT DISTINCT - col0 DIV 87 - - col2 FROM tab1
----
59
67
96

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT - col0 / 87 - - col2 FROM tab1
----
59
67
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( col2 IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( col2 IS NULL )
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + ( - 46 ) AS col2 FROM tab1
----
2162
230
644

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT DISTINCT - 47 + - COUNT( * ) FROM tab1 WHERE NOT ( + - col0 ) IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT - 47 + - COUNT ( * ) FROM tab1 WHERE NOT ( + - col0 ) IS NOT NULL
----
-47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + 70 )
----

query II rowsort
SELECT DISTINCT - 43, - ( - col0 ) * + col2 AS col2 FROM tab0 AS cor0
----
-43
705
-43
870
-43
9603

query II rowsort
SELECT col2, col1 + + col2 - + col1 AS col0 FROM tab2 cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9020
SELECT - col0 DIV + 38 col1 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9020
SELECT - col0 / + 38 col1 FROM tab0 AS cor0
----
-2
-2
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT DISTINCT - SUM( + - col2 ) col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9022
SELECT DISTINCT - SUM ( + - col2 ) col2 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9023
SELECT * FROM tab2 WHERE NOT + 92 + - CAST( col2 AS SIGNED ) + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9023
SELECT * FROM tab2 WHERE NOT + 92 + - CAST ( col2 AS INTEGER ) + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - + 63 * + col1
----

query I rowsort
SELECT - col0 + + col0 AS col1 FROM tab1 WHERE NOT ( + col1 ) IN ( + 95 * - col1 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL COUNT( * ) col1 FROM tab1 WHERE - 93 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9026
SELECT ALL COUNT ( * ) col1 FROM tab1 WHERE - 93 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL COUNT( * ) * - - 91 AS col0 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL COUNT ( * ) * - - 91 AS col0 FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT DISTINCT - COUNT( DISTINCT + col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9029
SELECT DISTINCT COUNT( * ) DIV 28 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT COUNT ( * ) / 28 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT col1 * + - 49 FROM tab2
----
-2499
-3283
-3773

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 0 FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT - - ( - - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9033
SELECT - - ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - + 31 AS col1 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL col2 * col1 + col1 * col1 AS col0 FROM tab2 cor0 WHERE NOT ( col0 * - col2 + col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9036
SELECT ALL ( 60 ) * - COUNT( - - col2 ) * + COUNT( * ) - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL ( 60 ) * - COUNT ( - - col2 ) * + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL ( - - 37 ) + - 71 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL col2 * + ( + 38 ) + + col0 * + col2 FROM tab2 AS cor0
----
1932
4080
6554

query I rowsort
SELECT DISTINCT + col2 + - col0 * - 2 AS col2 FROM tab2 AS cor0
----
115
168
208

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT 68 * - COUNT( 48 ) FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-9041
SELECT 68 * - COUNT ( 48 ) FROM tab1 AS cor0
----
-204

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 * + col1 AND NULL
----

query I rowsort
SELECT - 52 * + - 89 * - col1 * col2 FROM tab0 AS cor0
----
-17618796
-458172
-971880

query I rowsort
SELECT ( + - 82 ) * + col1 * - - 18 FROM tab1 AS cor0
----
-20664
-69372
-7380

query I rowsort
SELECT ALL - - 18 * 71 FROM tab0 AS cor0
----
1278
1278
1278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9046
SELECT ( - col2 ) + + col1 + - CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9046
SELECT ( - col2 ) + + col1 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT 3 + - col1 FROM tab0
----
-18
-78
2

query I rowsort
SELECT ALL - col1 * - + 4 FROM tab1 WHERE ( - 61 / + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT + + 25 + - - COUNT( * ) FROM tab2 cor0
----
28

skipif mysql # not compatible
query I rowsort label-9049
SELECT + + 25 + - - COUNT ( * ) FROM tab2 cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT ALL - ( - ( + + col2 ) ) + 44 / - + 26 * + ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL - ( - ( + + col2 ) ) + 44 / - + 26 * + ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE col1 - + + col0 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL + col2 - + 84 FROM tab1 AS cor0
----
-16
-25
12

query I rowsort
SELECT ALL + col1 + + - 26 FROM tab2 cor0
----
25
41
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9054
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / + col0 / CAST( NULL AS SIGNED ) / 43 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9054
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / + col0 / CAST ( NULL AS INTEGER ) / 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9055
SELECT COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9055
SELECT COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9056
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 26 FROM tab1 WHERE + 2 BETWEEN ( - + col2 ) AND + 87
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT - 51 * SUM( + col2 ) FROM tab0
----
-7956

skipif mysql # not compatible
query I rowsort label-9058
SELECT - 51 * SUM ( + col2 ) FROM tab0
----
-7956

onlyif mysql # aggregate syntax: 
query II rowsort label-9059
SELECT ALL COUNT( * ) * + 50 AS col2, 39 FROM tab1 AS cor0
----
150
39

skipif mysql # not compatible
query II rowsort label-9059
SELECT ALL COUNT ( * ) * + 50 AS col2, 39 FROM tab1 AS cor0
----
150
39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9061
SELECT ALL - - 78 DIV - col1 + + col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL - - 78 / - col1 + + col0 FROM tab2 AS cor0
----
45
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL - MAX( col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL - MAX ( col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT DISTINCT - MIN( ALL 62 ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT - MIN ( ALL 62 ) FROM tab0
----
-62

query I rowsort
SELECT DISTINCT - 68 * + col0 AS col0 FROM tab1
----
-3468
-5780
-6188

query III rowsort
SELECT ALL * FROM tab1 WHERE + 40 >= NULL
----

query I rowsort
SELECT - 35 * 20 AS col1 FROM tab2
----
-700
-700
-700

query I rowsort
SELECT ALL ( ( - + ( - 43 ) ) ) * 75 AS col1 FROM tab1
----
3225
3225
3225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9068
SELECT col2 * - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT col2 / - col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-9068
SELECT col2 * - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT col2 / - col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + + col1 + - col1 * - col1 NOT BETWEEN ( - col0 ) AND ( col0 * - 10 * - ( col2 ) + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9071
SELECT COUNT( * ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9071
SELECT COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT ALL MIN( DISTINCT + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL MIN ( DISTINCT + col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9073
SELECT DISTINCT - CAST( 5 AS SIGNED ) AS col0 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT - CAST ( 5 AS INTEGER ) AS col0 FROM tab0
----
-5

query I rowsort
SELECT ALL ( - 30 ) FROM tab0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab0 AS cor0 WHERE 1 * - - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9076
SELECT DISTINCT - - 18 * + + CAST( - + COUNT( * ) AS DECIMAL ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT - - 18 * + + CAST ( - + COUNT ( * ) AS REAL ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 38 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 38 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 + 5 AS col1 FROM tab1 AS cor0 WHERE - 15 IS NOT NULL
----
56
90
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT - + 27 AS col0 FROM tab1 cor0
----
-27
-27
-27

query I rowsort
SELECT 85 * - 47 AS col2 FROM tab0
----
-3995
-3995
-3995

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT DISTINCT MAX( ALL - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT MAX ( ALL - col2 ) FROM tab2
----
-23

query I rowsort
SELECT DISTINCT + col1 * + + 30 AS col0 FROM tab1
----
1410
150
420

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 IN ( + - 12 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT DISTINCT SUM( ALL 83 ) FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT SUM ( ALL 83 ) FROM tab0
----
249

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 0 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 51 * - 98 AS col1 FROM tab0 AS cor0
----
-4998
-4998
-4998

query II rowsort
SELECT - col2 AS col0, - col0 FROM tab0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9090
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 * + col2 col1 FROM tab0
----
3196
6732
680

query I rowsort
SELECT DISTINCT + - 84 * + 73 + - 10 * - col1 AS col2 FROM tab0 AS cor0
----
-5322
-5922
-6122

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 WHERE NOT ( col0 + - 66 ) <= col0
----
0

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 WHERE NOT ( col0 + - 66 ) <= col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL 41 * + + COUNT( * ) FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL 41 * + + COUNT ( * ) FROM tab2 AS cor0
----
123

query I rowsort
SELECT - 8 * + - col1 * - col0 FROM tab1 AS cor0
----
-3400
-34216
-5712

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT + + SUM( + 25 ) AS col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9096
SELECT + + SUM ( + 25 ) AS col1 FROM tab0 AS cor0
----
75

query I rowsort
SELECT + 16 * + col2 AS col1 FROM tab1 AS cor0
----
1088
1536
944

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 64 * - 59 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, 53 AS col2 FROM tab0 AS cor0
----
1
53
21
53
81
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9100
SELECT ALL 18 AS col0, + 30 * + COUNT( * ) FROM tab0 AS cor0
----
18
90

skipif mysql # not compatible
query II rowsort label-9100
SELECT ALL 18 AS col0, + 30 * + COUNT ( * ) FROM tab0 AS cor0
----
18
90

query I rowsort
SELECT ALL col1 * - col2 FROM tab2 cor0 WHERE col2 * - 49 * + + 35 <= - col0 * col1
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1, + 31 col0 FROM tab1 AS cor0
----
-14
31
-47
31
-5
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9103
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, col1 AS col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9103
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, col1 AS col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1 * - + ( - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT DISTINCT CAST( + col2 AS SIGNED ) + + 17 AS col1 FROM tab2
----
40
57
75

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + + 17 AS col1 FROM tab2
----
40
57
75

query I rowsort
SELECT ALL col1 * ( + col0 ) AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9107
SELECT ( + CAST( - - col0 AS SIGNED ) ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9107
SELECT ( + CAST ( - - col0 AS INTEGER ) ) AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT + col1 * - 6 * + col2 * + 6 + - col2 * + col1 AS col1 FROM tab2
----
-113960
-143782
-43401

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT ALL MAX( - ( + col2 ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL MAX ( - ( + col2 ) ) FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 + + col2 col0 FROM tab2
----
120
137
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT + COUNT( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9111
SELECT + COUNT ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT ALL - col2 * + col1 - - + 4 + - + CAST( + col1 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
-1258
-237
-3171

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL - col2 * + col1 - - + 4 + - + CAST ( + col1 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
-1258
-237
-3171

query II rowsort
SELECT ALL - 41 + col1 + + + col2 * - + col0 AS col1, - 91 * + col1 FROM tab1 cor0
----
-4923
-1274
-5051
-455
-6182
-4277

query I rowsort
SELECT + col1 * + + col1 + - 44 - - + 37 FROM tab0 AS cor0
----
-6
434
6554

query I rowsort
SELECT ALL - + col2 - 16 AS col0 FROM tab1 AS cor0
----
-112
-75
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT ALL - ( - 26 ) * - col0 * 84 * - 22 - - - col1 + + col1 + + col0 * - - col2 + CAST( NULL AS SIGNED ) - - ( + + col1 ) * + 32 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL - ( - 26 ) * - col0 * 84 * - 22 - - - col1 + + col1 + + col0 * - - col2 + CAST ( NULL AS INTEGER ) - - ( + + col1 ) * + 32 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE 76 <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 73 + + 14 FROM tab0
----
87
87
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9119
SELECT ALL COUNT( - + col0 ) AS col1, 61 FROM tab0
----
3
61

skipif mysql # not compatible
query II rowsort label-9119
SELECT ALL COUNT ( - + col0 ) AS col1, 61 FROM tab0
----
3
61

query I rowsort
SELECT + col2 + - col0 * + + 66 FROM tab2
----
-3013
-4184
-4892

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 96 - + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9122
SELECT DISTINCT CAST( - col0 AS DECIMAL ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT CAST ( - col0 AS REAL ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL + 18 * + 64 FROM tab2 AS cor0
----
1152
1152
1152

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( 71 ) IS NULL
----

query I rowsort
SELECT 89 * 2 AS col1 FROM tab2
----
178
178
178

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 16 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - 72 ) AS col0 FROM tab2 cor0
----
-72

query I rowsort
SELECT col1 + 57 AS col0 FROM tab1 cor0
----
104
62
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9131
SELECT DISTINCT COUNT( * ) * CAST( NULL AS DECIMAL ) * + - 17 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS REAL ) * + - 17 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 * - - 31 AS col1 FROM tab2
----
1426
1984
2325

query I rowsort
SELECT + col2 + - + 99 FROM tab0
----
-52
-89
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9134
SELECT - ( - 57 ) + + ( COUNT( * ) ) - + ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT - ( - 57 ) + + ( COUNT ( * ) ) - + ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT 17 + - col1 + + - 79 FROM tab1
----
-109
-67
-76

query I rowsort
SELECT col0 + - ( + 87 ) FROM tab2
----
-12
-23
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT MAX( ALL col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9137
SELECT MAX ( ALL col2 ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9138
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - col2 * + col2 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - col2 * + col2 AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col2 * - col2 - + 53 AS col1 FROM tab0 AS cor0
----
2156
47
9748

query II rowsort
SELECT DISTINCT ( col2 ) AS col0, - 83 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT + SUM( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9141
SELECT + SUM ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + + col2 * - 29 FROM tab2 AS cor0
----
-1160
-1682
-667

query I rowsort
SELECT ALL + 15 * - + ( col2 ) + + - 84 FROM tab1 AS cor0 WHERE NOT col1 + col0 + 18 + - - 29 + - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT + SUM( ALL - - 66 ) AS col2 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT + SUM ( ALL - - 66 ) AS col2 FROM tab1
----
198

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT col0 IS NULL
----
15
87
97

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT + 94 + ( + + col2 ) AS col1 FROM tab0
----
104
141
193

query III rowsort
SELECT * FROM tab2 WHERE + 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT + - col0 + + col1 + + ( + col0 ) * - col0 + - col0 * - 49 + - 83 AS col2 FROM tab1 AS cor0
----
-222
-3223
-3949

query II rowsort
SELECT ALL col0 + col1 AS col2, + col1 FROM tab0 AS cor0
----
108
21
96
81
98
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9152
SELECT DISTINCT + COUNT( - + 83 ) AS col2 FROM tab1 AS cor0 WHERE - ( ( CAST( NULL AS SIGNED ) ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT + COUNT ( - + 83 ) AS col2 FROM tab1 AS cor0 WHERE - ( ( CAST ( NULL AS INTEGER ) ) ) IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 - ( - 99 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + + MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9154
SELECT + + MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL - - col2 - + col0 FROM tab0 AS cor0
----
-77
2
32

query III rowsort
SELECT * FROM tab0 WHERE NOT - 93 IN ( + + 55 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL + COUNT( * ) FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL + COUNT ( * ) FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT ALL col2 + + 30 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - + col1
----

query I rowsort
SELECT ALL + 71 * + + col1 + + 63 FROM tab0 AS cor0
----
134
1554
5814

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9162
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL < NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 51 * + + col2 * - + col1 >= 59 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - col0 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9165
SELECT DISTINCT + COUNT( * ) + + ( + 35 ) AS col0, CAST( - 52 AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
38
-52

skipif mysql # not compatible
query II rowsort label-9165
SELECT DISTINCT + COUNT ( * ) + + ( + 35 ) AS col0, CAST ( - 52 AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
38
-52

query I rowsort
SELECT DISTINCT 22 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT MAX( - + 56 ) FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-9167
SELECT MAX ( - + 56 ) FROM tab0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( col1 ) + + col1 + - col1, col0 col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT ALL - MAX( ALL - 11 ) * 22 AS col2 FROM tab0 AS cor0
----
242

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL - MAX ( ALL - 11 ) * 22 AS col2 FROM tab0 AS cor0
----
242

query I rowsort
SELECT + ( col2 ) * + 30 AS col2 FROM tab0 cor0
----
1410
2970
300

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL - COUNT( * ) * - MIN( ALL col0 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL - COUNT ( * ) * - MIN ( ALL col0 ) FROM tab0 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT + - col1 DIV + col1 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9172
SELECT + - col1 / + col1 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - col0 BETWEEN + 18 AND NULL )
----

query I rowsort
SELECT - + 40 FROM tab1 WHERE NULL BETWEEN NULL AND - col1 / - + 95 / col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT ALL CAST( NULL AS SIGNED ) * + - 45 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL CAST ( NULL AS INTEGER ) * + - 45 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 39 * - col1 AS col0 FROM tab0
----
-3159
-39
-819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col2 ) + - 96 * - 90 + - col1 col2 FROM tab2
----
8603
8612
8631

query I rowsort
SELECT DISTINCT + ( - + col0 ) + + col0 FROM tab2
----
0

query I rowsort
SELECT + 45 + + col0 + + + 32 FROM tab0
----
164
174
92

query I rowsort
SELECT col2 + 46 AS col1 FROM tab0
----
145
56
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9182
SELECT DISTINCT COUNT( * ) + - MIN( col0 ) DIV COUNT( * ) AS col2 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT COUNT ( * ) + - MIN ( col0 ) / COUNT ( * ) AS col2 FROM tab0
----
-2

query I rowsort
SELECT ( 5 ) + - col1 + - col2 * ( + ( col2 ) ) * - col1 AS col1 FROM tab2 AS cor0
----
123128
225326
26933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT ALL + col1 + + ( - CAST( NULL AS SIGNED ) ) + + 73 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9184
SELECT ALL + col1 + + ( - CAST ( NULL AS INTEGER ) ) + + 73 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
80

query I rowsort
SELECT - 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query II rowsort
SELECT col2 AS col1, col1 * - col0 FROM tab0
----
10
-1827
47
-1215
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9188
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - + col2 + + 52 FROM tab1 AS cor0
----
-16
-44
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT - ( - COUNT( * ) ) - 49 AS col1 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9191
SELECT - ( - COUNT ( * ) ) - 49 AS col1 FROM tab1 AS cor0
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9192
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT + 43 * + 3 NOT IN ( - 21, - col1 - + + CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) + + 17, + col2 )
----

skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT + 43 * + 3 NOT IN ( - 21, - col1 - + + CAST ( + CAST ( NULL AS REAL ) AS REAL ) + + 17, + col2 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 61 BETWEEN + col1 AND NULL
----
15
81
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT IN ( + + 10 + - + col1, - ( + col2 ) + - col0 + - ( + col2 ) + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT MAX( + ( col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9196
SELECT MAX ( + ( col1 ) ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL MIN( DISTINCT - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL MIN ( DISTINCT - col1 ) AS col0 FROM tab2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + col1 col2, - 96 FROM tab0
----
-210
-96
-3807
-96
-99
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9199
SELECT DISTINCT + SUM( + CAST( col2 AS SIGNED ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT + SUM ( + CAST ( col2 AS INTEGER ) ) FROM tab1
----
223

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT - + 87 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9201
SELECT + 10 DIV - ( - - ( + + col2 ) ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9201
SELECT + 10 / - ( - - ( + + col2 ) ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( 32 ) FROM tab2
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL COUNT( * ) * + 10 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
30

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL COUNT ( * ) * + 10 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9204
SELECT col1 DIV - - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9204
SELECT col1 / - - col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL - COUNT( * ) * + - 95 AS col1 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL - COUNT ( * ) * + - 95 AS col1 FROM tab2
----
285

query I rowsort
SELECT - col0 / - 48 FROM tab1 AS cor0 WHERE NOT ( - col2 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 < - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + + col0 - - - 28 col0 FROM tab0 AS cor0
----
-1243
-125
-1855

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 IS NOT NULL AND ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - col1 AS col0, col0 * - + col2 FROM tab2 AS cor0
----
-51
-1058
-67
-4350
-77
-2560

query I rowsort
SELECT - - 19 + - + 4 AS col0 FROM tab2 cor0
----
15
15
15

query I rowsort
SELECT 18 + + 25 FROM tab1 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL + 39 * SUM( - 81 ) + + 29 FROM tab2 AS cor0
----
-9448

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL + 39 * SUM ( - 81 ) + + 29 FROM tab2 AS cor0
----
-9448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT + CAST( NULL AS SIGNED ) + - 13 - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT + CAST ( NULL AS INTEGER ) + - 13 - + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT 94 + + - COUNT( * ) * SUM( ( - col0 ) ) FROM tab1
----
775

skipif mysql # not compatible
query I rowsort label-9215
SELECT 94 + + - COUNT ( * ) * SUM ( ( - col0 ) ) FROM tab1
----
775

query I rowsort
SELECT col2 * col0 * - 39 * - ( - col2 ) + + 14 * + - 54 FROM tab1
----
-11540271
-16411332
-18331380

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL + COUNT( DISTINCT + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + COUNT ( DISTINCT + col0 ) AS col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 col2 FROM tab1 AS cor0 WHERE col0 / + - 69 IS NULL
----

query I rowsort
SELECT ALL + 99 * - 66 FROM tab2 cor0
----
-6534
-6534
-6534

query I rowsort
SELECT DISTINCT + + 21 + + - 8 AS col2 FROM tab0 AS cor0
----
13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <= NULL
----

query I rowsort
SELECT + col0 * + 41 - - col2 AS col1 FROM tab2 AS cor0
----
1909
2664
3133

query I rowsort
SELECT + col0 - - col1 + + col2 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT 91 + - + col0 + 98 AS col0 FROM tab0 AS cor0
----
102
174
92

query I rowsort
SELECT - col1 + col1 * + - 92 + + 72 FROM tab2
----
-4671
-6159
-7089

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9226
SELECT col0 * - - 40 + col2 * - CAST( NULL AS DECIMAL ) - - - col1 + - - 39 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT col0 * - - 40 + col2 * - CAST ( NULL AS REAL ) - - - col1 + - - 39 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT DISTINCT - ( - MIN( DISTINCT + + col2 ) ) + + COUNT( * ) - - 10 + - SUM( + - col0 ) AS col1 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT - ( - MIN ( DISTINCT + + col2 ) ) + + COUNT ( * ) - - 10 + - SUM ( + - col0 ) AS col1 FROM tab0
----
222

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 <= col1 + - ( + 32 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT MAX( ALL - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9229
SELECT MAX ( ALL - col0 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - 3 AND NULL
----

query I rowsort
SELECT + ( - 14 ) FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 79 col1, col2 FROM tab0 AS cor0
----
79
10
79
47
79
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9234
SELECT DISTINCT - + 89 DIV - + 72 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT - + 89 / - + 72 AS col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 84 / col2 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9236
SELECT ALL col1 AS col2, col1 - - + col0 + col1 * - col0 + 9 + - - col1 DIV + col1 FROM tab0
----
1
11
21
-1709
81
-1109

skipif mysql # not compatible
query II rowsort label-9236
SELECT ALL col1 AS col2, col1 - - + col0 + col1 * - col0 + 9 + - - col1 / + col1 FROM tab0
----
1
11
21
-1709
81
-1109

query I rowsort
SELECT ALL 95 * + 38 AS col2 FROM tab1
----
3610
3610
3610

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9238
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - + col2 * - 57 * 49 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT - CAST ( NULL AS REAL ) / - + col2 * - 57 * 49 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 27 < - + 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT + 77 DIV - col2 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-9241
SELECT + 77 / - col2 FROM tab0 AS cor0
----
-1
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT - COUNT( * ) * + + 15 + 90 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NULL
----
-45

skipif mysql # not compatible
query I rowsort label-9242
SELECT - COUNT ( * ) * + + 15 + 90 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NULL
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL + ( MIN( col2 ) ) + - 10 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL + ( MIN ( col2 ) ) + - 10 FROM tab1 AS cor0
----
49

query I rowsort
SELECT + 79 FROM tab1 AS cor0 WHERE - col0 * - - col2 * 52 IS NULL
----

query I rowsort
SELECT ALL + ( - ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT col1 * + 99 + + col0 AS col2 FROM tab0 AS cor0
----
196
2166
8034

query I rowsort
SELECT 45 + col0 - - 48 AS col1 FROM tab0
----
108
180
190

query II rowsort
SELECT ALL - col1 AS col0, - col0 AS col0 FROM tab2
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT ALL - ( - 73 ) AS col0 FROM tab1
----
73
73
73

query I rowsort
SELECT ALL - col0 * col2 + + col0 + - col1 - - col1 FROM tab0
----
-690
-783
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT 94 + COUNT( * ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-9251
SELECT 94 + COUNT ( * ) FROM tab1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT DISTINCT 86 + COUNT( * ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT 86 + COUNT ( * ) FROM tab0
----
89

query III rowsort
SELECT * FROM tab1 WHERE col2 + + 31 * 73 <> - col1 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col0 + - 48 AS col2 FROM tab1 AS cor0
----
-133
-139
-99

query I rowsort
SELECT ALL col0 - + - col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT ALL + 71 * col1 AS col0 FROM tab2
----
3621
4757
5467

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9258
SELECT + col2 DIV + 61 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9258
SELECT + col2 / + 61 AS col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT + 4 * + MAX( + col1 ) FROM tab0 cor0
----
324

skipif mysql # not compatible
query I rowsort label-9259
SELECT + 4 * + MAX ( + col1 ) FROM tab0 cor0
----
324

query I rowsort
SELECT DISTINCT - ( - col2 ) * - ( - col0 ) + 81 AS col1 FROM tab0 AS cor0
----
786
951
9684

query I rowsort
SELECT ALL + 78 * + col0 * 51 AS col0 FROM tab2 cor0
----
182988
254592
298350

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT DISTINCT - - MIN( - - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT - - MIN ( - - col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL - + ( + 16 ) FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT + - col0 * + 62 AS col2 FROM tab2 AS cor0
----
-2852
-3968
-4650

query II rowsort
SELECT col1, - col2 * + col2 FROM tab2
----
51
-529
67
-3364
77
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT - COUNT( * ) * - 50 * - ( 71 ) AS col2 FROM tab1
----
-10650

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT - COUNT ( * ) * - 50 * - ( 71 ) AS col2 FROM tab1
----
-10650

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col2, - 77 + + 38 AS col1 FROM tab1
----
-59
-39
-68
-39
-96
-39

query II rowsort
SELECT col2, col1 + + 17 + + 77 AS col2 FROM tab1
----
59
99
68
141
96
108

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9270
SELECT * FROM tab2 WHERE NOT ( - + col0 - + 88 - - + col1 * - col0 + - + col0 ) BETWEEN NULL AND ( + CAST( - 91 AS DECIMAL ) ) * + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9270
SELECT * FROM tab2 WHERE NOT ( - + col0 - + 88 - - + col1 * - col0 + - + col0 ) BETWEEN NULL AND ( + CAST ( - 91 AS REAL ) ) * + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9271
SELECT ( + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT ( + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT MIN( DISTINCT - + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9272
SELECT MIN ( DISTINCT - + col2 ) FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT CAST( NULL AS SIGNED ) + - col2 - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT CAST ( NULL AS INTEGER ) + - col2 - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * - - 11 FROM tab0 AS cor0
----
11
231
891

onlyif mysql # aggregate syntax: 
query II rowsort label-9275
SELECT DISTINCT + ( - MIN( DISTINCT - + col2 ) ) AS col1, 69 FROM tab2 cor0
----
58
69

skipif mysql # not compatible
query II rowsort label-9275
SELECT DISTINCT + ( - MIN ( DISTINCT - + col2 ) ) AS col1, 69 FROM tab2 cor0
----
58
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT - 24 * - COUNT( * ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9276
SELECT - 24 * - COUNT ( * ) FROM tab0
----
72

query I rowsort
SELECT 60 + - - col2 - - col0 FROM tab1 AS cor0
----
204
207
219

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT DISTINCT + MAX( ALL col1 ) * + COUNT( ALL + 34 ) + + SUM( - 90 ) + + 51 AS col2 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT + MAX ( ALL col1 ) * + COUNT ( ALL + 34 ) + + SUM ( - 90 ) + + 51 AS col2 FROM tab2 cor0
----
12

query I rowsort
SELECT + col0 - col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
37
44
80

query I rowsort
SELECT DISTINCT - ( 51 ) + - 35 FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT DISTINCT SUM( DISTINCT - col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT SUM ( DISTINCT - col1 ) FROM tab2 cor0
----
-195

query I rowsort
SELECT DISTINCT 92 - + - col2 - - - col1 AS col0 FROM tab0 AS cor0
----
190
58
81

query I rowsort
SELECT + - col1 + + 99 FROM tab1 AS cor0
----
52
85
94

query I rowsort
SELECT DISTINCT col0 * - - 88 FROM tab1 AS cor0
----
4488
7480
8008

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT - col1 * + 60 AS col1 FROM tab0
----
-1260
-4860
-60

query I rowsort
SELECT + col0 * 7 AS col0 FROM tab1
----
357
595
637

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - col1, + 0 * col2, - ( + col1 ) )
----

query I rowsort
SELECT + col1 - col2 * col2 + - - 74 FROM tab0
----
-2054
-5
-9726

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + 65, + 27, + col2 )
----

query I rowsort
SELECT ALL + 10 - + + 23 + + col2 AS col2 FROM tab2 cor0
----
10
27
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT - MAX( 39 ) AS col1 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9292
SELECT - MAX ( 39 ) AS col1 FROM tab1 AS cor0
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9293
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 NOT BETWEEN + - col1 * + col1 * CAST( - col1 AS DECIMAL ) - - col2 - - + 75 / 45 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9293
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 NOT BETWEEN + - col1 * + col1 * CAST ( - col1 AS REAL ) - - col2 - - + 75 / 45 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 60 * col1 + + 89 * col1 AS col1 FROM tab1 AS cor0
----
2086
7003
745

query I rowsort
SELECT + 83 * - + 59 AS col0 FROM tab0 AS cor0
----
-4897
-4897
-4897

query I rowsort
SELECT + ( + 28 ) * + ( + + col2 ) AS col1 FROM tab1 cor0
----
1652
1904
2688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col0 FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9298
SELECT - COUNT( * ) col2, - 69 FROM tab1 AS cor0
----
-3
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9298
SELECT - COUNT ( * ) col2, - 69 FROM tab1 AS cor0
----
-3
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9299
SELECT DISTINCT + - CAST( COUNT( * ) AS SIGNED ) FROM tab2 cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 cor0 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT + - MAX( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9300
SELECT + - MAX ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT DISTINCT + - ( - COUNT( * ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9301
SELECT DISTINCT + - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL + ( - COUNT( * ) ) * + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL + ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT DISTINCT + ( ( - 30 ) ) FROM tab0
----
-30

query I rowsort
SELECT ALL col0 + - col2 * + col1 AS col1 FROM tab1
----
-1293
-210
-3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col1 FROM tab0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) col1 FROM tab2
----
23
40
58

query I rowsort
SELECT col0 + - + ( - col1 ) AS col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL col1 * - ( 43 ) FROM tab2 cor0
----
-2193
-2881
-3311

query I rowsort
SELECT - ( - + 79 ) + + col0 FROM tab1 cor0
----
130
164
170

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT + MAX( ALL 55 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
55

skipif mysql # not compatible
query I rowsort label-9310
SELECT + MAX ( ALL 55 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9311
SELECT + CAST( NULL AS DECIMAL ) / - 3 - - MAX( + col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT + CAST ( NULL AS REAL ) / - 3 - - MAX ( + col0 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + - col1 col1 FROM tab1 AS cor0 WHERE NULL <> - 14 + + col0
----

query I rowsort
SELECT - + col0 + + - col0 AS col0 FROM tab2 AS cor0
----
-128
-150
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col1, col1 + + 22 + 13 col1 FROM tab2
----
51
86
67
102
77
112

query II rowsort
SELECT + 59 + - 15 + - 9 * - col0 AS col2, + 47 FROM tab2
----
458
47
620
47
719
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT ALL 8 + + MIN( ALL col0 ) AS col0 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL 8 + + MIN ( ALL col0 ) AS col0 FROM tab0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT ( + CAST( + - 68 AS SIGNED ) ) + - col2 FROM tab0
----
-115
-167
-78

skipif mysql # not compatible
query I rowsort label-9317
SELECT ( + CAST ( + - 68 AS INTEGER ) ) + - col2 FROM tab0
----
-115
-167
-78

query I rowsort
SELECT col2 * + 60 + - col2 AS col0 FROM tab2
----
1357
2360
3422

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT - ( + 0 ) + + COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9319
SELECT - ( + 0 ) + + COUNT ( * ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9320
SELECT - + 60 + CAST( NULL AS DECIMAL ) - + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 12 + + col0 > - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT - + 60 + CAST ( NULL AS REAL ) - + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 12 + + col0 > - + 57
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0, + col0 col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL - MAX( ALL - col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL - MAX ( ALL - col1 ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT - COUNT( * ) * + + 32 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9323
SELECT - COUNT ( * ) * + + 32 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + + ( col2 ) <= - col2 - + col2 + + col1 + col0 )
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT - CAST( + 77 AS SIGNED ) / + + 50 / - - col0 * - 9 - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 / - 29 >= - 72
----

skipif mysql # not compatible
query I rowsort label-9325
SELECT - CAST ( + 77 AS INTEGER ) / + + 50 / - - col0 * - 9 - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 / - 29 >= - 72
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9326
SELECT + COUNT( DISTINCT + 72 ) AS col1, ( + - SUM( - col1 ) ) col1 FROM tab2 AS cor0
----
1
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9326
SELECT + COUNT ( DISTINCT + 72 ) AS col1, ( + - SUM ( - col1 ) ) col1 FROM tab2 AS cor0
----
1
195

query I rowsort
SELECT col2 + - - 66 FROM tab1 AS cor0
----
125
134
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT DISTINCT 45 * + COUNT( * ) AS col2 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT 45 * + COUNT ( * ) AS col2 FROM tab1
----
135

query I rowsort
SELECT - col0 + - col2 * - - ( + col1 ) FROM tab2
----
-1219
-3144
-3961

query I rowsort
SELECT ALL ( 72 ) FROM tab0
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT col0 + + CAST( NULL AS SIGNED ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT col0 + + CAST ( NULL AS INTEGER ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 6 col1 FROM tab0
----
522
582
90

query I rowsort
SELECT DISTINCT 99 + 20 AS col0 FROM tab2
----
119

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - + 61 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT DISTINCT col1 + + 44 - - col1 DIV - + col2 FROM tab2
----
110
120
93

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT col1 + + 44 - - col1 / - + col2 FROM tab2
----
110
120
93

query I rowsort
SELECT DISTINCT + - ( col0 ) + + + col1 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT ALL - col1 * - 71 * col0 + - col1 AS col1 FROM tab2 AS cor0
----
166515
349811
356708

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT COUNT( + col2 ) - - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9340
SELECT COUNT ( + col2 ) - - COUNT ( * ) AS col0 FROM tab2
----
6

query I rowsort
SELECT ALL - col1 + - col2 * - + 73 + - col2 + + col2 * + col0 * + col2 FROM tab2
----
105203
256409
25939

query I rowsort
SELECT ALL col2 + - + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > col2 * ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9343
SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > col2 * ( - col0 )
----
0

query I rowsort
SELECT - + col2 + - + 56 AS col1 FROM tab2 AS cor0
----
-114
-79
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL - 46 + - COUNT( * ) * + 77 col0 FROM tab0 cor0
----
-277

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9345
SELECT ALL - 46 + - COUNT ( * ) * + 77 col0 FROM tab0 cor0
----
-277

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT + - MIN( DISTINCT - - 25 ) AS col0 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT + - MIN ( DISTINCT - - 25 ) AS col0 FROM tab1 AS cor0
----
-25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT col1 * + - 75 FROM tab2 AS cor0
----
-3825
-5025
-5775

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 17 - col0 + + 75 + 3 / + + col2 / - 32 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT + col2 DIV + + col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9350
SELECT + col2 / + + col0 AS col2 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT DISTINCT MIN( ALL + + col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT MIN ( ALL + + col1 ) AS col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT ALL COUNT( * ) - + COUNT( * ) - - - 1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL COUNT ( * ) - + COUNT ( * ) - - - 1 FROM tab0
----
-1

query II rowsort
SELECT DISTINCT + col0 + 41 AS col2, + col2 AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
126
59
132
68
92
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 50 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, col0 * + - col0 * - + ( - + col0 ) FROM tab0
----
15
-3375
87
-658503
97
-912673

query I rowsort
SELECT DISTINCT col0 * - - col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 - + - 23 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9357
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 - + - 23 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + col0 * - - col2 * - - 90 FROM tab0 AS cor0
----
63450
78300
864270

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 63 >= 80 + - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT + COUNT( + col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9360
SELECT + COUNT ( + col0 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 74 * - 26 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1924

onlyif mysql # aggregate syntax: 
query II rowsort label-9362
SELECT ALL 66, + MIN( col2 ) AS col2 FROM tab0
----
66
10

skipif mysql # not compatible
query II rowsort label-9362
SELECT ALL 66, + MIN ( col2 ) AS col2 FROM tab0
----
66
10

query II rowsort
SELECT ALL col1, + col2 AS col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9364
SELECT col2 * + - col2 DIV col2 + - col1 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-9364
SELECT col2 * + - col2 / col2 + - col1 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL + COUNT( col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL + COUNT ( col0 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + + ( - 64 ) FROM tab1 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT - + COUNT( * ) * + + COUNT( - 59 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9367
SELECT - + COUNT ( * ) * + + COUNT ( - 59 ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 11 IS NOT NULL
----

query I rowsort
SELECT + col2 + - - col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT COUNT( * ) FROM tab2 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9370
SELECT COUNT ( * ) FROM tab2 WHERE - col0 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col1 FROM tab2
----
-80
-80
-80

query I rowsort
SELECT col1 + - - col1 AS col2 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9373
SELECT DISTINCT 27 + + 34 AS col2, + COUNT( * ) + - 50 FROM tab2
----
61
-47

skipif mysql # not compatible
query II rowsort label-9373
SELECT DISTINCT 27 + + 34 AS col2, + COUNT ( * ) + - 50 FROM tab2
----
61
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9374
SELECT COUNT( * ) + MAX( DISTINCT + col0 ) + + ( ( - - COUNT( * ) ) ) * + COUNT( * ) * - CAST( + 22 AS SIGNED ) FROM tab1
----
-104

skipif mysql # not compatible
query I rowsort label-9374
SELECT COUNT ( * ) + MAX ( DISTINCT + col0 ) + + ( ( - - COUNT ( * ) ) ) * + COUNT ( * ) * - CAST ( + 22 AS INTEGER ) FROM tab1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - SUM( 67 ) FROM tab0 AS cor0 WHERE NULL > col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT - SUM ( 67 ) FROM tab0 AS cor0 WHERE NULL > col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT + COUNT( * ) + - MAX( ( + + col2 ) ) FROM tab0 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9376
SELECT + COUNT ( * ) + - MAX ( ( + + col2 ) ) FROM tab0 cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9377
SELECT * FROM tab2 AS cor0 WHERE ( col1 + - col0 - + + col1 + + CAST( + col2 AS SIGNED ) * - 47 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9377
SELECT * FROM tab2 AS cor0 WHERE ( col1 + - col0 - + + col1 + + CAST ( + col2 AS INTEGER ) * - 47 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9378
SELECT ALL * FROM tab2 cor0 WHERE NOT + 80 = + + CAST( + col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9378
SELECT ALL * FROM tab2 cor0 WHERE NOT + 80 = + + CAST ( + col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL 15 - - col0 AS col2 FROM tab1 AS cor0
----
100
106
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9381
SELECT MIN( + col2 ) AS col1, - 96 AS col1 FROM tab1 AS cor0 WHERE - CAST( + col0 AS SIGNED ) NOT BETWEEN col0 * - col1 AND + 79
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-9381
SELECT MIN ( + col2 ) AS col1, - 96 AS col1 FROM tab1 AS cor0 WHERE - CAST ( + col0 AS INTEGER ) NOT BETWEEN col0 * - col1 AND + 79
----
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL - 39 - - SUM( ALL col0 ) FROM tab0 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL - 39 - - SUM ( ALL col0 ) FROM tab0 AS cor0
----
160

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - col2 + + 89 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT DISTINCT - - col0 DIV + col2 AS col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT - - col0 / + col2 AS col2 FROM tab2 AS cor0
----
1
2

query II rowsort
SELECT ALL ( 93 ) AS col1, - 82 FROM tab2
----
93
-82
93
-82
93
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9386
SELECT col1 * col0 AS col0, 44 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
2346
NULL
4928
NULL
5025
NULL

skipif mysql # not compatible
query II rowsort label-9386
SELECT col1 * col0 AS col0, 44 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
2346
NULL
4928
NULL
5025
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT - COUNT( * ) col2 FROM tab0 WHERE NOT 65 * + col0 + + col1 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9387
SELECT - COUNT ( * ) col2 FROM tab0 WHERE NOT 65 * + col0 + + col1 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT DISTINCT - 98 * + COUNT( + + col0 ) AS col2 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT - 98 * + COUNT ( + + col0 ) AS col2 FROM tab2
----
-294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col1 ), ( ( col0 ) ) col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT col2 * + col2 / col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT col2 * + col2 / col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9391
SELECT DISTINCT 1 * 15 * - COUNT( * ) * CAST( SUM( col2 ) AS SIGNED ) col0 FROM tab2
----
-5445

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9391
SELECT DISTINCT 1 * 15 * - COUNT ( * ) * CAST ( SUM ( col2 ) AS INTEGER ) col0 FROM tab2
----
-5445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT CAST( NULL AS SIGNED ) * - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT CAST ( NULL AS INTEGER ) * - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9393
SELECT ALL 46 DIV + + 50 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL 46 / + + 50 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9394
SELECT ALL + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL - 74 * + COUNT( * ) + - - COUNT( * ) AS col1 FROM tab2 cor0
----
-219

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL - 74 * + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab2 cor0
----
-219

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN - col2 AND - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 63 <> - col2 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT COUNT( + col2 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9398
SELECT COUNT ( + col2 ) col1 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 4 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - 41 * + col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 5 + - - 39 / + - 63 > + ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-9401
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 5 + - - 39 / + - 63 > + ( col2 )
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT + + col1 * - - col0 * - + col0 * col2 + - col1 + 27 + 16 * + 31 FROM tab1 AS cor0
----
-2130857
-26465600
-3495235

query I rowsort
SELECT ALL + - 21 AS col1 FROM tab2 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-9405
SELECT DISTINCT COUNT( * ) AS col1, + 74 AS col2 FROM tab0 AS cor0
----
3
74

skipif mysql # not compatible
query II rowsort label-9405
SELECT DISTINCT COUNT ( * ) AS col1, + 74 AS col2 FROM tab0 AS cor0
----
3
74

query I rowsort
SELECT ALL + + 71 AS col1 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT - 6 + - 17 FROM tab1
----
-23
-23
-23

query I rowsort
SELECT 9 * - - col0 + col2 FROM tab1
----
555
824
887

query II rowsort
SELECT ALL col1 AS col2, col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query III rowsort label-9410
SELECT 68 col2, COUNT( DISTINCT ( - col1 ) ) col1, - - 89 * - - COUNT( * ) AS col1 FROM tab0
----
68
3
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9410
SELECT 68 col2, COUNT ( DISTINCT ( - col1 ) ) col1, - - 89 * - - COUNT ( * ) AS col1 FROM tab0
----
68
3
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT DISTINCT - 21 + CAST( - + col0 AS SIGNED ) FROM tab2
----
-67
-85
-96

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT - 21 + CAST ( - + col0 AS INTEGER ) FROM tab2
----
-67
-85
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT ALL + col2 + + 69 DIV - - col2 + + col2 FROM tab1
----
119
137
192

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL + col2 + + 69 / - - col2 + + col2 FROM tab1
----
119
137
192

query II rowsort
SELECT 86, - col1 AS col0 FROM tab2
----
86
-51
86
-67
86
-77

query I rowsort
SELECT DISTINCT - 12 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT + col2 - - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT + col2 - - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9416
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 > + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT - - SUM( + - col0 ) col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9419
SELECT - - SUM ( + - col0 ) col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT + ( ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT ALL - ( - 19 ) col1, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
19
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9421
SELECT ALL - ( - 19 ) col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
19
-3

query II rowsort
SELECT DISTINCT + col1 AS col1, col0 * - col0 FROM tab2
----
51
-2116
67
-5625
77
-4096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, col2 - - - col0 * - col0 col2 FROM tab0
----
-1
9508
-21
7579
-81
272

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT 6 * - 5 * - COUNT( * ) AS col0, COUNT( * ) + - 64 FROM tab2
----
90
-61

skipif mysql # not compatible
query II rowsort label-9424
SELECT 6 * - 5 * - COUNT ( * ) AS col0, COUNT ( * ) + - 64 FROM tab2
----
90
-61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9425
SELECT * FROM tab2 WHERE NOT NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9425
SELECT * FROM tab2 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT + - COUNT( ALL 79 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9426
SELECT + - COUNT ( ALL 79 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - 98 * + + col1 AS col2 FROM tab0 AS cor0
----
-2058
-7938
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9428
SELECT + CAST( - COUNT( * ) AS SIGNED ) * + ( 18 ) + - COUNT( * ) col1 FROM tab1
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9428
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * + ( 18 ) + - COUNT ( * ) col1 FROM tab1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT COUNT( * ) * - COUNT( - col0 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9429
SELECT COUNT ( * ) * - COUNT ( - col0 ) FROM tab0
----
-9

query I rowsort
SELECT col2 * 39 FROM tab1
----
2301
2652
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT COUNT( * ) - + ( + 19 ) AS col0 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-9431
SELECT COUNT ( * ) - + ( + 19 ) AS col0 FROM tab2
----
-16

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) >= - ( 98 ) / 70
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 42 - - 24 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 0 * + 55 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9435
SELECT ALL col0 * col0 AS col0 FROM tab1 WHERE ( CAST( ( col0 ) AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL col0 * col0 AS col0 FROM tab1 WHERE ( CAST ( ( col0 ) AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= col2
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 * - 11 FROM tab1
----
-1001
-561
-935

query I rowsort
SELECT DISTINCT 41 * - col1 AS col0 FROM tab0
----
-3321
-41
-861

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 / + 91 ) IN ( col1 * + 11 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - MIN( - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9441
SELECT - MIN ( - col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE NOT col2 <= - 94
----
3

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE NOT col2 <= - 94
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 83 = ( NULL )
----

query I rowsort
SELECT + 4 AS col1 FROM tab1 WHERE col2 + col1 IS NOT NULL
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9445
SELECT ALL - 4 DIV 51 - col0 * col2 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL - 4 / 51 - col0 * col2 FROM tab1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 * 8 col2 FROM tab1 WHERE ( + 5 ) IS NULL
----

query I rowsort
SELECT ALL + col0 * 99 - 21 FROM tab1 WHERE 25 > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE ( + 58 ) <> col2
----
3

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE ( + 58 ) <> col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 / col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 / col2 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - col2 * + 36 AS col1 FROM tab2
----
-1440
-2088
-828

query III rowsort
SELECT ALL * FROM tab1 WHERE - 32 * col0 - - col1 BETWEEN ( col2 * col2 - - col0 ) AND col2
----

query I rowsort
SELECT ALL ( 42 ) * 98 FROM tab1
----
4116
4116
4116

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT - COUNT( * ) - COUNT( ALL + col0 ) col0 FROM tab0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9453
SELECT - COUNT ( * ) - COUNT ( ALL + col0 ) col0 FROM tab0
----
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 39 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * col0 - 70 * - col2 FROM tab0 AS cor0
----
1570
16533
3995

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 88 + - 30 col0 FROM tab2 cor0
----
1994
3490
5074

query I rowsort
SELECT DISTINCT col1 + - ( + 14 ) * col2 FROM tab2 AS cor0 WHERE NULL <= ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT DISTINCT + COUNT( * ) - - 35 AS col1 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT + COUNT ( * ) - - 35 AS col1 FROM tab1 AS cor0
----
38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 92 IS NULL
----

query I rowsort
SELECT 66 * col1 AS col1 FROM tab1
----
3102
330
924

query I rowsort
SELECT - 22 * col0 - col0 FROM tab2
----
-1058
-1472
-1725

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT - 48 DIV col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9464
SELECT - 48 / col0 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 * col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE 70 > - col1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - 2 AS col0 FROM tab0 AS cor0
----
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 96 <> col2
----

query I rowsort
SELECT ALL - 16 AS col2 FROM tab0 cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT ( + col2 ) * - col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 / col2 - col2 / 94 )
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL <= ( col1 * col0 - col1 * + col0 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE col2 NOT BETWEEN + col1 AND + col1
----
-59
-68
-96

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 89 * 3 - - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT + COUNT( * ) * COUNT( DISTINCT 91 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT + COUNT ( * ) * COUNT ( DISTINCT 91 ) FROM tab2
----
3

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE col1 * - col2 BETWEEN col2 * col1 AND - 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9477
SELECT ALL - 0 * - CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL - 0 * - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL - MIN( DISTINCT + ( col2 ) ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL - MIN ( DISTINCT + ( col2 ) ) AS col1 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT ALL + - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL + - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9480
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> col0 * - 7 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9480
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> col0 * - 7 + CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT 93 * - + col1 AS col1 FROM tab1
----
-1302
-4371
-465

onlyif mysql # DIV for integer division: 
query I rowsort label-9482
SELECT DISTINCT 38 + - - col1 + + + col0 - + col2 DIV - col1 FROM tab2
----
135
179
180

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT 38 + - - col1 + + + col0 - + col2 / - col1 FROM tab2
----
135
179
180

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9484
SELECT DISTINCT + - col2 + - CAST( - col1 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-1
49
98

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT + - col2 + - CAST ( - col1 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-1
49
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - col2 * 72 + col0 < NULL
----

query I rowsort
SELECT + col2 + col2 + + col2 FROM tab1 AS cor0
----
177
204
288

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 38 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col0 + + 28 ) >= ( col1 )
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 - 44 - + col0 / 30 ) BETWEEN - col1 AND ( + col0 + - 28 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + - ( + - col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
-100
-231
-3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9491
SELECT + col2 * + CAST( NULL AS SIGNED ) FROM tab2 WHERE - col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9491
SELECT + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE - col2 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 - - - col0 IN ( + col1 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ALL - COUNT( * ) * + 76 FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL - COUNT ( * ) * + 76 FROM tab0
----
-228

query I rowsort
SELECT col0 * + 50 AS col2 FROM tab1
----
2550
4250
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT COUNT( * ) * - + COUNT( * ) * + 92 col1 FROM tab0
----
-828

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9495
SELECT COUNT ( * ) * - + COUNT ( * ) * + 92 col1 FROM tab0
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT COUNT( DISTINCT 3 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9496
SELECT COUNT ( DISTINCT 3 ) AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9497
SELECT + MAX( ALL - + 11 ) col1, - COUNT( * ) AS col1 FROM tab1
----
-11
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9497
SELECT + MAX ( ALL - + 11 ) col1, - COUNT ( * ) AS col1 FROM tab1
----
-11
-3

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - col1 >= ( NULL )
----

query I rowsort
SELECT - col0 * - 52 - + col1 AS col1 FROM tab2 AS cor0
----
2341
3251
3833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT + - CAST( NULL AS SIGNED ) - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT + - CAST ( NULL AS INTEGER ) - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + 30 FROM tab0 AS cor0
----
-51
29
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( + 13 / + col2 ) AND col0
----

query I rowsort
SELECT 4 * - ( + - 64 ) AS col0 FROM tab0
----
256
256
256

query I rowsort
SELECT - - ( + + 44 ) FROM tab1 AS cor0
----
44
44
44

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 / + 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9507
SELECT ALL + - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL + - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( + - col2, 78 * - - 24 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9509
SELECT ALL - - MAX( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL - - MAX ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT DISTINCT COUNT( * ) * SUM( col1 ) AS col2 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT COUNT ( * ) * SUM ( col1 ) AS col2 FROM tab1
----
198

onlyif mysql # DIV for integer division: 
query II rowsort label-9511
SELECT DISTINCT col2, - 62 DIV + 18 FROM tab2
----
23
-3
40
-3
58
-3

skipif mysql # not compatible
query II rowsort label-9511
SELECT DISTINCT col2, - 62 / + 18 FROM tab2
----
23
-3
40
-3
58
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT - ( - + SUM( DISTINCT + col1 ) ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9512
SELECT - ( - + SUM ( DISTINCT + col1 ) ) AS col0 FROM tab1
----
66

query I rowsort
SELECT + col2 * + ( - col1 ) FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT - - col0 * - col1 * + col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9516
SELECT ALL * FROM tab0 cor0 WHERE NOT 46 BETWEEN - - col2 AND ( 40 * - + CAST( 55 AS SIGNED ) - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9516
SELECT ALL * FROM tab0 cor0 WHERE NOT 46 BETWEEN - - col2 AND ( 40 * - + CAST ( 55 AS INTEGER ) - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL + 93 AS col0 FROM tab1
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9519
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9519
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT DISTINCT - 47 + + ( MAX( - - col2 ) ) AS col1 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT - 47 + + ( MAX ( - - col2 ) ) AS col1 FROM tab2 AS cor0
----
11

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE ( - col0 * + 60 + + ( + col2 ) + col0 NOT BETWEEN + 86 AND - 16 )
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( 51 ) IS NULL )
----

query I rowsort
SELECT + 48 * - col2 FROM tab2 AS cor0
----
-1104
-1920
-2784

query I rowsort
SELECT ALL - - col2 + + 8 - col1 FROM tab1 AS cor0
----
29
62
90

query I rowsort
SELECT ALL col2 * + + col0 AS col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT 94 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( + 45 + - col0 + + + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL <= + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9530
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2, + col2 + - CAST( + - ( - 96 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9530
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2, + col2 + - CAST ( + - ( - 96 ) AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9531
SELECT DISTINCT + 33 DIV - 21 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT + 33 / - 21 AS col0 FROM tab1
----
-1

query I rowsort
SELECT - + col0 - - col0 + + 37 - col0 FROM tab0 WHERE - ( - 92 ) IS NOT NULL
----
-50
-60
22

query I rowsort
SELECT ( - - col2 ) - col2 FROM tab1 WHERE NULL NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 BETWEEN col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE NOT - col0 * + col0 - + + ( - 92 ) IS NOT NULL
----

query I rowsort
SELECT col2 + + 47 + - ( - 95 ) FROM tab2
----
165
182
200

query I rowsort
SELECT DISTINCT + 1 AS col1 FROM tab1 WHERE col1 + + col0 IS NULL
----

query II rowsort
SELECT - col2, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT + CAST( + + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9539
SELECT + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9540
SELECT * FROM tab1 AS cor0 WHERE NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9540
SELECT * FROM tab1 AS cor0 WHERE NULL = CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9541
SELECT col2 * - col1, - 34 + - CAST( NULL AS SIGNED ) col2 FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9541
SELECT col2 * - col1, - 34 + - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

query II rowsort
SELECT DISTINCT ( - col2 ) AS col1, - col0 FROM tab2
----
-23
-46
-40
-64
-58
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * 63 col0 FROM tab1 AS cor0
----
3213
5355
5733

query II rowsort
SELECT ALL col2 * + col2, 39 + - + col0 AS col0 FROM tab1 AS cor0
----
3481
-46
4624
-52
9216
-12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 87 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT COUNT( - ( 83 ) ) + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( - col2 ) NOT IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9546
SELECT COUNT ( - ( 83 ) ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( - col2 ) NOT IN ( + col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND + 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9548
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) * + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9548
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) * + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT - col0 + - 47 * - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT - col0 + - 47 * - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 23 col1, - col1 * ( col1 ) + - - 17 FROM tab0
----
23
-424
23
-6544
23
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9551
SELECT ALL - MAX( ALL - col2 ) DIV - - 62 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL - MAX ( ALL - col2 ) / - - 62 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT DISTINCT 15 + + 31 * COUNT( DISTINCT - - col0 ) FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT 15 + + 31 * COUNT ( DISTINCT - - col0 ) FROM tab1
----
108

query I rowsort
SELECT ALL + col0 + - + col2 AS col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT col1 + 54 AS col2 FROM tab0
----
135
55
75

query I rowsort
SELECT ALL 15 * + + col1 FROM tab0 WHERE - + col1 * - + col2 * - + col1 IS NOT NULL
----
1215
15
315

query II rowsort
SELECT ALL col2, - col2 AS col1 FROM tab2
----
23
-23
40
-40
58
-58

query I rowsort
SELECT 91 * - col0 FROM tab1
----
-4641
-7735
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9559
SELECT col0 FROM tab2 AS cor0 WHERE - col1 BETWEEN + ( + col2 ) / col2 / CAST( + + 17 AS SIGNED ) AND + col0 - + col2
----

skipif mysql # not compatible
query I rowsort label-9559
SELECT col0 FROM tab2 AS cor0 WHERE - col1 BETWEEN + ( + col2 ) / col2 / CAST ( + + 17 AS INTEGER ) AND + col0 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - - MIN( ALL - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9560
SELECT - - MIN ( ALL - col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - COUNT( ALL 40 ) * 32 + + - 34 FROM tab1
----
-130

skipif mysql # not compatible
query I rowsort label-9561
SELECT - COUNT ( ALL 40 ) * 32 + + - 34 FROM tab1
----
-130

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE + - col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT - - col2 + + - col2 * + - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9564
SELECT - - col2 + + - col2 * + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9565
SELECT col0 DIV + col2 + col1 FROM tab1 AS cor0 WHERE + col2 + - col1 IS NOT NULL
----
14
48
6

skipif mysql # not compatible
query I rowsort label-9565
SELECT col0 / + col2 + col1 FROM tab1 AS cor0 WHERE + col2 + - col1 IS NOT NULL
----
14
48
6

query I rowsort
SELECT ALL 93 - + - col0 AS col0 FROM tab1 AS cor0
----
144
178
184

query I rowsort
SELECT DISTINCT + - ( - - col0 ) - col2 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT - col1 * + 35 AS col2 FROM tab1 AS cor0
----
-1645
-175
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT - SUM( + 64 ) AS col1 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-9569
SELECT - SUM ( + 64 ) AS col1 FROM tab0 AS cor0
----
-192

query I rowsort
SELECT ALL 37 AS col2 FROM tab1 WHERE NOT ( 4 ) <= 12
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9571
SELECT - COUNT( - col1 ) AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9571
SELECT - COUNT ( - col1 ) AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-3
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT IN ( 17 / + col2 * col1 + - - col0 ) )
----

query I rowsort
SELECT 82 - - 78 * + 65 AS col2 FROM tab1
----
5152
5152
5152

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 BETWEEN - col1 + col1 AND + 81 * + col0 + + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab1 WHERE NOT col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT col2 < NULL
----
0

query I rowsort
SELECT + col2 * - 77 - + + ( - col2 ) * - 98 - - - col0 AS col2 FROM tab2 AS cor0
----
-10225
-4071
-7064

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9578
SELECT + - AVG ( ( - CAST( NULL AS SIGNED ) ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT + - AVG ( ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9579
SELECT ALL - CAST( + 96 AS SIGNED ), COUNT( DISTINCT + col0 ) DIV - + 4 AS col2 FROM tab1 AS cor0
----
-96
0

skipif mysql # not compatible
query II rowsort label-9579
SELECT ALL - CAST ( + 96 AS INTEGER ), COUNT ( DISTINCT + col0 ) / - + 4 AS col2 FROM tab1 AS cor0
----
-96
0

query I rowsort
SELECT - - 63 AS col2 FROM tab1 cor0
----
63
63
63

query I rowsort
SELECT + col2 * + col2 * - + col1 FROM tab2
----
-123200
-225388
-26979

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT col1 DIV - 39 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9583
SELECT col1 / - 39 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9584
SELECT DISTINCT 4 DIV - 21 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT 4 / - 21 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT - - ( col0 ) DIV + col0 + + 74 AS col0 FROM tab1 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-9585
SELECT - - ( col0 ) / + col0 + + 74 AS col0 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT ( + - 96 ) * col0 AS col2 FROM tab0
----
-1440
-8352
-9312

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 24 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 11 + + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT DISTINCT + + COUNT( - col2 ) AS col2 FROM tab1 WHERE + + col0 = + col2
----
0

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT + + COUNT ( - col2 ) AS col2 FROM tab1 WHERE + + col0 = + col2
----
0

query I rowsort
SELECT + - col1 * + 30 + - - col0 + + 82 AS col0 FROM tab0 WHERE - - col0 <> + col0
----

query I rowsort
SELECT + col2 + - - 61 + - col2 AS col2 FROM tab0
----
61
61
61

query II rowsort
SELECT - 47, col2 * col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 + + col0 * - 10 AS col1 FROM tab2 AS cor0
----
-506
-704
-825

query I rowsort
SELECT + + col1 + + 49 * + col1 - - - col0 * col2 FROM tab1 AS cor0
----
-3838
-4196
-4765

query I rowsort
SELECT col1 + + 97 * - col2 AS col2 FROM tab2 cor0
----
-2180
-3803
-5559

query I rowsort
SELECT + 31 * - - 31 + - col0 FROM tab2 AS cor0
----
886
897
915

query I rowsort
SELECT - col1 * + 81 AS col1 FROM tab0
----
-1701
-6561
-81

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab1, tab0 AS cor0
----
90

query II rowsort
SELECT col1, - col1 AS col1 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT ALL + col1 * + 5 + - 56 FROM tab1 AS cor0
----
-31
14
179

onlyif mysql # aggregate syntax: 
query II rowsort label-9601
SELECT - COUNT( * ) - - 17 - COUNT( * ) AS col0, 81 FROM tab1 cor0
----
11
81

skipif mysql # not compatible
query II rowsort label-9601
SELECT - COUNT ( * ) - - 17 - COUNT ( * ) AS col0, 81 FROM tab1 cor0
----
11
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + - 68 col2 FROM tab0 AS cor0
----
155
165
83

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9605
SELECT ALL 71 - + col0 / CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL 71 - + col0 / CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT DISTINCT COUNT( * ) - - 49 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT COUNT ( * ) - - 49 FROM tab0
----
52

query III rowsort
SELECT - 51, 30 AS col1, col2 AS col0 FROM tab2
----
9 values hashing to e2ca72a00cee00be406872dbeaeef38d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9608
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 69 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 69 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 34 * col0 AS col1 FROM tab1 AS cor0
----
1734
2890
3094

query I rowsort
SELECT + 81 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT + 35 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9612
SELECT DISTINCT col2 + + 1, CAST( NULL AS SIGNED ) * - col0 / + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col1
----

skipif mysql # not compatible
query II rowsort label-9612
SELECT DISTINCT col2 + + 1, CAST ( NULL AS INTEGER ) * - col0 / + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - ( + col1 ) * + col0 - - 86 FROM tab1 AS cor0 WHERE NOT + 43 + + + 9 + + col1 IS NULL
----
-339
-4191
-628

query I rowsort
SELECT - 66 + - + col2 AS col1 FROM tab0 AS cor0
----
-113
-165
-76

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + 66 <= NULL
----

query I rowsort
SELECT + col1 + - col2 + 70 + - ( + - ( 31 ) ) AS col1 FROM tab2
----
110
129
138

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col2 AND 97
----

query I rowsort
SELECT 1 + + - col1 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT + 40 + - col2 AS col2 FROM tab2
----
-18
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT COUNT( ALL + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9620
SELECT COUNT ( ALL + col0 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 67 * + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT MAX( ALL col0 ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9622
SELECT MAX ( ALL col0 ) col2 FROM tab1
----
91

query I rowsort
SELECT ALL - 16 + col0 AS col0 FROM tab1 cor0
----
35
69
75

query I rowsort
SELECT + col2 - + - col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - 92 + - + col2 FROM tab2 AS cor0
----
-115
-132
-150

query III rowsort
SELECT * FROM tab1 WHERE - - col1 NOT IN ( + - ( - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT ALL + MIN( + - 42 ) * + COUNT( * ) * 24 + - 30 + - - COUNT( * ) AS col0 FROM tab0
----
-3051

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL + MIN ( + - 42 ) * + COUNT ( * ) * 24 + - 30 + - - COUNT ( * ) AS col0 FROM tab0
----
-3051

query I rowsort
SELECT + 99 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col0 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT - - col1 - - col2 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT ALL + + col1 - + - col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT - col1 * - - col2 * - col2 AS col0 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - ( COUNT( ALL + col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9633
SELECT - ( COUNT ( ALL + col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT col1 * + 25 AS col2, + 39 FROM tab1 AS cor0
----
1175
39
125
39
350
39

query III rowsort
SELECT ALL * FROM tab1 WHERE 29 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9636
SELECT 87 col2, - COUNT( * ) AS col0 FROM tab0
----
87
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9636
SELECT 87 col2, - COUNT ( * ) AS col0 FROM tab0
----
87
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT MIN( + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9637
SELECT MIN ( + col1 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT DISTINCT col2 * + - CAST( NULL AS SIGNED ) / - ( - ( - col2 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT col2 * + - CAST ( NULL AS INTEGER ) / - ( - ( - col2 ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT + SUM( col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9639
SELECT + SUM ( col0 ) AS col2 FROM tab2
----
185

query III rowsort
SELECT * FROM tab2 WHERE NOT - 22 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT col1 > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT - col0 DIV + - col0 col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9642
SELECT - col0 / + - col0 col1 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT + 55, 13 * + col2 AS col1 FROM tab0 AS cor0
----
55
1287
55
130
55
611

query I rowsort
SELECT ALL - - ( - 12 ) * 19 FROM tab0 AS cor0
----
-228
-228
-228

query I rowsort
SELECT + - 15 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1, col2 col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT - 8 FROM tab0 AS cor0 WHERE NOT ( + 35 ) <= - + 38
----
-8
-8
-8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 = - 34
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - MIN( - + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9649
SELECT - MIN ( - + col0 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9650
SELECT - COUNT( * ) DIV 42 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9650
SELECT - COUNT ( * ) / 42 FROM tab2 AS cor0
----
0

query II rowsort
SELECT 61, + 48 * - 20 + + + 75 * + col0 - + + 89 AS col1 FROM tab1 AS cor0
----
61
2776
61
5326
61
5776

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT DISTINCT - 30 * + + COUNT( * ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT - 30 * + + COUNT ( * ) FROM tab1 AS cor0
----
-90

query I rowsort
SELECT ALL col0 * - - ( - - col2 ) FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT - CAST( NULL AS SIGNED ) * - 84 * col0 * - - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT - CAST ( NULL AS INTEGER ) * - 84 * col0 * - - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= NULL AND NOT ( NULL ) BETWEEN ( NULL ) AND + - 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT DISTINCT COUNT( * ) * + 74 AS col1 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT COUNT ( * ) * + 74 AS col1 FROM tab2
----
222

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9657
SELECT CAST( NULL AS DECIMAL ) * - - col1 + + - ( + col1 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT CAST ( NULL AS REAL ) * - - col1 + + - ( + col1 ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 11 + col1 * - ( + col1 ) FROM tab2
----
-2590
-4478
-5918

query I rowsort
SELECT DISTINCT col1 + + + 27 - + 3 + + ( - col1 ) AS col2 FROM tab0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + - 55 AS col1, 78 col0 FROM tab2 AS cor0
----
-101
78
-119
78
-130
78

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 25 * 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 79 * - col0 FROM tab1 AS cor0
----
-4029
-6715
-7189

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9663
SELECT - - CAST( NULL AS DECIMAL ) + + - COUNT( * ) - - 11 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT - - CAST ( NULL AS REAL ) + + - COUNT ( * ) - - 11 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - MAX( + 25 ) AS col2 FROM tab1 AS cor0 WHERE col2 >= - col1
----
-25

skipif mysql # not compatible
query I rowsort label-9664
SELECT - MAX ( + 25 ) AS col2 FROM tab1 AS cor0 WHERE col2 >= - col1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9665
SELECT col1 DIV + 91 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9665
SELECT col1 / + 91 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9666
SELECT ALL 22 DIV - CAST( + col1 AS SIGNED ) AS col1, ( + - col0 ) FROM tab0
----
-1
-87
-22
-97
0
-15

skipif mysql # not compatible
query II rowsort label-9666
SELECT ALL 22 / - CAST ( + col1 AS INTEGER ) AS col1, ( + - col0 ) FROM tab0
----
-1
-87
-22
-97
0
-15

query I rowsort
SELECT - 91 FROM tab0 WHERE col0 + + 34 IS NULL
----

query II rowsort
SELECT ALL + col2 + - 11 * col1 AS col2, col1 * col0 AS col0 FROM tab2
----
-538
2346
-679
5025
-807
4928

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL >= - 28
----

query II rowsort
SELECT DISTINCT - 3 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
-3
23
-3
40
-3
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL + SUM( ALL 78 ) AS col2 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL + SUM ( ALL 78 ) AS col2 FROM tab1 AS cor0
----
234

query II rowsort
SELECT ALL + col2 * 2 * - col2 + - + col0 AS col0, + col2 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9673
SELECT ALL + + COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9673
SELECT ALL + + COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab0 cor0
----
3
3

query III rowsort
SELECT * FROM tab2 WHERE NOT 76 IN ( col1, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9675
SELECT + col1 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT + col1 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL MIN( col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL MIN ( col1 ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9677
SELECT ALL COUNT( * ) DIV - MIN( ( + ( - ( - col0 ) ) ) ) * 6 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL COUNT ( * ) / - MIN ( ( + ( - ( - col0 ) ) ) ) * 6 FROM tab1
----
0

query I rowsort
SELECT - ( - + 78 ) FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT DISTINCT - SUM( DISTINCT + 55 ) AS col0 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT - SUM ( DISTINCT + 55 ) AS col0 FROM tab2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9680
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query III rowsort label-9680
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL + - 90 AS col0 FROM tab1 AS cor0
----
-90
-90
-90

query I rowsort
SELECT + 13 + col0 + - 48 AS col2 FROM tab1 AS cor0 WHERE NOT col2 > ( - - col0 )
----
50
56

query I rowsort
SELECT DISTINCT 56 + - col2 FROM tab2
----
-2
16
33

query II rowsort
SELECT DISTINCT + col1 AS col2, - 62 FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT 25 DIV col1 + + - 22 DIV ( - col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9685
SELECT 25 / col1 + + - 22 / ( - col0 ) FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 AS cor0 WHERE + ( - + 93 ) < - col0
----
-21
-81

query I rowsort
SELECT DISTINCT 22 * - col0 FROM tab0 AS cor0
----
-1914
-2134
-330

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9688
SELECT DISTINCT + + SUM( DISTINCT CAST( NULL AS DECIMAL ) ) * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT + + SUM ( DISTINCT CAST ( NULL AS REAL ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9689
SELECT - - col0 + ( ( col2 ) ) / - ( col1 ) + + 47 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9689
SELECT - - col0 + ( ( col2 ) ) / - ( col1 ) + + 47 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( ( - 74 ) ) * 17 FROM tab2 AS cor0
----
-1258
-1258
-1258

query II rowsort
SELECT ALL + col2 * - ( + ( - col2 ) ), col2 AS col2 FROM tab2
----
1600
40
3364
58
529
23

query II rowsort
SELECT DISTINCT - col2 AS col2, + 50 * col1 FROM tab0 WHERE - ( - 52 ) / + col1 + - + 72 + - col0 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT DISTINCT + MIN( col1 ) + - - 65 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT + MIN ( col1 ) + - - 65 FROM tab0
----
66

query I rowsort
SELECT + col2 * + + 19 * - col2 FROM tab1
----
-175104
-66139
-87856

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9695
SELECT + CAST( NULL AS SIGNED ) AS col2, 8 + - col1 FROM tab1
----
NULL
-39
NULL
-6
NULL
3

skipif mysql # not compatible
query II rowsort label-9695
SELECT + CAST ( NULL AS INTEGER ) AS col2, 8 + - col1 FROM tab1
----
NULL
-39
NULL
-6
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT + 8 * - - MIN( DISTINCT + + col0 ) col0 FROM tab0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9696
SELECT + 8 * - - MIN ( DISTINCT + + col0 ) col0 FROM tab0
----
120

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 13 + + col0 * col2 / - 47 + - 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 31 AS col1, 80 + + 92 col0 FROM tab2
----
-31
172

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 85 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( 58 ) FROM tab0
----
58
58
58

query II rowsort
SELECT ALL + col0, col1 * + col2 FROM tab1 AS cor0
----
51
1344
85
295
91
3196

query I rowsort
SELECT ALL + 28 * 79 - + col1 FROM tab1 AS cor0
----
2165
2198
2207

query I rowsort
SELECT ALL + 63 * + + 44 * + col2 + - col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 77 * + ( - col2 ) FROM tab1 AS cor0
----
-4543
-5236
-7392

query I rowsort
SELECT DISTINCT - col0 * col1 + 41 FROM tab1 AS cor0
----
-384
-4236
-673

query I rowsort
SELECT ALL - col2 * + ( - col2 ) + + 41 AS col0 FROM tab1 AS cor0
----
3522
4665
9257

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < + 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9708
SELECT - - CAST( 43 AS SIGNED ) * 94 * + ( + col0 ) AS col2, - col2 FROM tab0 AS cor0
----
351654
-10
392074
-99
60630
-47

skipif mysql # not compatible
query II rowsort label-9708
SELECT - - CAST ( 43 AS INTEGER ) * 94 * + ( + col0 ) AS col2, - col2 FROM tab0 AS cor0
----
351654
-10
392074
-99
60630
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT - - SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9709
SELECT - - SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT + ( + + ( SUM( DISTINCT col0 ) ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT + ( + + ( SUM ( DISTINCT col0 ) ) ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - + ( - 89 ) AS col2 FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT MAX( ALL col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9712
SELECT MAX ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9713
SELECT ALL - + MIN( ALL + col1 ), COUNT( * ) DIV - 47 AS col0 FROM tab2 AS cor0
----
-51
0

skipif mysql # not compatible
query II rowsort label-9713
SELECT ALL - + MIN ( ALL + col1 ), COUNT ( * ) / - 47 AS col0 FROM tab2 AS cor0
----
-51
0

query I rowsort
SELECT + ( + - col0 ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT + col2 / - 44 NOT BETWEEN + col1 + + 67 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT + col2 / - 44 NOT BETWEEN + col1 + + 67 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT MAX( DISTINCT - + 59 ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-9717
SELECT MAX ( DISTINCT - + 59 ) FROM tab2
----
-59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL + COUNT( ALL + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL + COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT ALL - 24 + + COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL - 24 + + COUNT ( * ) FROM tab2
----
-21

query I rowsort
SELECT - ( + - 10 ) FROM tab2
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9722
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9723
SELECT DISTINCT - 72 AS col2, + CAST( + 52 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-9723
SELECT DISTINCT - 72 AS col2, + CAST ( + 52 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND + 42 - - - ( - 58 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 80 col2 FROM tab0 AS cor0
----
-167
-177
-95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + - - col1 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col2 FROM tab2 cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT - + COUNT( * ) col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9730
SELECT - + COUNT ( * ) col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL + 5 * + 23 * col0 FROM tab1 AS cor0
----
10465
5865
9775

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT ALL SUM( + - 21 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL SUM ( + - 21 ) FROM tab1 AS cor0
----
-63

query I rowsort
SELECT ALL ( - 3 ) FROM tab2
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9734
SELECT 14 DIV - + 71 + + 33 AS col0 FROM tab2
----
33
33
33

skipif mysql # not compatible
query I rowsort label-9734
SELECT 14 / - + 71 + + 33 AS col0 FROM tab2
----
33
33
33

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 66 <> + 36 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT 62 + COUNT( * ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-9736
SELECT 62 + COUNT ( * ) FROM tab1
----
65

query I rowsort
SELECT col0 + + 16 AS col1 FROM tab1
----
101
107
67

query I rowsort
SELECT + 44 + + col2 AS col1 FROM tab1
----
103
112
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT ALL COUNT( * ) - + + MAX( DISTINCT + - 68 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL COUNT ( * ) - + + MAX ( DISTINCT + - 68 ) FROM tab1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9740
SELECT DISTINCT - 54 - + CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT - 54 - + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 + + + col2 AS col0 FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9744
SELECT ALL + col1, CAST( NULL AS SIGNED ) col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9744
SELECT ALL + col1, CAST ( NULL AS INTEGER ) col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT DISTINCT 30 * + col0 AS col0, - col1 AS col0 FROM tab0
----
2610
-21
2910
-1
450
-81

query I rowsort
SELECT - col0 * 92 * - 66 AS col0 FROM tab1 AS cor0
----
309672
516120
552552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9747
SELECT DISTINCT ( 4 ) * - + COUNT( - 9 ) DIV 88 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT ( 4 ) * - + COUNT ( - 9 ) / 88 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9748
SELECT ALL - col2 / + + ( + col0 ) * CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL - col2 / + + ( + col0 ) * CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + col1, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT ALL - - col2 DIV - col2 + - col0 AS col0 FROM tab2 cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL - - col2 / - col2 + - col0 AS col0 FROM tab2 cor0
----
-47
-65
-76

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9752
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( + + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9752
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( + + col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9753
SELECT ALL 99 AS col1, COUNT( * ) FROM tab0 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-9753
SELECT ALL 99 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
99
3

query I rowsort
SELECT DISTINCT - - 28 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT DISTINCT 42 * + COUNT( * ) AS col1 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT 42 * + COUNT ( * ) AS col1 FROM tab1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT SUM( + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9756
SELECT SUM ( + col1 ) FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT ALL - ( + 80 ) DIV + + 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL - ( + 80 ) / + + 87 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 - col1 >= - 18 + - 93 * + 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL - COUNT( * ) + - 44 AS col2 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL - COUNT ( * ) + - 44 AS col2 FROM tab2
----
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 78 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9762
SELECT col1 AS col0, - col1 col2 FROM tab1 AS cor0 WHERE NOT - col1 + CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9762
SELECT col1 AS col0, - col1 col2 FROM tab1 AS cor0 WHERE NOT - col1 + CAST ( + col1 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT col2 AS col2, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9764
SELECT DISTINCT + 96 + - 92 - - COUNT( * ) + - COUNT( * ) DIV + 12 * - COUNT( * ) FROM tab2 cor0
----
7

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT + 96 + - 92 - - COUNT ( * ) + - COUNT ( * ) / + 12 * - COUNT ( * ) FROM tab2 cor0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9765
SELECT - 34 * - + 43 + COUNT( * ) AS col2, 69 FROM tab1 AS cor0
----
1465
69

skipif mysql # not compatible
query II rowsort label-9765
SELECT - 34 * - + 43 + COUNT ( * ) AS col2, 69 FROM tab1 AS cor0
----
1465
69

query I rowsort
SELECT - col2 + + 30 FROM tab1 cor0
----
-29
-38
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9767
SELECT + + CAST( NULL AS SIGNED ) / - 83 + MAX( - - col1 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT + + CAST ( NULL AS INTEGER ) / - 83 + MAX ( - - col1 ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL col1 AS col2, + col1 * col2 FROM tab2 AS cor0
----
51
1173
67
3886
77
3080

query I rowsort
SELECT DISTINCT - - ( col1 ) + - 70 FROM tab0 AS cor0
----
-49
-69
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9770
SELECT DISTINCT + + 66 AS col2, COUNT( * ) FROM tab1 AS cor0
----
66
3

skipif mysql # not compatible
query II rowsort label-9770
SELECT DISTINCT + + 66 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
66
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + MIN( - 28 ) AS col2 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-9771
SELECT + MIN ( - 28 ) AS col2 FROM tab0 AS cor0
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 col0 FROM tab1 AS cor0
----
-92
-92
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9773
SELECT + col1 AS col0, CAST( col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
51
2601
67
4489
77
5929

skipif mysql # not compatible
query II rowsort label-9773
SELECT + col1 AS col0, CAST ( col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
51
2601
67
4489
77
5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9774
SELECT ALL * FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) / - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9774
SELECT ALL * FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 42 * + 30 AS col0 FROM tab1 AS cor0
----
-1260
-1260
-1260

query II rowsort
SELECT - col2, - col0 AS col2 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT col0 * - + col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT col0 * - col1 * + col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9779
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( + ( - - 72 ) ) NOT BETWEEN - + CAST( NULL AS SIGNED ) AND + + col2
----

skipif mysql # not compatible
query III rowsort label-9779
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( + ( - - 72 ) ) NOT BETWEEN - + CAST ( NULL AS INTEGER ) AND + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col2 FROM tab0
----
-75
-75
-75

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL - - MIN( + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL - - MIN ( + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT DISTINCT COUNT( * ) * + - MAX( col0 ) AS col1 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT COUNT ( * ) * + - MAX ( col0 ) AS col1 FROM tab0
----
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 7 col0 FROM tab2
----
322
448
525

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT - 78 * + COUNT( * ) FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-9785
SELECT - 78 * + COUNT ( * ) FROM tab2 AS cor0
----
-234

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9786
SELECT + + CAST( NULL AS DECIMAL ) * - - AVG ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT + + CAST ( NULL AS REAL ) * - - AVG ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT - SUM( - col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-9787
SELECT - SUM ( - col0 ) FROM tab1 cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 51 col2, - 92 FROM tab0 AS cor0
----
51
-92
51
-92
51
-92

query I rowsort
SELECT DISTINCT + 90 * - col0 FROM tab2
----
-4140
-5760
-6750

query I rowsort
SELECT DISTINCT ( - - col0 ) + + col0 * + 79 FROM tab1
----
4080
6800
7280

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL COUNT( + col0 ) AS col2 FROM tab1 WHERE + - col0 > 92
----
0

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL COUNT ( + col0 ) AS col2 FROM tab1 WHERE + - col0 > 92
----
0

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT ALL - SUM( ALL - 69 ) AS col0 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL - SUM ( ALL - 69 ) AS col0 FROM tab2
----
207

query I rowsort
SELECT + - col2 / + + 1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT DISTINCT - + COUNT( DISTINCT + 66 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT - + COUNT ( DISTINCT + 66 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - - ( + col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9798
SELECT ALL MIN( - 66 ) * CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL MIN ( - 66 ) * CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT - MIN( - col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9799
SELECT - MIN ( - col0 ) AS col1 FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9800
SELECT DISTINCT - col0 * - col0 + - col0 DIV - col1 FROM tab2 AS cor0
----
2116
4096
5626

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT - col0 * - col0 + - col0 / - col1 FROM tab2 AS cor0
----
2116
4096
5626

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 NOT BETWEEN col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT - ( + 25 ) FROM tab1 AS cor0 WHERE NULL = 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT ( + - COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT ( + - COUNT ( * ) ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9805
SELECT col2 * - 13 + + - CAST( NULL AS SIGNED ) AS col2, col2 * - 94 + - 11 FROM tab1
----
NULL
-5557
NULL
-6403
NULL
-9035

skipif mysql # not compatible
query II rowsort label-9805
SELECT col2 * - 13 + + - CAST ( NULL AS INTEGER ) AS col2, col2 * - 94 + - 11 FROM tab1
----
NULL
-5557
NULL
-6403
NULL
-9035

query II rowsort
SELECT ALL - col1, - 98 AS col2 FROM tab0
----
-1
-98
-21
-98
-81
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT ALL col1 DIV - - col1 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL col1 / - - col1 AS col1 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9808
SELECT DISTINCT + col0 FROM tab2 WHERE + col1 + + col1 + - 13 <> - CAST( NULL AS SIGNED ) * + col0 + + col0
----

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT + col0 FROM tab2 WHERE + col1 + + col1 + - 13 <> - CAST ( NULL AS INTEGER ) * + col0 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, - col0 + + col1 col1 FROM tab1
----
-51
-37
-85
-80
-91
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ( - + 67 ) * - COUNT( ALL col2 ) FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-9810
SELECT ( - + 67 ) * - COUNT ( ALL col2 ) FROM tab0 AS cor0
----
201

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 90 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 + - 60 FROM tab2 WHERE NOT - 75 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9814
SELECT ( - col0 ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT ( - col0 ) * + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 64 * - 40 FROM tab1
----
-2560
-2560
-2560

query I rowsort
SELECT 38 * - col0 FROM tab1
----
-1938
-3230
-3458

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ALL - - MIN( ALL + - col2 ) + MAX( DISTINCT + col0 ) col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9817
SELECT ALL - - MIN ( ALL + - col2 ) + MAX ( DISTINCT + col0 ) col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 col0 FROM tab2 cor0
----
73
73
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 81 < + 8 - - col0 * + - 89 * + col2 * - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 32 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 20 col0 FROM tab1 AS cor0
----
1020
1700
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT + COUNT( * ) + - COUNT( * ) * 18 + - 13 AS col0 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9822
SELECT + COUNT ( * ) + - COUNT ( * ) * 18 + - 13 AS col0 FROM tab0 AS cor0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT - ( - 12 ) DIV + col2 + col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9823
SELECT - ( - 12 ) / + col2 + col0 AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT - SUM( + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-9824
SELECT - SUM ( + col0 ) FROM tab1
----
-227

query I rowsort
SELECT DISTINCT - ( + col1 ) + - col1 FROM tab1
----
-10
-28
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9826
SELECT ALL CAST( NULL AS DECIMAL ) + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL CAST ( NULL AS REAL ) + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9827
SELECT ALL col2 DIV - col0 + 10 FROM tab0
----
10
7
9

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL col2 / - col0 + 10 FROM tab0
----
10
7
9

query I rowsort
SELECT DISTINCT + 29 + - 71 + - col1 + + col2 AS col2 FROM tab1
----
-21
12
40

query I rowsort
SELECT ALL + 61 * - col1 + 71 AS col0 FROM tab1 AS cor0
----
-234
-2796
-783

onlyif mysql # DIV for integer division: 
query I rowsort label-9830
SELECT + 49 DIV + 48 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9830
SELECT + 49 / + 48 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + 53 - col0 FROM tab1 AS cor0
----
-32
-38
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - + col1
----

query I rowsort
SELECT - col0 + - - 58 AS col1 FROM tab1
----
-27
-33
7

query I rowsort
SELECT - + col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL + col0 * - 16 FROM tab1
----
-1360
-1456
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + ( - - SUM( + 49 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT + ( - - SUM ( + 49 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL <= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT 9 + - + MIN( DISTINCT - - col2 ) * 37 FROM tab1
----
-2174

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT 9 + - + MIN ( DISTINCT - - col2 ) * 37 FROM tab1
----
-2174

query I rowsort
SELECT 97 + 6 AS col1 FROM tab0 cor0
----
103
103
103

query I rowsort
SELECT DISTINCT col2 + - + col0 AS col1 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL + 25 * + col2 + + + 95 AS col1 FROM tab0 cor0
----
1270
2570
345

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT - - ( + - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9841
SELECT - - ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT CAST( - ( - + col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9842
SELECT CAST ( - ( - + col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL - col0 - col2 + + + 13 FROM tab1 AS cor0
----
-131
-134
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT col1 - + col1 + 94 + - 1 DIV + 14 AS col2 FROM tab0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-9844
SELECT col1 - + col1 + 94 + - 1 / + 14 AS col2 FROM tab0
----
94
94
94

query I rowsort
SELECT DISTINCT col2 - + 92 AS col0 FROM tab0
----
-45
-82
7

query II rowsort
SELECT + col0 * - col2 AS col1, col2 + - + col1 FROM tab2
----
-1058
-28
-2560
-37
-4350
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT ALL CAST( + col0 AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL CAST ( + col0 AS INTEGER ) AS col1 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9848
SELECT DISTINCT + + col0 col1 FROM tab1 AS cor0 WHERE col1 - CAST( NULL AS DECIMAL ) <= ( + 1 ) + - - col0 / 19 + + + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9848
SELECT DISTINCT + + col0 col1 FROM tab1 AS cor0 WHERE col1 - CAST ( NULL AS REAL ) <= ( + 1 ) + - - col0 / 19 + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT - SUM( + col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9849
SELECT - SUM ( + col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9850
SELECT DISTINCT * FROM tab2 WHERE col0 IN ( - CAST( NULL AS SIGNED ), 68 / + + col0, - - 71, + ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9850
SELECT DISTINCT * FROM tab2 WHERE col0 IN ( - CAST ( NULL AS INTEGER ), 68 / + + col0, - - 71, + ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 7 * + - col1 FROM tab1
----
-329
-35
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT MIN( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9852
SELECT MIN ( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 38 * - col0 * + col2 col1, + col2 FROM tab2 AS cor0
----
-165300
58
-40204
23
-97280
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL < col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL + + MAX( - 72 ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL + + MAX ( - 72 ) FROM tab2 AS cor0
----
-72

query I rowsort
SELECT DISTINCT - - col0 * col0 * - col1 - col2 + + 36 FROM tab0 AS cor0
----
-158923
-18236
-9472

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT DISTINCT + COUNT( ALL - 34 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT + COUNT ( ALL - 34 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col1 + + col0 + + col2 + col1 FROM tab2
----
171
258
267

query I rowsort
SELECT - col1 + col0 + 10 + - + col1 FROM tab2
----
-46
-49
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL COUNT( * ) + + 94 AS col0 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL COUNT ( * ) + + 94 AS col0 FROM tab2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT col0 + col1 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT col0 + col1 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE ( col2 < col2 * + ( + ( + + col0 ) ) * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL + col1 - + + ( - col2 ) AS col0 FROM tab2
----
117
125
74

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 + col0 IS NULL
----

query I rowsort
SELECT - - 60 - - - col1 FROM tab0 AS cor0
----
-21
39
59

query I rowsort
SELECT DISTINCT + col2 + - - col0 FROM tab2 AS cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 * - 87 col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col2 / 75 + + + 86
----

query I rowsort
SELECT ALL 10 + - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-415
-4267
-704

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE + col2 < + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT DISTINCT + SUM( DISTINCT + 20 ) * - MIN( + + 70 ) - - COUNT( * ) FROM tab1 cor0
----
-1397

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT + SUM ( DISTINCT + 20 ) * - MIN ( + + 70 ) - - COUNT ( * ) FROM tab1 cor0
----
-1397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT col2 * + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9875
SELECT col2 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT DISTINCT + - MAX( col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT + - MAX ( col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT col1 * - 68 FROM tab1
----
-3196
-340
-952

query I rowsort
SELECT ALL + ( - - col1 ) FROM tab1
----
14
47
5

query I rowsort
SELECT - 5 * - col2 AS col2 FROM tab2
----
115
200
290

query I rowsort
SELECT DISTINCT - col2 * 53 AS col2 FROM tab2
----
-1219
-2120
-3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9881
SELECT + 71 * - CAST( - ( - col0 ) AS SIGNED ) AS col2 FROM tab0
----
-1065
-6177
-6887

skipif mysql # not compatible
query I rowsort label-9881
SELECT + 71 * - CAST ( - ( - col0 ) AS INTEGER ) AS col2 FROM tab0
----
-1065
-6177
-6887

query I rowsort
SELECT ALL col0 * - 62 FROM tab1
----
-3162
-5270
-5642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 81 col0 FROM tab2
----
-1863
-3240
-4698

query I rowsort
SELECT ALL - 44 AS col2 FROM tab2
----
-44
-44
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9885
SELECT - COUNT( * ) DIV - 91 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT - COUNT ( * ) / - 91 FROM tab1
----
0

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL BETWEEN - col0 AND 5
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 78 col1, - 97 col0 FROM tab0 AS cor0
----
78
-97
78
-97
78
-97

query I rowsort
SELECT - 86 * - col1 AS col2 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT + ( COUNT( * ) ) + - MIN( - col1 ) + - 48 * + - 37 AS col0 FROM tab0 AS cor0
----
1860

skipif mysql # not compatible
query I rowsort label-9890
SELECT + ( COUNT ( * ) ) + - MIN ( - col1 ) + - 48 * + - 37 AS col0 FROM tab0 AS cor0
----
1860

query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab1 cor0
----
45

query I rowsort
SELECT DISTINCT + - col0 + - 42 AS col0 FROM tab1 cor0
----
-127
-133
-93

query I rowsort
SELECT ALL - 78 AS col1 FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT + - col0 + - 24 FROM tab2 AS cor0
----
-70
-88
-99

query I rowsort
SELECT ALL + + ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 42 IS NOT NULL
----

query I rowsort
SELECT + + col0 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT + col0 + + + 83 * col1 FROM tab0 cor0
----
180
1830
6738

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT + col0 + - col1 DIV + 62 FROM tab2 AS cor0
----
46
63
74

skipif mysql # not compatible
query I rowsort label-9899
SELECT + col0 + - col1 / + 62 FROM tab2 AS cor0
----
46
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT MIN( + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT MIN ( + col0 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9901
SELECT COUNT( * ), + COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-9901
SELECT COUNT ( * ), + COUNT ( * ) AS col2 FROM tab1
----
3
3

query II rowsort
SELECT col2, col2 * - 9 * + + col2 FROM tab0
----
10
-900
47
-19881
99
-88209

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT + COUNT( * ) AS col0 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9903
SELECT + COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL 28 + + COUNT( * ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL 28 + + COUNT ( * ) FROM tab0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT - 42 DIV + col1 FROM tab1
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-9905
SELECT - 42 / + col1 FROM tab1
----
-3
-8
0

query I rowsort
SELECT DISTINCT - 26 * + col2 * col1 + - 27 AS col0 FROM tab2
----
-101063
-30525
-80107

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT 67 DIV + + col2 - + 23 * - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1173
1956
2093

skipif mysql # not compatible
query I rowsort label-9907
SELECT 67 / + + col2 - + 23 * - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1173
1956
2093

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - + 86 + - 91 - - col2 * - - col0 * - + col0 AS col1 FROM tab0 AS cor0
----
-10752
-75867
-931668

query I rowsort
SELECT DISTINCT - 14 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col0
----

query I rowsort
SELECT DISTINCT + 24 - 39 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - + ( + + ( - col2 ) ) + 85 FROM tab1 AS cor0
----
144
153
181

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT ALL - MIN( ALL - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - MIN ( ALL - col2 ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT 28 * + COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9915
SELECT 28 * + COUNT ( * ) FROM tab0
----
84

query I rowsort
SELECT 66 * + 5 FROM tab1
----
330
330
330

query I rowsort
SELECT DISTINCT ( 70 ) * + 79 + col2 FROM tab1 WHERE NOT NULL NOT IN ( + col1 + 40 )
----

query I rowsort
SELECT ALL - 11 * - col1 FROM tab1
----
154
517
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9919
SELECT - MAX( DISTINCT ( 34 ) ) DIV 51 + 9 * + 69 AS col2 FROM tab1
----
621

skipif mysql # not compatible
query I rowsort label-9919
SELECT - MAX ( DISTINCT ( 34 ) ) / 51 + 9 * + 69 AS col2 FROM tab1
----
621

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN + col1 * - col1 AND col2 + col1
----

query I rowsort
SELECT ALL + col2 * + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
3481
4624
9216

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - 61 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 27 <= 70
----

query I rowsort
SELECT DISTINCT ( 69 ) AS col2 FROM tab0
----
69

query I rowsort
SELECT - 34 - col0 FROM tab1
----
-119
-125
-85

query I rowsort
SELECT - col2 - + ( ( col0 ) ) AS col1 FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT + MAX( + 97 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9927
SELECT + MAX ( + 97 ) AS col2 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT 95 - + COUNT( * ) AS col2 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-9928
SELECT 95 - + COUNT ( * ) AS col2 FROM tab0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT MIN( ( - col0 ) ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9929
SELECT MIN ( ( - col0 ) ) AS col2 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT - COUNT( DISTINCT + col2 ) + - 1 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) + - 1 FROM tab1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT DISTINCT - ( - COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT MIN( DISTINCT + 52 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-9932
SELECT MIN ( DISTINCT + 52 ) FROM tab1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT + COUNT( * ) FROM tab0 WHERE col0 + + col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9933
SELECT + COUNT ( * ) FROM tab0 WHERE col0 + + col0 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL + COUNT( * ) FROM tab2 WHERE 62 * - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + COUNT ( * ) FROM tab2 WHERE 62 * - col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT ( 45 ) AS col1 FROM tab2 WHERE NULL <> col2 * col0 + - col0
----

query I rowsort
SELECT + col0 + col0 * ( col2 ) FROM tab0 WHERE 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT + COUNT( * ) - 65 col1 FROM tab0 WHERE - 42 NOT IN ( - 63 + 33 )
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9937
SELECT + COUNT ( * ) - 65 col1 FROM tab0 WHERE - 42 NOT IN ( - 63 + 33 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT - COUNT( * ) + 77 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
74

skipif mysql # not compatible
query I rowsort label-9938
SELECT - COUNT ( * ) + 77 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
74

query I rowsort
SELECT + col1 * - ( + 0 ) + 33 AS col1 FROM tab0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT ALL + SUM( ALL 39 ) AS col2 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL + SUM ( ALL 39 ) AS col2 FROM tab2
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9941
SELECT - COUNT( * ) * ( CAST( - COUNT( * ) AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9941
SELECT - COUNT ( * ) * ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9943
SELECT ( 65 ) * + CAST( NULL AS SIGNED ) + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT ( 65 ) * + CAST ( NULL AS INTEGER ) + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL 21 * - 75 FROM tab2
----
-1575
-1575
-1575

query I rowsort
SELECT - 78 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN + col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 * - col2 ) IN ( - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9949
SELECT - + CAST( NULL AS DECIMAL ) * - 3 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT - + CAST ( NULL AS REAL ) * - 3 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 20 AS col2 FROM tab0 cor0
----
-20
-20
-20

query I rowsort
SELECT + + 55 * - col1 FROM tab1 cor0
----
-2585
-275
-770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9953
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) + MAX( - col2 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + MAX ( - col2 ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 59 * col1 FROM tab2 AS cor0
----
3009
3953
4543

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT - COUNT( * ) * 94 FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-9957
SELECT - COUNT ( * ) * 94 FROM tab2 AS cor0
----
-282

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT SUM( ALL - 80 ) + ( - COUNT( * ) ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-9959
SELECT SUM ( ALL - 80 ) + ( - COUNT ( * ) ) FROM tab0
----
-243

query I rowsort
SELECT col0 + + + 29 AS col1 FROM tab1
----
114
120
80

query I rowsort
SELECT DISTINCT + col0 * - 50 AS col1 FROM tab2
----
-2300
-3200
-3750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT DISTINCT col0 * + + CAST( NULL AS SIGNED ) / col0 + - col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT col0 * + + CAST ( NULL AS INTEGER ) / col0 + - col1 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9963
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9963
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( col0 * + ( - col0 ) ) col1 FROM tab1 WHERE ( + col0 + + col1 ) IS NOT NULL
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT + COUNT( * ) * - 32 - - SUM( col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT + COUNT ( * ) * - 32 - - SUM ( col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < 60
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col2 + col2 AND 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT - ( COUNT( * ) ) AS col0 FROM tab1 WHERE NOT ( NULL ) <> ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT - ( COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT ( NULL ) <> ( + col1 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - 20 / col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT - MAX( DISTINCT + 16 ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9971
SELECT - MAX ( DISTINCT + 16 ) FROM tab1 AS cor0
----
-16

query I rowsort
SELECT col2 + - col1 - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 ) < col1 * col0 - 6 * 79
----
97
1
99

query II rowsort
SELECT ALL - + 52, col0 FROM tab0 AS cor0
----
-52
15
-52
87
-52
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9976
SELECT - + col1 DIV 72 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9976
SELECT - + col1 / 72 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = - + col1 - + col0
----
0

skipif mysql # not compatible
query I rowsort label-9977
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = - + col1 - + col0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, - col0 col0 FROM tab2 cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT ALL ( col1 ) * + col2 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT DISTINCT 32 DIV + - 75 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT 32 / + - 75 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT COUNT( * ) * + ( - - COUNT( * ) ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9982
SELECT COUNT ( * ) * + ( - - COUNT ( * ) ) AS col0 FROM tab2
----
9

query I rowsort
SELECT col0 * 10 FROM tab1
----
510
850
910

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT + MIN( DISTINCT + col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9984
SELECT DISTINCT + MIN ( DISTINCT + col1 ) col2 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-9985
SELECT + col1 * col0 AS col2, - col1 DIV 65 * 90 AS col0 FROM tab1 AS cor0
----
425
0
4277
0
714
0

skipif mysql # not compatible
query II rowsort label-9985
SELECT + col1 * col0 AS col2, - col1 / 65 * 90 AS col0 FROM tab1 AS cor0
----
425
0
4277
0
714
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT DISTINCT + COUNT( DISTINCT + col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL 96 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT - + MIN( - 84 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
84

skipif mysql # not compatible
query I rowsort label-9988
SELECT - + MIN ( - 84 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
84

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + col1 = ( + 37 / + 86 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 / - + col2 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + ( 37 ) FROM tab2
----
37
37
37

query II rowsort
SELECT 50 AS col0, col1 * + col0 + + col0 FROM tab0 AS cor0
----
50
1230
50
1914
50
194

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9994
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + + - ( 93 ) - - col1 BETWEEN NULL AND - + col2 + + + CAST( NULL AS SIGNED ) * + col0
----

skipif mysql # not compatible
query III rowsort label-9994
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + + - ( 93 ) - - col1 BETWEEN NULL AND - + col2 + + + CAST ( NULL AS INTEGER ) * + col0
----

query I rowsort
SELECT DISTINCT + 97 * - col2 FROM tab2 AS cor0
----
-2231
-3880
-5626

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT NULL <= ( - col1 * + + col2 * - 15 )
----

query I rowsort
SELECT + 68 + + - 62 AS col2 FROM tab1
----
6
6
6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9998
SELECT CAST( NULL AS DECIMAL ) + + col2 AS col1, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9998
SELECT CAST ( NULL AS REAL ) + + col2 AS col1, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 * + col2 < + - 21 )
----

