sqllogictest
Artifact Content
Not logged in

Artifact 8fbc34670839bab8e74f01dfff6c7773e9869c50:


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)

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL + COUNT( ALL - + 43 ) FROM tab1 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL + COUNT ( ALL - + 43 ) FROM tab1 AS cor0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT ALL - 46 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT 20 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + 4 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) = + col2 * + col2 * col1 + - 89
----

skipif mysql # not compatible
query III rowsort label-4
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) = + col2 * + col2 * col1 + - 89
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6
SELECT DISTINCT - col2 DIV CAST( - - 1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT - col2 / CAST ( - - 1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * - col0 - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col0 - - CAST ( NULL AS INTEGER ) IS NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 BETWEEN + col0 + + + col0 AND + 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 / col1 AS col2 FROM tab1 WHERE NOT - 67 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 49 FROM tab0 cor0
----
49

query I rowsort
SELECT + - 57 * + + 39 + - col0 + + + col0 FROM tab2 AS cor0
----
-2223
-2223
-2223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-15
SELECT DISTINCT + 30 * - CAST( NULL AS SIGNED ) + - 69 + col1 AS col2, col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-15
SELECT DISTINCT + 30 * - CAST ( NULL AS INTEGER ) + - 69 + col1 AS col2, col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-16
SELECT * FROM tab1 cor0 WHERE + CAST( + col1 AS DECIMAL ) * + 53 * - + col0 * - 27 * + + 24 BETWEEN 86 AND - - 1 / + + col1
----

skipif mysql # not compatible
query III rowsort label-16
SELECT * FROM tab1 cor0 WHERE + CAST ( + col1 AS REAL ) * + 53 * - + col0 * - 27 * + + 24 BETWEEN 86 AND - - 1 / + + col1
----

query II rowsort
SELECT ALL + - col0 AS col1, + col0 + + 66 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-18
SELECT - 18 DIV + 16 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-18
SELECT - 18 / + 16 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT ALL + SUM( ALL - - 22 ) * COUNT( * ) FROM tab1, tab2 AS cor0
----
1782

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL + SUM ( ALL - - 22 ) * COUNT ( * ) FROM tab1, tab2 AS cor0
----
1782

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT 16 - + + SUM( DISTINCT col2 ) FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-22
SELECT 16 - + + SUM ( DISTINCT col2 ) FROM tab2
----
-105

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-25
SELECT ( 42 ) + - col2 * + - CAST( col0 AS SIGNED ) * 39 + CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
27522
33885
374462

skipif mysql # not compatible
query I rowsort label-25
SELECT ( 42 ) + - col2 * + - CAST ( col0 AS INTEGER ) * 39 + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
27522
33885
374462

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT - COUNT( * ) + - ( + 32 ) FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-26
SELECT - COUNT ( * ) + - ( + 32 ) FROM tab2 AS cor0
----
-35

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

skipif mysql # not compatible
query I rowsort label-27
SELECT + CAST ( NULL AS REAL ) * - - 69 + - col1 FROM tab0 cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + + 78 * col0 - - + 74
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-30
SELECT DISTINCT - col2 * - - CAST( 16 AS SIGNED ) AS col2 FROM tab1
----
-1088
-1536
-944

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT - col2 * - - CAST ( 16 AS INTEGER ) AS col2 FROM tab1
----
-1088
-1536
-944

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-33
SELECT ALL CAST( NULL AS SIGNED ) + col0 + + col0 + - - CAST( - 22 AS SIGNED ) AS col0 FROM tab0 cor0 WHERE ( col1 * - ( - col1 ) + - 74 ) NOT BETWEEN ( col1 ) AND CAST( + - 27 AS SIGNED ) * - - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL CAST ( NULL AS INTEGER ) + col0 + + col0 + - - CAST ( - 22 AS INTEGER ) AS col0 FROM tab0 cor0 WHERE ( col1 * - ( - col1 ) + - 74 ) NOT BETWEEN ( col1 ) AND CAST ( + - 27 AS INTEGER ) * - - col1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT ALL + + 76 * SUM( ALL - ( - col0 ) ) FROM tab1 AS cor0
----
17252

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL + + 76 * SUM ( ALL - ( - col0 ) ) FROM tab1 AS cor0
----
17252

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

query I rowsort
SELECT + col2 * - 40 FROM tab0
----
-1880
-3960
-400

query I rowsort
SELECT ALL - 97 * - + col2 AS col2 FROM tab2
----
2231
3880
5626

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT - 69 * + COUNT( DISTINCT + col0 ) FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-38
SELECT - 69 * + COUNT ( DISTINCT + col0 ) FROM tab0
----
-207

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

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

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

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

query II rowsort
SELECT ALL + col1 AS col2, ( - 29 ) AS col0 FROM tab0
----
1
-29
21
-29
81
-29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT ALL COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-44
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + - COUNT ( * ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE col0 + - ( + - col2 ) IS NOT NULL
----
46
64
75

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

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL + 33 * COUNT ( * ) FROM tab2
----
99

query I rowsort
SELECT + 6 + + - col0 FROM tab1
----
-45
-79
-85

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

query I rowsort
SELECT 88 + - col2 FROM tab2
----
30
48
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + - col1 <> NULL
----

query II rowsort
SELECT + col2, 37 + - col0 FROM tab1
----
59
-48
68
-54
96
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-52
SELECT + col0 DIV - + 71 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-52
SELECT + col0 / - + 71 AS col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL + col2 * + + 52 AS col1 FROM tab0
----
2444
5148
520

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

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

query I rowsort
SELECT DISTINCT + 32 - - ( + col0 ) * 59 + + + 73 AS col1 FROM tab1
----
3114
5120
5474

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 7
----

query II rowsort
SELECT DISTINCT - 2 * - + col2 * - col2, col0 AS col1 FROM tab1 AS cor0
----
-18432
51
-6962
85
-9248
91

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT DISTINCT - MIN( - col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT - MIN ( - col2 ) AS col2 FROM tab1
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT DISTINCT - + 2 * COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT - + 2 * COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

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

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

skipif mysql # not compatible
query I rowsort label-62
SELECT - - col0 / - + CAST ( - + 68 AS INTEGER ) FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-63
SELECT ALL - col0 * 31 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT + 81 / - - col1 * + 85 NOT IN ( - - col2, 2 * + col2, ( + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL - col0 * 31 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT + 81 / - - col1 * + 85 NOT IN ( - - col2, 2 * + col2, ( + col2 ) )
----

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

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

query I rowsort
SELECT ALL col0 * col2 - + - col1 + + + col2 * - ( - + col1 ) FROM tab0 AS cor0
----
1101
4593
9703

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

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

query I rowsort
SELECT ( 2 ) AS col2 FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT COUNT( * ) * 80 AS col0 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-68
SELECT COUNT ( * ) * 80 AS col0 FROM tab0
----
240

query I rowsort
SELECT + 82 + - - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
128
146
157

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT DISTINCT 78 DIV - - col1 FROM tab0
----
0
3
78

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT 78 / - - col1 FROM tab0
----
0
3
78

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

query II rowsort
SELECT DISTINCT + col1, + 95 * + col2 FROM tab2 AS cor0
----
51
2185
67
5510
77
3800

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT - - 87 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-74
SELECT - - 87 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT DISTINCT + COUNT( * ) * 38 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT + COUNT ( * ) * 38 FROM tab2 AS cor0
----
114

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN col0 AND - col1
----
-59
-68
-96

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT DISTINCT + col0 DIV + - 85 + 46 + + + col2 FROM tab0 AS cor0
----
144
55
93

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT + col0 / + - 85 + 46 + + + col2 FROM tab0 AS cor0
----
144
55
93

query I rowsort
SELECT ALL - ( + col1 ) + - col0 AS col0 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT - col2 + - ( - 20 ) + col0 AS col2 FROM tab1
----
-25
43
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-82
SELECT ALL + col2 - + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL + col2 - + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-23
-26
45

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

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

query I rowsort
SELECT DISTINCT col1 + - col1 + - 90 FROM tab1 AS cor0
----
-90

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

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

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

query I rowsort
SELECT ALL - - 49 + - col2 AS col1 FROM tab1 AS cor0
----
-10
-19
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 AS col0, col1 col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-89
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 50 + - 21, + 97 * col2 * + + CAST( NULL AS SIGNED ) / + col2 * col1 * + - col2 )
----

skipif mysql # not compatible
query III rowsort label-89
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 50 + - 21, + 97 * col2 * + + CAST ( NULL AS INTEGER ) / + col2 * col1 * + - col2 )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT DISTINCT - ( + - col1 ) * - col0 - col0 DIV 17 AS col1 FROM tab2 AS cor0
----
-2348
-4931
-5029

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT - ( + - col1 ) * - col0 - col0 / 17 AS col1 FROM tab2 AS cor0
----
-2348
-4931
-5029

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

query I rowsort
SELECT + col0 - + ( + ( + 38 ) ) AS col2 FROM tab2
----
26
37
8

query I rowsort
SELECT + + col2 / + 70 AS col0 FROM tab2 WHERE - ( col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 66 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-66

query I rowsort
SELECT ALL + col1 + - - ( - col1 ) / + 5 FROM tab2 WHERE NOT + 11 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-99
SELECT col2 DIV + 71 - - - 55 FROM tab0
----
-54
-55
-55

skipif mysql # not compatible
query I rowsort label-99
SELECT col2 / + 71 - - - 55 FROM tab0
----
-54
-55
-55

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

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

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

query II rowsort
SELECT DISTINCT col2, 5 FROM tab1
----
59
5
68
5
96
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-104
SELECT CAST( NULL AS SIGNED ) col1 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-104
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-21

query I rowsort
SELECT col1 * + + col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT ALL - + 9 * + - col2 * - col1 + col2 FROM tab0 AS cor0
----
-1880
-34216
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT COUNT( DISTINCT - 64 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-108
SELECT COUNT ( DISTINCT - 64 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT 43 * + col2 AS col1 FROM tab2 AS cor0
----
1720
2494
989

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

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

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

query I rowsort
SELECT ALL + - ( 72 ) * - col1 AS col0 FROM tab1 AS cor0
----
1008
3384
360

query I rowsort
SELECT ALL 26 * + - 51 * col0 FROM tab1 AS cor0
----
-112710
-120666
-67626

query I rowsort
SELECT DISTINCT - col0 * + - 14 * - - col1 * + 52 FROM tab0
----
1330056
70616
884520

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL - MAX( ALL + - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - MAX ( ALL + - col2 ) FROM tab2
----
23

query I rowsort
SELECT col1 * - - col0 + + 35 + col0 + - col0 * + 68 FROM tab0
----
-3967
-6367
245

query II rowsort
SELECT col2 + - + col0 AS col2, col1 FROM tab1
----
-23
47
-26
5
45
14

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-120
SELECT + + COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) col2, - ( COUNT ( * ) ) FROM tab1 AS cor0
----
NULL
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-121
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 IN ( - 84, + CAST( NULL AS DECIMAL ) + col1, col1 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-121
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 IN ( - 84, + CAST ( NULL AS REAL ) + col1, col1 + + col1 )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-124
SELECT ALL + 50 DIV - col0, - col0 + + 93 * + - col0 AS col0 FROM tab2 AS cor0
----
-1
-4324
0
-6016
0
-7050

skipif mysql # not compatible
query II rowsort label-124
SELECT ALL + 50 / - col0, - col0 + + 93 * + - col0 AS col0 FROM tab2 AS cor0
----
-1
-4324
0
-6016
0
-7050

onlyif mysql # DIV for integer division: 
query I rowsort label-125
SELECT DISTINCT - + 80 DIV - - col1 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT - + 80 / - - col1 AS col0 FROM tab2 AS cor0
----
-1

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

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

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

skipif mysql # not compatible
query I rowsort label-127
SELECT - - COUNT ( DISTINCT - - col2 ) FROM tab1 WHERE + ( + 69 ) * + col0 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-128
SELECT DISTINCT 33 + + + 12 + - - COUNT( * ) * CAST( NULL AS SIGNED ) * + - 66 * AVG ( + ( ( col1 ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT 33 + + + 12 + - - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + - 66 * AVG ( + ( ( col1 ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + - col0 * - 68 - col0 AS col2 FROM tab0 AS cor0
----
1005
5829
6499

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, - col2 AS col0 FROM tab2
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT + 26 * col0 * - - 87 * col1 AS col1 FROM tab0
----
219414
2748330
4132674

onlyif mysql # DIV for integer division: 
query I rowsort label-135
SELECT 96 DIV - - col2 AS col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-135
SELECT 96 / - - col2 AS col2 FROM tab2
----
1
2
4

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + ( - col0 ), - 25 col1 FROM tab0 AS cor0
----
15
-25
87
-25
97
-25

query II rowsort
SELECT ALL - - 63 AS col1, 46 FROM tab2 AS cor0
----
63
46
63
46
63
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-140
SELECT DISTINCT - CAST( NULL AS SIGNED ), + col0 + + col2 AS col2 FROM tab1 AS cor0
----
NULL
144
NULL
147
NULL
159

skipif mysql # not compatible
query II rowsort label-140
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + col0 + + col2 AS col2 FROM tab1 AS cor0
----
NULL
144
NULL
147
NULL
159

query II rowsort
SELECT DISTINCT + 9, + col0 FROM tab0 AS cor0
----
9
15
9
87
9
97

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT + SUM( - ( - 65 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-142
SELECT + SUM ( - ( - 65 ) ) FROM tab2
----
195

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

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

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

query I rowsort
SELECT ALL - 46 * - col2 AS col2 FROM tab2 AS cor0
----
1058
1840
2668

query I rowsort
SELECT col0 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 5
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 * col2 col2 FROM tab1 AS cor0
----
3363
3876
5472

query I rowsort
SELECT 66 * + 39 AS col0 FROM tab0 AS cor0
----
2574
2574
2574

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

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

query I rowsort
SELECT ( + 95 ) AS col1 FROM tab0
----
95
95
95

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

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

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

query I rowsort
SELECT + - col1 AS col2 FROM tab2 AS cor0 WHERE 60 = + - col0 + - - col0
----

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

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

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

query I rowsort
SELECT 50 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-159
SELECT - - 6 / - + MIN( ( + - 86 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col0 + - col2 / - + col0 / + CAST( NULL AS SIGNED ) + + 12 * col0 + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-159
SELECT - - 6 / - + MIN ( ( + - 86 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col0 + - col2 / - + col0 / + CAST ( NULL AS INTEGER ) + + 12 * col0 + 16
----
NULL

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

query I rowsort
SELECT ALL + col2 * col0 * + ( - 41 ) / - 71 * 13 AS col1 FROM tab0 AS cor0 WHERE + col1 * + col2 IS NULL
----

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

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

query I rowsort
SELECT - col2 - - - ( - 76 ) AS col2 FROM tab2 AS cor0
----
18
36
53

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

query I rowsort
SELECT - - ( 71 ) FROM tab2 cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, + 69 FROM tab1
----
-59
69
-68
69
-96
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-167
SELECT + col0 * - CAST( + 26 AS SIGNED ) AS col1 FROM tab0
----
-2262
-2522
-390

skipif mysql # not compatible
query I rowsort label-167
SELECT + col0 * - CAST ( + 26 AS INTEGER ) AS col1 FROM tab0
----
-2262
-2522
-390

query I rowsort
SELECT ALL 89 * + 50 FROM tab0
----
4450
4450
4450

query I rowsort
SELECT + col1 * ( col1 ) * - 57 FROM tab1
----
-11172
-125913
-1425

query I rowsort
SELECT + 76 - col0 AS col2 FROM tab0 WHERE NOT + - 38 IS NULL
----
-11
-21
61

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-174
SELECT ALL COUNT( * ) AS col0, 88 AS col0 FROM tab0 AS cor0
----
3
88

skipif mysql # not compatible
query II rowsort label-174
SELECT ALL COUNT ( * ) AS col0, 88 AS col0 FROM tab0 AS cor0
----
3
88

query I rowsort
SELECT - 34 + 45 AS col1 FROM tab2
----
11
11
11

query I rowsort
SELECT ALL col1 + - col2 + - + 13 FROM tab0
----
-111
-2
21

query I rowsort
SELECT - col2 + - 39 FROM tab1
----
-107
-135
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT COUNT( * ) + + - SUM( DISTINCT + 7 ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-178
SELECT COUNT ( * ) + + - SUM ( DISTINCT + 7 ) FROM tab2
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-179
SELECT col0 + + 99 AS col1, CAST( NULL AS DECIMAL ) * + 44 FROM tab2
----
145
NULL
163
NULL
174
NULL

skipif mysql # not compatible
query II rowsort label-179
SELECT col0 + + 99 AS col1, CAST ( NULL AS REAL ) * + 44 FROM tab2
----
145
NULL
163
NULL
174
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-181
SELECT - ( + + col2 ) + col1 DIV + ( - 9 ) AS col2 FROM tab2
----
-28
-48
-65

skipif mysql # not compatible
query I rowsort label-181
SELECT - ( + + col2 ) + col1 / + ( - 9 ) AS col2 FROM tab2
----
-28
-48
-65

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

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT - ( + 55 ) / COUNT ( * ) + - + 42 FROM tab2
----
-60

query I rowsort
SELECT DISTINCT + col2 + 11 * + 75 AS col1 FROM tab1
----
884
893
921

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

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

query I rowsort
SELECT 17 - col0 FROM tab0
----
-70
-80
2

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

query I rowsort
SELECT 43 - + + col0 FROM tab0
----
-44
-54
28

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

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

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

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL CAST ( - 27 AS INTEGER ) FROM tab0 cor0
----
-27
-27
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT DISTINCT col1 DIV 66 DIV - col0 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT col1 / 66 / - col0 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL ( 11 ) FROM tab1
----
11
11
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-193
SELECT ( - 56 ), + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-56
-3

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * 51 FROM tab2
----
2346
3264
3825

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

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

query I rowsort
SELECT - + col0 * col1 + + + 67 FROM tab2 AS cor0
----
-2279
-4861
-4958

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

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

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

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

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

query I rowsort
SELECT ALL - + col0 + 71 AS col1 FROM tab1 AS cor0
----
-14
-20
20

query I rowsort
SELECT ALL 93 * - - col2 FROM tab0 AS cor0
----
4371
9207
930

query I rowsort
SELECT - - col0 * + + 12 FROM tab0 AS cor0
----
1044
1164
180

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

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

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

query I rowsort
SELECT - col2 * - col1 * - 83 FROM tab1
----
-111552
-24485
-265268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + + 19 col0 FROM tab2
----
-1273
-1463
-969

query I rowsort
SELECT - 92 * + 19 AS col2 FROM tab1
----
-1748
-1748
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT COUNT( DISTINCT - 12 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-211
SELECT COUNT ( DISTINCT - 12 ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT col1 + 57 AS col0 FROM tab0
----
138
58
78

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

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

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

query I rowsort
SELECT DISTINCT + + col1 / - + col2 FROM tab2 cor0 WHERE NULL <> + col0 / - col1 / - 48 * + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-216
SELECT MAX( ALL - - col1 ) + + 46 * + 70 * - + 40, - COUNT( * ) AS col2 FROM tab2
----
-128723
-3

skipif mysql # not compatible
query II rowsort label-216
SELECT MAX ( ALL - - col1 ) + + 46 * + 70 * - + 40, - COUNT ( * ) AS col2 FROM tab2
----
-128723
-3

query I rowsort
SELECT ALL + 74 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL 77 * 58 AS col1 FROM tab0
----
4466
4466
4466

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + 75 AS col0, 8 col2 FROM tab0
----
1125
8
6525
8
7275
8

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 21 + + 99 + - - 75 <= + - 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-223
SELECT ALL + col0 * col1 + CAST( 59 AS SIGNED ) + col2 DIV - - col0 AS col1 FROM tab0 AS cor0
----
1277
157
1886

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL + col0 * col1 + CAST ( 59 AS INTEGER ) + col2 / - - col0 AS col1 FROM tab0 AS cor0
----
1277
157
1886

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

onlyif mysql # DIV for integer division: 
query II rowsort label-225
SELECT DISTINCT + 16 DIV col1, 99 col0 FROM tab2 AS cor0
----
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-225
SELECT DISTINCT + 16 / col1, 99 col0 FROM tab2 AS cor0
----
0
99

query I rowsort
SELECT DISTINCT + - col2 + - - col2 * + + 9 FROM tab2 WHERE + 74 BETWEEN NULL AND + + 75
----

query I rowsort
SELECT - 83 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT + COUNT( * ) * COUNT( * ) AS col0 FROM tab0, tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-228
SELECT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT COUNT( * ) * + MAX( col0 ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-229
SELECT COUNT ( * ) * + MAX ( col0 ) FROM tab0
----
291

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

query III rowsort
SELECT * FROM tab1 WHERE ( col2 * + 75 ) <= col2 / - 4
----

query I rowsort
SELECT col2 / col2 AS col2 FROM tab2 WHERE NOT col0 = NULL
----

query I rowsort
SELECT DISTINCT + 11 * col1 AS col2 FROM tab2
----
561
737
847

query I rowsort
SELECT DISTINCT col0 * - 54 AS col0 FROM tab2
----
-2484
-3456
-4050

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

skipif mysql # not compatible
query I rowsort label-235
SELECT - COUNT ( * ) - - ( COUNT ( * ) ) AS col1 FROM tab0
----
0

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

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

query I rowsort
SELECT ALL 49 FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 * 38 AND NULL
----

query I rowsort
SELECT - 14 - col2 FROM tab0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-239
SELECT - col2 FROM tab1 WHERE NOT ( ( + col2 ) + + 4 ) NOT BETWEEN ( CAST( col0 AS SIGNED ) ) AND - col0 * + col0
----

skipif mysql # not compatible
query I rowsort label-239
SELECT - col2 FROM tab1 WHERE NOT ( ( + col2 ) + + 4 ) NOT BETWEEN ( CAST ( col0 AS INTEGER ) ) AND - col0 * + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 42 * + 79 BETWEEN NULL AND + ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT MIN( ALL 6 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-241
SELECT MIN ( ALL 6 ) FROM tab1
----
6

query I rowsort
SELECT ALL - 46 AS col2 FROM tab1 WHERE NOT - 41 / col0 <= col1
----

query III rowsort
SELECT * FROM tab1 WHERE 34 IS NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
15
87
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT 19 * MIN( DISTINCT + col0 ) AS col2 FROM tab2
----
874

skipif mysql # not compatible
query I rowsort label-246
SELECT 19 * MIN ( DISTINCT + col0 ) AS col2 FROM tab2
----
874

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT - COUNT( * ) + MAX( col1 ) FROM tab2 WHERE NULL IS NULL
----
74

skipif mysql # not compatible
query I rowsort label-247
SELECT - COUNT ( * ) + MAX ( col1 ) FROM tab2 WHERE NULL IS NULL
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT DISTINCT COUNT( * ) * COUNT( * ) + 43 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + 43 FROM tab2
----
52

query I rowsort
SELECT 30 * - col0 AS col0 FROM tab1
----
-1530
-2550
-2730

query I rowsort
SELECT - ( col1 ) - + col0 FROM tab1 WHERE NOT col1 * - col0 >= + col2 * + 71
----
-138
-65
-90

query I rowsort
SELECT + 84 * - col0 AS col1 FROM tab0
----
-1260
-7308
-8148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-252
SELECT DISTINCT CAST( + 99 AS SIGNED ) + COUNT( ALL - 51 + - 58 ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT CAST ( + 99 AS INTEGER ) + COUNT ( ALL - 51 + - 58 ) FROM tab0
----
102

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col1 FROM tab2 WHERE NOT NULL > ( - col1 )
----

query I rowsort
SELECT - 73 * ( + 22 * 71 ) FROM tab2
----
-114026
-114026
-114026

query I rowsort
SELECT + 67 * 31 + + 57 * - ( + col2 ) AS col1 FROM tab0
----
-3566
-602
1507

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT + MAX( ALL 64 ) * - 61 AS col2 FROM tab1
----
-3904

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT + MAX ( ALL 64 ) * - 61 AS col2 FROM tab1
----
-3904

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN 58 AND ( NULL )
----
46
51
23

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

query I rowsort
SELECT ALL 87 - col2 * - 90 AS col2 FROM tab1 AS cor0
----
5397
6207
8727

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT 76 - - MAX( DISTINCT - 71 ) AS col2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-261
SELECT 76 - - MAX ( DISTINCT - 71 ) AS col2 FROM tab2 AS cor0
----
5

query I rowsort
SELECT col2 * 78 - col1 * 17 AS col1 FROM tab1 AS cor0
----
4505
4517
7250

query I rowsort
SELECT 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT - 74 * - col1 FROM tab2
----
3774
4958
5698

query I rowsort
SELECT - 32 + col2 * 53 AS col1 FROM tab1 cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-266
SELECT DISTINCT - CAST( - ( 93 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT - CAST ( - ( 93 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 25 ) = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL col0 * 53 AS col1 FROM tab0 AS cor0
----
4611
5141
795

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 - - 19 BETWEEN + 66 / col2 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT DISTINCT + MIN( - - 44 ) AS col2 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT + MIN ( - - 44 ) AS col2 FROM tab2
----
44

query I rowsort
SELECT DISTINCT col1 + - + col1 * + col2 AS col2 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT + col0 - col0 * 94 AS col1 FROM tab1 WHERE NOT - 30 - col2 <> ( NULL )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL = - 13
----

query I rowsort
SELECT 75 FROM tab0 WHERE NOT NULL >= 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 * col1 + + col0 col2 FROM tab0
----
135
3093
885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-280
SELECT ALL - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-281
SELECT ALL * FROM tab2 cor0 WHERE - 29 NOT BETWEEN CAST( + col0 AS SIGNED ) / col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-281
SELECT ALL * FROM tab2 cor0 WHERE - 29 NOT BETWEEN CAST ( + col0 AS INTEGER ) / col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( 54 ) AS col1 FROM tab2 AS cor0
----
54

query I rowsort
SELECT + - col0 * + col2 + 48 AS col1 FROM tab1 AS cor0
----
-4848
-4967
-6140

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 35 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ALL MAX( - + col0 ) + + - COUNT( * ) AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL MAX ( - + col0 ) + + - COUNT ( * ) AS col2 FROM tab0
----
-18

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

query I rowsort
SELECT col0 * + - col0 + + col2 - col0 FROM tab1 AS cor0
----
-2556
-7251
-8304

query I rowsort
SELECT DISTINCT - 75 FROM tab1 AS cor0 WHERE NOT + col1 + col1 <= + col0
----
-75

query I rowsort
SELECT + ( 50 ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( + col2 * - - 76 ) BETWEEN ( - 47 ) - col2 AND - col0
----

query I rowsort
SELECT ALL - 94 + - + col1 + + 62 * col1 FROM tab2 AS cor0
----
3017
3993
4603

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

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

query I rowsort
SELECT + col1 * - 33 * + - col2 FROM tab1 cor0
----
105468
44352
9735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-295
SELECT DISTINCT col0 AS col0 FROM tab2 cor0 WHERE NOT - 2 BETWEEN ( ( - col1 ) ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT col0 AS col0 FROM tab2 cor0 WHERE NOT - 2 BETWEEN ( ( - col1 ) ) AND CAST ( NULL AS INTEGER )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT ALL + + SUM( col2 ) * COUNT( * ) FROM tab0 WHERE NOT col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL + + SUM ( col2 ) * COUNT ( * ) FROM tab0 WHERE NOT col1 >= NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 <= 72
----
85
5
59
91
47
68

query I rowsort
SELECT 10 + + col0 AS col2 FROM tab1
----
101
61
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND 1 + - col2
----

query I rowsort
SELECT + - col0 * + col1 + + - col1 + + + ( + 87 ) * 37 AS col0 FROM tab1 AS cor0
----
-1105
2491
2789

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-302
SELECT col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) >= ( + col2 * col2 + 22 )
----

skipif mysql # not compatible
query I rowsort label-302
SELECT col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) >= ( + col2 * col2 + 22 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-304
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + col2 + - + col1 + + CAST( NULL AS SIGNED ) + + col0 * 79 col2 FROM tab1
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-304
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + col2 + - + col1 + + CAST ( NULL AS INTEGER ) + + col0 * 79 col2 FROM tab1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT + + MIN( ALL col2 ) * + 3 AS col2 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-305
SELECT + + MIN ( ALL col2 ) * + 3 AS col2 FROM tab1 AS cor0
----
177

query I rowsort
SELECT ALL - 43 AS col0 FROM tab1 AS cor0 WHERE - 29 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL + 60 * + MAX( DISTINCT + + 27 ) * + MAX( col0 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
147423

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL + 60 * + MAX ( DISTINCT + + 27 ) * + MAX ( col0 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
147423

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

onlyif mysql # aggregate syntax: 
query II rowsort label-309
SELECT DISTINCT - MIN( ALL ( - col1 ) ) AS col2, + 62 + 55 FROM tab2 AS cor0
----
77
117

skipif mysql # not compatible
query II rowsort label-309
SELECT DISTINCT - MIN ( ALL ( - col1 ) ) AS col2, + 62 + 55 FROM tab2 AS cor0
----
77
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-310
SELECT DISTINCT + 93 AS col0 FROM tab2 AS cor0 WHERE 97 + + + ( col1 ) / - col0 + - col1 * CAST( col1 AS SIGNED ) NOT IN ( - col2 * col2 - + 90 * col1 )
----
93

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT + 93 AS col0 FROM tab2 AS cor0 WHERE 97 + + + ( col1 ) / - col0 + - col1 * CAST ( col1 AS INTEGER ) NOT IN ( - col2 * col2 - + 90 * col1 )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-311
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE - col0 * - CAST( - 98 AS SIGNED ) + - col1 * + 62 IS NULL
----

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE - col0 * - CAST ( - 98 AS INTEGER ) + - col1 * + 62 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 50, col0 + + col0 col2 FROM tab1
----
50
102
50
170
50
182

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT ALL + SUM( - col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL + SUM ( - col2 ) AS col2 FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 32 col0 FROM tab2
----
1632
2144
2464

query I rowsort
SELECT - col2 + col1 AS col1 FROM tab0 WHERE NOT + col1 BETWEEN - - col1 AND - 69 + - 76
----
-98
11
34

query I rowsort
SELECT - 25 * - 39 + 43 FROM tab0
----
1018
1018
1018

query I rowsort
SELECT - col0 + + ( - col1 ) FROM tab1
----
-138
-65
-90

query I rowsort
SELECT DISTINCT col2 + - ( - 33 ) AS col1 FROM tab1
----
101
129
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( + - col2 - col0 + - 78 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 56 * - col2 FROM tab2 cor0
----
1288
2240
3248

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

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

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

query I rowsort
SELECT DISTINCT - 84 + - col0 AS col2 FROM tab2
----
-130
-148
-159

query I rowsort
SELECT + ( col0 ) - - 91 AS col0 FROM tab1
----
142
176
182

query II rowsort
SELECT DISTINCT col2 + col1 AS col1, col2 + + col0 FROM tab2
----
117
104
125
133
74
69

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT DISTINCT - SUM( + 26 ) * 11 FROM tab0 AS cor0 WHERE NOT ( 91 * - 23 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT - SUM ( + 26 ) * 11 FROM tab0 AS cor0 WHERE NOT ( 91 * - 23 ) IS NOT NULL
----
NULL

query II rowsort
SELECT + + 1 + + 18 AS col0, 29 * - - col2 + - col2 * + 49 FROM tab2 AS cor0
----
19
-1160
19
-460
19
-800

query I rowsort
SELECT 33 + col0 FROM tab0 AS cor0
----
120
130
48

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

query I rowsort
SELECT ALL + - 65 + - 30 + - col1 AS col0 FROM tab0 cor0
----
-116
-176
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-332
SELECT - col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-332
SELECT - col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-14
-47
-5

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

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

query I rowsort
SELECT col0 + + col2 * + ( col0 ) FROM tab0 cor0
----
720
957
9700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-335
SELECT ALL col0 FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) - 3 > + ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL col0 FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) - 3 > + ( - col1 )
----

query I rowsort
SELECT ALL + 62 - - - col2 AS col0 FROM tab0
----
-37
15
52

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

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

query I rowsort
SELECT col2 * + 72 AS col0 FROM tab2
----
1656
2880
4176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * + 40 col1 FROM tab2
----
3160
3160
3160

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT COUNT( * ) * - COUNT( 14 ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-341
SELECT COUNT ( * ) * - COUNT ( 14 ) AS col0 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-342
SELECT col1 * + CAST( + + 83 AS SIGNED ) * + 98 * col2 FROM tab2
----
25052720
31608724
9541182

skipif mysql # not compatible
query I rowsort label-342
SELECT col1 * + CAST ( + + 83 AS INTEGER ) * + 98 * col2 FROM tab2
----
25052720
31608724
9541182

query I rowsort
SELECT ALL + col1 + col1 * + + 42 AS col2 FROM tab0
----
3483
43
903

query I rowsort
SELECT DISTINCT 61 * + col2 AS col0 FROM tab1
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT ALL COUNT( ALL + + col0 ) * - ( + - 42 ) col1 FROM tab0
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-345
SELECT ALL COUNT ( ALL + + col0 ) * - ( + - 42 ) col1 FROM tab0
----
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 17 col2 FROM tab0 AS cor0 WHERE NOT ( - col2 * + col0 ) NOT BETWEEN 39 * - + col1 AND ( + col1 )
----
-1377

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + col1 = col2 * + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-351
SELECT col2 * 8 DIV col1 * + + 47 AS col0 FROM tab0
----
141
188
37224

skipif mysql # not compatible
query I rowsort label-351
SELECT col2 * 8 / col1 * + + 47 AS col0 FROM tab0
----
141
188
37224

onlyif mysql # aggregate syntax: 
query II rowsort label-352
SELECT ALL + + COUNT( DISTINCT - col1 ) AS col2, - COUNT( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-352
SELECT ALL + + COUNT ( DISTINCT - col1 ) AS col2, - COUNT ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-353
SELECT DISTINCT + CAST( NULL AS SIGNED ) / COUNT( * ) / - AVG ( ALL + + col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / COUNT ( * ) / - AVG ( ALL + + col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT col0 * - - ( - + 13 ) FROM tab2 AS cor0
----
-598
-832
-975

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

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT MAX( DISTINCT + 46 ) FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-356
SELECT MAX ( DISTINCT + 46 ) FROM tab1 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-357
SELECT + 88 DIV + + col2 + + col1 FROM tab2 cor0
----
54
68
79

skipif mysql # not compatible
query I rowsort label-357
SELECT + 88 / + + col2 + + col1 FROM tab2 cor0
----
54
68
79

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 69 IN ( 90 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-359
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) / + col2 <= - ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-359
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) / + col2 <= - ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 >= col0
----
15
81
47
97
1
99

query I rowsort
SELECT ALL + col0 + 27 AS col0 FROM tab1
----
112
118
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-362
SELECT DISTINCT 52 + - col1 * - col1 AS col2, CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
493
-87
53
-97
6613
-15

skipif mysql # not compatible
query II rowsort label-362
SELECT DISTINCT 52 + - col1 * - col1 AS col2, CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
493
-87
53
-97
6613
-15

query I rowsort
SELECT - col1 * - 43 * 78 FROM tab1 WHERE ( + + ( + - 35 ) ) IS NULL
----

query I rowsort
SELECT ALL + col0 + - + 40 * ( - 93 ) + - 62 * + - 26 FROM tab2
----
5378
5396
5407

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

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT + - 53 * + SUM( ALL + ( - + col2 ) ) FROM tab1 AS cor0
----
11819

skipif mysql # not compatible
query I rowsort label-366
SELECT + - 53 * + SUM ( ALL + ( - + col2 ) ) FROM tab1 AS cor0
----
11819

onlyif mysql # DIV for integer division: 
query I rowsort label-367
SELECT 39 * col1 DIV + + 87 + - col1 FROM tab2 AS cor0
----
-29
-37
-43

skipif mysql # not compatible
query I rowsort label-367
SELECT 39 * col1 / + + 87 + - col1 FROM tab2 AS cor0
----
-29
-37
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT - - 99 + MAX( + - 9 ) AS col2 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-369
SELECT - - 99 + MAX ( + - 9 ) AS col2 FROM tab1 AS cor0
----
90

query II rowsort
SELECT ALL + 54, col0 AS col0 FROM tab2 AS cor0
----
54
46
54
64
54
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + + col0 * - 50 + - col1, 49 + + + col2 - - 55 * + col1 * 98 col0 FROM tab1
----
-2513
75605
-4170
27058
-4506
253447

query I rowsort
SELECT ALL - 56 * + + 62 FROM tab2
----
-3472
-3472
-3472

query I rowsort
SELECT - - 24 AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT DISTINCT 86 + + MAX( ALL - col0 ) AS col1 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT 86 + + MAX ( ALL - col0 ) AS col1 FROM tab2
----
40

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

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

query I rowsort
SELECT ALL col2 - col2 * - 6 FROM tab1 AS cor0
----
413
476
672

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

onlyif mysql # DIV for integer division: 
query I rowsort label-378
SELECT col2 DIV + 49 AS col0 FROM tab2 AS cor0 WHERE ( - col2 ) > + ( - col1 )
----
0
0
1

skipif mysql # not compatible
query I rowsort label-378
SELECT col2 / + 49 AS col0 FROM tab2 AS cor0 WHERE ( - col2 ) > + ( - col1 )
----
0
0
1

query I rowsort
SELECT ALL - + col2 + - 99 AS col1 FROM tab1 AS cor0
----
-158
-167
-195

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

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

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

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

query II rowsort
SELECT col2 - - col2 * + 92 + + 51, 7 + - col2 - col1 * + - col2 AS col0 FROM tab2 AS cor0
----
2190
1157
3771
3047
5445
3835

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-383
SELECT - 68 AS col1, + CAST( col0 AS SIGNED ) * col1 * - col2 + col0 FROM tab2 WHERE NOT ( NOT col1 <= NULL )
----

skipif mysql # not compatible
query II rowsort label-383
SELECT - 68 AS col1, + CAST ( col0 AS INTEGER ) * col1 * - col2 + col0 FROM tab2 WHERE NOT ( NOT col1 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT + 13 * + - MAX( + + 53 ) AS col0 FROM tab0
----
-689

skipif mysql # not compatible
query I rowsort label-384
SELECT + 13 * + - MAX ( + + 53 ) AS col0 FROM tab0
----
-689

onlyif mysql # aggregate syntax: 
query II rowsort label-385
SELECT - MAX( DISTINCT + 36 ) AS col1, ( - 54 ) AS col1 FROM tab0
----
-36
-54

skipif mysql # not compatible
query II rowsort label-385
SELECT - MAX ( DISTINCT + 36 ) AS col1, ( - 54 ) AS col1 FROM tab0
----
-36
-54

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

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

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

query II rowsort
SELECT DISTINCT - 35, col2 FROM tab0
----
-35
10
-35
47
-35
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * - 39 col0 FROM tab0 AS cor0
----
3549
3549
3549

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

query II rowsort
SELECT ALL col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - - col2 NOT BETWEEN NULL AND + + col2 + + - col0 )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-394
SELECT ALL - - CAST( + 64 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL - - CAST ( + 64 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-395
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / + col2 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / + col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT col2 - - - col1 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( + 63 * - col0, + col1 )
----
21
54
82

query I rowsort
SELECT ALL + col1 + 98 AS col0 FROM tab0
----
119
179
99

query I rowsort
SELECT DISTINCT + col2 * - - col1 + col0 AS col1 FROM tab2
----
1219
3144
3961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-399
SELECT - ( - CAST( - - col2 AS SIGNED ) ) + - col2 + col2 + - - 50 * + ( - - col1 ) FROM tab1
----
2418
309
796

skipif mysql # not compatible
query I rowsort label-399
SELECT - ( - CAST ( - - col2 AS INTEGER ) ) + - col2 + col2 + - - 50 * + ( - - col1 ) FROM tab1
----
2418
309
796

query I rowsort
SELECT 13 + col1 + col1 FROM tab2
----
115
147
167

query I rowsort
SELECT DISTINCT + col1 + 43 AS col1 FROM tab2
----
110
120
94

query I rowsort
SELECT col2 * - col1 + col0 AS col2 FROM tab1
----
-1293
-210
-3105

query I rowsort
SELECT col2 - + 82 FROM tab2 WHERE - 95 IS NOT NULL
----
-24
-42
-59

query I rowsort
SELECT - + 23 + AVG ( + col1 ) AS col1 FROM tab1 WHERE col1 IS NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL - col2 + - col2 / + col2 + col0 FROM tab0
----
-3
-33
76

query I rowsort
SELECT + 31 + col2 * + + 97 FROM tab2
----
2262
3911
5657

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT + + ( MIN( ALL + col0 ) ) + COUNT( * ) FROM tab0 WHERE NOT + 63 * col1 + - + ( col0 ) BETWEEN + col2 AND + col1
----
18

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT + + ( MIN ( ALL + col0 ) ) + COUNT ( * ) FROM tab0 WHERE NOT + 63 * col1 + - + ( col0 ) BETWEEN + col2 AND + col1
----
18

query I rowsort
SELECT ALL - col1 + - - ( 33 ) FROM tab0
----
-48
12
32

query I rowsort
SELECT + col1 - col1 + - 99 FROM tab1 WHERE + - 43 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 98 col0 FROM tab2 AS cor0
----
23
34
52

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT DISTINCT + - 51 + + COUNT( * ) FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT + - 51 + + COUNT ( * ) FROM tab2 cor0
----
-48

query I rowsort
SELECT DISTINCT + - col0 * + - col0 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT ALL - + 22 + - 2 FROM tab1 cor0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT + 57 + col2 FROM tab0
----
104
156
67

query I rowsort
SELECT col1 * - col2 - + 76 + + 31 FROM tab2
----
-1218
-3125
-3931

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-416
SELECT ALL + CAST( col1 AS SIGNED ) - 17 + + col0 * - 16 AS col0, 75 + - - col2 FROM tab0 AS cor0
----
-1388
85
-1568
174
-176
122

skipif mysql # not compatible
query II rowsort label-416
SELECT ALL + CAST ( col1 AS INTEGER ) - 17 + + col0 * - 16 AS col0, 75 + - - col2 FROM tab0 AS cor0
----
-1388
85
-1568
174
-176
122

query I rowsort
SELECT + ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL < ( - 51 * + col2 * - 70 + - ( + col0 ) )
----

query I rowsort
SELECT ALL + 7 + - 12 FROM tab0 AS cor0
----
-5
-5
-5

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 BETWEEN col1 AND - col1 * - ( 11 )
----
51
14
96
91
47
68

query I rowsort
SELECT ALL 44 - + col1 FROM tab1 AS cor0
----
-3
30
39

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT DISTINCT + COUNT( * ) * COUNT( - 32 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT + COUNT ( * ) * COUNT ( - 32 ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL - 98 * col1 AS col2 FROM tab1 AS cor0
----
-1372
-4606
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT - - 49 * - ( - COUNT( * ) ) FROM tab1 cor0
----
147

skipif mysql # not compatible
query I rowsort label-423
SELECT - - 49 * - ( - COUNT ( * ) ) FROM tab1 cor0
----
147

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 33 <> + - col0 / - 19
----

query II rowsort
SELECT ALL col0, col0 * - col1 AS col2 FROM tab2
----
46
-2346
64
-4928
75
-5025

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 65 / + col1 + col0 + col0 AND ( 28 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-430
SELECT + CAST( 56 AS SIGNED ) AS col1, - 70 FROM tab2
----
56
-70
56
-70
56
-70

skipif mysql # not compatible
query II rowsort label-430
SELECT + CAST ( 56 AS INTEGER ) AS col1, - 70 FROM tab2
----
56
-70
56
-70
56
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-431
SELECT ALL - 39 - - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 WHERE NOT - col1 * - col0 NOT BETWEEN NULL AND + 82
----

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL - 39 - - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 WHERE NOT - col1 * - col0 NOT BETWEEN NULL AND + 82
----

query II rowsort
SELECT DISTINCT col1 * + col1, 79 + - - 0 AS col0 FROM tab1
----
196
79
2209
79
25
79

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT DISTINCT - MAX( DISTINCT 24 ) AS col2 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT - MAX ( DISTINCT 24 ) AS col2 FROM tab0
----
-24

query II rowsort
SELECT + col0 * - + col2, col0 AS col2 FROM tab2
----
-1058
46
-2560
64
-4350
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-435
SELECT col1 - - col2 - - col1 FROM tab1 WHERE col0 / - CAST( NULL AS DECIMAL ) / + 5 + - + col0 * - + col0 * + + 14 IS NOT NULL AND ( NULL ) < + - col0
----

skipif mysql # not compatible
query I rowsort label-435
SELECT col1 - - col2 - - col1 FROM tab1 WHERE col0 / - CAST ( NULL AS REAL ) / + 5 + - + col0 * - + col0 * + + 14 IS NOT NULL AND ( NULL ) < + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

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

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

query II rowsort
SELECT col1, + col0 + - + col2 AS col2 FROM tab0 cor0
----
1
-2
21
77
81
-32

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

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

skipif mysql # not compatible
query I rowsort label-440
SELECT + MAX ( ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-441
SELECT ALL + col1 DIV - - 24 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL + col1 / - - 24 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 26, col2 + - 21 col2 FROM tab1 AS cor0
----
-26
38
-26
47
-26
75

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

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT + 30 / + COUNT ( * ) FROM tab0
----
10

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

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

query II rowsort
SELECT DISTINCT col2, - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-447
SELECT ALL + 40 * ( - - CAST( + - col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-3480
-3880
-600

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL + 40 * ( - - CAST ( + - col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-3480
-3880
-600

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

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

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

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

skipif mysql # not compatible
query I rowsort label-450
SELECT + 41 / COUNT ( * ) FROM tab2
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 19 AS col1, + 33 col2 FROM tab2
----
19
33
19
33
19
33

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

query I rowsort
SELECT DISTINCT + col2 + col2 + - col1 AS col0 FROM tab0
----
-1
13
197

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT + MAX( ALL + col2 ) + + 61 AS col0 FROM tab2 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-454
SELECT + MAX ( ALL + col2 ) + + 61 AS col0 FROM tab2 WHERE NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT - 75 + MIN( col2 ) AS col1 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-455
SELECT - 75 + MIN ( col2 ) AS col1 FROM tab0 AS cor0
----
-65

query I rowsort
SELECT DISTINCT - ( + col0 ) - + 32 AS col0 FROM tab0 AS cor0
----
-119
-129
-47

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

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

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

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

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

query I rowsort
SELECT 15 * - col2 FROM tab0
----
-1485
-150
-705

onlyif mysql # DIV for integer division: 
query I rowsort label-462
SELECT ALL - col0 * col2 DIV + col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL - col0 * col2 / + col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT ALL - MIN( DISTINCT + 40 ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL - MIN ( DISTINCT + 40 ) FROM tab1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT - 98 DIV - 11 FROM tab0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-464
SELECT - 98 / - 11 FROM tab0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-465
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 + 44 + + + CAST( col2 AS SIGNED ) AND - - CAST( NULL AS SIGNED ) + + col1 + - 97
----

skipif mysql # not compatible
query III rowsort label-465
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 + 44 + + + CAST ( col2 AS INTEGER ) AND - - CAST ( NULL AS INTEGER ) + + col1 + - 97
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT DISTINCT - + COUNT( * ) + - 77 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT - + COUNT ( * ) + - 77 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL + 72 * - COUNT( * ) col0 FROM tab2 AS cor0
----
-216

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-471
SELECT ALL + col2 - + col0 + + col0 * + - col0 + col1 FROM tab2 AS cor0 WHERE - 25 - - col1 + + + 24 * + CAST( NULL AS SIGNED ) * - + col0 + + CAST( - - col1 AS SIGNED ) BETWEEN + col0 AND + col1
----

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL + col2 - + col0 + + col0 * + - col0 + col1 FROM tab2 AS cor0 WHERE - 25 - - col1 + + + 24 * + CAST ( NULL AS INTEGER ) * - + col0 + + CAST ( - - col1 AS INTEGER ) BETWEEN + col0 AND + col1
----

query I rowsort
SELECT ALL col0 * + ( - + 52 ) * - col1 + - col1 + + col0 * - col1 + 51 AS col1 FROM tab1 AS cor0
----
21721
218131
36451

onlyif mysql # aggregate syntax: 
query II rowsort label-473
SELECT DISTINCT - 44, - MAX( - 36 ) col2 FROM tab1 AS cor0
----
-44
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-473
SELECT DISTINCT - 44, - MAX ( - 36 ) col2 FROM tab1 AS cor0
----
-44
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 col1, col0 - col0 * - col2 AS col0, + - 8 AS col0 FROM tab1 AS cor0 WHERE col0 * + + 8 NOT IN ( + 21, + col2 )
----
9 values hashing to ec4f42d435da796982ac27e850793ca2

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

query I rowsort
SELECT ALL + col0 + - + 20 FROM tab2
----
26
44
55

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

onlyif mysql # DIV for integer division: 
query I rowsort label-478
SELECT 46 DIV + 73 + - + 95 * col1 AS col1 FROM tab2
----
-4845
-6365
-7315

skipif mysql # not compatible
query I rowsort label-478
SELECT 46 / + 73 + - + 95 * col1 AS col1 FROM tab2
----
-4845
-6365
-7315

query I rowsort
SELECT col2 + - col2 + - - col1 * - + ( - col1 ) FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-480
SELECT MAX( - col1 ) * - + COUNT( * ) + - + MAX( ALL - - CAST( + 9 AS SIGNED ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-480
SELECT MAX ( - col1 ) * - + COUNT ( * ) + - + MAX ( ALL - - CAST ( + 9 AS INTEGER ) ) FROM tab0
----
-6

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 / - + 61 IS NULL
----

query I rowsort
SELECT col1 * col2 - + 48 AS col2 FROM tab0 AS cor0
----
162
3759
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-483
SELECT - + CAST( - COUNT( * ) AS SIGNED ) - + ( - 52 ) AS col2 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-483
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) - + ( - 52 ) AS col2 FROM tab1 AS cor0
----
55

query I rowsort
SELECT + col0 + + 69 FROM tab0
----
156
166
84

query I rowsort
SELECT - col2 * + col1 * - 82 * - col1 + col2 FROM tab2
----
-19447080
-21349626
-4905463

query I rowsort
SELECT + - 14 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

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

onlyif mysql # DIV for integer division: 
query I rowsort label-488
SELECT + col1 DIV + col2 + + col0 + + 78 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
167
175
94

skipif mysql # not compatible
query I rowsort label-488
SELECT + col1 / + col2 + + col0 + + 78 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
167
175
94

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

onlyif mysql # DIV for integer division: 
query I rowsort label-490
SELECT ( + col0 ) * col0 DIV + 70 col2 FROM tab0
----
108
134
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-490
SELECT ( + col0 ) * col0 / + 70 col2 FROM tab0
----
108
134
3

onlyif mysql # aggregate syntax: 
query II rowsort label-491
SELECT MAX( + col0 ), 24 AS col1 FROM tab2
----
75
24

skipif mysql # not compatible
query II rowsort label-491
SELECT MAX ( + col0 ), 24 AS col1 FROM tab2
----
75
24

query I rowsort
SELECT ALL - col1 * + col0 * + 81 FROM tab0
----
-147987
-7857
-98415

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

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

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

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

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL - + ( + SUM ( col2 ) ) + + COUNT ( * ) - 31 FROM tab2 AS cor0
----
-149

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

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

query I rowsort
SELECT ALL col2 + + col1 * - 1 * col1 AS col2 FROM tab1
----
-100
-2141
34

query III rowsort
SELECT * FROM tab2 WHERE - + col1 * + col0 - - ( - 59 ) * + + col2 >= + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT - 52 * - COUNT( * ) FROM tab1 AS cor0 WHERE 68 IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-499
SELECT - 52 * - COUNT ( * ) FROM tab1 AS cor0 WHERE 68 IS NOT NULL
----
156

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-501
SELECT ALL + + COUNT( * ), CAST( + - ( + 5 ) AS SIGNED ) * + - SUM( - + col2 ) AS col0 FROM tab0 cor0
----
3
-780

skipif mysql # not compatible
query II rowsort label-501
SELECT ALL + + COUNT ( * ), CAST ( + - ( + 5 ) AS INTEGER ) * + - SUM ( - + col2 ) AS col0 FROM tab0 cor0
----
3
-780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 49 AS col1, 40 * col0 * col0 * - + 3 col2 FROM tab0 AS cor0
----
-49
-1129080
-49
-27000
-49
-908280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - + col1 * 2 * + col1 col0 FROM tab1 AS cor0 WHERE NOT + ( - col2 ) NOT IN ( 79, - 53 * + + 63, + col2 + col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 cor0 WHERE NOT + col1 / col1 > - 75
----

query I rowsort
SELECT DISTINCT + 50 + col0 * col1 AS col0 FROM tab1
----
4327
475
764

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 WHERE NOT NULL > + - col0 + - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT SUM( ALL + 43 ) + - COUNT( * ) FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-507
SELECT SUM ( ALL + 43 ) + - COUNT ( * ) FROM tab2
----
126

query I rowsort
SELECT ALL 17 * + col0 AS col1 FROM tab1 WHERE NOT + ( + col1 ) * + 14 = - 82
----
1445
1547
867

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT - col0 DIV + ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE - 54 NOT IN ( - col0, - col0 )
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-509
SELECT - col0 / + ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE - 54 NOT IN ( - col0, - col0 )
----
-8
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 46 * col0, col1 * + 87 )
----

query I rowsort
SELECT + 54 + - + col2 + + col0 FROM tab0 AS cor0
----
131
22
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 - + 36 col2 FROM tab0 AS cor0
----
-117
-37
-57

query I rowsort
SELECT DISTINCT col2 * - - 89 + + col0 FROM tab2 AS cor0
----
2093
3624
5237

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

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

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL - COUNT ( * ) / + ( 45 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-516
SELECT DISTINCT col2 DIV + - col1 - + - col0 AS col0 FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT col2 / + - col1 - + - col0 AS col0 FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-2
15
87

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-518
SELECT DISTINCT COUNT( - col2 ) AS col0, 9 AS col2 FROM tab2 AS cor0
----
3
9

skipif mysql # not compatible
query II rowsort label-518
SELECT DISTINCT COUNT ( - col2 ) AS col0, 9 AS col2 FROM tab2 AS cor0
----
3
9

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

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

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE - col2 BETWEEN - - col2 * - col2 AND + col2 * + ( - 50 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT DISTINCT - 22 DIV - col1 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT - 22 / - col1 FROM tab1
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT MIN( ALL - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-525
SELECT MIN ( ALL - col1 ) AS col1 FROM tab2
----
-77

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

query I rowsort
SELECT + ( col0 ) * col1 + - + col0 FROM tab1
----
340
4186
663

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

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

query II rowsort
SELECT DISTINCT 32, - col0 - 59 AS col2 FROM tab1 AS cor0
----
32
-110
32
-144
32
-150

query I rowsort
SELECT DISTINCT - 30 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-532
SELECT + - 67 DIV - + MIN( col2 ) AS col0, 26 AS col1 FROM tab2 AS cor0
----
2
26

skipif mysql # not compatible
query II rowsort label-532
SELECT + - 67 / - + MIN ( col2 ) AS col0, 26 AS col1 FROM tab2 AS cor0
----
2
26

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

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

query I rowsort
SELECT DISTINCT 57 + col1 FROM tab0
----
138
58
78

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

query I rowsort
SELECT - col0 + + - 59 + + ( - - ( 47 ) ) * - - 4 AS col1 FROM tab1 WHERE + + col1 >= col0
----

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

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

query I rowsort
SELECT DISTINCT 92 * - col1 + + 28 AS col0 FROM tab1
----
-1260
-4296
-432

query I rowsort
SELECT DISTINCT + 77 + - - 71 FROM tab0 AS cor0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT SUM( ALL + 15 ) FROM tab1 AS cor0 WHERE NULL = - ( ( + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT SUM ( ALL + 15 ) FROM tab1 AS cor0 WHERE NULL = - ( ( + col2 ) )
----
NULL

query I rowsort
SELECT ALL - - col0 * + 99 * + + col0 FROM tab0 AS cor0
----
22275
749331
931491

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

query I rowsort
SELECT + col0 + + 53 AS col2 FROM tab0
----
140
150
68

query I rowsort
SELECT + 96 * 3 AS col0 FROM tab1
----
288
288
288

query I rowsort
SELECT DISTINCT + col0 * - - col0 + 61 - 92 + col0 + - - col0 FROM tab1
----
2672
7364
8432

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

onlyif mysql # aggregate syntax: 
query II rowsort label-547
SELECT DISTINCT + 35 * - + COUNT( ALL - col1 ) AS col0, + COUNT( * ) + - - 82 AS col1 FROM tab0 cor0
----
-105
85

skipif mysql # not compatible
query II rowsort label-547
SELECT DISTINCT + 35 * - + COUNT ( ALL - col1 ) AS col0, + COUNT ( * ) + - - 82 AS col1 FROM tab0 cor0
----
-105
85

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT + 80 * + + 52 + SUM( + - 96 ) AS col0 FROM tab0 AS cor0
----
3872

skipif mysql # not compatible
query I rowsort label-548
SELECT + 80 * + + 52 + SUM ( + - 96 ) AS col0 FROM tab0 AS cor0
----
3872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 * - - ( + col1 ) col0 FROM tab0
----
2037
7857
97

query I rowsort
SELECT ALL + 33 * + 42 FROM tab2 WHERE NOT + - col2 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL col2 / + + col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-552
SELECT 65 DIV - col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-552
SELECT 65 / - col0 FROM tab0 AS cor0
----
-4
0
0

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

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

query I rowsort
SELECT DISTINCT 69 * + col1 FROM tab1 AS cor0
----
3243
345
966

query I rowsort
SELECT ALL + ( + + 40 ) * + col0 - 69 FROM tab0 AS cor0
----
3411
3811
531

onlyif mysql # aggregate syntax: 
query II rowsort label-556
SELECT ALL + + COUNT( * ) AS col2, + ( + SUM( DISTINCT col1 ) ) AS col1 FROM tab0 AS cor0
----
3
103

skipif mysql # not compatible
query II rowsort label-556
SELECT ALL + + COUNT ( * ) AS col2, + ( + SUM ( DISTINCT col1 ) ) AS col1 FROM tab0 AS cor0
----
3
103

query II rowsort
SELECT ALL 30 * col0 AS col1, + col0 FROM tab1 AS cor0
----
1530
51
2550
85
2730
91

query I rowsort
SELECT - - ( + - col1 ) + - col1 * - - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1296
-1848
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-559
SELECT + COUNT( * ) * + 44 * + CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
396

skipif mysql # not compatible
query I rowsort label-559
SELECT + COUNT ( * ) * + 44 * + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
396

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

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT DISTINCT + MIN( - + col2 ) FROM tab0 WHERE NULL IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT + MIN ( - + col2 ) FROM tab0 WHERE NULL IS NULL
----
-99

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-563
SELECT DISTINCT CAST( 51 AS SIGNED ) DIV - col2 AS col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT CAST ( 51 AS INTEGER ) / - col2 AS col2 FROM tab0
----
-1
-5
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-565
SELECT - CAST( col2 AS SIGNED ) col2, - col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-565
SELECT - CAST ( col2 AS INTEGER ) col2, - col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

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

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT + 57 + - col1 IN ( - col0, col1, - + col0 / + 98 + - col1 * - 20 )
----
10
47
99

query I rowsort
SELECT - col0 * + 79 AS col2 FROM tab1 AS cor0
----
-4029
-6715
-7189

query I rowsort
SELECT 50 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

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

query I rowsort
SELECT DISTINCT + col1 + - 24 AS col2 FROM tab0
----
-23
-3
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-572
SELECT + + CAST( NULL AS SIGNED ) + - ( COUNT( * ) ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-572
SELECT + + CAST ( NULL AS INTEGER ) + - ( COUNT ( * ) ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

query I rowsort
SELECT DISTINCT col2 + 49 FROM tab0
----
148
59
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT - SUM( 12 ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-575
SELECT - SUM ( 12 ) FROM tab0 AS cor0
----
-36

query I rowsort
SELECT ALL col1 * - - 76 FROM tab1 AS cor0
----
1064
3572
380

query II rowsort
SELECT + col0 AS col0, - 92 AS col1 FROM tab2 AS cor0
----
46
-92
64
-92
75
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-578
SELECT ALL + ( col2 ) - - 86 DIV col0 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL + ( col2 ) - - 86 / col0 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT - + col1 - - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 93 * + col0 - + + 8 + + col2 AS col2 FROM tab1 AS cor0
----
-4655
-7854
-8403

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 25 - + + 93 <> - + col2
----
51
14
96
85
5
59

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

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

query III rowsort
SELECT * FROM tab0 WHERE 7 * col1 / - - ( - 85 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-585
SELECT DISTINCT - col2 + + ( CAST( - 78 AS SIGNED ) ) + + col1 FROM tab0
----
-176
-44
-67

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT - col2 + + ( CAST ( - 78 AS INTEGER ) ) + + col1 FROM tab0
----
-176
-44
-67

query I rowsort
SELECT + 94 + + col2 * + 49 FROM tab2
----
1221
2054
2936

query I rowsort
SELECT ALL - - 41 AS col2 FROM tab2 WHERE NOT col1 / - 89 + + col2 = - col1 * + 90
----
41
41
41

query I rowsort
SELECT ALL ( - + col0 ) * - col1 + col1 + - col0 - col2 AS col2 FROM tab1 AS cor0 WHERE - col0 + - + col1 IS NOT NULL
----
286
4165
581

query I rowsort
SELECT ALL - ( + + col1 ) * col0 * + 9 FROM tab2 cor0
----
-21114
-44352
-45225

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT - + MIN( DISTINCT - - 19 ) FROM tab1 WHERE NOT + 50 IS NULL
----
-19

skipif mysql # not compatible
query I rowsort label-591
SELECT - + MIN ( DISTINCT - - 19 ) FROM tab1 WHERE NOT + 50 IS NULL
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-592
SELECT * FROM tab2 WHERE NOT + CAST( col1 AS SIGNED ) BETWEEN - + col1 AND - ( + col2 ) * 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-592
SELECT * FROM tab2 WHERE NOT + CAST ( col1 AS INTEGER ) BETWEEN - + col1 AND - ( + col2 ) * 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 74 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-594
SELECT DISTINCT col1 + + col2 * col1 / + CAST( NULL AS SIGNED ) * - ( - col2 ) FROM tab1 WHERE NOT + CAST( - col0 AS SIGNED ) + + col2 * - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT col1 + + col2 * col1 / + CAST ( NULL AS INTEGER ) * - ( - col2 ) FROM tab1 WHERE NOT + CAST ( - col0 AS INTEGER ) + + col2 * - col1 IS NOT NULL
----

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

query I rowsort
SELECT - + col2 * + + 32 FROM tab0 AS cor0
----
-1504
-3168
-320

query I rowsort
SELECT - - col0 * - + 83 - - - col2 FROM tab0 AS cor0
----
-1292
-7231
-8150

query I rowsort
SELECT ALL - 87 * + col2 FROM tab2 cor0
----
-2001
-3480
-5046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-599
SELECT - 8 DIV COUNT( * ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-599
SELECT - 8 / COUNT ( * ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL + 41 * - col2 - + ( 58 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 3 + - - col2 AS col0 FROM tab2 AS cor0
----
20
37
55

query II rowsort
SELECT + col2, 95 FROM tab2 WHERE NOT - col0 IS NULL
----
23
95
40
95
58
95

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT DISTINCT col1 DIV - - 83 * 42 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT col1 / - - 83 * 42 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT DISTINCT - col1 DIV + 55 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT - col1 / + 55 FROM tab2
----
-1
0

query II rowsort
SELECT ( - + col0 ), 13 + + 52 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-606
SELECT DISTINCT - CAST( + - 69 AS SIGNED ) + - col2 AS col1 FROM tab0
----
-30
22
59

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT - CAST ( + - 69 AS INTEGER ) + - col2 AS col1 FROM tab0
----
-30
22
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 / + col1 <= - - col1 + + + col2
----

query I rowsort
SELECT + 99 + col2 + + col2 AS col2 FROM tab0
----
119
193
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 + + + 59 col2 FROM tab1
----
104
104
104

query I rowsort
SELECT - col0 * + 69 + 43 FROM tab0
----
-5960
-6650
-992

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

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

query II rowsort
SELECT DISTINCT - col2 AS col2, col0 * - 43 FROM tab1 cor0
----
-59
-3655
-68
-3913
-96
-2193

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

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

query I rowsort
SELECT DISTINCT col2 + + - 18 FROM tab0
----
-8
29
81

onlyif mysql # DIV for integer division: 
query I rowsort label-615
SELECT ALL + col1 DIV col2 + + 17 * - + col1 FROM tab2
----
-1138
-1308
-865

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL + col1 / col2 + + 17 * - + col1 FROM tab2
----
-1138
-1308
-865

query III rowsort
SELECT * FROM tab0 WHERE ( + 23 * + ( - 12 ) ) < - ( + + 86 ) * + 5 * + col0 + + col1 + 7
----

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

query II rowsort
SELECT col2 AS col0, ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
-51
40
-77
58
-67

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

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

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

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

query II rowsort
SELECT DISTINCT col0 AS col1, 68 FROM tab0
----
15
68
87
68
97
68

query I rowsort
SELECT DISTINCT + col1 * + + col2 - - - 52 + 87 AS col2 FROM tab1 WHERE col1 NOT BETWEEN + + col2 AND + col0
----
1379
3231
330

query II rowsort
SELECT - 84 AS col0, - col2 AS col1 FROM tab1
----
-84
-59
-84
-68
-84
-96

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-625
SELECT + CAST( NULL AS DECIMAL ), - 40 * - - col0 col1 FROM tab2
----
NULL
-1840
NULL
-2560
NULL
-3000

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-625
SELECT + CAST ( NULL AS REAL ), - 40 * - - col0 col1 FROM tab2
----
NULL
-1840
NULL
-2560
NULL
-3000

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

skipif mysql # not compatible
query I rowsort label-626
SELECT - col2 / + - col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-627
SELECT * FROM tab0 WHERE NOT + + 25 >= 52 * + 97 - + CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-627
SELECT * FROM tab0 WHERE NOT + + 25 >= 52 * + 97 - + CAST ( NULL AS INTEGER ) + col2
----

query I rowsort
SELECT 67 * + col0 FROM tab1
----
3417
5695
6097

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

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

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

query I rowsort
SELECT + col1 + - col0 FROM tab2 AS cor0 WHERE NOT + col2 + - + col0 IN ( + col2 * - ( + + col0 ), - col1, + col0, ( + - col2 ) * - 62, + + col1 + - col2 )
----
-8
13
5

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-635
SELECT - 86 * CAST( NULL AS DECIMAL ) + + 3 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT - 86 * CAST ( NULL AS REAL ) + + 3 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + 40 + col1 = NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT ALL - COUNT( * ) * - 30, 8 AS col2 FROM tab1 AS cor0
----
90
8

skipif mysql # not compatible
query II rowsort label-638
SELECT ALL - COUNT ( * ) * - 30, 8 AS col2 FROM tab1 AS cor0
----
90
8

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

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

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

query I rowsort
SELECT DISTINCT - 39 * + 14 + - 94 - + 30 FROM tab2
----
-670

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

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

query I rowsort
SELECT DISTINCT + col2 + + + col2 + col1 FROM tab1
----
123
183
206

query I rowsort
SELECT DISTINCT - ( - 76 ) AS col1 FROM tab2
----
76

query I rowsort
SELECT ALL - + 6 * - col0 FROM tab1 WHERE - col0 + col1 * + col1 BETWEEN NULL AND - 15 + + 79 + - col0
----

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

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT - + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-3

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

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

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

query I rowsort
SELECT DISTINCT + 36 + - 67 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT ALL - col1 * - 66 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT 68 * 45 + - COUNT( * ) FROM tab2
----
3057

skipif mysql # not compatible
query I rowsort label-652
SELECT 68 * 45 + - COUNT ( * ) FROM tab2
----
3057

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-654
SELECT 71 FROM tab1 WHERE + col1 + + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-654
SELECT 71 FROM tab1 WHERE + col1 + + CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT DISTINCT - MIN( - - 9 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT - MIN ( - - 9 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-656
SELECT ALL - 48 - COUNT( ALL - 92 ) AS col2, + 9 AS col0 FROM tab0 AS cor0 WHERE 41 * + col1 IS NULL
----
-48
9

skipif mysql # not compatible
query II rowsort label-656
SELECT ALL - 48 - COUNT ( ALL - 92 ) AS col2, + 9 AS col0 FROM tab0 AS cor0 WHERE 41 * + col1 IS NULL
----
-48
9

query I rowsort
SELECT DISTINCT col0 - + col2 FROM tab2 cor0
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT - 97 - + 10 - CAST( - + 0 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-30
-40
-56

skipif mysql # not compatible
query I rowsort label-658
SELECT - 97 - + 10 - CAST ( - + 0 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-30
-40
-56

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

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

query I rowsort
SELECT + + 92 - + 22 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT ALL + col0 + 55 AS col0 FROM tab2 AS cor0
----
101
119
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-662
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col1, + COUNT( * ) AS col1 FROM tab0 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-662
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0
----
-3
3

query II rowsort
SELECT DISTINCT + - ( - col0 ) AS col2, + col1 - - col2 FROM tab0 AS cor0
----
15
128
87
31
97
100

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT DISTINCT + MIN( ALL - col0 ), COUNT( * ) AS col2 FROM tab2
----
-75
3

skipif mysql # not compatible
query II rowsort label-664
SELECT DISTINCT + MIN ( ALL - col0 ), COUNT ( * ) AS col2 FROM tab2
----
-75
3

onlyif mysql # DIV for integer division: 
query I rowsort label-665
SELECT DISTINCT + ( col0 ) DIV - ( 37 ) FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT + ( col0 ) / - ( 37 ) FROM tab0
----
-2
0

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

query I rowsort
SELECT DISTINCT + col1 * + col1 FROM tab0 WHERE col1 > NULL
----

query II rowsort
SELECT col0, - col2 * - col0 AS col0 FROM tab2
----
46
1058
64
2560
75
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, 2 col2 FROM tab0
----
1
2
21
2
81
2

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col2 col1 FROM tab0 cor0
----
705
870
9603

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-674
SELECT DISTINCT + - CAST( + SUM( ALL + CAST( + - col2 AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT + - CAST ( + SUM ( ALL + CAST ( + - col2 AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-675
SELECT - 98 / - - 29 * + 42 + - + col0 * - - CAST( NULL AS SIGNED ) * - ( col2 ) * - 46 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-675
SELECT - 98 / - - 29 * + 42 + - + col0 * - - CAST ( NULL AS INTEGER ) * - ( col2 ) * - 46 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT SUM( 61 ) FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT SUM ( 61 ) FROM tab2 AS cor0
----
183

query I rowsort
SELECT DISTINCT col2 + - 18 AS col0 FROM tab1 AS cor0
----
41
50
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-678
SELECT ALL - CAST( col2 AS SIGNED ) + - - 60 + col1 - + col2 * - col0 AS col0 FROM tab0
----
799
941
9565

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL - CAST ( col2 AS INTEGER ) + - - 60 + col1 - + col2 * - col0 AS col0 FROM tab0
----
799
941
9565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-679
SELECT CAST( + COUNT( * ) AS SIGNED ) + - 53 AS col1 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-679
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - 53 AS col1 FROM tab0
----
-50

query I rowsort
SELECT 45 * - col2 + + + col0 * + 43 - + 11 AS col1 FROM tab1
----
-2138
842
989

query I rowsort
SELECT col1 + col0 + - col1 + - 17 * col0 FROM tab1
----
-1360
-1456
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT 4 + + 3 + + + COUNT( * ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-682
SELECT 4 + + 3 + + + COUNT ( * ) AS col1 FROM tab0
----
10

query II rowsort
SELECT ALL - col1 + - 23, + col1 FROM tab1
----
-28
5
-37
14
-70
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-684
SELECT + + CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-684
SELECT + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL NOT BETWEEN NULL AND - 44
----

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

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL COUNT ( * ) * - - COUNT ( * ) / - 19 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - 70 AS col1 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT ALL - MIN( DISTINCT + 63 ) * - - COUNT( - col2 ) + + + COUNT( * ) FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL - MIN ( DISTINCT + 63 ) * - - COUNT ( - col2 ) + + + COUNT ( * ) FROM tab1 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query II rowsort label-689
SELECT - 43 AS col0, SUM( + 27 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-43
78

skipif mysql # not compatible
query II rowsort label-689
SELECT - 43 AS col0, SUM ( + 27 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-43
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col1 FROM tab0 WHERE - ( - 90 ) * col2 * - col2 + - + col0 = NULL
----

query I rowsort
SELECT - col2 * 76 AS col2 FROM tab0
----
-3572
-7524
-760

onlyif mysql # DIV for integer division: 
query II rowsort label-692
SELECT DISTINCT 63 DIV - col2 AS col2, - col2 FROM tab2
----
-1
-40
-1
-58
-2
-23

skipif mysql # not compatible
query II rowsort label-692
SELECT DISTINCT 63 / - col2 AS col2, - col2 FROM tab2
----
-1
-40
-1
-58
-2
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-693
SELECT DISTINCT - col0 DIV CAST( - + col2 AS SIGNED ) * 43 * + col0 col2 FROM tab1
----
0
3655
3913

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-693
SELECT DISTINCT - col0 / CAST ( - + col2 AS INTEGER ) * 43 * + col0 col2 FROM tab1
----
0
3655
3913

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT col0 DIV + 38 AS col2 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-694
SELECT col0 / + 38 AS col2 FROM tab0
----
0
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-695
SELECT ALL COUNT( * ) DIV + 6 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL COUNT ( * ) / + 6 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col1 col2 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT + - 6 AS col2 FROM tab0 AS cor0
----
-6

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

query I rowsort
SELECT - ( - col1 ) * - col2 - 91 AS col1 FROM tab2 AS cor0
----
-1264
-3171
-3977

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT - + 70 * 99 * + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 3 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-702
SELECT - + 70 * 99 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 3 IS NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT 50 * - 18 * + + SUM( DISTINCT 51 ) FROM tab2 AS cor0
----
-45900

skipif mysql # not compatible
query I rowsort label-705
SELECT 50 * - 18 * + + SUM ( DISTINCT 51 ) FROM tab2 AS cor0
----
-45900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 31 * - + col2 AS col2, + 44 col2 FROM tab2 AS cor0
----
-1240
44
-1798
44
-713
44

query I rowsort
SELECT 40 FROM tab0 WHERE NULL > + col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-709
SELECT ALL CAST( NULL AS SIGNED ), - col0 * + col1 + - - 35 AS col0 FROM tab1
----
NULL
-390
NULL
-4242
NULL
-679

skipif mysql # not compatible
query II rowsort label-709
SELECT ALL CAST ( NULL AS INTEGER ), - col0 * + col1 + - - 35 AS col0 FROM tab1
----
NULL
-390
NULL
-4242
NULL
-679

query I rowsort
SELECT + 69 FROM tab1 WHERE ( NULL < ( NULL ) )
----

query I rowsort
SELECT DISTINCT - col1 + - 20 - col2 AS col0 FROM tab0
----
-120
-148
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-712
SELECT ALL * FROM tab1 WHERE + col1 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-712
SELECT ALL * FROM tab1 WHERE + col1 < + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-713
SELECT DISTINCT * FROM tab2 WHERE + col2 * + col1 NOT IN ( + col2 / - + col0 + - CAST( NULL AS SIGNED ), col0, + col2 )
----

skipif mysql # not compatible
query III rowsort label-713
SELECT DISTINCT * FROM tab2 WHERE + col2 * + col1 NOT IN ( + col2 / - + col0 + - CAST ( NULL AS INTEGER ), col0, + col2 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col0 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT 64 - col1 FROM tab0
----
-17
43
63

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT + SUM( 96 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-718
SELECT + SUM ( 96 ) FROM tab1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT DISTINCT + MIN( ( 74 ) ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT + MIN ( ( 74 ) ) FROM tab2
----
74

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 * - col1 )
----

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

query I rowsort
SELECT - 86 FROM tab2 WHERE ( col0 ) * - col1 < 27 + + 16
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT SUM( 56 ) AS col2 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-723
SELECT SUM ( 56 ) AS col2 FROM tab1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT ( + COUNT( + ( 89 ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-724
SELECT ( + COUNT ( + ( 89 ) ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 41 + col0 AS col0 FROM tab1
----
10
44
50

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-726
SELECT * FROM tab1 WHERE ( + CAST( col0 AS DECIMAL ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-726
SELECT * FROM tab1 WHERE ( + CAST ( col0 AS REAL ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT DISTINCT - 59 + + MAX( DISTINCT col0 ) AS col1 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-727
SELECT DISTINCT - 59 + + MAX ( DISTINCT col0 ) AS col1 FROM tab0
----
38

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

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

query I rowsort
SELECT 85 + col0 FROM tab1 WHERE + col2 IS NOT NULL
----
136
170
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-730
SELECT DISTINCT col0 * - col1 AS col1 FROM tab1 WHERE NOT ( - CAST( + 73 AS SIGNED ) + col1 ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT col0 * - col1 AS col1 FROM tab1 WHERE NOT ( - CAST ( + 73 AS INTEGER ) + col1 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - 67 FROM tab1 WHERE NOT NULL BETWEEN - col1 AND 35
----

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

query I rowsort
SELECT + 71 + col2 FROM tab0
----
118
170
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-734
SELECT * FROM tab1 WHERE col0 / - col2 NOT IN ( + 84 + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-734
SELECT * FROM tab1 WHERE col0 / - col2 NOT IN ( + 84 + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-735
SELECT ALL + ( 64 ) - - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL + ( 64 ) - - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL <> - col0 + - 91
----

onlyif mysql # DIV for integer division: 
query I rowsort label-739
SELECT DISTINCT col2 DIV 31 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT col2 / 31 FROM tab0 AS cor0
----
0
1
3

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

query I rowsort
SELECT ALL 58 + + col2 AS col0 FROM tab2 AS cor0
----
116
81
98

query I rowsort
SELECT + 29 * - col1 + + 76 * - 96 AS col1 FROM tab2 AS cor0
----
-8775
-9239
-9529

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

query I rowsort
SELECT 73 + 23 FROM tab2 AS cor0
----
96
96
96

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

query I rowsort
SELECT ALL - col1 - - 99 AS col1 FROM tab0 AS cor0
----
18
78
98

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT MIN( DISTINCT 98 ) / - COUNT( - col0 ) AS col1 FROM tab0 AS cor0 WHERE col2 * - 85 NOT BETWEEN NULL AND 73
----
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT MIN ( DISTINCT 98 ) / - COUNT ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE col2 * - 85 NOT BETWEEN NULL AND 73
----
NULL

query I rowsort
SELECT ALL 79 AS col0 FROM tab1 AS cor0 WHERE NOT 90 * + col1 NOT BETWEEN - col2 AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) < 77 * 7 + ( + col2 + + 40 * col1 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-751
SELECT CAST( - 56 AS SIGNED ) * - col0 + ( + ( - 54 ) ) * + col0 AS col2 FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-751
SELECT CAST ( - 56 AS INTEGER ) * - col0 + ( + ( - 54 ) ) * + col0 AS col2 FROM tab1
----
102
170
182

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT ALL COUNT( * ) + + + 10 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL COUNT ( * ) + + + 10 FROM tab1
----
13

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

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

query I rowsort
SELECT DISTINCT + col2 * + - 28 AS col0 FROM tab2
----
-1120
-1624
-644

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE 60 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT COUNT( * ) * 63 AS col2 FROM tab2 WHERE NOT ( ( + col0 ) IS NULL )
----
189

skipif mysql # not compatible
query I rowsort label-761
SELECT COUNT ( * ) * 63 AS col2 FROM tab2 WHERE NOT ( ( + col0 ) IS NULL )
----
189

query I rowsort
SELECT DISTINCT - 19 * - - ( + col0 ) FROM tab0 AS cor0
----
-1653
-1843
-285

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

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

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

query I rowsort
SELECT ( + col2 ) * 6 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + + - ( + col0 ) IS NULL
----
282
594
60

query I rowsort
SELECT ALL - 7 * - 1 + - 72 FROM tab0 AS cor0
----
-65
-65
-65

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

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

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

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

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

query II rowsort
SELECT ALL ( - - col2 ) AS col1, + ( - 72 ) * + col1 AS col2 FROM tab1
----
59
-360
68
-3384
96
-1008

query I rowsort
SELECT DISTINCT ( - 10 ) + - col1 AS col2 FROM tab0
----
-11
-31
-91

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT - col2 + + - col2 * - col1 * + col1 + col0 DIV - col2 FROM tab2
----
237119
260303
59798

skipif mysql # not compatible
query I rowsort label-779
SELECT - col2 + + - col2 * - col1 * + col1 + col0 / - col2 FROM tab2
----
237119
260303
59798

query I rowsort
SELECT ALL 20 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + + 41 * - col2 AS col1 FROM tab1 AS cor0
----
-2419
-2788
-3936

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

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT + MAX( + - col2 ) * 80 FROM tab0 AS cor0
----
-800

skipif mysql # not compatible
query I rowsort label-783
SELECT + MAX ( + - col2 ) * 80 FROM tab0 AS cor0
----
-800

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

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL + + 12 / - + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
-12
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 95 col1 FROM tab1 AS cor0
----
-146
-180
-186

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

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

query I rowsort
SELECT + col0 * - col0 + 97 * 25 FROM tab1 AS cor0
----
-176
-4800
-5856

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT ALL 88 - - 19 + - ( 74 ) * - + col2 DIV - col2 FROM tab0 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL 88 - - 19 + - ( 74 ) * - + col2 / - col2 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT SUM( DISTINCT + 25 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
25

skipif mysql # not compatible
query I rowsort label-789
SELECT SUM ( DISTINCT + 25 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-790
SELECT DISTINCT COUNT( * ) AS col0, 71 * COUNT( * ) FROM tab2 AS cor0
----
3
213

skipif mysql # not compatible
query II rowsort label-790
SELECT DISTINCT COUNT ( * ) AS col0, 71 * COUNT ( * ) FROM tab2 AS cor0
----
3
213

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

skipif mysql # not compatible
query I rowsort label-791
SELECT - COUNT ( - ( - 42 ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + + 18 - - 90 FROM tab2 AS cor0
----
108
108
108

query I rowsort
SELECT - col2 - - - col2 + 99 FROM tab0
----
-99
5
79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + - + col1 >= + col2 * - col1
----

query II rowsort
SELECT DISTINCT + 83 AS col2, 82 FROM tab1
----
83
82

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL 76 - + - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL 76 - + - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab0
----
85

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

query II rowsort
SELECT DISTINCT ( + + 59 ) * - col2 * + 14 AS col2, + 42 + + + col2 * col2 AS col0 FROM tab1 AS cor0
----
-48734
3523
-56168
4666
-79296
9258

query II rowsort
SELECT DISTINCT + 0 AS col1, + col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

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

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT + 76 >= NULL
----

query I rowsort
SELECT - ( - - col0 ) * 77 AS col2 FROM tab2
----
-3542
-4928
-5775

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

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT DISTINCT MIN( - col1 ) * - 7 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT MIN ( - col1 ) * - 7 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT + CAST( - col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-808
SELECT + CAST ( - col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT + MIN( DISTINCT - 11 ) FROM tab1 AS cor0 WHERE NOT + col0 < - col2 / - 74
----
-11

skipif mysql # not compatible
query I rowsort label-809
SELECT + MIN ( DISTINCT - 11 ) FROM tab1 AS cor0 WHERE NOT + col0 < - col2 / - 74
----
-11

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

query I rowsort
SELECT - + 17 FROM tab2 cor0
----
-17
-17
-17

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 85 <> + col1 * - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-817
SELECT ALL CAST( col1 AS SIGNED ) * + col2 + col2 DIV + col1 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL CAST ( col1 AS INTEGER ) * + col2 + col2 / + col1 FROM tab2
----
1173
3080
3886

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

skipif mysql # not compatible
query I rowsort label-818
SELECT 38 + + SUM ( ALL - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col1 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL 68 * col2 AS col0 FROM tab0
----
3196
6732
680

query I rowsort
SELECT DISTINCT ( - + col2 ) * - + 46 AS col1 FROM tab2 AS cor0
----
1058
1840
2668

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-824
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - - col0 / CAST( NULL AS DECIMAL ) + - col0 NOT IN ( + 17 + 71 )
----

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - - col0 / CAST ( NULL AS REAL ) + - col0 NOT IN ( + 17 + 71 )
----

query I rowsort
SELECT DISTINCT + col2 + + - col1 + - col1 * 66 + - + col0 FROM tab0
----
-1484
-5395
-65

query I rowsort
SELECT + 32 + + 85 * - + 54 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a5d68a8a86f534591331af95e644fde4

query I rowsort
SELECT + - col1 + + col0 + - + 71 FROM tab0 cor0
----
-137
-5
25

query I rowsort
SELECT DISTINCT 94 + + col0 FROM tab1 cor0
----
145
179
185

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

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

query I rowsort
SELECT ALL + ( + col2 ) + - col0 AS col0 FROM tab0 AS cor0
----
-77
2
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT ALL - COUNT( * ) - 13 * - 28 col1 FROM tab2 AS cor0
----
361

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-832
SELECT ALL - COUNT ( * ) - 13 * - 28 col1 FROM tab2 AS cor0
----
361

query I rowsort
SELECT DISTINCT + 65 * + 56 AS col1 FROM tab0 cor0
----
3640

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-835
SELECT ALL - 11 AS col0, COUNT( * ) AS col0 FROM tab0
----
-11
3

skipif mysql # not compatible
query II rowsort label-835
SELECT ALL - 11 AS col0, COUNT ( * ) AS col0 FROM tab0
----
-11
3

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

query I rowsort
SELECT ALL + + col0 FROM tab1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 BETWEEN NULL AND col1 * + 93 + + col1
----

query II rowsort
SELECT - 57 AS col2, col0 AS col2 FROM tab2
----
-57
46
-57
64
-57
75

query I rowsort
SELECT + 6 * + - col1 AS col2 FROM tab0
----
-126
-486
-6

query I rowsort
SELECT ALL - - col2 + - 24 * - col0 FROM tab2 WHERE - col2 IS NOT NULL
----
1127
1576
1858

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT + COUNT( * ) * - MIN( - col1 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
231

skipif mysql # not compatible
query I rowsort label-842
SELECT + COUNT ( * ) * - MIN ( - col1 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
231

query II rowsort
SELECT DISTINCT - col0 * ( + 17 ), col1 FROM tab1 AS cor0
----
-1445
5
-1547
47
-867
14

query I rowsort
SELECT - - 51 * - 86 FROM tab2 AS cor0
----
-4386
-4386
-4386

query I rowsort
SELECT - 72 * - + col2 FROM tab0
----
3384
7128
720

onlyif mysql # aggregate syntax: 
query II rowsort label-846
SELECT DISTINCT 85 AS col1, SUM( col0 ) * 96 FROM tab1
----
85
21792

skipif mysql # not compatible
query II rowsort label-846
SELECT DISTINCT 85 AS col1, SUM ( col0 ) * 96 FROM tab1
----
85
21792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-847
SELECT ( 77 ) DIV + COUNT( * ) - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
22

skipif mysql # not compatible
query I rowsort label-847
SELECT ( 77 ) / + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-848
SELECT col0 AS col0, + 85 FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) - col2 ) IS NOT NULL
----
15
85
87
85
97
85

skipif mysql # not compatible
query II rowsort label-848
SELECT col0 AS col0, + 85 FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) - col2 ) IS NOT NULL
----
15
85
87
85
97
85

query II rowsort
SELECT DISTINCT - + col2 AS col2, + 57 * - col2 * + col0 AS col0 FROM tab1 AS cor0
----
-59
-285855
-68
-352716
-96
-279072

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-850
SELECT - col2, CAST( + - col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-59
-85
-68
-91
-96
-51

skipif mysql # not compatible
query II rowsort label-850
SELECT - col2, CAST ( + - col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-59
-85
-68
-91
-96
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 66, - col2 - - col1 col0 FROM tab0 cor0
----
66
-98
66
11
66
34

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

onlyif mysql # DIV for integer division: 
query I rowsort label-853
SELECT ( 49 ) DIV - + 70 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-853
SELECT ( 49 ) / - + 70 AS col2 FROM tab1 AS cor0
----
0
0
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + + ( + 78 ) <> NULL
----

query II rowsort
SELECT ALL col1 + - col0 AS col2, 15 AS col0 FROM tab1
----
-37
15
-44
15
-80
15

query I rowsort
SELECT DISTINCT col2 * - - col0 + + + col1 AS col2 FROM tab0
----
786
891
9604

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + - 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-859
SELECT * FROM tab0 WHERE - 59 BETWEEN 53 - + col0 AND + - 88 + - 10 * + CAST( col0 AS SIGNED ) * col1 * 7 + + col0
----

skipif mysql # not compatible
query III rowsort label-859
SELECT * FROM tab0 WHERE - 59 BETWEEN 53 - + col0 AND + - 88 + - 10 * + CAST ( col0 AS INTEGER ) * col1 * 7 + + col0
----

query I rowsort
SELECT ALL + 58 + + col0 * col0 AS col0 FROM tab2
----
2174
4154
5683

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 BETWEEN + col0 * - 13 AND + + 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + 69 + + col2 FROM tab0 AS cor0
----
163
267
89

query I rowsort
SELECT ( col0 ) * - col1 + + col2 FROM tab0 AS cor0
----
-1168
-1817
2

query I rowsort
SELECT - - col0 * + col1 * - - col0 FROM tab0 AS cor0 WHERE - 8 + + - col0 * - col1 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL + COUNT( DISTINCT 30 ) col1 FROM tab2 AS cor0
----
1

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

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

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

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

query II rowsort
SELECT - - col1 AS col0, + 57 + col2 + + col0 + col1 AS col0 FROM tab1 AS cor0
----
14
218
47
263
5
206

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-871
SELECT + COUNT( * ) - + CAST( - - 44 AS SIGNED ) + + 33 * - - ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-140

skipif mysql # not compatible
query I rowsort label-871
SELECT + COUNT ( * ) - + CAST ( - - 44 AS INTEGER ) + + 33 * - - ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-140

query I rowsort
SELECT - - 78 - + - col2 AS col1 FROM tab0 AS cor0
----
125
177
88

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 * + + 34 * + col2 * + 36 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 27 - 69 AS col2 FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT + MIN( - col2 ) FROM tab1 WHERE NOT col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-875
SELECT + MIN ( - col2 ) FROM tab1 WHERE NOT col0 >= NULL
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * + 2 col2 FROM tab0
----
166
166
166

onlyif mysql # DIV for integer division: 
query I rowsort label-878
SELECT DISTINCT + col0 DIV + col2 * - col0 DIV + ( - - col0 ) AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT + col0 / + col2 * - col0 / + ( - - col0 ) AS col1 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-879
SELECT - 68 DIV - col0 AS col0, 37 FROM tab0
----
0
37
0
37
4
37

skipif mysql # not compatible
query II rowsort label-879
SELECT - 68 / - col0 AS col0, 37 FROM tab0
----
0
37
0
37
4
37

query I rowsort
SELECT col0 * col0 * + - col1 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT DISTINCT + + 3 AS col2 FROM tab1 AS cor0
----
3

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 83 + col2 + - col2 * + col1 * - col0 FROM tab2 AS cor0
----
197077
291425
53898

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

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

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

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

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT + COUNT ( ALL 41 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 16 + - col0 FROM tab2 AS cor0
----
-30
-48
-59

query I rowsort
SELECT ALL col2 * - 0 - - col2 FROM tab1 AS cor0
----
59
68
96

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

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

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL 42 * COUNT ( * ) + + COUNT ( * ) FROM tab0
----
129

query I rowsort
SELECT 38 + + col1 * + 73 FROM tab0
----
111
1571
5951

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

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

query II rowsort
SELECT - col1 AS col1, 84 FROM tab0
----
-1
84
-21
84
-81
84

query I rowsort
SELECT + 67 AS col1 FROM tab1 AS cor0
----
67
67
67

query II rowsort
SELECT DISTINCT - col0 AS col1, + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-898
SELECT + 27 - 17 DIV col0 * + col1 AS col0 FROM tab0
----
-54
27
27

skipif mysql # not compatible
query I rowsort label-898
SELECT + 27 - 17 / col0 * + col1 AS col0 FROM tab0
----
-54
27
27

query I rowsort
SELECT ALL + - 5 + + 43 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * col1 - col0 AS col0 FROM tab0
----
-196
-297
-3822

query I rowsort
SELECT + 22 * - col2 / col0 / - col0 * - col1 - + - col1 + + 92 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT 63 DIV ( col0 ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
0
0
4

skipif mysql # not compatible
query I rowsort label-902
SELECT 63 / ( col0 ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
0
0
4

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

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

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

query I rowsort
SELECT DISTINCT - col2 - col2 * - - col1 FROM tab2 cor0
----
-1196
-3120
-3944

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-907
SELECT DISTINCT - 92 * + - CAST( NULL AS SIGNED ) * + 64 / + 61 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT - 92 * + - CAST ( NULL AS INTEGER ) * + 64 / + 61 FROM tab2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-910
SELECT 29 * - COUNT( 81 ), COUNT( * ) + - + 29 AS col2 FROM tab0
----
-87
-26

skipif mysql # not compatible
query II rowsort label-910
SELECT 29 * - COUNT ( 81 ), COUNT ( * ) + - + 29 AS col2 FROM tab0
----
-87
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT DISTINCT 66 * COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT 66 * COUNT ( * ) FROM tab1
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-912
SELECT ALL col2 DIV 92 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL col2 / 92 AS col1 FROM tab1
----
0
0
1

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

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

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

query I rowsort
SELECT ALL + 72 FROM tab1, tab0 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <= - 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 82 AS col0, + 37 AS col1 FROM tab0 cor0
----
82
37
82
37
82
37

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

onlyif mysql # DIV for integer division: 
query I rowsort label-920
SELECT DISTINCT + 19 DIV + - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT + 19 / + - col1 FROM tab2
----
0

query II rowsort
SELECT ALL + 6 + - ( + 20 ) * + - col1 AS col2, - col0 AS col1 FROM tab2 AS cor0
----
1026
-46
1346
-75
1546
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 AS cor0 WHERE 43 <= - 68
----

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT ALL - 13 DIV - col2 * - 71 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL - 13 / - col2 * - 71 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT ALL - col0 DIV 11 col2 FROM tab1 AS cor0
----
-4
-7
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-924
SELECT ALL - col0 / 11 col2 FROM tab1 AS cor0
----
-4
-7
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT - 97 DIV col2 AS col2 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-925
SELECT - 97 / col2 AS col2 FROM tab0 AS cor0
----
-2
-9
0

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

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

query I rowsort
SELECT + 31 * ( - col2 ) FROM tab2
----
-1240
-1798
-713

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 83 col1 FROM tab0
----
-2
-62
-82

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT col2 + col0 <= 10
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT DISTINCT - - MAX( ALL + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT - - MAX ( ALL + col0 ) FROM tab0 AS cor0
----
97

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

query I rowsort
SELECT ALL ( - col2 ) * col0 - col0 AS col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

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

query II rowsort
SELECT DISTINCT + 30, + 90 + 35 AS col1 FROM tab0 AS cor0
----
30
125

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

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

query I rowsort
SELECT - col1 * + 82 AS col0 FROM tab1
----
-1148
-3854
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT + MAX( - - col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-942
SELECT + MAX ( - - col2 ) AS col2 FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 21 * + + 57 - + col0 + - - 87 * - 29 NOT BETWEEN - 92 AND - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT ALL - 29 * - + COUNT( * ) - + SUM( 63 ) + + 15 AS col0 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL - 29 * - + COUNT ( * ) - + SUM ( 63 ) + + 15 AS col0 FROM tab0 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT MIN( - - 57 ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-946
SELECT MIN ( - - 57 ) FROM tab0
----
57

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-947
SELECT ALL - col2 * - + col2 / - CAST( NULL AS SIGNED ) + + + 15 * - CAST( NULL AS DECIMAL ) * 80 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL - col2 * - + col2 / - CAST ( NULL AS INTEGER ) + + + 15 * - CAST ( NULL AS REAL ) * 80 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - 44 FROM tab0 AS cor0
----
-23
-43
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 14 * + col0 col0 FROM tab2 AS cor0
----
1050
644
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-950
SELECT ALL col1 * - - CAST( + - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL col1 * - - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 17 + - 35 + - col2 col0 FROM tab2 AS cor0
----
-41
-58
-76

query II rowsort
SELECT DISTINCT col1 AS col0, + 12 FROM tab1 AS cor0
----
14
12
47
12
5
12

query I rowsort
SELECT - 81 * ( + 86 ) + - 64 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL + + 36 + - col2 AS col0 FROM tab2 AS cor0
----
-22
-4
13

query I rowsort
SELECT + 99 + + col2 + + - ( + + col0 ) AS col1 FROM tab1
----
144
73
76

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

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

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

query I rowsort
SELECT DISTINCT 94 + + 3 + + 28 FROM tab0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT DISTINCT + 47 + MAX( - col1 ) col2 FROM tab2
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-959
SELECT DISTINCT + 47 + MAX ( - col1 ) col2 FROM tab2
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 9 * - col1 col2 FROM tab1
----
12096
2655
28764

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-963
SELECT ALL COUNT( * ) - + COUNT( * ) DIV + ( - MIN( + col2 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL COUNT ( * ) - + COUNT ( * ) / + ( - MIN ( + col2 ) ) FROM tab1 cor0
----
3

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

query I rowsort
SELECT + 73 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - col0 + + + col0 * + + 51 <= ( - 82 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT MAX( DISTINCT 96 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-969
SELECT MAX ( DISTINCT 96 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
96

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 69 * - ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 80 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT COUNT( 59 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-974
SELECT COUNT ( 59 ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT col2, - 66 FROM tab1
----
59
-66
68
-66
96
-66

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

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

query I rowsort
SELECT DISTINCT 39 * + ( col2 ) * + + 38 AS col1 FROM tab0
----
146718
14820
69654

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

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

query II rowsort
SELECT 22 AS col1, + 62 + - col1 + + col0 * + 83 FROM tab1 AS cor0
----
22
4281
22
7112
22
7568

query II rowsort
SELECT DISTINCT - + 26, + col0 AS col2 FROM tab1 AS cor0
----
-26
51
-26
85
-26
91

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

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

query I rowsort
SELECT col1 + 96 FROM tab0 AS cor0
----
117
177
97

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

query II rowsort
SELECT DISTINCT col2 + + 55 - - col0 AS col1, col2 FROM tab2
----
124
23
159
40
188
58

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT 11 * COUNT( * ) + + 24 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-986
SELECT 11 * COUNT ( * ) + + 24 FROM tab0 AS cor0
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-987
SELECT * FROM tab2 AS cor0 WHERE + 5 NOT IN ( - col1 + + col0 + - col2 * - col1 / + - col2 * + - CAST( NULL AS DECIMAL ), - col2, - col0, - 15 )
----

skipif mysql # not compatible
query III rowsort label-987
SELECT * FROM tab2 AS cor0 WHERE + 5 NOT IN ( - col1 + + col0 + - col2 * - col1 / + - col2 * + - CAST ( NULL AS REAL ), - col2, - col0, - 15 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 col2 FROM tab0 cor0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 50 ) * ( - col1 ) col2 FROM tab0 AS cor0
----
-1050
-4050
-50

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

skipif mysql # not compatible
query I rowsort label-991
SELECT - - 78 / + COUNT ( * ) AS col2 FROM tab0 cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-992
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT + col1 DIV 9 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-993
SELECT + col1 / 9 FROM tab1
----
0
1
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT DISTINCT - COUNT( * ) + + ( - - 21 ) * + ( + ( 76 ) ) col1 FROM tab1
----
1593

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

query I rowsort
SELECT ALL + col2 + - + 31 AS col1 FROM tab0
----
-21
16
68

query I rowsort
SELECT - 13 + - + col1 * - 84 FROM tab2 AS cor0
----
4271
5615
6455

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

query I rowsort
SELECT ALL - - col0 - - + col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1000
SELECT + SUM( + col1 ) * 29, + 41 AS col1 FROM tab0 AS cor0
----
2987
41

skipif mysql # not compatible
query II rowsort label-1000
SELECT + SUM ( + col1 ) * 29, + 41 AS col1 FROM tab0 AS cor0
----
2987
41

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

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

query I rowsort
SELECT ALL + + AVG ( col2 ) * 67 + + 82 FROM tab0 WHERE NOT + col1 <> NULL
----
NULL

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

query I rowsort
SELECT ALL 32 * - 48 * 79 FROM tab2
----
-121344
-121344
-121344

query I rowsort
SELECT DISTINCT - 8 * + + col2 * col1 AS col0 FROM tab1
----
-10752
-2360
-25568

onlyif mysql # DIV for integer division: 
query I rowsort label-1006
SELECT - col0 DIV + col0 + + + col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-1006
SELECT - col0 / + col0 + + + col2 FROM tab0 AS cor0
----
46
9
98

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1008
SELECT - ( + ( MAX( ALL + - col1 ) ) ) AS col0, COUNT( - col0 ) FROM tab1 AS cor0
----
5
3

skipif mysql # not compatible
query II rowsort label-1008
SELECT - ( + ( MAX ( ALL + - col1 ) ) ) AS col0, COUNT ( - col0 ) FROM tab1 AS cor0
----
5
3

query I rowsort
SELECT - col2 * - 3 * + col2 AS col2 FROM tab2 AS cor0
----
10092
1587
4800

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 >= - - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT DISTINCT COUNT( * ) + 85 AS col2 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-1012
SELECT DISTINCT COUNT ( * ) + 85 AS col2 FROM tab0
----
88

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

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

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

query I rowsort
SELECT DISTINCT + 8 + + col1 FROM tab1
----
13
22
55

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1016
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 13 col1 FROM tab2
----
NULL

query I rowsort
SELECT - - 69 + + + col2 * 47 AS col0 FROM tab0 AS cor0
----
2278
4722
539

query I rowsort
SELECT ALL + col0 + + - col2 - + 68 AS col1 FROM tab2 AS cor0
----
-44
-45
-51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1019
SELECT COUNT( * ) * - - ( SUM( ALL + + col2 ) ) + + CAST( NULL AS DECIMAL ) * + 34, + 36 AS col2 FROM tab0 AS cor0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-1019
SELECT COUNT ( * ) * - - ( SUM ( ALL + + col2 ) ) + + CAST ( NULL AS REAL ) * + 34, + 36 AS col2 FROM tab0 AS cor0
----
NULL
36

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

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

query I rowsort
SELECT + - 67 + 33 FROM tab0 AS cor0
----
-34
-34
-34

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - + 47 + 8 * + + col1, + col1, + - ( - 61 ), + col0 - + col1, + 35 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT ALL col2 DIV + - 87 + col1 FROM tab0
----
0
21
81

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL col2 / + - 87 + col1 FROM tab0
----
0
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-1024
SELECT ALL 68 + + col0, + col1 + + + 56 DIV 23 DIV + col2 AS col1 FROM tab2
----
114
51
132
77
143
67

skipif mysql # not compatible
query II rowsort label-1024
SELECT ALL 68 + + col0, + col1 + + + 56 / 23 / + col2 AS col1 FROM tab2
----
114
51
132
77
143
67

query I rowsort
SELECT ALL + col1 * 26 AS col0 FROM tab0
----
2106
26
546

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1028
SELECT - 69 FROM tab0 WHERE + - col1 NOT IN ( - + col1, CAST( + col0 AS SIGNED ), + + ( + + col1 ) / + - 0 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-1028
SELECT - 69 FROM tab0 WHERE + - col1 NOT IN ( - + col1, CAST ( + col0 AS INTEGER ), + + ( + + col1 ) / + - 0 * + col0 )
----

query I rowsort
SELECT ALL - col1 * - col0 + - ( 88 ) AS col1 FROM tab1
----
337
4189
626

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 16 * col2 FROM tab1 AS cor0
----
1088
1536
944

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

query I rowsort
SELECT DISTINCT 87 * col1 * - 65 AS col1 FROM tab2
----
-288405
-378885
-435435

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - 29 < NULL
----

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

query I rowsort
SELECT DISTINCT + col0 + 38 AS col1 FROM tab0
----
125
135
53

query I rowsort
SELECT - ( + 79 ) + - - col1 FROM tab0 WHERE - + col0 / col2 - - col0 * 17 IS NOT NULL
----
-58
-78
2

query I rowsort
SELECT 13 / + 46 AS col1 FROM tab0 cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT - 95 + + 89 * + - 12 + col0 FROM tab0 AS cor0
----
-1066
-1076
-1148

query I rowsort
SELECT + 71 AS col1 FROM tab2 WHERE NULL IS NULL
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1044
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, - 5 col2 FROM tab0 WHERE + col1 * col1 + ( - + 90 ) + + col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1044
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, - 5 col2 FROM tab0 WHERE + col1 * col1 + ( - + 90 ) + + col0 IS NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1048
SELECT ALL + 23 - - + col2 * + - CAST( NULL AS SIGNED ) AS col0, 54 FROM tab2 AS cor0
----
NULL
54
NULL
54
NULL
54

skipif mysql # not compatible
query II rowsort label-1048
SELECT ALL + 23 - - + col2 * + - CAST ( NULL AS INTEGER ) AS col0, 54 FROM tab2 AS cor0
----
NULL
54
NULL
54
NULL
54

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

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

query I rowsort
SELECT + - 54 - + col2 FROM tab2 AS cor0
----
-112
-77
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - - col1 * 95 col0, + 84 + 99 FROM tab2 AS cor0
----
4891
183
6440
183
7379
183

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT - MAX( DISTINCT 87 ) - 45 AS col1 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-1052
SELECT - MAX ( DISTINCT 87 ) - 45 AS col1 FROM tab0 AS cor0
----
-132

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1054
SELECT ALL col1 AS col0, + col2 DIV col1 + + 17 FROM tab1
----
14
23
47
18
5
28

skipif mysql # not compatible
query II rowsort label-1054
SELECT ALL col1 AS col0, + col2 / col1 + + 17 FROM tab1
----
14
23
47
18
5
28

query II rowsort
SELECT col0, - 89 AS col1 FROM tab0 AS cor0
----
15
-89
87
-89
97
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT + + SUM( ALL - 46 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 / - - col1 * + col2 * col1 + 83 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT + + SUM ( ALL - 46 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 / - - col1 * + col2 * col1 + 83 AND NULL
----
NULL

query I rowsort
SELECT col1 * - - 22 AS col0 FROM tab1 cor0
----
1034
110
308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - ( - col2 ) col0 FROM tab0 AS cor0
----
-100
-2209
-9801

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1059
SELECT - 85, + COUNT ( * ) col0 FROM tab1 AS cor0
----
-85
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 46 * - col0 col1 FROM tab0
----
4462
55890
84042

query I rowsort
SELECT col1 * col1 + - - 13 * + 73 AS col1 FROM tab2 AS cor0
----
3550
5438
6878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * col0, 40 * + + col1 + 82 + + col2 col1 FROM tab1 AS cor0
----
-425
341
-4277
2030
-714
738

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT DISTINCT - + COUNT( * ) * + MIN( 59 ) FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - + COUNT ( * ) * + MIN ( 59 ) FROM tab0 AS cor0
----
-177

onlyif mysql # DIV for integer division: 
query II rowsort label-1064
SELECT ALL + ( - 31 ) DIV - col2 AS col0, col0 col2 FROM tab2
----
0
64
0
75
1
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1064
SELECT ALL + ( - 31 ) / - col2 AS col0, col0 col2 FROM tab2
----
0
64
0
75
1
46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1066
SELECT ALL + col1 DIV col1 col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1066
SELECT ALL + col1 / col1 col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT DISTINCT COUNT( * ) - COUNT( * ) - + ( - + COUNT( * ) ) col1 FROM tab1 WHERE 37 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1067
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) - + ( - + COUNT ( * ) ) col1 FROM tab1 WHERE 37 IS NULL
----
0

query I rowsort
SELECT ALL 56 + + 6 AS col0 FROM tab0
----
62
62
62

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

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

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

query II rowsort
SELECT ( + + col1 ) * + 75 + col1 AS col0, - col1 * + 15 + + - col0 AS col1 FROM tab1
----
1064
-261
3572
-796
380
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT MIN( ALL + - 79 ) FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-1072
SELECT MIN ( ALL + - 79 ) FROM tab2
----
-79

query I rowsort
SELECT + ( + - col2 ) - + col0 * - col2 AS col2 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT - col0 + - col1 * - + col1 * - 51 + - + 5 + - 79 AS col1 FROM tab2 AS cor0
----
-132781
-229098
-302527

query I rowsort
SELECT ALL - - 60 - + col2 AS col0 FROM tab1 cor0
----
-36
-8
1

query I rowsort
SELECT + col1 + col0 * - + col0 AS col0 FROM tab1 cor0
----
-2587
-7220
-8234

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT DISTINCT - + 63 - + col1 * col2 DIV - col2 FROM tab0 AS cor0
----
-42
-62
18

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT - + 63 - + col1 * col2 / - col2 FROM tab0 AS cor0
----
-42
-62
18

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

query I rowsort
SELECT DISTINCT - col1 - + + col2 * + col2 AS col0 FROM tab0 cor0
----
-121
-2290
-9802

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

query I rowsort
SELECT DISTINCT + 82 - + 86 FROM tab0 AS cor0
----
-4

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1083
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * + COUNT( - CAST( + 46 AS SIGNED ) ), 27 FROM tab1 AS cor0
----
27
27

skipif mysql # not compatible
query II rowsort label-1083
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * + COUNT ( - CAST ( + 46 AS INTEGER ) ), 27 FROM tab1 AS cor0
----
27
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1084
SELECT - col1 DIV + 69 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1084
SELECT - col1 / + 69 AS col0 FROM tab1
----
0
0
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1086
SELECT + COUNT( * ) * + CAST( 91 AS SIGNED ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-1086
SELECT + COUNT ( * ) * + CAST ( 91 AS INTEGER ) FROM tab0
----
273

query I rowsort
SELECT ALL col1 + + - col1 FROM tab2 WHERE NOT - - col1 * + col1 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + 22 * + + col2 AS col2 FROM tab1 AS cor0
----
1298
1496
2112

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

query I rowsort
SELECT DISTINCT + col2 + 81 + - col2 FROM tab2
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-1093
SELECT DISTINCT col0 + + + col0 * + 97 + + col0 DIV col1, - 11 * - 32 + 40 AS col2 FROM tab1 AS cor0 WHERE NOT 98 * - 53 * col1 IS NULL
----
5001
392
8347
392
8919
392

skipif mysql # not compatible
query II rowsort label-1093
SELECT DISTINCT col0 + + + col0 * + 97 + + col0 / col1, - 11 * - 32 + 40 AS col2 FROM tab1 AS cor0 WHERE NOT 98 * - 53 * col1 IS NULL
----
5001
392
8347
392
8919
392

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

query I rowsort
SELECT ALL + - col0 * 10 + + 8 FROM tab2 AS cor0
----
-452
-632
-742

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

query I rowsort
SELECT ALL + col0 * - 82 AS col0 FROM tab1 AS cor0
----
-4182
-6970
-7462

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT + 54 DIV - col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1098
SELECT + 54 / - col0 FROM tab2 cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1099
SELECT * FROM tab0 AS cor0 WHERE col2 * - + CAST( + 51 AS SIGNED ) * + 87 + col1 + + col2 + col1 * - col0 + - 85 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1099
SELECT * FROM tab0 AS cor0 WHERE col2 * - + CAST ( + 51 AS INTEGER ) * + 87 + col1 + + col2 + col1 * - col0 + - 85 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1101
SELECT - col2, col1 * - col1 + col2 DIV + 30 AS col1 FROM tab0 AS cor0
----
-10
-441
-47
-6560
-99
2

skipif mysql # not compatible
query II rowsort label-1101
SELECT - col2, col1 * - col1 + col2 / + 30 AS col1 FROM tab0 AS cor0
----
-10
-441
-47
-6560
-99
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT - MAX( col0 ) col1 FROM tab2
----
-75

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

query I rowsort
SELECT ALL 0 + - col2 + + col1 AS col0 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT - + ( - + ( MAX( ALL + col2 ) ) ) * - COUNT( * ) FROM tab1 WHERE ( - ( + 3 ) ) NOT BETWEEN - - col1 - + col2 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1104
SELECT - + ( - + ( MAX ( ALL + col2 ) ) ) * - COUNT ( * ) FROM tab1 WHERE ( - ( + 3 ) ) NOT BETWEEN - - col1 - + col2 AND col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT ALL 47 + 44 - + COUNT( * ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL 47 + 44 - + COUNT ( * ) FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT + COUNT( * ) + + + 0 + + + 47 - 34 + 98 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-1107
SELECT + COUNT ( * ) + + + 0 + + + 47 - 34 + 98 FROM tab1 AS cor0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1108
SELECT 23 + + col2 + + 8 DIV col1 AS col0 FROM tab0 AS cor0
----
130
33
70

skipif mysql # not compatible
query I rowsort label-1108
SELECT 23 + + col2 + + 8 / col1 AS col0 FROM tab0 AS cor0
----
130
33
70

query II rowsort
SELECT + col2 + + 53 AS col1, col1 * col2 + - + col0 + - + col2 FROM tab2 AS cor0
----
111
3753
76
1104
93
2976

query I rowsort
SELECT col1 * - 92 AS col0 FROM tab1
----
-1288
-4324
-460

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - + 59 ) FROM tab1 WHERE - + col1 NOT BETWEEN NULL AND + col0
----
NULL

query I rowsort
SELECT + + 79 * - 3 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2ee13223475f196be0e4eac67e12eb1f

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( + col0 ) * 88 * - 11 + + ( - 83 ) + - ( + + col1 ) * - col2 * + col2 * + 25 / + col0 - ( 32 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1114
SELECT - col1 AS col1, - col0 * + - col2 + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-14
4845
-47
6097
-5
4930

skipif mysql # not compatible
query II rowsort label-1114
SELECT - col1 AS col1, - col0 * + - col2 + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-14
4845
-47
6097
-5
4930

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 * + 1 AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1117
SELECT + 10 * - 72 AS col0, CAST( NULL AS SIGNED ) * 12 AS col2 FROM tab0
----
-720
NULL
-720
NULL
-720
NULL

skipif mysql # not compatible
query II rowsort label-1117
SELECT + 10 * - 72 AS col0, CAST ( NULL AS INTEGER ) * 12 AS col2 FROM tab0
----
-720
NULL
-720
NULL
-720
NULL

query I rowsort
SELECT 15 * - + ( + col2 ) * + + ( col1 ) FROM tab1
----
-20160
-4425
-47940

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

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

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

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

query I rowsort
SELECT ALL - + 90 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < ( NULL )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT 23 DIV - - 43 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1124
SELECT 23 / - - 43 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - + col2 + - 63 FROM tab1 cor0
----
-122
-131
-159

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - 57 col0 FROM tab2 AS cor0
----
-6
10
20

query I rowsort
SELECT ALL ( col2 ) * - col1 * col0 - col0 AS col1 FROM tab0 AS cor0
----
-18357
-57120
-9700

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1130
SELECT ALL - col2 + - + col2 / + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) <= + + col0 + col0
----

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL - col2 + - + col2 / + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) <= + + col0 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * 29, - ( - col0 ) + - 31 col0 FROM tab1 cor0 WHERE col1 + + + col1 < ( + + col1 ) + - - 30
----
-1479
20
-2465
54

query III rowsort
SELECT * FROM tab0 WHERE + - col1 + + col1 + + col0 + + + 27 = 84
----

query I rowsort
SELECT col0 + - col1 * 75 FROM tab1
----
-290
-3434
-999

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1135
SELECT - CAST( + CAST( - 94 AS SIGNED ) AS SIGNED ) + + - 84 * - col0 AS col1 FROM tab0
----
1354
7402
8242

skipif mysql # not compatible
query I rowsort label-1135
SELECT - CAST ( + CAST ( - 94 AS INTEGER ) AS INTEGER ) + + - 84 * - col0 AS col1 FROM tab0
----
1354
7402
8242

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT DISTINCT - 23 * + COUNT( + - col2 ) + - 32 AS col2 FROM tab2
----
-101

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT - 23 * + COUNT ( + - col2 ) + - 32 AS col2 FROM tab2
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1137
SELECT col0, col0 + CAST( - - ( col2 ) AS SIGNED ) FROM tab1
----
51
147
85
144
91
159

skipif mysql # not compatible
query II rowsort label-1137
SELECT col0, col0 + CAST ( - - ( col2 ) AS INTEGER ) FROM tab1
----
51
147
85
144
91
159

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

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

query I rowsort
SELECT DISTINCT + 8 * - - 75 + 33 AS col2 FROM tab0
----
633

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

query I rowsort
SELECT DISTINCT + 46 - + col1 FROM tab2 cor0
----
-21
-31
-5

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

query III rowsort
SELECT * FROM tab1 WHERE 39 <> ( - + 93 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL - MIN( ALL - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL - MIN ( ALL - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 30 AS col0 FROM tab1 cor0
----
30
30
30

query II rowsort
SELECT ( col2 ) * - - 40 AS col1, + 55 FROM tab2
----
1600
55
2320
55
920
55

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1152
SELECT 62 AS col1, + MIN( col1 ) FROM tab0 AS cor0
----
62
1

skipif mysql # not compatible
query II rowsort label-1152
SELECT 62 AS col1, + MIN ( col1 ) FROM tab0 AS cor0
----
62
1

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN ( - 38 * + col0 ) AND - col0 - col1
----

query I rowsort
SELECT 61 AS col0 FROM tab1 WHERE NOT - 40 IN ( 73 - + col2 )
----
61
61
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1155
SELECT 50 * - MAX( ALL + CAST( NULL AS SIGNED ) * - 46 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1155
SELECT 50 * - MAX ( ALL + CAST ( NULL AS INTEGER ) * - 46 ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <= - col1 * - 42
----

query I rowsort
SELECT col1 FROM tab1 WHERE NULL BETWEEN + col1 * 44 AND NULL
----

query I rowsort
SELECT + col1 * + 96 FROM tab0
----
2016
7776
96

query III rowsort
SELECT * FROM tab1 WHERE ( col0 * 56 + + 72 / 33 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE - 64 NOT BETWEEN NULL AND 72 + 14
----
0

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE - 64 NOT BETWEEN NULL AND 72 + 14
----
0

query I rowsort
SELECT DISTINCT ( col2 ) * col2 AS col2 FROM tab2 WHERE NOT col1 NOT IN ( + 46 * + col2 )
----

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 96 + + col2 BETWEEN ( + 5 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 78 * col0 AS col0 FROM tab2
----
3588
4992
5850

query I rowsort
SELECT ALL + 49 * 57 FROM tab1
----
2793
2793
2793

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1168
SELECT COUNT( * ) DIV 27 col1 FROM tab1
----
0

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

query I rowsort
SELECT DISTINCT col1 * 71 FROM tab0
----
1491
5751
71

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 + - 88 ) >= col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL <> ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1171
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL <> ( col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 / ( + col2 ) ) > col1 + + 20
----

query I rowsort
SELECT + 48 * col2 AS col2 FROM tab1
----
2832
3264
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT - COUNT( ALL col2 ) * + 75 col2 FROM tab0
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1174
SELECT - COUNT ( ALL col2 ) * + 75 col2 FROM tab0
----
-225

query I rowsort
SELECT - 37 + - col0 FROM tab0
----
-124
-134
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT + MAX( col0 ) * 88 FROM tab2
----
6600

skipif mysql # not compatible
query I rowsort label-1176
SELECT + MAX ( col0 ) * 88 FROM tab2
----
6600

query I rowsort
SELECT ALL 74 - 43 * col0 AS col1 FROM tab0 AS cor0
----
-3667
-4097
-571

query I rowsort
SELECT + col2 * col0 + col0 AS col2 FROM tab2 AS cor0
----
1104
2624
4425

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 * - 69 >= 66
----

query I rowsort
SELECT ALL - col2 - - col1 * + col2 AS col2 FROM tab1 AS cor0
----
1248
236
3128

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

query I rowsort
SELECT ALL + 2 AS col0 FROM tab1 WHERE NOT NULL IN ( - 55 * - 91 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1183
SELECT DISTINCT 79 DIV ( + MIN( col0 ) ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT 79 / ( + MIN ( col0 ) ) FROM tab0
----
5

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

query I rowsort
SELECT DISTINCT - 39 * 60 FROM tab1 AS cor0
----
-2340

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1187
SELECT ALL COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( 67 AS SIGNED ) = ( - 40 )
----
6

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( 67 AS INTEGER ) = ( - 40 )
----
6

query I rowsort
SELECT + - 14 * - ( + col1 * col2 ) AS col2 FROM tab2 AS cor0
----
16422
43120
54404

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT + 37 DIV - col2 AS col1 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1190
SELECT + 37 / - col2 AS col1 FROM tab0 AS cor0
----
-3
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 96 * + col0 col0 FROM tab2 AS cor0
----
-4416
-6144
-7200

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - col2 <= col1 - col2
----
87
21
10
97
1
99

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

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

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE - col1 * + col2 BETWEEN - 32 AND NULL
----

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) BETWEEN - ( col0 ) AND 70
----

query I rowsort
SELECT DISTINCT col1 * + col0 * - 51 FROM tab1
----
-21675
-218127
-36414

query I rowsort
SELECT + 7 FROM tab1 WHERE NOT 70 IS NULL
----
7
7
7

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE ( NULL ) >= col2 / + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 * - 13 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1203
SELECT DISTINCT * FROM tab1 WHERE ( col1 * CAST( NULL AS SIGNED ) ) <= - 36
----

skipif mysql # not compatible
query III rowsort label-1203
SELECT DISTINCT * FROM tab1 WHERE ( col1 * CAST ( NULL AS INTEGER ) ) <= - 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT DISTINCT + MIN( ALL - - 84 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT + MIN ( ALL - - 84 ) FROM tab0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( col1 ) ) * col0 col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT - 65 * 72 FROM tab2
----
-4680
-4680
-4680

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT + MAX( ALL + 41 ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-1207
SELECT + MAX ( ALL + 41 ) FROM tab2 AS cor0
----
41

query I rowsort
SELECT DISTINCT + - 65 AS col2 FROM tab0 AS cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1209
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1211
SELECT - 51 DIV col0 + + - 93 FROM tab1
----
-93
-93
-94

skipif mysql # not compatible
query I rowsort label-1211
SELECT - 51 / col0 + + - 93 FROM tab1
----
-93
-93
-94

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1213
SELECT + COUNT( * ) DIV 76 FROM tab2 AS cor0 WHERE 3 * col0 < ( + 46 )
----
0

skipif mysql # not compatible
query I rowsort label-1213
SELECT + COUNT ( * ) / 76 FROM tab2 AS cor0 WHERE 3 * col0 < ( + 46 )
----
0

query I rowsort
SELECT + + col0 + + + col2 + col2 - col1 AS col0 FROM tab1 AS cor0
----
180
198
229

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1215
SELECT ALL - col0 AS col1, CAST( NULL AS SIGNED ) FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-1215
SELECT ALL - col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

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

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

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

query I rowsort
SELECT col1 * + + 12 FROM tab2
----
612
804
924

query I rowsort
SELECT DISTINCT - col1 * 83 * + col0 AS col2 FROM tab2
----
-194718
-409024
-417075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1221
SELECT + CAST( + SUM( DISTINCT col2 ) AS SIGNED ) FROM tab1
----
223

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

query I rowsort
SELECT ALL 48 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1225
SELECT ALL col0 AS col0 FROM tab0 WHERE - col2 = CAST( - col2 AS SIGNED )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL col0 AS col0 FROM tab0 WHERE - col2 = CAST ( - col2 AS INTEGER )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1226
SELECT ALL - col1 + + - CAST( - - ( - 10 ) AS SIGNED ) FROM tab0
----
-11
-71
9

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL - col1 + + - CAST ( - - ( - 10 ) AS INTEGER ) FROM tab0
----
-11
-71
9

query I rowsort
SELECT DISTINCT col1 + + + col2 * col0 + 26 AS col2 FROM tab1
----
4936
5046
6261

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

query I rowsort
SELECT ALL col0 * + + 8 + - col1 AS col2 FROM tab0
----
39
675
775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1230
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE col2 + - - 7 >= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE col2 + - - 7 >= + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT DISTINCT + COUNT( + col1 ) + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - 98 + + ( + + 43 ) * 85 IN ( + col0 * 10 )
----
0

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT + COUNT ( + col1 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - 98 + + ( + + 43 ) * 85 IN ( + col0 * 10 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) = NULL
----

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

query I rowsort
SELECT ALL + 83 * + + 64 + + col0 FROM tab2 AS cor0
----
5358
5376
5387

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

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

query I rowsort
SELECT col0 * + + 71 * 53 FROM tab2
----
173098
240832
282225

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT ALL - COUNT( * ) * 69 FROM tab2 AS cor0 WHERE NULL IN ( 70 / 42 * - col0 / col1 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL - COUNT ( * ) * 69 FROM tab2 AS cor0 WHERE NULL IN ( 70 / 42 * - col0 / col1 * col2 )
----
0

query I rowsort
SELECT ALL + 88 * - 38 * col0 + col1 FROM tab1 AS cor0
----
-170530
-284235
-304257

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 AS cor0 WHERE - 37 * - col2 < col2
----

query I rowsort
SELECT ALL - - 25 * + 66 AS col1 FROM tab1 AS cor0
----
1650
1650
1650

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT - col1 DIV + 72 AS col2 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1243
SELECT - col1 / + 72 AS col2 FROM tab0 cor0
----
-1
0
0

query II rowsort
SELECT col2 AS col1, - 37 + + ( + - 54 ) AS col0 FROM tab2
----
23
-91
40
-91
58
-91

query I rowsort
SELECT DISTINCT col1 + - col2 * 48 FROM tab1
----
-2827
-3217
-4594

query II rowsort
SELECT DISTINCT + col1 + + col2 AS col0, + ( + + col1 ) AS col2 FROM tab0
----
100
1
128
81
31
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT + 79 * - 35 + + COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2762

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT + 79 * - 35 + + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2762

onlyif mysql # DIV for integer division: 
query II rowsort label-1248
SELECT ALL - 78 DIV col2 AS col0, col0 AS col1 FROM tab2 AS cor0
----
-1
64
-1
75
-3
46

skipif mysql # not compatible
query II rowsort label-1248
SELECT ALL - 78 / col2 AS col0, col0 AS col1 FROM tab2 AS cor0
----
-1
64
-1
75
-3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT + 41 + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-1249
SELECT + 41 + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-1250
SELECT ALL + 19 AS col2, COUNT( * ) FROM tab0 AS cor0
----
19
3

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

query I rowsort
SELECT DISTINCT col0 + + 54 AS col0 FROM tab0
----
141
151
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT + CAST( NULL AS SIGNED ) * + - col2 + ( + col2 ) / - 64 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1252
SELECT + CAST ( NULL AS INTEGER ) * + - col2 + ( + col2 ) / - 64 col0 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1254
SELECT DISTINCT col2 DIV - 75 + col2 DIV + col1 FROM tab0
----
0
98

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT col2 / - 75 + col2 / + col1 FROM tab0
----
0
98

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

query I rowsort
SELECT 1 * + col0 + + col2 FROM tab2 AS cor0
----
104
133
69

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 / - + 99 <= + 42 )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1261
SELECT ALL col0, + col2 DIV - col0 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-1261
SELECT ALL col0, + col2 / - col0 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT DISTINCT + col1 * 20 AS col0 FROM tab0 WHERE + - col1 NOT BETWEEN ( - col0 - + - 25 / 66 * - + 43 ) AND + col0 * + 77
----
1620

query II rowsort
SELECT DISTINCT col1, - 7 FROM tab0
----
1
-7
21
-7
81
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1264
SELECT ALL col0 * 12 AS col0 FROM tab2 WHERE NOT + - CAST( - - 38 AS SIGNED ) - col1 + 24 / CAST( col0 AS SIGNED ) NOT BETWEEN + col2 AND CAST( 78 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL col0 * 12 AS col0 FROM tab2 WHERE NOT + - CAST ( - - 38 AS INTEGER ) - col1 + 24 / CAST ( col0 AS INTEGER ) NOT BETWEEN + col2 AND CAST ( 78 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1265
SELECT + 69 AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
69
NULL
69
NULL
69
NULL

skipif mysql # not compatible
query II rowsort label-1265
SELECT + 69 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
69
NULL
69
NULL
69
NULL

query I rowsort
SELECT + 90 AS col2 FROM tab0 cor0
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * 40 * 16 - - - 43 IS NOT NULL
----

query I rowsort
SELECT - 74 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT - + 75 * + 73 FROM tab0 AS cor0
----
-5475
-5475
-5475

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT MAX( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1271
SELECT MAX ( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL + + col1 * col2 + - - col0 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT ALL + MIN( DISTINCT + col0 ) * + 46 FROM tab2 AS cor0
----
2116

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL + MIN ( DISTINCT + col0 ) * + 46 FROM tab2 AS cor0
----
2116

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1275
SELECT 14 + COUNT( ALL CAST( + col2 AS SIGNED ) ) + - 37 - SUM( ALL - col2 ) FROM tab0
----
136

skipif mysql # not compatible
query I rowsort label-1275
SELECT 14 + COUNT ( ALL CAST ( + col2 AS INTEGER ) ) + - 37 - SUM ( ALL - col2 ) FROM tab0
----
136

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

query I rowsort
SELECT 98 * - - col0 + - col0 FROM tab2
----
4462
6208
7275

query I rowsort
SELECT ( + 19 ) + + col0 FROM tab1
----
104
110
70

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

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

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

query I rowsort
SELECT - 43 AS col2 FROM tab1 WHERE NOT + 97 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 - ( + + col2 ) < NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1285
SELECT CAST ( NULL AS REAL ) + - 35 + - 9 / - CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - + col0 AS col2 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT - - MIN( ALL + 60 ) * + - 89 AS col1 FROM tab1 AS cor0
----
-5340

skipif mysql # not compatible
query I rowsort label-1287
SELECT - - MIN ( ALL + 60 ) * + - 89 AS col1 FROM tab1 AS cor0
----
-5340

query II rowsort
SELECT + - 27 * + 72 * - ( 21 ) + + col2, col0 FROM tab2 AS cor0
----
40847
46
40864
64
40882
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 + ( + 49 ) + col1 col2 FROM tab1 cor0
----
4373
479
777

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1291
SELECT SUM( - + col0 ) AS col2, + 21 AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-185
21

skipif mysql # not compatible
query II rowsort label-1291
SELECT SUM ( - + col0 ) AS col2, + 21 AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-185
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( 2 / col0, col1, - + col1 - - col0 )
----

query III rowsort
SELECT ALL - col1 AS col1, + 9 * + col0 * + + col1 AS col2, 85 FROM tab1 AS cor0
----
9 values hashing to b31d5de1c52d901fa177ea565c1e7711

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1294
SELECT + CAST( col1 AS SIGNED ) + col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1294
SELECT + CAST ( col1 AS INTEGER ) + col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1296
SELECT DISTINCT + MAX( DISTINCT + + col1 ), CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-1296
SELECT DISTINCT + MAX ( DISTINCT + + col1 ), CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
77
NULL

query I rowsort
SELECT ALL 78 * + col1 FROM tab2
----
3978
5226
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT + ( MAX( + + col0 ) ) col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1298
SELECT + ( MAX ( + + col0 ) ) col2 FROM tab0
----
97

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1300
SELECT CAST( NULL AS DECIMAL ) AS col0, col1 FROM tab0 WHERE NOT NULL < - 93 + + + 79
----

skipif mysql # not compatible
query II rowsort label-1300
SELECT CAST ( NULL AS REAL ) AS col0, col1 FROM tab0 WHERE NOT NULL < - 93 + + + 79
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1301
SELECT DISTINCT col2 / + col2 col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT + SUM( - - 8 ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-1302
SELECT + SUM ( - - 8 ) FROM tab0
----
24

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 32 <= + 44
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * 7 < ( NULL )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1307
SELECT DISTINCT + 23 * - COUNT( * ) * + ( - 78 ), 31 + - 30 + - COUNT( + + CAST( - col2 AS SIGNED ) ) - ( - COUNT( * ) ) AS col1 FROM tab2 cor0
----
5382
1

skipif mysql # not compatible
query II rowsort label-1307
SELECT DISTINCT + 23 * - COUNT ( * ) * + ( - 78 ), 31 + - 30 + - COUNT ( + + CAST ( - col2 AS INTEGER ) ) - ( - COUNT ( * ) ) AS col1 FROM tab2 cor0
----
5382
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1308
SELECT DISTINCT + ( - SUM( col0 ) ), - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-227
-3

skipif mysql # not compatible
query II rowsort label-1308
SELECT DISTINCT + ( - SUM ( col0 ) ), - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-227
-3

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

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1312
SELECT + col1 / + + col0 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1313
SELECT + CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) + - - 98 col2 FROM tab0 AS cor0
----
NULL
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1313
SELECT + CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) + - - 98 col2 FROM tab0 AS cor0
----
NULL
95

query II rowsort
SELECT DISTINCT + ( - 55 ) AS col1, 4 FROM tab1
----
-55
4

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

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

query I rowsort
SELECT ALL 54 + - + ( + + col2 ) AS col2 FROM tab0
----
-45
44
7

query III rowsort
SELECT * FROM tab0 WHERE + col2 > - col1 * - 23 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT COUNT( * ) FROM tab1 WHERE NULL >= ( - 36 / + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1318
SELECT COUNT ( * ) FROM tab1 WHERE NULL >= ( - 36 / + col0 )
----
0

query I rowsort
SELECT ALL - 17 + + - col1 FROM tab0
----
-18
-38
-98

query I rowsort
SELECT ALL + col1 * + + 39 + - - col0 AS col0 FROM tab1
----
1924
280
597

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1321
SELECT ALL 83 * - 88 + ( - + col2 ) AS col1, col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-7363
NULL
-7372
NULL
-7400
NULL

skipif mysql # not compatible
query II rowsort label-1321
SELECT ALL 83 * - 88 + ( - + col2 ) AS col1, col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-7363
NULL
-7372
NULL
-7400
NULL

query I rowsort
SELECT ALL + 28 + + ( 52 ) AS col2 FROM tab1 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT - COUNT( * ) + + + COUNT( * ) * + 88 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-1323
SELECT - COUNT ( * ) + + + COUNT ( * ) * + 88 FROM tab2 AS cor0
----
261

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

query I rowsort
SELECT + 28 - - 31 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1327
SELECT DISTINCT + + COUNT( * ) - - + COUNT( * ) DIV + 1 AS col0 FROM tab0 AS cor0
----
6

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

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

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

query I rowsort
SELECT + col0 - - - 60 AS col1 FROM tab2 AS cor0
----
-14
15
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1330
SELECT + 25 DIV - - ( col1 ) - - - col0 - + col2 FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-1330
SELECT + 25 / - - ( col1 ) - - - col0 - + col2 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT DISTINCT 39 - + + ( - - MIN( - 33 ) ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT 39 - + + ( - - MIN ( - 33 ) ) FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT + - 10 - - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1332
SELECT + - 10 - - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 51 * - - col1 <> + 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT 99 - + col0 + + 0 + ( col1 ) AS col0 FROM tab0 AS cor0
----
165
3
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1336
SELECT col0 DIV - - col2 - - - 80 FROM tab1 AS cor0
----
-79
-79
-80

skipif mysql # not compatible
query I rowsort label-1336
SELECT col0 / - - col2 - - - 80 FROM tab1 AS cor0
----
-79
-79
-80

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

query I rowsort
SELECT - 87 * + - col0 FROM tab1
----
4437
7395
7917

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT DISTINCT 27 * + + SUM( - col0 ) FROM tab0
----
-5373

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT 27 * + + SUM ( - col0 ) FROM tab0
----
-5373

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT DISTINCT + 28 DIV - 29 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT + 28 / - 29 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 17 * + 87 FROM tab0
----
1479

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 66 <> + + col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT 95 DIV + + 53 col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1346
SELECT 95 / + + 53 col2 FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT 52 DIV + + 24 - 96 FROM tab1 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-1347
SELECT 52 / + + 24 - 96 FROM tab1 AS cor0
----
-94
-94
-94

query II rowsort
SELECT ALL + 2, - col0 + 31 * 29 - + ( - 57 ) AS col1 FROM tab2 AS cor0
----
2
881
2
892
2
910

query I rowsort
SELECT 3 * col0 * 87 * + - col0 AS col0 FROM tab2 AS cor0
----
-1069056
-1468125
-552276

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 13 * col1 BETWEEN NULL AND + 14
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + 43 * 3 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 418f1c817ef9b3406f572acab9f54796

query I rowsort
SELECT + col1 * - - col1 * col0 + - 79 FROM tab1 cor0
----
200940
2046
9917

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1353
SELECT * FROM tab1 AS cor0 WHERE CAST( 61 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1353
SELECT * FROM tab1 AS cor0 WHERE CAST ( 61 AS INTEGER ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1354
SELECT + - 0 DIV + col0 + - 16 col1 FROM tab1 cor0
----
-16
-16
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1354
SELECT + - 0 / + col0 + - 16 col1 FROM tab1 cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1355
SELECT DISTINCT + ( + col0 ) + - col0 * - ( col1 ) + - - 91 * - col1 AS col1, - col2 + + + 18 col1 FROM tab2 AS cor0 WHERE col0 * col2 + + + 31 * - + col1 - ( ( + + CAST( NULL AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1355
SELECT DISTINCT + ( + col0 ) + - col0 * - ( col1 ) + - - 91 * - col1 AS col1, - col2 + + + 18 col1 FROM tab2 AS cor0 WHERE col0 * col2 + + + 31 * - + col1 - ( ( + + CAST ( NULL AS INTEGER ) ) ) IS NOT NULL
----

query I rowsort
SELECT col2 + - 86 - - col0 FROM tab2
----
-17
18
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT - 51 + + + COUNT( * ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-1357
SELECT - 51 + + + COUNT ( * ) FROM tab0
----
-48

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 = + 73
----

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

skipif mysql # not compatible
query I rowsort label-1359
SELECT MIN ( + 52 ) AS col1 FROM tab1
----
52

query II rowsort
SELECT DISTINCT 56, + col2 FROM tab2
----
56
23
56
40
56
58

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

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

query I rowsort
SELECT DISTINCT + 32 + col0 FROM tab2
----
107
78
96

query II rowsort
SELECT DISTINCT - - col2 AS col0, 38 * + 5 FROM tab0 AS cor0
----
10
190
47
190
99
190

query I rowsort
SELECT DISTINCT + 82 / - col2 AS col2 FROM tab0 AS cor0 WHERE 71 BETWEEN 84 * - col0 * - col0 + + + 71 - - - 94 * + 24 * - - col2 + - col1 AND ( - col2 )
----

query I rowsort
SELECT DISTINCT - 22 - - 65 AS col1 FROM tab0 AS cor0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1366
SELECT + - ( - - COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE - ( - col0 ) * + + 69 + + + 20 * - col2 / - col1 + - col1 + + - col0 * - col2 >= + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1366
SELECT + - ( - - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE - ( - col0 ) * + + 69 + + + 20 * - col2 / - col1 + - col1 + + - col0 * - col2 >= + 94
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1368
SELECT DISTINCT - col0 + - CAST( - + 63 AS SIGNED ) DIV + col0 AS col2 FROM tab2
----
-45
-64
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT 49 + + MIN( col1 ) AS col0 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-1369
SELECT 49 + + MIN ( col1 ) AS col0 FROM tab1
----
54

query II rowsort
SELECT - ( col1 ) AS col1, - col1 + col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
-14
37
-47
44
-5
80

query II rowsort
SELECT ALL + col1 + col0 AS col0, col1 FROM tab0 AS cor0
----
108
21
96
81
98
1

query I rowsort
SELECT DISTINCT - - 82 AS col1 FROM tab2 AS cor0 WHERE + 32 * col0 NOT BETWEEN ( - + col0 ) AND 98
----
82

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

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

query I rowsort
SELECT - col1 * - 29 FROM tab1
----
1363
145
406

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1375
SELECT - CAST( + 29 AS SIGNED ) * + col2 AS col2, col2 col1 FROM tab1
----
-1711
59
-1972
68
-2784
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1375
SELECT - CAST ( + 29 AS INTEGER ) * + col2 AS col2, col2 col1 FROM tab1
----
-1711
59
-1972
68
-2784
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col1 FROM tab2
----
46
64
75

query I rowsort
SELECT + col0 * + + 32 AS col1 FROM tab2
----
1472
2048
2400

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 28 + - col2 IN ( - - col1, 67 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1380
SELECT ALL - ( - MAX( + col0 ) ) col0, + 95 AS col1 FROM tab1
----
91
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1380
SELECT ALL - ( - MAX ( + col0 ) ) col0, + 95 AS col1 FROM tab1
----
91
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT DISTINCT - COUNT( + col0 ) * 32 AS col1 FROM tab0 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT - COUNT ( + col0 ) * 32 AS col1 FROM tab0 cor0
----
-96

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

query I rowsort
SELECT ALL 32 * - col1 FROM tab2 cor0
----
-1632
-2144
-2464

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

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

query II rowsort
SELECT + 1 AS col0, - ( - ( col0 ) ) FROM tab1 AS cor0
----
1
51
1
85
1
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1386
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) - 15 BETWEEN - col2 - - 28 AND - col2
----

skipif mysql # not compatible
query III rowsort label-1386
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) - 15 BETWEEN - col2 - - 28 AND - col2
----

query I rowsort
SELECT ALL - 55 * - col1 AS col0 FROM tab0 AS cor0
----
1155
4455
55

query I rowsort
SELECT + + 16 - + 67 - - 66 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 - + ( - - 8 ) / + + ( - - 62 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT ALL + 44 DIV - + 88 * col0 * - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL + 44 / - + 88 * col0 * - col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + + 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT ( 89 IS NULL ) )
----
9 values hashing to 43298e43365fccb5146ea32003753c92

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1393
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 AS col0, - col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-1393
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 AS col0, - col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1394
SELECT ALL - + col1 AS col1, - CAST( - col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1394
SELECT ALL - + col1 AS col1, - CAST ( - col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND - col2
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT SUM( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1399
SELECT SUM ( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 68 * col2 col1, + 35 AS col1 FROM tab0
----
3196
35
6732
35
680
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1401
SELECT DISTINCT col1 * + ( - col2 ) DIV + col2 + - + col0 AS col2 FROM tab0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT col1 * + ( - col2 ) / + col2 + - + col0 AS col2 FROM tab0
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-1402
SELECT DISTINCT + 65 + + - col1 AS col0, + ( + 89 ) DIV - - col1 FROM tab2
----
-12
1
-2
1
14
1

skipif mysql # not compatible
query II rowsort label-1402
SELECT DISTINCT + 65 + + - col1 AS col0, + ( + 89 ) / - - col1 FROM tab2
----
-12
1
-2
1
14
1

query II rowsort
SELECT - ( + col2 ) AS col1, 23 + - 83 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1404
SELECT 30 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
35
44
77

skipif mysql # not compatible
query I rowsort label-1404
SELECT 30 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
35
44
77

query I rowsort
SELECT DISTINCT ( col2 ) + col0 AS col1 FROM tab2 AS cor0
----
104
133
69

query II rowsort
SELECT + - col1 + + 29 AS col2, 9 AS col0 FROM tab1 AS cor0
----
-18
9
15
9
24
9

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

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( 68 ) + - - col0 FROM tab1 AS cor0
----
-17
17
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT + MAX( ALL + - col2 ) * + 40 * + 47 FROM tab0 AS cor0
----
-18800

skipif mysql # not compatible
query I rowsort label-1409
SELECT + MAX ( ALL + - col2 ) * + 40 * + 47 FROM tab0 AS cor0
----
-18800

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab1 AS cor1 ON + 93 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - MIN( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1412
SELECT - MIN ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT SUM( - + col2 ) col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1414
SELECT SUM ( - + col2 ) col2 FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT DISTINCT SUM( - + 44 ) AS col0 FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT SUM ( - + 44 ) AS col0 FROM tab2 AS cor0
----
-132

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL COUNT( * ) * - 65 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL COUNT ( * ) * - 65 FROM tab0 AS cor0
----
-195

query I rowsort
SELECT ALL + 21 * - 32 AS col2 FROM tab2
----
-672
-672
-672

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL + MAX( - 30 ) AS col2 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL + MAX ( - 30 ) AS col2 FROM tab0
----
-30

query I rowsort
SELECT DISTINCT - - 27 * + 94 FROM tab0 AS cor0
----
2538

query II rowsort
SELECT DISTINCT - col2 AS col0, col0 FROM tab1 cor0 WHERE NOT 80 + - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1423
SELECT + 29 DIV + COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1423
SELECT + 29 / + COUNT ( * ) FROM tab0 cor0
----
9

query I rowsort
SELECT - - 72 * 90 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab727bfca9cf920dda58b89f08794cf0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 39 <> - 5
----

query I rowsort
SELECT DISTINCT - col0 + - + 48 + 62 FROM tab0
----
-1
-73
-83

query I rowsort
SELECT ALL + 86 * + - col1 FROM tab2 AS cor0
----
-4386
-5762
-6622

query I rowsort
SELECT - - col0 + + col2 * - col1 - ( col2 ) FROM tab1 AS cor0
----
-1389
-269
-3173

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT ALL - COUNT( * ) * + - 72 + + + 59 FROM tab0 AS cor0
----
275

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL - COUNT ( * ) * + - 72 + + + 59 FROM tab0 AS cor0
----
275

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

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT col2 / + 52 AS col2 FROM tab1 AS cor0
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1433
SELECT + 59 col2, - CAST( NULL AS SIGNED ) FROM tab0 WHERE + - 27 IS NOT NULL
----
59
NULL
59
NULL
59
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1433
SELECT + 59 col2, - CAST ( NULL AS INTEGER ) FROM tab0 WHERE + - 27 IS NOT NULL
----
59
NULL
59
NULL
59
NULL

query II rowsort
SELECT 19 + - - col2, - 37 AS col1 FROM tab2
----
42
-37
59
-37
77
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1435
SELECT col1 DIV - + col2 * col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1435
SELECT col1 / - + col2 * col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1436
SELECT AVG ( DISTINCT - + ( 38 ) ) / SUM( + + ( - 21 ) ) / - 78 * - + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1436
SELECT AVG ( DISTINCT - + ( 38 ) ) / SUM ( + + ( - 21 ) ) / - 78 * - + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col1 + + - 70 FROM tab0
----
-49
-69
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1438
SELECT col2 DIV - + 12 AS col2 FROM tab0
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-1438
SELECT col2 / - + 12 AS col2 FROM tab0
----
-3
-8
0

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - 74 col2 FROM tab2 AS cor0
----
-125
-141
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT DISTINCT - + 36 + + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-27

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT - + 36 + + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-27

query I rowsort
SELECT col0 * - 26 FROM tab1
----
-1326
-2210
-2366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

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

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

query I rowsort
SELECT - 66 * - 27 AS col2 FROM tab2 AS cor0
----
1782
1782
1782

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1450
SELECT ( - - ( - + col2 ) ) / col2 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * 39 - 85 + 51 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1450
SELECT ( - - ( - + col2 ) ) / col2 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * 39 - 85 + 51 IS NULL
----

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 AS cor0 WHERE + 66 * col2 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT + - SUM ( - col0 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-597

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1454
SELECT DISTINCT - 67, SUM( DISTINCT col2 ) AS col0 FROM tab2
----
-67
121

skipif mysql # not compatible
query II rowsort label-1454
SELECT DISTINCT - 67, SUM ( DISTINCT col2 ) AS col0 FROM tab2
----
-67
121

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT DISTINCT - MAX( - 29 ) * - 6 AS col1 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT - MAX ( - 29 ) * - 6 AS col1 FROM tab0
----
-174

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT - + COUNT( * ) + - 5 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-1459
SELECT - + COUNT ( * ) + - 5 FROM tab2 AS cor0
----
-8

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT + COUNT( * ) + + 44 AS col2 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-1462
SELECT + COUNT ( * ) + + 44 AS col2 FROM tab2
----
47

query II rowsort
SELECT ALL col2 + - 12, col2 AS col2 FROM tab1 AS cor0
----
47
59
56
68
84
96

query I rowsort
SELECT 55 * + col2 AS col0 FROM tab1 cor0
----
3245
3740
5280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1465
SELECT - col2 * - - CAST( 51 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1173
-2040
-2958

skipif mysql # not compatible
query I rowsort label-1465
SELECT - col2 * - - CAST ( 51 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1173
-2040
-2958

query I rowsort
SELECT DISTINCT + + col0 * + col0 - col1 FROM tab1 AS cor0
----
2587
7220
8234

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT 6 * - COUNT( * ) * + 39 AS col1 FROM tab2 AS cor0
----
-702

skipif mysql # not compatible
query I rowsort label-1468
SELECT 6 * - COUNT ( * ) * + 39 AS col1 FROM tab2 AS cor0
----
-702

query I rowsort
SELECT + - col2 - + col0 * - - 13 AS col0 FROM tab0 AS cor0
----
-1141
-1360
-242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1470
SELECT ALL - 45 * + ( COUNT( * ) ) AS col0, + CAST( NULL AS SIGNED ) + - - COUNT( * ) col0 FROM tab2
----
-135
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1470
SELECT ALL - 45 * + ( COUNT ( * ) ) AS col0, + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) col0 FROM tab2
----
-135
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1471
SELECT - 34 DIV + col1 + - + col0 + + col2 FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1471
SELECT - 34 / + col1 + - + col0 + + col2 FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
-17
-23
-24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT ALL - 38 * + COUNT( * ) + 71 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL - 38 * + COUNT ( * ) + 71 FROM tab0
----
-43

query I rowsort
SELECT ALL col1 + - col0 - + - col1 * + col2 FROM tab2
----
1178
3093
3878

query I rowsort
SELECT DISTINCT col1 - col2 * - col2 FROM tab1 AS cor0
----
3486
4671
9230

query I rowsort
SELECT - col0 + + - ( - col1 ) + + 64 + + ( - col2 ) * - col1 AS col1 FROM tab2 cor0
----
1242
3157
3942

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT DISTINCT 68 * 89 * - 72 - - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-435747

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT 68 * 89 * - 72 - - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-435747

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT DISTINCT + 56 DIV + + col1 AS col2 FROM tab0 AS cor0
----
0
2
56

skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT + 56 / + + col1 AS col2 FROM tab0 AS cor0
----
0
2
56

query I rowsort
SELECT ALL + - ( col2 ) / col1 * - col1 FROM tab2 cor0 WHERE NOT ( NULL ) < - + ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1480
SELECT ALL + col1 * - col1 + - col2 FROM tab0 WHERE NOT col2 * - + CAST( 48 AS SIGNED ) * col2 - - + CAST( + 42 AS SIGNED ) + - col2 / + col2 IN ( - col2 )
----
-100
-451
-6608

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL + col1 * - col1 + - col2 FROM tab0 WHERE NOT col2 * - + CAST ( 48 AS INTEGER ) * col2 - - + CAST ( + 42 AS INTEGER ) + - col2 / + col2 IN ( - col2 )
----
-100
-451
-6608

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT 81 * COUNT( * ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-1481
SELECT 81 * COUNT ( * ) FROM tab0 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT - SUM( - 73 ) FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-1482
SELECT - SUM ( - 73 ) FROM tab1 AS cor0
----
219

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

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

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

query II rowsort
SELECT - col1 AS col1, - col1 + - 51 FROM tab0 AS cor0
----
-1
-52
-21
-72
-81
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col0 FROM tab0 WHERE NOT NULL < + - ( ( + - col1 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 57 * + - col0 >= 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT + MIN( + - col0 ) + 26 * + COUNT( * ) col1 FROM tab0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1489
SELECT + MIN ( + - col0 ) + 26 * + COUNT ( * ) col1 FROM tab0
----
-19

query II rowsort
SELECT + col1 + + col2 AS col2, col0 * - col1 AS col1 FROM tab1
----
110
-714
115
-4277
64
-425

query I rowsort
SELECT DISTINCT - col0 + + - 93 * + + col1 AS col1 FROM tab0
----
-190
-2040
-7548

query I rowsort
SELECT DISTINCT + 43 + - col1 + - col2 * 51 AS col2 FROM tab2
----
-1181
-2074
-2982

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( + 42 ) IS NOT NULL
----

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

query II rowsort
SELECT DISTINCT - + col0 AS col0, + 63 * - - 47 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( ( - col2 ), - col1 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1497
SELECT ALL + col1 + + col0 * col0 DIV - col0 AS col0 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL + col1 + + col0 * col0 / - col0 AS col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT + col1 + 49 FROM tab0 AS cor0
----
130
50
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT DISTINCT + COUNT( * ) + 47 AS col0 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT + COUNT ( * ) + 47 AS col0 FROM tab2 AS cor0
----
50

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

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

query I rowsort
SELECT ALL + + col2 + + 3 AS col0 FROM tab1 AS cor0
----
62
71
99

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

query I rowsort
SELECT col1 * + 40 / - col0 * + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1504
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----
0

query II rowsort
SELECT ALL + - 99 - - 76 * + + 77 AS col0, col1 FROM tab2 cor0
----
5753
51
5753
67
5753
77

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

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL + COUNT ( * ) * - 15 FROM tab0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + 71 col2, - col0 + ( + - col1 ) FROM tab2
----
122
-97
138
-142
148
-141

query I rowsort
SELECT ALL 65 * + + 84 * + col2 FROM tab0
----
256620
540540
54600

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

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

query I rowsort
SELECT DISTINCT 92 * col0 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT + + col1 FROM tab1 WHERE NULL BETWEEN - col0 * - - ( + col1 ) * + 95 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + col0 * + 77 + 94 AS col2 FROM tab0 cor0
----
1249
6793
7563

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1515
SELECT - COUNT ( * ) col2 FROM tab2 WHERE NOT - col0 IS NULL
----
-3

query I rowsort
SELECT ALL 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1517
SELECT ALL + col1, CAST( - 56 AS SIGNED ) FROM tab1 cor0
----
14
-56
47
-56
5
-56

skipif mysql # not compatible
query II rowsort label-1517
SELECT ALL + col1, CAST ( - 56 AS INTEGER ) FROM tab1 cor0
----
14
-56
47
-56
5
-56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT DISTINCT - MIN( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT - MIN ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
77

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

query I rowsort
SELECT - 17 * col1 AS col2 FROM tab2 AS cor0
----
-1139
-1309
-867

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

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

query II rowsort
SELECT 16, col1 FROM tab1
----
16
14
16
47
16
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1524
SELECT DISTINCT CAST( + + col2 AS SIGNED ) + + col1 - + 66 AS col2 FROM tab2
----
51
59
8

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) + + col1 - + 66 AS col2 FROM tab2
----
51
59
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT SUM( DISTINCT + + ( - - col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1525
SELECT SUM ( DISTINCT + + ( - - col2 ) ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1527
SELECT ALL CAST( SUM( col2 ) AS SIGNED ) + - 6 * 94 FROM tab0
----
-408

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL CAST ( SUM ( col2 ) AS INTEGER ) + - 6 * 94 FROM tab0
----
-408

query II rowsort
SELECT ALL - col0, col0 - - + 58 AS col0 FROM tab0 AS cor0
----
-15
73
-87
145
-97
155

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT + COUNT( * ) + - 88 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-1529
SELECT + COUNT ( * ) + - 88 FROM tab0 AS cor0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1530
SELECT - + SUM( ALL CAST( - 68 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-1530
SELECT - + SUM ( ALL CAST ( - 68 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1531
SELECT + + COUNT( * ) - CAST( 45 AS SIGNED ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1531
SELECT + + COUNT ( * ) - CAST ( 45 AS INTEGER ) FROM tab0 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1532
SELECT ALL + col0 - + col1 col2, CAST( col0 AS SIGNED ) * - - 79 FROM tab1 AS cor0
----
37
4029
44
7189
80
6715

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1532
SELECT ALL + col0 - + col1 col2, CAST ( col0 AS INTEGER ) * - - 79 FROM tab1 AS cor0
----
37
4029
44
7189
80
6715

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT - 84 - + - SUM( DISTINCT + 74 ) AS col1 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1534
SELECT - 84 - + - SUM ( DISTINCT + 74 ) AS col1 FROM tab0 cor0
----
-10

query I rowsort
SELECT + - col0 - - - 44 FROM tab1 AS cor0
----
-129
-135
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT ( MIN( ALL 96 ) ) - + - MIN( ALL + 98 ) AS col0 FROM tab2 AS cor0
----
194

skipif mysql # not compatible
query I rowsort label-1536
SELECT ( MIN ( ALL 96 ) ) - + - MIN ( ALL + 98 ) AS col0 FROM tab2 AS cor0
----
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - + col2 col0, + col1 FROM tab0 AS cor0
----
-2
1
-32
81
77
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT + 55 + col1 + + col2 DIV - + col2 col1 FROM tab1
----
101
59
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1538
SELECT + 55 + col1 + + col2 / - + col2 col1 FROM tab1
----
101
59
68

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

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

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

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

query I rowsort
SELECT ALL col1 * + col2 * + col1 AS col1 FROM tab0
----
308367
4410
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + - col1 + col0 + - ( - col2 ) / - 99 > 65 + col1
----

query II rowsort
SELECT DISTINCT + col1 AS col0, col0 + col2 FROM tab2
----
51
69
67
133
77
104

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT - MAX( + + col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT - MAX ( + + col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

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

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

query I rowsort
SELECT ALL + col2 * col1 * + col2 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT - COUNT( DISTINCT + 91 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1550
SELECT - COUNT ( DISTINCT + 91 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1551
SELECT DISTINCT - CAST( + - CAST( + col1 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT - CAST ( + - CAST ( + col1 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT DISTINCT + MIN( ( - 22 ) ) AS col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT + MIN ( ( - 22 ) ) AS col0 FROM tab0 AS cor0
----
-22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL = - col1 + + col0 + + - col0 * 40
----
0

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL = - col1 + + col0 + + - col0 * 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT DISTINCT - ( + - MIN( + 52 ) ) FROM tab1, tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT - ( + - MIN ( + 52 ) ) FROM tab1, tab2 AS cor0
----
52

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

query I rowsort
SELECT - col0 * 27 + + - col1 AS col2 FROM tab1 AS cor0
----
-1391
-2300
-2504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + + col0 col2 FROM tab0 cor0
----
720
957
9700

onlyif mysql # DIV for integer division: 
query I rowsort label-1559
SELECT DISTINCT + col1 DIV + 79 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT + col1 / + 79 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE 53 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT + MIN( DISTINCT 9 ) AS col1 FROM tab2 WHERE - + 32 / col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1562
SELECT + MIN ( DISTINCT 9 ) AS col1 FROM tab2 WHERE - + 32 / col0 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT ALL + COUNT( DISTINCT - 40 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL + COUNT ( DISTINCT - 40 ) FROM tab0
----
1

query II rowsort
SELECT col2 AS col2, + 24 * + - col1 AS col1 FROM tab2 AS cor0
----
23
-1224
40
-1848
58
-1608

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

query I rowsort
SELECT + 89 + col0 FROM tab1 AS cor0 WHERE + col2 * - col2 <= 62
----
140
174
180

query I rowsort
SELECT - col0 * + ( 43 ) - + col2 FROM tab1
----
-2289
-3714
-3981

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

query I rowsort
SELECT col0 * - col1 + + ( + col0 ) * - + col1 + + col2 + + - col0 - col0 AS col1 FROM tab1 AS cor0
----
-1434
-8668
-961

query I rowsort
SELECT DISTINCT 71 - 46 + + - 45 FROM tab0 AS cor0
----
-20

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

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL - COUNT ( * ) / - + ( - + COUNT ( * ) ) + 23 FROM tab0 AS cor0
----
22

query I rowsort
SELECT ALL - col1 - + - col0 FROM tab2 AS cor0
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 89 col1, 72 FROM tab1 AS cor0
----
89
72
89
72
89
72

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 * + - 3 col2, - col1 AS col1 FROM tab0 WHERE NOT NULL >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1576
SELECT CAST( + 14 AS SIGNED ) * + col1 AS col0 FROM tab1
----
196
658
70

skipif mysql # not compatible
query I rowsort label-1576
SELECT CAST ( + 14 AS INTEGER ) * + col1 AS col0 FROM tab1
----
196
658
70

query I rowsort
SELECT + 33 * + - col2 * - col2 * + col0 FROM tab0
----
1093455
287100
31373001

query I rowsort
SELECT ALL + + 7 * - 82 AS col0 FROM tab2 AS cor0
----
-574
-574
-574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 * - + col1 col1 FROM tab2 AS cor0
----
-132651
-300763
-456533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col2 FROM tab2 AS cor0 WHERE NOT col1 + - col1 IS NULL
----
23
40
58

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

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

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

query I rowsort
SELECT col2 * - 18 FROM tab2 AS cor0
----
-1044
-414
-720

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

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

query I rowsort
SELECT + - col1 * + ( - col1 ) FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT + - 98 * 27 / - - col0 / + - 4 * - col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT - 54 DIV + col1 AS col0 FROM tab1 cor0
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-1587
SELECT - 54 / + col1 AS col0 FROM tab1 cor0
----
-1
-10
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT ALL - + ( - + 15 ) + + 41 DIV col1 * ( - ( 95 ) ) col0 FROM tab2 AS cor0
----
15
15
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1589
SELECT ALL - + ( - + 15 ) + + 41 / col1 * ( - ( 95 ) ) col0 FROM tab2 AS cor0
----
15
15
15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 IN ( - - 4 + - 93 - + col2, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + col2 AS col0, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

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

query I rowsort
SELECT DISTINCT + col1 + + - 68 * - col1 FROM tab1
----
3243
345
966

query I rowsort
SELECT + col0 * - - 99 * + + col0 * + col0 + + col1 + - col0 AS col2 FROM tab2
----
25952269
41765617
9636269

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

query I rowsort
SELECT ALL 30 + col2 * - - 70 FROM tab2
----
1640
2830
4090

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT DISTINCT 14 * - MAX( ALL - 29 ) + + - SUM( col1 ) AS col0 FROM tab0 AS cor0
----
303

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT 14 * - MAX ( ALL - 29 ) + + - SUM ( col1 ) AS col0 FROM tab0 AS cor0
----
303

query I rowsort
SELECT DISTINCT - 26 - + col0 FROM tab0 AS cor0
----
-113
-123
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 7 + col0 col2 FROM tab2 AS cor0
----
53
71
82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1601
SELECT + CAST( - 28 AS SIGNED ) * + + col2 FROM tab1 AS cor0
----
-1652
-1904
-2688

skipif mysql # not compatible
query I rowsort label-1601
SELECT + CAST ( - 28 AS INTEGER ) * + + col2 FROM tab1 AS cor0
----
-1652
-1904
-2688

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 AS cor0 WHERE - 66 IS NULL
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1605
SELECT ( - CAST ( NULL AS REAL ) ) / - COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT + col1 * + + 23, - col0 AS col1 FROM tab2 AS cor0
----
1173
-46
1541
-75
1771
-64

query I rowsort
SELECT ALL - - ( - col2 ) / 98 AS col1 FROM tab0 cor0 WHERE NULL < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT DISTINCT + COUNT( DISTINCT col2 ) + 96 AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT + COUNT ( DISTINCT col2 ) + 96 AS col2 FROM tab1
----
99

query II rowsort
SELECT ALL col2 * - + 78 AS col0, + 3 FROM tab1 AS cor0
----
-4602
3
-5304
3
-7488
3

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 BETWEEN NULL AND - + 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-1612
SELECT 88 * col2 AS col2, col2 - ( + - col0 ) DIV - - 13 FROM tab0 AS cor0
----
4136
48
8712
106
880
16

skipif mysql # not compatible
query II rowsort label-1612
SELECT 88 * col2 AS col2, col2 - ( + - col0 ) / - - 13 FROM tab0 AS cor0
----
4136
48
8712
106
880
16

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1614
SELECT * FROM tab1 AS cor0 WHERE col2 + 49 / 43 / + - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1614
SELECT * FROM tab1 AS cor0 WHERE col2 + 49 / 43 / + - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 36 + 16 AS col2 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT col2 + - col1 * - - col2 FROM tab1 cor0
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1617
SELECT ALL + + COUNT( * ) DIV - MAX( ALL - col2 ) FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT + - 43 * + 16 + col1 AS col2 FROM tab0 AS cor0
----
-607
-667
-687

query I rowsort
SELECT + 84 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
84
84
84

query I rowsort
SELECT ALL col1 + - + 95 FROM tab2
----
-18
-28
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT ALL col2 * + + 91 + - col2 DIV col0 - col1 FROM tab0
----
4193
889
9007

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL col2 * + + 91 + - col2 / col0 - col1 FROM tab0
----
4193
889
9007

query I rowsort
SELECT DISTINCT col1 + + 51 FROM tab1
----
56
65
98

query I rowsort
SELECT ALL col2 + 54 - + - col0 - - ( - + col2 ) + + col1 + + - col0 FROM tab0
----
135
55
75

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

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

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

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

query I rowsort
SELECT DISTINCT + 70 - + 78 AS col0 FROM tab0 AS cor0
----
-8

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

query I rowsort
SELECT + + col0 - - 34 AS col1 FROM tab2 AS cor0
----
109
80
98

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1630
SELECT + SUM( CAST( NULL AS SIGNED ) ) * 56 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1630
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) * 56 col2 FROM tab0
----
NULL

query I rowsort
SELECT col2 * col0 + - 28 AS col1 FROM tab1
----
4868
4987
6160

query I rowsort
SELECT DISTINCT 28 FROM tab1 WHERE NULL IS NULL
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT - COUNT( * ) * + MIN( DISTINCT col0 * 18 ) FROM tab1
----
-2754

skipif mysql # not compatible
query I rowsort label-1633
SELECT - COUNT ( * ) * + MIN ( DISTINCT col0 * 18 ) FROM tab1
----
-2754

query I rowsort
SELECT - ( - 2 ) * - 16 AS col1 FROM tab2
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL MIN( + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL MIN ( + col2 ) AS col1 FROM tab0
----
10

query I rowsort
SELECT 57 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( col1 + + col0 ) NOT BETWEEN col1 * 86 + col0 AND NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT ALL MIN( DISTINCT col1 ) * MIN( DISTINCT col2 ) FROM tab2
----
1173

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL MIN ( DISTINCT col1 ) * MIN ( DISTINCT col2 ) FROM tab2
----
1173

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1639
SELECT CAST( NULL AS DECIMAL ) - - 53 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT CAST ( NULL AS REAL ) - - 53 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1640
SELECT ( CAST( NULL AS DECIMAL ) ) + COUNT( * ) * COUNT( * ) AS col2 FROM tab2 WHERE + col2 / + col2 >= 89 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1640
SELECT ( CAST ( NULL AS REAL ) ) + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 WHERE + col2 / + col2 >= 89 * col2
----
NULL

query I rowsort
SELECT + col1 * - col0 + + 47 AS col1 FROM tab2
----
-2299
-4881
-4978

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT DISTINCT + COUNT( ALL - col0 ) FROM tab0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT + COUNT ( ALL - col0 ) FROM tab0 WHERE NOT col2 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col0 * 60 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT BETWEEN + col0 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT - COUNT ( * ) - + COUNT ( DISTINCT col1 - col1 ) FROM tab2
----
-4

query I rowsort
SELECT - 66 + + col1 FROM tab0
----
-45
-65
15

query I rowsort
SELECT + col1 * - 9 - + col1 FROM tab2
----
-510
-670
-770

query I rowsort
SELECT DISTINCT + 16 + + col0 FROM tab2
----
62
80
91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1651
SELECT - COUNT( * ) DIV COUNT( * ) FROM tab1 WHERE NOT + col1 * col2 + + col2 * col2 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-1651
SELECT - COUNT ( * ) / COUNT ( * ) FROM tab1 WHERE NOT + col1 * col2 + + col2 * col2 IS NULL
----
-1

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE ( 98 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ( + COUNT( * ) ) + - MIN( ALL 14 + + col0 ) * + 27 FROM tab2
----
-1617

skipif mysql # not compatible
query I rowsort label-1653
SELECT ( + COUNT ( * ) ) + - MIN ( ALL 14 + + col0 ) * + 27 FROM tab2
----
-1617

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT IN ( 26 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 29 NOT IN ( + col0 )
----

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT 17 * + col2 IS NULL
----
10
47
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1659
SELECT ALL - CAST( + 20 AS SIGNED ) + + col0 * - col0 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN col1 / - col0 - - col0 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL - CAST ( + 20 AS INTEGER ) + + col0 * - col0 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN col1 / - col0 - - col0 AND ( NULL )
----

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1664
SELECT - CAST( - 96 AS SIGNED ) * col1 + + col0 AS col0 FROM tab0
----
193
2103
7791

skipif mysql # not compatible
query I rowsort label-1664
SELECT - CAST ( - 96 AS INTEGER ) * col1 + + col0 AS col0 FROM tab0
----
193
2103
7791

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE - col2 > 51 / + col1
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT 16 = NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + col0 < ( 17 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT ( MAX( ALL - 4 ) ) * + COUNT( * ) col2 FROM tab1 cor0
----
-12

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

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

query I rowsort
SELECT - col1 * + 66 AS col2 FROM tab1 AS cor0
----
-3102
-330
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT 92 * - MIN( - col1 ) AS col2 FROM tab2 cor0
----
7084

skipif mysql # not compatible
query I rowsort label-1674
SELECT 92 * - MIN ( - col1 ) AS col2 FROM tab2 cor0
----
7084

query I rowsort
SELECT - 98 * - 49 AS col2 FROM tab0 AS cor0
----
4802
4802
4802

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT DISTINCT - col2 DIV - 16 + + 36 col2 FROM tab1
----
39
40
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1676
SELECT DISTINCT - col2 / - 16 + + 36 col2 FROM tab1
----
39
40
42

query I rowsort
SELECT ALL - 57 + col2 AS col0 FROM tab0
----
-10
-47
42

query I rowsort
SELECT 6 - - 84 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND - col0 + - ( - col1 - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1679
SELECT - 80 * - COUNT( * ) AS col0 FROM tab2 WHERE NOT col2 IS NULL OR col0 NOT IN ( col2 + + CAST( 93 AS SIGNED ) )
----
240

skipif mysql # not compatible
query I rowsort label-1679
SELECT - 80 * - COUNT ( * ) AS col0 FROM tab2 WHERE NOT col2 IS NULL OR col0 NOT IN ( col2 + + CAST ( 93 AS INTEGER ) )
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 78 col2 FROM tab2 WHERE + col2 * + col0 IS NOT NULL
----
1794
3120
4524

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT ALL col1 DIV 91 + - col0 AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL col1 / 91 + - col0 AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL - col1 + + + col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT ALL + 7 * ( + col2 ) DIV - 80 + + 19 FROM tab2
----
14
16
17

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL + 7 * ( + col2 ) / - 80 + + 19 FROM tab2
----
14
16
17

query I rowsort
SELECT 9 - + 36 AS col2 FROM tab2 WHERE col0 * + 29 IS NOT NULL
----
-27
-27
-27

query I rowsort
SELECT - 25 + col0 AS col1 FROM tab2 WHERE + col2 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT - + MAX( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1687
SELECT - + MAX ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT + 38 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + ( col1 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE NOT ( 62 * col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( 62 * col2 ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT + 44 DIV col2 * 78 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT + 44 / col2 * 78 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 75 * col1 FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND + 99 * + 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 82 col1 FROM tab1
----
1148
3854
410

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT DISTINCT - COUNT( DISTINCT 31 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-1

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT - COUNT ( DISTINCT 31 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1695
SELECT ALL + 41 DIV - col2 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL + 41 / - col2 FROM tab0
----
-4
0
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 91 + 1 IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 col0, 30 * + + ( ( col0 ) ) AS col0 FROM tab0 AS cor0
----
1
2910
21
2610
81
450

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 82 * + 99 * 1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * - + col0 * 46 FROM tab2 AS cor0
----
117760
200100
48668

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

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

query I rowsort
SELECT DISTINCT 89 * + col1 + 81 FROM tab1 AS cor0
----
1327
4264
526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1704
SELECT ALL - COUNT( * ) DIV - 46 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL - COUNT ( * ) / - 46 AS col2 FROM tab1 AS cor0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 * + + col1 * - col0 col2 FROM tab0
----
-4074
-51030
-76734

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

query I rowsort
SELECT + col0 * - ( - - 31 ) AS col2 FROM tab1
----
-1581
-2635
-2821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1709
SELECT MIN( - 86 ) * COUNT( * ) + - 47 DIV + COUNT( * ) AS col2 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-1709
SELECT MIN ( - 86 ) * COUNT ( * ) + - 47 / + COUNT ( * ) AS col2 FROM tab0
----
-273

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

skipif mysql # not compatible
query I rowsort label-1710
SELECT - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 = col0
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 3 NOT IN ( + - 96 / 29 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 50 AS col2 FROM tab2 AS cor0
----
-50
-50
-50

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 74 IS NOT NULL )
----

query I rowsort
SELECT 59 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + + 99 * + col2 * col0 + col0
----

query I rowsort
SELECT 36 * - ( + col2 * - 66 ) + 82 FROM tab2 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT ALL + 35 DIV col2 - + col0 AS col0 FROM tab2 cor0
----
-45
-64
-75

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL + 35 / col2 - + col0 AS col0 FROM tab2 cor0
----
-45
-64
-75

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

query I rowsort
SELECT ALL + 63 + - col0 + + - 15 * + col1 AS col0 FROM tab0 AS cor0
----
-1167
-339
-49

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

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

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

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

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

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

query I rowsort
SELECT ( + col1 ) FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT DISTINCT + 23 DIV - + 7 - - + col1 AS col2 FROM tab2 cor0
----
48
64
74

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT + 23 / - + 7 - - + col1 AS col2 FROM tab2 cor0
----
48
64
74

query I rowsort
SELECT + + 30 + - col2 FROM tab0 AS cor0
----
-17
-69
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT - COUNT( * ) * - 54 * - + 17 FROM tab0 AS cor0
----
-2754

skipif mysql # not compatible
query I rowsort label-1731
SELECT - COUNT ( * ) * - 54 * - + 17 FROM tab0 AS cor0
----
-2754

query III rowsort
SELECT * FROM tab1 WHERE - col0 * 53 + 53 + - 82 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT - COUNT( * ) * - 59 col1 FROM tab0
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1733
SELECT - COUNT ( * ) * - 59 col1 FROM tab0
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + 89 ) col2 FROM tab0 WHERE NOT + - col2 + + 61 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1735
SELECT ALL 75 + - col2 - + - 75 * + 31 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL 75 + - col2 - + - 75 * + 31 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ALL MAX( + 92 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL MAX ( + 92 ) FROM tab2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1737
SELECT DISTINCT - 68 FROM tab0 WHERE CAST( - col2 AS SIGNED ) NOT BETWEEN + col1 AND NULL
----
-68

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT - 68 FROM tab0 WHERE CAST ( - col2 AS INTEGER ) NOT BETWEEN + col1 AND NULL
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-1738
SELECT - COUNT( * ) col2, COUNT( * ) * + - 41 FROM tab0
----
-3
-123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1738
SELECT - COUNT ( * ) col2, COUNT ( * ) * + - 41 FROM tab0
----
-3
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT DISTINCT - 34 * COUNT( * ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT - 34 * COUNT ( * ) FROM tab0
----
-102

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1742
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT IN ( - 58, - CAST( NULL AS SIGNED ), col1 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-1742
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT IN ( - 58, - CAST ( NULL AS INTEGER ), col1 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 18 <> - 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1744
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1744
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1745
SELECT - MAX( - col1 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col1 < col1 * - col2 + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT - MAX ( - col1 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col1 < col1 * - col2 + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1746
SELECT ALL 44 FROM tab1 AS cor0 WHERE col2 / - + 74 < CAST( CAST( col0 AS SIGNED ) AS SIGNED ) * - 17 * - ( col0 ) + 38
----
44
44
44

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL 44 FROM tab1 AS cor0 WHERE col2 / - + 74 < CAST ( CAST ( col0 AS INTEGER ) AS INTEGER ) * - 17 * - ( col0 ) + 38
----
44
44
44

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE ( ( + col1 + - col0 + + col0 ) IS NOT NULL )
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1748
SELECT DISTINCT - COUNT( * ) * + ( COUNT( * ) ) DIV 96 * - ( - MIN( + - col0 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT - COUNT ( * ) * + ( COUNT ( * ) ) / 96 * - ( - MIN ( + - col0 ) ) FROM tab0 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1750
SELECT * FROM tab0 WHERE NOT 29 NOT IN ( + + CAST( col2 AS SIGNED ) * - - ( - - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-1750
SELECT * FROM tab0 WHERE NOT 29 NOT IN ( + + CAST ( col2 AS INTEGER ) * - - ( - - col1 ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT - col1 DIV 78 - ( - col0 ) AS col0 FROM tab0 WHERE NOT 74 IS NULL
----
14
87
97

skipif mysql # not compatible
query I rowsort label-1752
SELECT - col1 / 78 - ( - col0 ) AS col0 FROM tab0 WHERE NOT 74 IS NULL
----
14
87
97

query I rowsort
SELECT DISTINCT col1 + + 44 AS col1 FROM tab0
----
125
45
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1754
SELECT ALL 84 AS col1, MAX( 25 ) FROM tab2
----
84
25

skipif mysql # not compatible
query II rowsort label-1754
SELECT ALL 84 AS col1, MAX ( 25 ) FROM tab2
----
84
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT ALL + 96 * + COUNT( * ) AS col2 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL + 96 * + COUNT ( * ) AS col2 FROM tab1
----
288

query I rowsort
SELECT ALL - 68 + + 45 + - + 33 AS col1 FROM tab2
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) * col0 * 22 col0 FROM tab0 WHERE NOT ( col2 + col2 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col1 * - 0 * - + 89 col2, - col2 + + + col1 + + col1 AS col0, - + col2 AS col1 FROM tab1
----
9 values hashing to 312c841bccf85abfede416f660bee796

query I rowsort
SELECT 16 FROM tab0 AS cor0 WHERE + 44 / 65 * col0 <> NULL AND - col2 = ( + + 73 )
----

query I rowsort
SELECT DISTINCT - 17 * + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-1450
-1594
-881

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT ALL - 10 DIV col1 * - col0 DIV - - col1 * col0 * + 65 * - - col2 * + 30 - 99 * + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-5100
-6700
-7700

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL - 10 / col1 * - col0 / - - col1 * col0 * + 65 * - - col2 * + 30 - 99 * + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-5100
-6700
-7700

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT ALL + MAX( DISTINCT - 70 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-70

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL + MAX ( DISTINCT - 70 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-70

query I rowsort
SELECT + 68 FROM tab1 cor0 WHERE NULL <> + col2 * - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT + MAX( ALL + 37 ) AS col1 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-1765
SELECT + MAX ( ALL + 37 ) AS col1 FROM tab1 AS cor0
----
37

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE NULL IN ( + 86, ( - + col2 ) * - 1 * col0 + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1767
SELECT - CAST( + MIN( + + col0 ) AS SIGNED ) - 88 + COUNT( col1 ) AS col1 FROM tab1 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-1767
SELECT - CAST ( + MIN ( + + col0 ) AS INTEGER ) - 88 + COUNT ( col1 ) AS col1 FROM tab1 AS cor0
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1768
SELECT ALL + COUNT( * ) DIV - 19 - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

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

query I rowsort
SELECT DISTINCT 60 - + col1 AS col1 FROM tab2 AS cor0
----
-17
-7
9

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

query I rowsort
SELECT ALL - 77 + - col0 + - - col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-114
-121
-157

query II rowsort
SELECT DISTINCT - col1, + col1 * - + col0 FROM tab0 WHERE NULL < + col0 / col0 / - + col0 - + col1 + - - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - ( - col0 ) / - 32 + + - col0
----

query I rowsort
SELECT + - 17 * - 77 AS col2 FROM tab0 AS cor0
----
1309
1309
1309

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT ALL - ( MIN( DISTINCT + - 16 ) ) * - 93 AS col1 FROM tab1 AS cor0 WHERE NOT 16 * - col0 + col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL - ( MIN ( DISTINCT + - 16 ) ) * - 93 AS col1 FROM tab1 AS cor0 WHERE NOT 16 * - col0 + col0 < NULL
----
NULL

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

query I rowsort
SELECT ALL + col2 * - 75 * + col2 AS col2 FROM tab0 AS cor0
----
-165675
-735075
-7500

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT SUM( col0 ) col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1781
SELECT DISTINCT SUM ( col0 ) col0 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1782
SELECT + SUM( col0 ) DIV - + 82 col2 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1782
SELECT + SUM ( col0 ) / - + 82 col2 FROM tab0 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 / + - col2 col2 FROM tab0 AS cor0 WHERE col1 IN ( 67, 9 )
----

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

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

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

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

query II rowsort
SELECT + 91, + 3 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
91
3
91
3
91
3

query I rowsort
SELECT DISTINCT + col0 + + + col2 + col2 - + + col1 - + 52 * + - col2 AS col0 FROM tab0
----
2472
5442
606

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT DISTINCT 17 * COUNT( * ) FROM tab1, tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT 17 * COUNT ( * ) FROM tab1, tab2 cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT DISTINCT 35 * - 16 * - MIN( DISTINCT + col2 ) AS col0 FROM tab2
----
12880

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT 35 * - 16 * - MIN ( DISTINCT + col2 ) AS col0 FROM tab2
----
12880

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT DISTINCT - COUNT( * ) + - MIN( col1 ) * + COUNT( * ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT - COUNT ( * ) + - MIN ( col1 ) * + COUNT ( * ) AS col0 FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1792
SELECT ALL 63 DIV col1 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL 63 / col1 FROM tab1
----
1
12
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT MAX( - col0 ) * - 43 * + - 76 AS col0 FROM tab1
----
-166668

skipif mysql # not compatible
query I rowsort label-1793
SELECT MAX ( - col0 ) * - 43 * + - 76 AS col0 FROM tab1
----
-166668

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

query I rowsort
SELECT ALL - 19 * - - col1 * 52 FROM tab0 cor0
----
-20748
-80028
-988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1796
SELECT ALL 2 DIV COUNT( * ) + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

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

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

query I rowsort
SELECT ( - + col0 ) + - col2 AS col1 FROM tab1
----
-144
-147
-159

query II rowsort
SELECT col1 * - col2 / + + col1 AS col2, col2 + + 3 AS col1 FROM tab1 WHERE + 2 + - 37 IN ( + - 80 )
----

query I rowsort
SELECT DISTINCT - + col1 - + col1 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT DISTINCT + + ( + col2 ) * + - ( + - 68 ) + - 43 AS col1 FROM tab2 AS cor0
----
1521
2677
3901

query II rowsort
SELECT ALL - + col1 AS col1, col2 - - 85 * - col0 FROM tab1 AS cor0
----
-14
-4239
-47
-7667
-5
-7166

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL - + SUM( + + col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - + SUM ( + + col1 ) FROM tab2 cor0
----
-195

query I rowsort
SELECT + col1 * - 54 FROM tab2 AS cor0
----
-2754
-3618
-4158

query I rowsort
SELECT + 7 * - + col1 FROM tab2
----
-357
-469
-539

onlyif mysql # DIV for integer division: 
query I rowsort label-1808
SELECT ALL col0 DIV - + 15 FROM tab0 AS cor0
----
-1
-5
-6

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL col0 / - + 15 FROM tab0 AS cor0
----
-1
-5
-6

query I rowsort
SELECT DISTINCT 28 * col2 AS col0 FROM tab2 AS cor0
----
1120
1624
644

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1814
SELECT 99 DIV + 64 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1814
SELECT 99 / + 64 AS col2 FROM tab1 AS cor0
----
1
1
1

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

query I rowsort
SELECT - 6 * - 75 AS col1 FROM tab2
----
450
450
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 17 col1, - col1 FROM tab1
----
17
-14
17
-47
17
-5

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

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

query III rowsort
SELECT * FROM tab2 WHERE - 88 = - col1 + col1
----

query II rowsort
SELECT col1 AS col0, - 37 FROM tab0
----
1
-37
21
-37
81
-37

query I rowsort
SELECT + + 56 FROM tab2 WHERE - col1 > + 47
----

query I rowsort
SELECT ALL + col0 + + + ( - col2 ) + + col1 + + 27 FROM tab2
----
101
111
128

query I rowsort
SELECT col1 * - + col2 + + col2 AS col0 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL 61 + - + SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
256

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL 61 + - + SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
256

query I rowsort
SELECT - 12 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT - col1 * col1 + 97 AS col2 FROM tab0 AS cor0
----
-344
-6464
96

query II rowsort
SELECT - 96 AS col0, + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * + + col0 col2 FROM tab1 cor0
----
4590
7650
8190

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

query I rowsort
SELECT DISTINCT + 98 AS col1 FROM tab0 WHERE 7 NOT BETWEEN ( NULL ) AND - col2
----
98

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + - 5 <= + - 65 + col2
----
5

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

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

query II rowsort
SELECT ALL + 61 AS col2, 49 FROM tab2 cor0
----
61
49
61
49
61
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT + SUM( ALL 13 ) * + 37 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
4329

skipif mysql # not compatible
query I rowsort label-1834
SELECT + SUM ( ALL 13 ) * + 37 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
4329

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT DISTINCT + COUNT( + 30 ) * 91 AS col0 FROM tab1 WHERE + col1 + + 74 BETWEEN col2 AND ( col0 + col2 )
----
182

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT + COUNT ( + 30 ) * 91 AS col0 FROM tab1 WHERE + col1 + + 74 BETWEEN col2 AND ( col0 + col2 )
----
182

query II rowsort
SELECT - col1 * ( col1 ) * - + col2, + col1 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - ( col0 ) AND - col2 * - col1 + + col0 - 61
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT COUNT( DISTINCT + 65 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1838
SELECT COUNT ( DISTINCT + 65 ) AS col2 FROM tab0
----
1

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL < col0 * + - col2 / - - col2 + + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT ALL + ( + ( + MIN( - 4 ) ) ) FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL + ( + ( + MIN ( - 4 ) ) ) FROM tab1 cor0
----
-4

query I rowsort
SELECT col1 + - + ( - 85 ) * + col1 AS col2 FROM tab2
----
4386
5762
6622

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT - MAX( + col2 ) * 69 FROM tab2
----
-4002

skipif mysql # not compatible
query I rowsort label-1847
SELECT - MAX ( + col2 ) * 69 FROM tab2
----
-4002

query I rowsort
SELECT ALL - 57 + ( 41 ) AS col0 FROM tab1
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT DISTINCT MAX( ALL + 12 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT MAX ( ALL + 12 ) FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1850
SELECT - 89 AS col1, - COUNT( * ) FROM tab0
----
-89
-3

skipif mysql # not compatible
query II rowsort label-1850
SELECT - 89 AS col1, - COUNT ( * ) FROM tab0
----
-89
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1852
SELECT ALL - COUNT( ALL - - col0 ) DIV COUNT( * ) + - MIN( - - col0 ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL - COUNT ( ALL - - col0 ) / COUNT ( * ) + - MIN ( - - col0 ) FROM tab1
----
-52

query I rowsort
SELECT + 55 + + 73 * + 60 - col1 AS col2 FROM tab1
----
4388
4421
4430

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT - 74 * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
666

skipif mysql # not compatible
query I rowsort label-1854
SELECT - 74 * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT + MAX( DISTINCT - 77 ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1855
SELECT + MAX ( DISTINCT - 77 ) FROM tab1 AS cor0
----
-77

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

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

query II rowsort
SELECT DISTINCT + 47 AS col2, - ( - 80 ) FROM tab1 cor0
----
47
80

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

skipif mysql # not compatible
query I rowsort label-1858
SELECT CAST ( NULL AS INTEGER ) * + AVG ( ALL + 20 ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 53 * ( - 2 ) FROM tab2
----
-106
-106
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-1860
SELECT DISTINCT - ( col2 ) DIV + 9 FROM tab0
----
-1
-11
-5

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT - ( col2 ) / + 9 FROM tab0
----
-1
-11
-5

query I rowsort
SELECT - 54 * - ( - - col2 ) + + col0 FROM tab0 WHERE NOT NULL IN ( 9, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT MIN( ALL - + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1862
SELECT MIN ( ALL - + col0 ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT COUNT( * ) * - 58 col0 FROM tab0
----
-174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1863
SELECT COUNT ( * ) * - 58 col0 FROM tab0
----
-174

query I rowsort
SELECT ( + + 9 ) FROM tab1
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT DISTINCT - COUNT( ALL - - col2 ) FROM tab0 WHERE NOT col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT - COUNT ( ALL - - col2 ) FROM tab0 WHERE NOT col1 <> NULL
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT DISTINCT 14 DIV 15 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT 14 / 15 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT - - col2 * + 11 + col2 AS col0 FROM tab2 AS cor0 WHERE NULL = 23
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + col1 + col0 col1 FROM tab2
----
-1127
-3016
-3811

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

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col0 / + - col0 - - - col1 * col0 / col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1874
SELECT - - 81 * + 56 FROM tab2 WHERE ( ( - col0 + + col1 ) IN ( + col0, - col1, + 48, - - col1 * col0 * + 73 + + - CAST( col2 AS DECIMAL ) + + 16 ) )
----

skipif mysql # not compatible
query I rowsort label-1874
SELECT - - 81 * + 56 FROM tab2 WHERE ( ( - col0 + + col1 ) IN ( + col0, - col1, + 48, - - col1 * col0 * + 73 + + - CAST ( col2 AS REAL ) + + 16 ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT ALL - 19 DIV + + 17 - + - col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL - 19 / + + 17 - + - col0 FROM tab2 AS cor0
----
45
63
74

query I rowsort
SELECT - 29 + - col2 + + col2 FROM tab2 cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-1878
SELECT DISTINCT SUM( ALL + + 4 ), ( - + 83 ) * + + 26 AS col0 FROM tab2 AS cor0
----
12
-2158

skipif mysql # not compatible
query II rowsort label-1878
SELECT DISTINCT SUM ( ALL + + 4 ), ( - + 83 ) * + + 26 AS col0 FROM tab2 AS cor0
----
12
-2158

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT ALL + 69 * COUNT( * ) AS col2 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL + 69 * COUNT ( * ) AS col2 FROM tab1
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-1880
SELECT DISTINCT col2 + - ( - 31 ) DIV - col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT col2 + - ( - 31 ) / - col1 FROM tab2
----
23
40
58

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 59 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT ALL + MAX( DISTINCT - + 47 ) AS col1 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL + MAX ( DISTINCT - + 47 ) AS col1 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT + + col2 * + + col0 * 73 FROM tab0 AS cor0
----
51465
63510
701019

query II rowsort
SELECT + + col0, - 3 AS col2 FROM tab2 AS cor0
----
46
-3
64
-3
75
-3

query II rowsort
SELECT - col2, col0 * - col1 AS col2 FROM tab1 AS cor0
----
-59
-425
-68
-4277
-96
-714

query II rowsort
SELECT ALL + + col2 * - 38 * + + col2, + col2 FROM tab1 AS cor0
----
-132278
59
-175712
68
-350208
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT DISTINCT - - COUNT( * ) * + 68 AS col0 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT - - COUNT ( * ) * + 68 AS col0 FROM tab2 AS cor0
----
204

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT SUM( col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-1891
SELECT SUM ( col0 ) FROM tab1 cor0
----
227

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

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

query I rowsort
SELECT - 44 * + 76 FROM tab1
----
-3344
-3344
-3344

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

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

query I rowsort
SELECT DISTINCT - ( col0 ) * + 5 + + 67 FROM tab1
----
-188
-358
-388

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 > + col1
----
15
81
47
87
21
10

query II rowsort
SELECT col0 AS col2, - 82 + + 26 FROM tab2 AS cor0
----
46
-56
64
-56
75
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT DISTINCT - - 52 * - 28 - + - COUNT( * ) FROM tab2 AS cor0
----
-1453

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT - - 52 * - 28 - + - COUNT ( * ) FROM tab2 AS cor0
----
-1453

query I rowsort
SELECT DISTINCT + 96 AS col0 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND ( + 17 )
----
96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT DISTINCT col1 DIV ( - col1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT col1 / ( - col1 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL + MIN( ALL + - 13 ) + + 58 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL + MIN ( ALL + - 13 ) + + 58 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ALL COUNT( * ) + - 48 AS col0 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL COUNT ( * ) + - 48 AS col0 FROM tab1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-1906
SELECT DISTINCT 96 col1, + COUNT( * ) FROM tab1, tab1 AS cor0
----
96
9

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

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

query I rowsort
SELECT - - col1 + + 46 AS col2 FROM tab0 WHERE NULL <= + + 88
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 21 < - 20
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1910
SELECT COUNT( * ) DIV 15 * + SUM( DISTINCT + col0 ) + - 71 AS col2 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-1910
SELECT COUNT ( * ) / 15 * + SUM ( DISTINCT + col0 ) + - 71 AS col2 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT 46 + 80 FROM tab2 AS cor0
----
126
126
126

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE 55 < + - col0
----

query I rowsort
SELECT ALL - 84 * - + col0 + - 3 FROM tab1 AS cor0
----
4281
7137
7641

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

query I rowsort
SELECT ALL 55 * - col1 AS col0 FROM tab2 AS cor0
----
-2805
-3685
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT ALL MAX( - + col2 ) * + 19 col0 FROM tab0 AS cor0
----
-190

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1916
SELECT ALL MAX ( - + col2 ) * + 19 col0 FROM tab0 AS cor0
----
-190

query I rowsort
SELECT DISTINCT + col0 * - - col0 / - 48 FROM tab1 AS cor0 WHERE NOT - col0 / ( col0 ) NOT IN ( col1 + - - 1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 64 - 28 * - 99 * - + 31 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT COUNT( * ) FROM tab0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1919
SELECT COUNT ( * ) FROM tab0 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT + MAX( - 23 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1920
SELECT + MAX ( - 23 ) FROM tab2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1921
SELECT - COUNT( * ) AS col0, - 59 * - 81 DIV - + COUNT( * ) AS col1, - - COUNT( * ) col1 FROM tab1
----
-3
-1593
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1921
SELECT - COUNT ( * ) AS col0, - 59 * - 81 / - + COUNT ( * ) AS col1, - - COUNT ( * ) col1 FROM tab1
----
-3
-1593
3

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

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

query I rowsort
SELECT DISTINCT 50 + - + col0 FROM tab1
----
-1
-35
-41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 44 + 15 + + 84 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) > + 94 * + col1
----

query I rowsort
SELECT ALL + col1 * + col0 - - 71 FROM tab1 AS cor0
----
4348
496
785

query I rowsort
SELECT ALL 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1928
SELECT DISTINCT + + col0 * + + 88 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) + + 52 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT + + col0 * + + 88 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + + 52 IS NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT NULL < - 51
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT ALL 67 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
3149
6633
670

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL 67 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
3149
6633
670

query II rowsort
SELECT ALL - col2 * 58, + col1 FROM tab0 AS cor0
----
-2726
81
-5742
1
-580
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1932
SELECT CAST( SUM( ALL - col0 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT CAST ( SUM ( ALL - col0 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT 9 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
106
24
96

query I rowsort
SELECT + ( col1 ) * + 78 FROM tab2
----
3978
5226
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT ALL + COUNT( DISTINCT 1 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL + COUNT ( DISTINCT 1 ) AS col2 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 * + - 35 col0 FROM tab1
----
10325
111860
47040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 2 * - - col0 * - + col0 col2, - col2 * - + col2 * col2 AS col1 FROM tab0
----
-15138
1000
-18818
970299
-450
103823

query I rowsort
SELECT DISTINCT 45 * - col1 + - - ( + col1 ) - ( + col2 ) + + 15 * + 87 FROM tab1
----
-831
1026
593

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1939
SELECT DISTINCT + + 86 DIV COUNT( * ) + 82 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
274

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT + + 86 / COUNT ( * ) + 82 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
274

query I rowsort
SELECT col2 + + + col2 - - 96 FROM tab2 AS cor0
----
142
176
212

query I rowsort
SELECT - 62 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # aggregate syntax: 
query II rowsort label-1942
SELECT ALL COUNT( * ) AS col0, COUNT( * ) + - 4 - - - COUNT( * ) AS col2 FROM tab1 WHERE col2 IS NULL
----
0
-4

skipif mysql # not compatible
query II rowsort label-1942
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) + - 4 - - - COUNT ( * ) AS col2 FROM tab1 WHERE col2 IS NULL
----
0
-4

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( - col2 ) col2 FROM tab0 AS cor0
----
-210
-3807
-99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - 50 * + - col2 col1 FROM tab0 AS cor0
----
-2303
-4851
-490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 - 6 * + - col2 + + col0, - col2 col0 FROM tab2 AS cor0
----
161
-23
264
-40
365
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT 74 DIV - + col0 - - col2 AS col0 FROM tab1 AS cor0
----
59
68
95

skipif mysql # not compatible
query I rowsort label-1949
SELECT 74 / - + col0 - - col2 AS col0 FROM tab1 AS cor0
----
59
68
95

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 41 <> + - 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + + ( col0 ) + col2 + + 23 + + 52 <> 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - col1 col2 FROM tab1
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - - col1 col2 FROM tab2
----
-117
-125
-74

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1957
SELECT DISTINCT + 64 DIV + col0 col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1957
SELECT DISTINCT + 64 / + col0 col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT col1 * 9 * + 12 AS col0 FROM tab0 AS cor0
----
108
2268
8748

onlyif mysql # aggregate syntax: 
query II rowsort label-1959
SELECT 25 AS col1, + MAX( + col2 ) FROM tab1 AS cor0
----
25
96

skipif mysql # not compatible
query II rowsort label-1959
SELECT 25 AS col1, + MAX ( + col2 ) FROM tab1 AS cor0
----
25
96

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

query II rowsort
SELECT DISTINCT - - col0, col2 FROM tab0 cor0 WHERE + col1 IS NOT NULL
----
15
47
87
10
97
99

query I rowsort
SELECT ALL - - col0 + + + 3 FROM tab1 AS cor0
----
54
88
94

query II rowsort
SELECT ALL + ( col1 ), - 96 FROM tab0
----
1
-96
21
-96
81
-96

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1965
SELECT MIN( col2 ) AS col0, + MIN( - ( 52 ) ) AS col0, 48 AS col0 FROM tab0 cor0
----
10
-52
48

skipif mysql # not compatible
query III rowsort label-1965
SELECT MIN ( col2 ) AS col0, + MIN ( - ( 52 ) ) AS col0, 48 AS col0 FROM tab0 cor0
----
10
-52
48

query I rowsort
SELECT ALL + 20 + + col2 FROM tab1 AS cor0
----
116
79
88

query I rowsort
SELECT col2 + - + col2 + + col1 FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT ALL - - MIN( ALL - + col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL - - MIN ( ALL - + col0 ) FROM tab2 cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 IN ( + 72 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - col0 - - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN 17 AND NULL
----

query I rowsort
SELECT col1 - - + col0 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1973
SELECT CAST( NULL AS DECIMAL ) - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT CAST ( NULL AS REAL ) - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + 87 + + col0 FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + - COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-1975
SELECT + - COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND col1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - 71 IS NOT NULL
----

query II rowsort
SELECT + 23, col1 FROM tab1
----
23
14
23
47
23
5

onlyif mysql # DIV for integer division: 
query II rowsort label-1978
SELECT col0, col1 DIV - 89 AS col1 FROM tab2 cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-1978
SELECT col0, col1 / - 89 AS col1 FROM tab2 cor0
----
46
0
64
0
75
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT - col0 AS col2, 99 FROM tab1 AS cor0
----
-51
99
-85
99
-91
99

query II rowsort
SELECT DISTINCT - + col1, + 34 FROM tab2 AS cor0 WHERE col1 = + 31 * - 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT COUNT( * ) * + 9 AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-1982
SELECT COUNT ( * ) * + 9 AS col0 FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT COUNT( DISTINCT - + 52 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1983
SELECT COUNT ( DISTINCT - + 52 ) AS col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 2 col1 FROM tab1
----
12
3
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT 59 * COUNT( * ) + 6 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT 59 * COUNT ( * ) + 6 FROM tab0
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-1986
SELECT - + col2 + + 75 * col1 + + 12 DIV col0 FROM tab0 cor0
----
-24
1565
6028

skipif mysql # not compatible
query I rowsort label-1986
SELECT - + col2 + + 75 * col1 + + 12 / col0 FROM tab0 cor0
----
-24
1565
6028

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT + COUNT( * ) FROM tab1 WHERE + col2 * - col2 + + 16 + - 75 BETWEEN NULL AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-1987
SELECT + COUNT ( * ) FROM tab1 WHERE + col2 * - col2 + + 16 + - 75 BETWEEN NULL AND - col0
----
0

query I rowsort
SELECT ALL col1 - - - 86 + 36 AS col1 FROM tab2 AS cor0
----
1
17
27

query II rowsort
SELECT ALL - + col2 - + col2, - col2 AS col0 FROM tab2 AS cor0
----
-116
-58
-46
-23
-80
-40

query I rowsort
SELECT ALL + - 50 + - 64 FROM tab1 AS cor0 WHERE col0 < + 37
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT + col2 AS col0 FROM tab2 WHERE NULL NOT IN ( col2, CAST( NULL AS SIGNED ), - col1 / + col1 )
----

skipif mysql # not compatible
query I rowsort label-1992
SELECT + col2 AS col0 FROM tab2 WHERE NULL NOT IN ( col2, CAST ( NULL AS INTEGER ), - col1 / + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1993
SELECT 5 DIV - - col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1993
SELECT 5 / - - col1 FROM tab1
----
0
0
1

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + col2 * 23 + + - col2 + + - col0 IS NOT NULL
----

query II rowsort
SELECT ALL - 87, 9 AS col1 FROM tab1 WHERE NOT NULL >= - col1 / + 83 * + ( col1 ) + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * - + col1 + - col2 * col2 * + + col1 + col0 + + + col1 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-119363
-222030
-24434

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL - MIN( + + 27 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL - MIN ( + + 27 ) FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT - MAX( + - col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1999
SELECT - MAX ( + - col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT - SUM( DISTINCT + col2 ) col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2000
SELECT - SUM ( DISTINCT + col2 ) col2 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2001
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 53 * 68 >= - - ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2001
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 53 * 68 >= - - ( + CAST ( NULL AS INTEGER ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col2 FROM tab2 AS cor0
----
4
4
4

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * + 79, + col0 + - + 94 * + + col1 col0 FROM tab0
----
1659
-1887
6399
-7599
79
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT DISTINCT - + SUM( DISTINCT 51 ) + - - 42 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT - + SUM ( DISTINCT 51 ) + - - 42 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT col2 * + col1 * - - col1 AS col0 FROM tab1
----
1475
150212
18816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT col2 / + + ( - ( - CAST( NULL AS SIGNED ) ) ) * col0 + - 61 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT col2 / + + ( - ( - CAST ( NULL AS INTEGER ) ) ) * col0 + - 61 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2008
SELECT 17 DIV + col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2008
SELECT 17 / + col0 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT - ( + SUM( + col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2010
SELECT - ( + SUM ( + col2 ) ) FROM tab0 AS cor0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-2011
SELECT col2 DIV - col0 * - col1 DIV + ( + + ( + col1 ) ) col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2011
SELECT col2 / - col0 * - col1 / + ( + + ( + col1 ) ) col2 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT ALL ( - 31 ) * - ( col2 ) AS col0 FROM tab1 cor0
----
1829
2108
2976

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 / + col2 / - + 53 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT ALL + COUNT( + 34 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL + COUNT ( + 34 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + - col1 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 * + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * + - col2 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT COUNT( + col2 ) + - 70 AS col0 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-2017
SELECT COUNT ( + col2 ) + - 70 AS col0 FROM tab0 AS cor0
----
-67

query I rowsort
SELECT ALL + 1 - - - col2 + + ( - + col1 ) / - 67 FROM tab1 AS cor0 WHERE 89 + + 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL - + 9 * + - COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL - + 9 * + - COUNT ( * ) FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2020
SELECT ALL - 7 * + MIN( + col2 ) + - 74, + COUNT( DISTINCT - + 73 ) AS col0 FROM tab2 AS cor0
----
-235
1

skipif mysql # not compatible
query II rowsort label-2020
SELECT ALL - 7 * + MIN ( + col2 ) + - 74, + COUNT ( DISTINCT - + 73 ) AS col0 FROM tab2 AS cor0
----
-235
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN 94 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT DISTINCT - col1 DIV col1 * - + col0 AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT - col1 / col1 * - + col0 AS col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2023
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) * + - col2 NOT BETWEEN col0 AND + col2 - + 15 * - - 19
----

skipif mysql # not compatible
query III rowsort label-2023
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * + - col2 NOT BETWEEN col0 AND + col2 - + 15 * - - 19
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 IN ( - 85 + - col2, 60, + 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT DISTINCT + + COUNT( + 84 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT + + COUNT ( + 84 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + + col2 * - 83 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= col1 * + col1
----

query II rowsort
SELECT ALL - - ( 39 ) AS col0, col2 + col1 * - - 76 FROM tab0 AS cor0
----
39
1606
39
175
39
6203

query I rowsort
SELECT DISTINCT + 58 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
58

query I rowsort
SELECT - col1 + 12 + - col2 * - col1 * + 47 FROM tab2
----
144695
182587
55092

query I rowsort
SELECT col2 + col1 + - 82 FROM tab1 AS cor0
----
-18
28
33

query I rowsort
SELECT DISTINCT - - col0 - col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2032
SELECT ALL + AVG ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL + AVG ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + 43 * + 57 FROM tab0
----
2451
2451
2451

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 91 * 45 + + col0 IS NOT NULL
----

query I rowsort
SELECT col1 * + col1 * + 8 * + 21 AS col1 FROM tab1
----
32928
371112
4200

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2036
SELECT * FROM tab0 WHERE NOT CAST( - 30 AS SIGNED ) >= - 7 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2036
SELECT * FROM tab0 WHERE NOT CAST ( - 30 AS INTEGER ) >= - 7 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - 24 ) * - + 86 FROM tab2 AS cor0
----
2064

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2038
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST( - - ( 58 ) AS SIGNED ) ) + - 60 BETWEEN - col2 AND 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2038
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST ( - - ( 58 ) AS INTEGER ) ) + - 60 BETWEEN - col2 AND 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 52 >= NULL
----

query I rowsort
SELECT ( + 21 ) FROM tab1 AS cor0
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT ALL col2 DIV col1 + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL col2 / col1 + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT - 76, + col2 FROM tab2 AS cor0 WHERE NOT + 43 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2044
SELECT DISTINCT + col0 DIV - 63 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT + col0 / - 63 FROM tab1 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2045
SELECT 6 DIV 64 * - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2045
SELECT 6 / 64 * - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - col0 * + col0 AS col0 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2047
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * col2 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2047
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * col2 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT MIN( ALL col2 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT MIN ( ALL col2 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT ALL + + COUNT( * ) * - + 30 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL + + COUNT ( * ) * - + 30 FROM tab1 AS cor0
----
-90

query II rowsort
SELECT DISTINCT - - col2, + 23 * + 55 AS col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
23
1265
40
1265
58
1265

onlyif mysql # aggregate syntax: 
query II rowsort label-2051
SELECT + + MAX( + col2 ) * + 40, 38 * - COUNT( * ) * + 0 col1 FROM tab1 AS cor0
----
3840
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2051
SELECT + + MAX ( + col2 ) * + 40, 38 * - COUNT ( * ) * + 0 col1 FROM tab1 AS cor0
----
3840
0

query I rowsort
SELECT + 26 * - 94 * - 64 FROM tab2 AS cor0
----
156416
156416
156416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col2 AS col0 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT DISTINCT + MIN( ALL - + 41 ) FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT + MIN ( ALL - + 41 ) FROM tab2
----
-41

query I rowsort
SELECT - col2 + col0 - col2 + + col2 * 72 FROM tab0
----
3305
7027
787

query II rowsort
SELECT ALL col1 AS col1, - col1 * col0 FROM tab1
----
14
-714
47
-4277
5
-425

query I rowsort
SELECT col0 * - 73 * + + col2 + - col1 AS col0 FROM tab2
----
-186957
-317617
-77285

query I rowsort
SELECT ALL + col1 + + + 40 FROM tab0
----
121
41
61

query I rowsort
SELECT - 82 + - - col0 AS col2 FROM tab0
----
-67
15
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT - COUNT( * ) + MIN( + + 31 ) AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-2060
SELECT - COUNT ( * ) + MIN ( + + 31 ) AS col1 FROM tab1
----
28

query I rowsort
SELECT DISTINCT - col2 + - + 67 FROM tab1
----
-126
-135
-163

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2063
SELECT - - ( + col0 ) + + CAST( CAST( NULL AS SIGNED ) 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-2063
SELECT - - ( + col0 ) + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT ALL - CAST( - - ( + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL - CAST ( - - ( + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + col1 * - col1 - col2 AS col2 FROM tab2 AS cor0
----
-2624
-4547
-5969

query I rowsort
SELECT 35 * 82 + - + col1 FROM tab0 AS cor0
----
2789
2849
2869

query I rowsort
SELECT + 86 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2068
SELECT DISTINCT 44 DIV 69 AS col1, 49 * - col2 AS col0 FROM tab1 AS cor0
----
0
-2891
0
-3332
0
-4704

skipif mysql # not compatible
query II rowsort label-2068
SELECT DISTINCT 44 / 69 AS col1, 49 * - col2 AS col0 FROM tab1 AS cor0
----
0
-2891
0
-3332
0
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT - - COUNT( ALL - + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2069
SELECT - - COUNT ( ALL - + col2 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND - + col1
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 59 * + - 46 / + 94 + - ( - col0 ) + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 1 col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - 97 - - COUNT( * ) FROM tab0, tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2073
SELECT - 97 - - COUNT ( * ) FROM tab0, tab1 AS cor0
----
-88

query II rowsort
SELECT DISTINCT col1, - 51 AS col0 FROM tab1
----
14
-51
47
-51
5
-51

query II rowsort
SELECT DISTINCT + col1 AS col1, - 71 * col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
-6816
47
-4828
5
-4189

onlyif mysql # aggregate syntax: 
query II rowsort label-2076
SELECT - - COUNT( * ) AS col0, ( + + 79 ) + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
76

skipif mysql # not compatible
query II rowsort label-2076
SELECT - - COUNT ( * ) AS col0, ( + + 79 ) + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT - col2 + col0 DIV col2 AS col0 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-2077
SELECT - col2 + col0 / col2 AS col0 FROM tab1
----
-58
-67
-96

query I rowsort
SELECT ALL - col1 + 86 * col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT + 40 * col0 AS col0 FROM tab0
----
3480
3880
600

query I rowsort
SELECT ALL col2 + - col2 FROM tab0 WHERE NOT - 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT COUNT( * ) - - 96 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2081
SELECT COUNT ( * ) - - 96 FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN col0 / + 40 + col1 AND 89
----

query I rowsort
SELECT col1 * + 4 FROM tab2
----
204
268
308

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2084
SELECT ALL + col0 * + CAST( NULL AS DECIMAL ) - 48 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL + col0 * + CAST ( NULL AS REAL ) - 48 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 15 AS col1 FROM tab0
----
-1485
-150
-705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT ALL CAST( - col0 AS SIGNED ) * 38 + col0 AS col0 FROM tab0
----
-3219
-3589
-555

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL CAST ( - col0 AS INTEGER ) * 38 + col0 AS col0 FROM tab0
----
-3219
-3589
-555

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + col1 * - ( 60 ) IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 48 FROM tab2 WHERE NULL NOT IN ( col0 + + col1 )
----

query I rowsort
SELECT - col2 * 41 FROM tab1
----
-2419
-2788
-3936

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2090
SELECT + col0 * CAST( col1 DIV + col2 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2090
SELECT + col0 * CAST ( col1 / + col2 AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL - COUNT( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL - COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT ALL col0 + - 25 FROM tab0
----
-10
62
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2093
SELECT + col0 - + 8 DIV col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2093
SELECT + col0 - + 8 / col0 AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT - COUNT( * ) * + 81 col1 FROM tab1
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2094
SELECT DISTINCT - COUNT ( * ) * + 81 col1 FROM tab1
----
-243

query I rowsort
SELECT ALL 32 * 23 FROM tab1
----
736
736
736

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ALL - MIN( ALL 18 ) * MAX( DISTINCT + col0 ) AS col2 FROM tab1
----
-1638

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL - MIN ( ALL 18 ) * MAX ( DISTINCT + col0 ) AS col2 FROM tab1
----
-1638

query I rowsort
SELECT ALL - 17 * - col0 FROM tab0
----
1479
1649
255

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 <> col2 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2099
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2099
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - 53 NOT BETWEEN ( 72 * 17 ) AND + col1
----
3

skipif mysql # not compatible
query I rowsort label-2100
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - 53 NOT BETWEEN ( 72 * 17 ) AND + col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT 9 - - COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2101
SELECT 9 - - COUNT ( * ) FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL - ( COUNT( 22 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL - ( COUNT ( 22 ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT COUNT( * ) * - 53 + - 12 * - 78 FROM tab0 AS cor0
----
777

skipif mysql # not compatible
query I rowsort label-2103
SELECT COUNT ( * ) * - 53 + - 12 * - 78 FROM tab0 AS cor0
----
777

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT - COUNT( * ) * 57 AS col2 FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT - COUNT ( * ) * 57 AS col2 FROM tab0
----
-171

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab1 WHERE NOT NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - COUNT( * ) + 84 AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2106
SELECT - COUNT ( * ) + 84 AS col2 FROM tab0
----
81

query III rowsort
SELECT * FROM tab2 WHERE NOT - 17 NOT BETWEEN ( 56 ) AND 15
----

query I rowsort
SELECT - AVG ( - col2 ) AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN - col1 AND col1 + ( 30 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2109
SELECT DISTINCT - 56 DIV - ( COUNT( * ) ) AS col1 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT - 56 / - ( COUNT ( * ) ) AS col1 FROM tab0 cor0
----
18

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND + col1 * col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2111
SELECT ALL 13 DIV - COUNT( * ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL 13 / - COUNT ( * ) FROM tab2 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT DISTINCT + + SUM( 29 ) AS col1 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT + + SUM ( 29 ) AS col1 FROM tab0 AS cor0
----
87

query I rowsort
SELECT col2 * - + 18 AS col0 FROM tab2
----
-1044
-414
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2114
SELECT 41 DIV + MAX( + col2 ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2114
SELECT 41 / + MAX ( + col2 ) col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT DISTINCT ( + + col2 ) / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT ( + + col2 ) / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2116
SELECT DISTINCT * FROM tab0 WHERE NOT ( + CAST( col2 AS SIGNED ) ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2116
SELECT DISTINCT * FROM tab0 WHERE NOT ( + CAST ( col2 AS INTEGER ) ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT 67 * + COUNT( * ) FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-2117
SELECT 67 * + COUNT ( * ) FROM tab0
----
201

query I rowsort
SELECT col0 * - - col0 * col1 AS col0 FROM tab0
----
158949
18225
9409

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 + 59 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2122
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2122
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT + - 76 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query III rowsort
SELECT * FROM tab0 WHERE + - 61 * 14 NOT BETWEEN 61 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2125
SELECT * FROM tab0 WHERE ( + col0 * - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2125
SELECT * FROM tab0 WHERE ( + col0 * - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + col1 ) + col1 + - col0 FROM tab2 AS cor0
----
56
59
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2127
SELECT DISTINCT + 85, + COUNT( * ) AS col1 FROM tab1 cor0
----
85
3

skipif mysql # not compatible
query II rowsort label-2127
SELECT DISTINCT + 85, + COUNT ( * ) AS col1 FROM tab1 cor0
----
85
3

query I rowsort
SELECT ALL + ( - ( col0 ) ) FROM tab1 AS cor0 WHERE NULL <> ( 25 * - - 81 )
----

query I rowsort
SELECT ALL + + col2 - - col1 * - + col2 AS col1 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT - COUNT( ALL - - col0 ) * + 12 * + 3 - + COUNT( * ) FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2130
SELECT - COUNT ( ALL - - col0 ) * + 12 * + 3 - + COUNT ( * ) FROM tab0 AS cor0
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2131
SELECT + 65 - - ( - AVG ( col2 ) ) - CAST( NULL AS SIGNED ) / 38 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT + 65 - - ( - AVG ( col2 ) ) - CAST ( NULL AS INTEGER ) / 38 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 32 + - 7 - + + col0 FROM tab1
----
-26
-60
-66

query I rowsort
SELECT ALL - col1 + 55 FROM tab0
----
-26
34
54

query I rowsort
SELECT ALL - 47 + + - col0 FROM tab2
----
-111
-122
-93

query I rowsort
SELECT ALL col0 + - 41 + col2 + + 99 + - col2 * 42 * + col2 AS col0 FROM tab1
----
-146000
-193991
-386867

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT COUNT( * ) FROM tab0 WHERE ( - 59 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2136
SELECT COUNT ( * ) FROM tab0 WHERE ( - 59 ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE + 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL COUNT( * ) - - 16 * - 11 * + - COUNT( * ) FROM tab2 AS cor0
----
531

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL COUNT ( * ) - - 16 * - 11 * + - COUNT ( * ) FROM tab2 AS cor0
----
531

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 69 NOT BETWEEN - col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT col0 FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) / 97 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2140
SELECT col0 FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) / 97 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT 61 * - col1 FROM tab0
----
-1281
-4941
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT - MIN( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2142
SELECT - MIN ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - col2 AS col2, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT + + 33 * - - col1 * - - col1 * - - col1 + + 78 + + 23 FROM tab2 AS cor0
----
15065690
4377584
9925280

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT - MIN( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT - MIN ( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT 3 + + col1 FROM tab2 cor0 WHERE NOT ( col1 ) = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 31 AS col2, - ( col2 ) * + 11 col1 FROM tab0 AS cor0
----
31
-1089
31
-110
31
-517

query I rowsort
SELECT + 10 * + col2 + col2 FROM tab0 AS cor0 WHERE NOT 75 * + col1 + col2 = ( + col1 - col1 )
----
1089
110
517

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 + - 35 + + - col2 * - col1 > ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 < ( - - 51 )
----
64
77
40
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT ALL 94 DIV col2 AS col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL 94 / col2 AS col2 FROM tab2
----
1
2
4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 43 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT + - 11 + - + 74 > ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT + - 11 + - + 74 > ( col0 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT ALL + col2 + - CAST( 11 AS SIGNED ) - + col1 AS col1 FROM tab1 WHERE ( - col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + col2 + - CAST ( 11 AS INTEGER ) - + col1 AS col1 FROM tab1 WHERE ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2156
SELECT + COUNT( * ), - 58 AS col2 FROM tab0
----
3
-58

skipif mysql # not compatible
query II rowsort label-2156
SELECT + COUNT ( * ), - 58 AS col2 FROM tab0
----
3
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT 46 DIV - + 45 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2157
SELECT 46 / - + 45 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT + - COUNT( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2158
SELECT + - COUNT ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col1 FROM tab1 AS cor0
----
83

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 11 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2161
SELECT ALL + col1 + 62 + - - col2 / + CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) * - + ( col0 ) * - 61 + + 41 * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + col1 + 62 + - - col2 / + CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) * - + ( col0 ) * - 61 + + 41 * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 34 + - - 84 + - 16 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 792cf560743b7eec398ed5c7e48d1343

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT + col2 DIV + - col1 + - 55 * - col0 * + col0 + col0 + + col2 AS col2 FROM tab2 AS cor0
----
116449
225384
309508

skipif mysql # not compatible
query I rowsort label-2163
SELECT + col2 / + - col1 + - 55 * - col0 * + col0 + col0 + + col2 AS col2 FROM tab2 AS cor0
----
116449
225384
309508

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 97 >= - 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT col2 DIV + 66 * col1 * - - 82 * - 20 + 88 AS col2 FROM tab2 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-2165
SELECT col2 / + 66 * col1 * - - 82 * - 20 + 88 AS col2 FROM tab2 AS cor0
----
88
88
88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * + 75 <> - + 69
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) > + - col2
----

query I rowsort
SELECT - col0 + 36 - + 54 AS col1 FROM tab1 WHERE - - 15 / col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - col0 * + + ( + 40 ) + + col0 ) NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col0 col2 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT - + CAST( 55 AS SIGNED ) * 11 - - - col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-606
-626
-686

skipif mysql # not compatible
query I rowsort label-2171
SELECT - + CAST ( 55 AS INTEGER ) * 11 - - - col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-606
-626
-686

query I rowsort
SELECT DISTINCT + 59 * - col2 AS col1 FROM tab0
----
-2773
-5841
-590

query I rowsort
SELECT - 84 - 15 FROM tab0
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2174
SELECT col2 * + CAST( col2 AS SIGNED ) - - col2 DIV - col1 AS col2 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-2174
SELECT col2 * + CAST ( col2 AS INTEGER ) - - col2 / - col1 AS col2 FROM tab2
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-2175
SELECT + col2 DIV - col1 - 8 + - col0 * + + col2 FROM tab2
----
-1066
-2568
-4358

skipif mysql # not compatible
query I rowsort label-2175
SELECT + col2 / - col1 - 8 + - col0 * + + col2 FROM tab2
----
-1066
-2568
-4358

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 40 NOT BETWEEN + + 37 AND + col1 * - 97 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 23 * + 39 col1, - col2 AS col2 FROM tab2
----
897
-23
897
-40
897
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT ALL - COUNT( * ) * - 0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL - COUNT ( * ) * - 0 AS col1 FROM tab0
----
0

query I rowsort
SELECT - col2 * + col2 * - - col1 FROM tab0
----
-178929
-2100
-9801

query II rowsort
SELECT ALL + - col1 * col1 AS col0, ( - + ( col1 ) ) FROM tab1 AS cor0
----
-196
-14
-2209
-47
-25
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 3 IN ( - - 31 / col2 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT ALL + col1 + + col0 FROM tab0 AS cor0 WHERE - col2 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + col1 + + col0 FROM tab0 AS cor0 WHERE - col2 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 66 FROM tab0 AS cor0 WHERE NOT col1 > + col0
----
66
66

query I rowsort
SELECT ALL + 69 AS col0 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT - - col0 * - + col0 AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
60

query II rowsort
SELECT ALL col1 * 88, + col2 FROM tab2 cor0
----
4488
23
5896
58
6776
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ( MAX( ALL + + 22 ) ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2188
SELECT ( MAX ( ALL + + 22 ) ) FROM tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2189
SELECT - COUNT( col1 ) AS col1, - 81 * - 32 AS col0 FROM tab1 cor0
----
-3
2592

skipif mysql # not compatible
query II rowsort label-2189
SELECT - COUNT ( col1 ) AS col1, - 81 * - 32 AS col0 FROM tab1 cor0
----
-3
2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2190
SELECT ALL 91 DIV - SUM( DISTINCT - 82 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL 91 / - SUM ( DISTINCT - 82 ) AS col2 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2191
SELECT DISTINCT - col1 DIV + col1 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - col1 / + col1 AS col0 FROM tab0
----
-1

query I rowsort
SELECT ALL + 68 * 35 FROM tab2 AS cor0
----
2380
2380
2380

query I rowsort
SELECT ALL col2 * - + 84 AS col1 FROM tab2 cor0
----
-1932
-3360
-4872

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 > - + 73 - + col1 + + 97 * - 22 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT ( + col2 NOT BETWEEN ( ( - 41 ) ) AND ( + 68 / - - 90 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2195
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT ( + col2 NOT BETWEEN ( ( - 41 ) ) AND ( + 68 / - - 90 ) ) )
----
0

query I rowsort
SELECT ALL ( - col0 ) * - - 50 * col2 AS col2 FROM tab2 AS cor0
----
-128000
-217500
-52900

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE - col2 > - col2 + + ( + + 49 ) - + 1
----

query I rowsort
SELECT col0 + - - col1 AS col1 FROM tab1
----
138
65
90

query III rowsort
SELECT * FROM tab0 WHERE - - 95 IS NULL
----

query I rowsort
SELECT ALL + - 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query II rowsort
SELECT DISTINCT - col2 + col2, + col1 AS col0 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL ( - 36 ) * + - 20 + + col0 - - 96 * + + col1 AS col0, col1 AS col2, + col1 * + col2 + + - 22 FROM tab0 AS cor0
----
9 values hashing to f0123602aea005d7cd072c793f443338

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT 58 - + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2204
SELECT 58 - + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-2205
SELECT ALL - - COUNT( * ) * + 81 AS col2, - 1 AS col2 FROM tab2 AS cor0
----
243
-1

skipif mysql # not compatible
query II rowsort label-2205
SELECT ALL - - COUNT ( * ) * + 81 AS col2, - 1 AS col2 FROM tab2 AS cor0
----
243
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT DISTINCT - + 74 - COUNT( * ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT - + 74 - COUNT ( * ) FROM tab2 cor0
----
-77

query II rowsort
SELECT col1 - - col1 AS col1, col1 FROM tab0 AS cor0
----
162
81
2
1
42
21

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 87 IS NULL
----

query II rowsort
SELECT ALL + - 25 AS col1, - 91 AS col0 FROM tab1 AS cor0
----
-25
-91
-25
-91
-25
-91

query I rowsort
SELECT 16 * + 77 + + - 94 * + ( - col0 ) AS col1 FROM tab2 AS cor0
----
5556
7248
8282

query I rowsort
SELECT ( col0 ) + 93 AS col0 FROM tab0
----
108
180
190

query I rowsort
SELECT ( - + col2 ) + - col0 - + ( + col0 ) + ( + + col1 ) * - col1 FROM tab1
----
-2459
-254
-394

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 * + - 34 / - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT - 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-2214
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2215
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - CAST( + col2 AS SIGNED ) + + col1 - - + 74 - - + col0 NOT BETWEEN NULL AND + col1
----
87
21
10

skipif mysql # not compatible
query III rowsort label-2215
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - CAST ( + col2 AS INTEGER ) + + col1 - - + 74 - - + col0 NOT BETWEEN NULL AND + col1
----
87
21
10

query I rowsort
SELECT ALL - 55 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2217
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), - 46 * ( + COUNT( * ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL
-414

skipif mysql # not compatible
query II rowsort label-2217
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), - 46 * ( + COUNT ( * ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT DISTINCT + MAX( + - 66 ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT + MAX ( + - 66 ) FROM tab2
----
-66

query II rowsort
SELECT 39, 34 AS col2 FROM tab2
----
39
34
39
34
39
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2220
SELECT 0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-2220
SELECT 0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT - ( + ( + COUNT( * ) ) ) FROM tab1 AS cor0 WHERE NOT ( NOT - 59 NOT BETWEEN + + col1 AND ( - + col2 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2221
SELECT - ( + ( + COUNT ( * ) ) ) FROM tab1 AS cor0 WHERE NOT ( NOT - 59 NOT BETWEEN + + col1 AND ( - + col2 ) )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT ALL - + ( 54 ) * + - col1 + - col0 DIV + - col1 AS col2 FROM tab0 AS cor0
----
1138
151
4374

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL - + ( 54 ) * + - col1 + - col0 / + - col1 AS col2 FROM tab0 AS cor0
----
1138
151
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT MIN( ALL 39 ) col0 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2223
SELECT MIN ( ALL 39 ) col0 FROM tab0 AS cor0
----
39

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col0 IN ( col1 * + 98 * - col2 * + col1, - 10 - 97 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT - MIN( col0 ) + - 95 AS col0 FROM tab1 cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT - MIN ( col0 ) + - 95 AS col0 FROM tab1 cor0 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT 54 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2226
SELECT 54 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL - - 40 * col0 * 26 FROM tab1 AS cor0
----
53040
88400
94640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2228
SELECT ALL - CAST( NULL AS SIGNED ), + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2228
SELECT ALL - CAST ( NULL AS INTEGER ), + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2229
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= CAST( + col1 AS SIGNED ) + - col0
----

skipif mysql # not compatible
query III rowsort label-2229
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= CAST ( + col1 AS INTEGER ) + - col0
----

query I rowsort
SELECT - ( - col0 ) + + 30 AS col1 FROM tab2 AS cor0
----
105
76
94

query I rowsort
SELECT DISTINCT + 52 * + col0 FROM tab0 AS cor0
----
4524
5044
780

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2232
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + 35 * - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT - + CAST ( NULL AS REAL ) + 35 * - col2 AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - + col1, col1 - - 21 AS col1 FROM tab0 AS cor0
----
-1
22
-21
42
-81
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT - 74 + CAST( + col1 AS SIGNED ) FROM tab2
----
-23
-7
3

skipif mysql # not compatible
query I rowsort label-2234
SELECT - 74 + CAST ( + col1 AS INTEGER ) FROM tab2
----
-23
-7
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT DISTINCT + COUNT( * ) * - COUNT( DISTINCT - col0 ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2235
SELECT DISTINCT + COUNT ( * ) * - COUNT ( DISTINCT - col0 ) col1 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT + 6 * + CAST( col1 AS SIGNED ) FROM tab0
----
126
486
6

skipif mysql # not compatible
query I rowsort label-2236
SELECT + 6 * + CAST ( col1 AS INTEGER ) FROM tab0
----
126
486
6

query I rowsort
SELECT ALL col2 + 23 FROM tab0 WHERE + col0 NOT IN ( - col1 + col0 )
----
122
33
70

query I rowsort
SELECT DISTINCT col2 + ( 68 ) AS col1 FROM tab0
----
115
167
78

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 72 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> ( 89 )
----
0

skipif mysql # not compatible
query I rowsort label-2241
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> ( 89 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2242
SELECT ALL + COUNT( * ) DIV + SUM( ALL - - 18 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + COUNT ( * ) / + SUM ( ALL - - 18 ) AS col0 FROM tab0 AS cor0
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE 61 * + 90 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + - col2 + - + col1
----

query I rowsort
SELECT ALL 58 + col2 * - 98 AS col0 FROM tab0
----
-4548
-922
-9644

query I rowsort
SELECT DISTINCT 28 + - - col2 FROM tab0 AS cor0
----
127
38
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT ALL + SUM( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL + SUM ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT COUNT( * ) + - 51 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2248
SELECT COUNT ( * ) + - 51 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL - - 35 + + col1 AS col0 FROM tab2 AS cor0
----
102
112
86

query I rowsort
SELECT ALL + - col2 - 77 FROM tab2 AS cor0
----
-100
-117
-135

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( 38 ) = + 86
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 54 * + - col1 ) IS NULL
----

query I rowsort
SELECT ALL - + 0 - col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT 97 * COUNT( * ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2254
SELECT 97 * COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT - 17 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT COUNT( * ) * ( - 87 ) col1 FROM tab1
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2256
SELECT COUNT ( * ) * ( - 87 ) col1 FROM tab1
----
-261

query I rowsort
SELECT DISTINCT col2 * + + 70 FROM tab2
----
1610
2800
4060

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= ( + - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 43 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT DISTINCT COUNT( + + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT COUNT ( + + col0 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - + 76 - - - 82 + + 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT - - 19 AS col2 FROM tab0 AS cor0 WHERE NOT + 75 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 94 + - + col2 - + + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - - col2 + - col0 FROM tab0 AS cor0
----
-56
113
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT + col0 + - + ( - ( - col2 ) ) * col1 AS col1 FROM tab1
----
-1293
-210
-3105

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 71 <= ( - col1 )
----
46
51
23
75
67
58

query I rowsort
SELECT ALL + 12 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT + 50 + + - COUNT( * ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2269
SELECT + 50 + + - COUNT ( * ) FROM tab1
----
47

query I rowsort
SELECT DISTINCT 56 + - + col1 AS col1 FROM tab0
----
-25
35
55

query I rowsort
SELECT DISTINCT col1 + - - col0 AS col2 FROM tab0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 87 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + ( - ( col0 ) ) FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + 17 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2274
SELECT + 17 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 - + - col2, 56 + + col1 col0 FROM tab0
----
-11
77
-34
137
98
57

query I rowsort
SELECT DISTINCT - - 7 + - col0 AS col0 FROM tab1 cor0
----
-44
-78
-84

query I rowsort
SELECT DISTINCT + 49 - + col1 AS col0 FROM tab0 AS cor0
----
-32
28
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + + 68 col0 FROM tab0 AS cor0
----
-53
19
29

query I rowsort
SELECT + + 30 + - col2 - 27 AS col0 FROM tab2 AS cor0
----
-20
-37
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col2 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2281
SELECT - 91 * - 85 col2, - COUNT( * ) FROM tab2 AS cor0
----
7735
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2281
SELECT - 91 * - 85 col2, - COUNT ( * ) FROM tab2 AS cor0
----
7735
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0 WHERE col2 * + - col1 / col0 + + 89 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 * + - col1 / col0 + + 89 IS NOT NULL
----
-3

query II rowsort
SELECT + + col0 * - col2, col2 FROM tab1 AS cor0
----
-4896
96
-5015
59
-6188
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 65
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2285
SELECT ALL 79 col2, 12 * - MAX( - col2 ) - + 79 FROM tab0
----
79
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2285
SELECT ALL 79 col2, 12 * - MAX ( - col2 ) - + 79 FROM tab0
----
79
41

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + 94 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL - 31 * + col1 AS col0 FROM tab1
----
-1457
-155
-434

query I rowsort
SELECT ALL 18 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( 52 * col0 * col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - 66 * + - col1 - + 51 <> ( NULL )
----

query I rowsort
SELECT ALL 36 AS col2 FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT - MIN( DISTINCT 60 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 66 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT - MIN ( DISTINCT 60 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 66 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL + + MIN( DISTINCT - 16 ) AS col1 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + + MIN ( DISTINCT - 16 ) AS col1 FROM tab2 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL - SUM( + 16 ) AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL - SUM ( + 16 ) AS col2 FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT + 79 * + + COUNT( * ) + 51 AS col2 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-2295
SELECT + 79 * + + COUNT ( * ) + 51 AS col2 FROM tab2 AS cor0
----
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 82 col2, 11 * - col2 AS col2 FROM tab0 AS cor0
----
82
-1089
82
-110
82
-517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2297
SELECT - - 22 DIV 69 + SUM( + 34 ) AS col1 FROM tab2 cor0
----
102

skipif mysql # not compatible
query I rowsort label-2297
SELECT - - 22 / 69 + SUM ( + 34 ) AS col1 FROM tab2 cor0
----
102

query I rowsort
SELECT ALL - col1 + + - col2 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT - 58 + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-2299
SELECT - 58 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT + 95 + - + col1 + + col1 FROM tab1 AS cor0
----
95
95
95

query II rowsort
SELECT ALL col2, - 23 AS col0 FROM tab0 AS cor0
----
10
-23
47
-23
99
-23

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + + - col2 + col2 + - + col1 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT MAX( DISTINCT - + 75 ) col0 FROM tab2 WHERE - 95 + col1 + + ( + - col2 ) * col0 * - col2 / col2 IN ( + col1 + + ( col1 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2304
SELECT DISTINCT MAX ( DISTINCT - + 75 ) col0 FROM tab2 WHERE - 95 + col1 + + ( + - col2 ) * col0 * - col2 / col2 IN ( + col1 + + ( col1 ) )
----
NULL

query I rowsort
SELECT DISTINCT - 27 - - col0 FROM tab0 AS cor0
----
-12
60
70

query I rowsort
SELECT - col0 AS col1 FROM tab1 cor0 WHERE + col1 * - 14 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 43 + - col1 / col1 / - + 13 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT + 33 + COUNT( * ) AS col1 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-2308
SELECT + 33 + COUNT ( * ) AS col1 FROM tab0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 93 col0 FROM tab2
----
144
160
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT ALL + - CAST( NULL AS SIGNED ) * - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL + - CAST ( NULL AS INTEGER ) * - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 >= - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2312
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = CAST( - col2 AS SIGNED ) * col2 * + 50 + col2 / - CAST( NULL AS SIGNED ) + - 78 * + 30
----

skipif mysql # not compatible
query III rowsort label-2312
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = CAST ( - col2 AS INTEGER ) * col2 * + 50 + col2 / - CAST ( NULL AS INTEGER ) + - 78 * + 30
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + 78 col2 FROM tab1 AS cor0
----
-1092
-3666
-390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2314
SELECT ALL MIN( DISTINCT - col0 ) DIV - MAX( DISTINCT 30 ) + - + 11 AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL MIN ( DISTINCT - col0 ) / - MAX ( DISTINCT 30 ) + - + 11 AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2315
SELECT ALL + COUNT( col0 ) DIV 62 DIV + SUM( - - col1 ) DIV - + 21 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + COUNT ( col0 ) / 62 / + SUM ( - - col1 ) / - + 21 FROM tab2
----
0

query I rowsort
SELECT ALL - 99 + 72 FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2317
SELECT - col2 DIV - 98 AS col1, 29 FROM tab2
----
0
29
0
29
0
29

skipif mysql # not compatible
query II rowsort label-2317
SELECT - col2 / - 98 AS col1, 29 FROM tab2
----
0
29
0
29
0
29

query I rowsort
SELECT - 38 * - 79 * + - col2 AS col1 FROM tab1
----
-177118
-204136
-288192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT CAST( NULL AS SIGNED ) / + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT CAST ( NULL AS INTEGER ) / + col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - - 27 AS col2, col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( 78 ) <> col0 + col1 + + + col2 * + 75
----

query I rowsort
SELECT ALL col2 * - - 61 + + col1 * + ( col1 ) FROM tab0 AS cor0
----
1051
6040
9428

query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2323
SELECT CAST( NULL AS SIGNED ) * + col0 + - col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2323
SELECT CAST ( NULL AS INTEGER ) * + col0 + - col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - 55 + + + col2 FROM tab1
----
55
60
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2325
SELECT COUNT( * ) + + 34 * CAST( - 28 AS SIGNED ) FROM tab0
----
-949

skipif mysql # not compatible
query I rowsort label-2325
SELECT COUNT ( * ) + + 34 * CAST ( - 28 AS INTEGER ) FROM tab0
----
-949

query I rowsort
SELECT DISTINCT 32 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT ALL + - col2 DIV + 93 + 29 FROM tab0 AS cor0
----
28
29
29

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL + - col2 / + 93 + 29 FROM tab0 AS cor0
----
28
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT ALL MIN( + col0 ) AS col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL MIN ( + col0 ) AS col1 FROM tab2 cor0
----
46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + col0 + - col0 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2330
SELECT 1 DIV COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2330
SELECT 1 / COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT DISTINCT 57 + + col1 FROM tab2
----
108
124
134

query I rowsort
SELECT ALL AVG ( ALL - + 26 ) FROM tab2 WHERE + 94 * - ( + 42 ) IS NULL
----
NULL

query I rowsort
SELECT 23 + col2 FROM tab0
----
122
33
70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - - ( + 77 ) + + + col1 + - + col1 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 50 NOT BETWEEN col0 + + col0 AND - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT COUNT( * ) + 97 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-2337
SELECT COUNT ( * ) + 97 FROM tab0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT CAST( NULL AS SIGNED ) * + - 16 + + - 69 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2338
SELECT CAST ( NULL AS INTEGER ) * + - 16 + + - 69 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT COUNT( * ) + - MIN( DISTINCT - col0 ) AS col1 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-2339
SELECT COUNT ( * ) + - MIN ( DISTINCT - col0 ) AS col1 FROM tab1
----
94

query I rowsort
SELECT DISTINCT - col2 + + col2 FROM tab2 WHERE ( NULL ) <= ( NULL )
----

query I rowsort
SELECT ALL 57 + - col0 FROM tab2
----
-18
-7
11

query I rowsort
SELECT - - 15 * - - col1 + - + 92 + - col1 AS col2 FROM tab0 AS cor0
----
-78
1042
202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2343
SELECT DISTINCT + MIN( - - 53 ) / + CAST( NULL AS SIGNED ) - + 22 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT + MIN ( - - 53 ) / + CAST ( NULL AS INTEGER ) - + 22 AS col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( - col0 ) + - 77 IN ( + col1, - 16 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2345
SELECT 27 AS col0, COUNT( * ) FROM tab0 AS cor0
----
27
3

skipif mysql # not compatible
query II rowsort label-2345
SELECT 27 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
27
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT - 9 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT - 9 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + 62 ) IS NULL
----

query I rowsort
SELECT - - 65 * 80 + - 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 13a2fc4cb716bec0fbe0d093401123de

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT - 49 DIV + - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2349
SELECT - 49 / + - col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 36 col2 FROM tab0 AS cor0
----
-36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * 57 IS NULL
----

query I rowsort
SELECT - ( + 56 ) * + col1 AS col0 FROM tab2 AS cor0
----
-2856
-3752
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT + MAX( + 6 ) col2 FROM tab0 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2353
SELECT + MAX ( + 6 ) col2 FROM tab0 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ALL MIN( - + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL MIN ( - + col0 ) FROM tab1
----
-91

query II rowsort
SELECT col1, + col2 * - + 44 * + col0 AS col0 FROM tab0
----
1
-422532
21
-38280
81
-31020

query II rowsort
SELECT + 70 AS col0, col0 FROM tab1
----
70
51
70
85
70
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2357
SELECT - col2 * + ( - - col2 ), - col1 DIV CAST( 12 AS SIGNED ) AS col2 FROM tab0
----
-100
-1
-2209
-6
-9801
0

skipif mysql # not compatible
query II rowsort label-2357
SELECT - col2 * + ( - - col2 ), - col1 / CAST ( 12 AS INTEGER ) AS col2 FROM tab0
----
-100
-1
-2209
-6
-9801
0

query I rowsort
SELECT + col1 * - + 70 * + + col1 FROM tab0 AS cor0
----
-30870
-459270
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2359
SELECT ALL + - CAST( NULL AS SIGNED ) * COUNT( * ) * - ( 2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL + - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - ( 2 ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 69 IN ( + col1 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + - 22 * ( - 68 ) FROM tab1
----
1555
1564
1592

query I rowsort
SELECT - - 32 + 95 + - col0 * + - col1 * col1 AS col2 FROM tab2 AS cor0
----
119773
336802
379583

query I rowsort
SELECT ALL - - col0 + + + 53 AS col1 FROM tab2 AS cor0
----
117
128
99

query I rowsort
SELECT ALL + - 67 AS col1 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT + + col0 + + col2 * - + col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

query II rowsort
SELECT DISTINCT - col0 * - col0, col2 + + col2 AS col1 FROM tab1 AS cor0
----
2601
192
7225
118
8281
136

query I rowsort
SELECT + 47 + 93 AS col2 FROM tab2 AS cor0
----
140
140
140

onlyif mysql # aggregate syntax: 
query II rowsort label-2369
SELECT 6 + - 56 AS col1, + COUNT( ALL col0 ) FROM tab0 AS cor0
----
-50
3

skipif mysql # not compatible
query II rowsort label-2369
SELECT 6 + - 56 AS col1, + COUNT ( ALL col0 ) FROM tab0 AS cor0
----
-50
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL - + 86 * + COUNT( * ) * - 29 AS col0 FROM tab0 AS cor0
----
7482

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL - + 86 * + COUNT ( * ) * - 29 AS col0 FROM tab0 AS cor0
----
7482

query I rowsort
SELECT + col1 + 57 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + ( + col2 ) + + col1 FROM tab0
----
118
143
197

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 7 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT + MAX( + ( + col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2375
SELECT + MAX ( + ( + col1 ) ) FROM tab2
----
77

query I rowsort
SELECT DISTINCT + col0 * - col0 + - ( col1 ) * + col0 FROM tab2
----
-10650
-4462
-9024

query I rowsort
SELECT DISTINCT 40 + - col1 FROM tab0
----
-41
19
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 31 < - ( - col1 )
----
-1

skipif mysql # not compatible
query I rowsort label-2378
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 31 < - ( - col1 )
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= - col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT ALL + + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL + + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT + col0 + + 1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT col1 DIV + 6 FROM tab1
----
0
2
7

skipif mysql # not compatible
query I rowsort label-2382
SELECT col1 / + 6 FROM tab1
----
0
2
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL + MIN( ALL - - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL + MIN ( ALL - - col2 ) FROM tab1
----
59

query II rowsort
SELECT DISTINCT col0 AS col1, - col2 + + col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

query II rowsort
SELECT DISTINCT - col1 AS col1, - col0 + + - 65 AS col1 FROM tab1 cor0
----
-14
-116
-47
-156
-5
-150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 81 + - col1 + - + col0 + + - col1, - 27 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT 27 - - - ( + 2 ) + + 86 - col0 * + 50 IS NULL
----
1
21
81

query I rowsort
SELECT col0 * - col1 * 58 AS col0 FROM tab0 AS cor0
----
-105966
-5626
-70470

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT DISTINCT + 95 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT + 95 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2391
SELECT - 22 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2391
SELECT - 22 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2392
SELECT - CAST( - - col2 AS SIGNED ), 44 AS col2 FROM tab0
----
-10
44
-47
44
-99
44

skipif mysql # not compatible
query II rowsort label-2392
SELECT - CAST ( - - col2 AS INTEGER ), 44 AS col2 FROM tab0
----
-10
44
-47
44
-99
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT ALL + MIN( DISTINCT + 74 ) AS col1 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL + MIN ( DISTINCT + 74 ) AS col1 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT + MIN( ALL 68 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-2394
SELECT + MIN ( ALL 68 ) FROM tab1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT ALL + CAST( NULL AS SIGNED ) + + 17 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL + CAST ( NULL AS INTEGER ) + + 17 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 * - - ( + - 64 ) FROM tab1 AS cor0
----
3008
320
896

onlyif mysql # DIV for integer division: 
query I rowsort label-2397
SELECT DISTINCT - + col1 DIV - + col0 DIV 1 + col1 AS col2 FROM tab0 AS cor0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT - + col1 / - + col0 / 1 + col1 AS col2 FROM tab0 AS cor0
----
1
21
86

query I rowsort
SELECT - + 15 + - col0 * - 61 AS col2 FROM tab0 AS cor0
----
5292
5902
900

query I rowsort
SELECT - col0 * - col2 + + + 53 FROM tab2 AS cor0
----
1111
2613
4403

query I rowsort
SELECT 93 + col0 * - + 0 + - 22 FROM tab0 AS cor0
----
71
71
71

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE - 64 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - col0 * col0 <> NULL
----

query I rowsort
SELECT DISTINCT - ( - + col0 ) + ( + + col1 ) AS col0 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT DISTINCT - 49 - - COUNT( * ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT - 49 - - COUNT ( * ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT col2 + - 63 FROM tab0 cor0
----
-16
-53
36

query I rowsort
SELECT ALL - - col2 * - 46 AS col2 FROM tab2 AS cor0
----
-1058
-1840
-2668

query I rowsort
SELECT col2 - + - col0 AS col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2408
SELECT DISTINCT + col2 - - CAST( - col0 AS SIGNED ) AS col1, - col2 FROM tab1 AS cor0
----
-23
-68
-26
-59
45
-96

skipif mysql # not compatible
query II rowsort label-2408
SELECT DISTINCT + col2 - - CAST ( - col0 AS INTEGER ) AS col1, - col2 FROM tab1 AS cor0
----
-23
-68
-26
-59
45
-96

query I rowsort
SELECT DISTINCT - col0 * - col0 * col1 + + - col2 FROM tab2 AS cor0
----
107893
315352
376817

query II rowsort
SELECT col1 + col1, - 41 AS col2 FROM tab1
----
10
-41
28
-41
94
-41

query I rowsort
SELECT - 98 + + - 6 + 60 FROM tab2
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL - + SUM( ALL col1 ) AS col2 FROM tab2 WHERE - 21 * - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL - + SUM ( ALL col1 ) AS col2 FROM tab2 WHERE - 21 * - col0 IS NULL
----
NULL

query I rowsort
SELECT - col0 + + col2 + + col0 + - 31 FROM tab1
----
28
37
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT - col1 * - col1 FROM tab2 WHERE - + 1 * - col0 * - + col0 + - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-2414
SELECT - col1 * - col1 FROM tab2 WHERE - + 1 * - col0 * - + col0 + - CAST ( NULL AS INTEGER ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + 32 BETWEEN NULL AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT - COUNT( DISTINCT + - 17 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2416
SELECT - COUNT ( DISTINCT + - 17 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT + ( ( - COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2417
SELECT + ( ( - COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) >= + 86
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 * + col1 AND - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2420
SELECT - COUNT( * ), - COUNT( * ) * - - MAX( - - col1 ) AS col0 FROM tab1 AS cor0
----
-3
-141

skipif mysql # not compatible
query II rowsort label-2420
SELECT - COUNT ( * ), - COUNT ( * ) * - - MAX ( - - col1 ) AS col0 FROM tab1 AS cor0
----
-3
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-2421
SELECT + 80, + COUNT( * ) AS col2 FROM tab2 cor0
----
80
3

skipif mysql # not compatible
query II rowsort label-2421
SELECT + 80, + COUNT ( * ) AS col2 FROM tab2 cor0
----
80
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT DISTINCT MIN( DISTINCT + 34 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT MIN ( DISTINCT + 34 ) FROM tab1 AS cor0
----
34

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + + col2 ) - - - col1 <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 90 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL <= 26
----

query I rowsort
SELECT ALL col2 * + col1 * + col2 + - ( - 97 ) AS col0 FROM tab1
----
129121
17502
217425

query II rowsort
SELECT col0, - 32 FROM tab1
----
51
-32
85
-32
91
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-2428
SELECT ALL - - col1 + + + col2 DIV col1 + + col1 AS col2, + col2 * - col2 AS col1 FROM tab0 WHERE NOT + - col0 NOT BETWEEN - 94 * 11 AND + col1 + + - col2
----
162
-2209
42
-100

skipif mysql # not compatible
query II rowsort label-2428
SELECT ALL - - col1 + + + col2 / col1 + + col1 AS col2, + col2 * - col2 AS col1 FROM tab0 WHERE NOT + - col0 NOT BETWEEN - 94 * 11 AND + col1 + + - col2
----
162
-2209
42
-100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col0 FROM tab0
----
31
31
31

query I rowsort
SELECT + col2 * + + ( - col1 ) AS col1 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * col1 + ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 76 * + col1 * - 89 AS col2 FROM tab1
----
-317908
-33820
-94696

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT COUNT( * ) + - 30, + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-27
3

skipif mysql # not compatible
query II rowsort label-2433
SELECT COUNT ( * ) + - 30, + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-27
3

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT - ( + col0 ) - + + 3 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT ALL + + col0 + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + + col0 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * - col0 * + + ( + - col1 ) - - - col0 col1, col0 AS col2 FROM tab0 AS cor0
----
-159036
87
-18240
15
-9506
97

query I rowsort
SELECT ALL + col1 * - 25 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + - 41 ) * + col0 - + + 51 - col2 + col0 AND col2
----

query II rowsort
SELECT ALL + 84 - col0, col0 FROM tab2 cor0
----
20
64
38
46
9
75

query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 * - - 92 IS NULL
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2440
SELECT MAX( - 33 ) - MAX( DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT MAX ( - 33 ) - MAX ( DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1
----
NULL

query II rowsort
SELECT ALL 92 * - col1 + + 76 AS col2, col2 AS col2 FROM tab1
----
-1212
96
-384
59
-4248
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2442
SELECT DISTINCT + col2 DIV - - col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT + col2 / - - col2 FROM tab0
----
1

query I rowsort
SELECT - 79 * - 61 AS col1 FROM tab1
----
4819
4819
4819

query I rowsort
SELECT + - ( - 64 ) FROM tab0 AS cor0
----
64
64
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2445
SELECT DISTINCT + 72 col1, + MIN( + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
72
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2445
SELECT DISTINCT + 72 col1, + MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT - ( - SUM( + col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2446
SELECT - ( - SUM ( + col0 ) ) FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-2447
SELECT DISTINCT + ( col0 ) DIV + col2 - col0 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT + ( col0 ) / + col2 - col0 FROM tab2
----
-44
-63
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 col1 FROM tab0 cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL SUM( DISTINCT - col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL SUM ( DISTINCT - col0 ) FROM tab1 cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col0 FROM tab2 cor0
----
72
72
72

query I rowsort
SELECT - col1 * + 47 AS col2 FROM tab2
----
-2397
-3149
-3619

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2452
SELECT col1 AS col0, CAST( NULL AS SIGNED ) * + col0 * + 81 AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2452
SELECT col1 AS col0, CAST ( NULL AS INTEGER ) * + col0 * + 81 AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT DISTINCT + col1 + - 19 + + ( 34 ) AS col1 FROM tab0
----
16
36
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2454
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE - col2 = - CAST( + 89 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE - col2 = - CAST ( + 89 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT + 18 * MAX( + 44 ) * 99 FROM tab1
----
78408

skipif mysql # not compatible
query I rowsort label-2455
SELECT + 18 * MAX ( + 44 ) * 99 FROM tab1
----
78408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2456
SELECT DISTINCT * FROM tab0 WHERE NULL IS NOT NULL AND NOT ( NOT 59 <= - col2 * + - 24 + CAST( col2 AS SIGNED ) + + 64 + - + col0 * 58 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-2456
SELECT DISTINCT * FROM tab0 WHERE NULL IS NOT NULL AND NOT ( NOT 59 <= - col2 * + - 24 + CAST ( col2 AS INTEGER ) + + 64 + - + col0 * 58 + + col1 )
----

query I rowsort
SELECT 6 + - col2 - - col1 AS col2 FROM tab0
----
-92
17
40

query I rowsort
SELECT DISTINCT 65 FROM tab2 cor0
----
65

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - + 77 * - COUNT( * ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-2460
SELECT - + 77 * - COUNT ( * ) FROM tab2 AS cor0
----
231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 * + col0 * col1 + + - col0 col0 FROM tab0
----
3395
43725
65685

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 * - col0 col0 FROM tab1 WHERE NOT - + 12 IS NULL
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NULL NOT IN ( + 23, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2463
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NULL NOT IN ( + 23, col0 )
----
0

query I rowsort
SELECT ALL + 26 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2465
SELECT DISTINCT 71 * + COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT 71 * + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT - - col2 - - 21 FROM tab1 AS cor0
----
117
80
89

query I rowsort
SELECT ALL + + col1 - + 30 FROM tab0 AS cor0
----
-29
-9
51

query I rowsort
SELECT DISTINCT - col1 - + + ( 42 ) AS col1 FROM tab1 cor0
----
-47
-56
-89

query I rowsort
SELECT DISTINCT + 86 * - + col1 * - + col0 AS col1 FROM tab0 AS cor0
----
104490
157122
8342

query I rowsort
SELECT + + col0 + + - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT - 56 + - 29 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT COUNT( * ) - - 12 AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT COUNT ( * ) - - 12 AS col0 FROM tab2 AS cor0
----
15

query I rowsort
SELECT DISTINCT + AVG ( + ( - col1 ) ) FROM tab0 WHERE NOT - col1 * - - col2 * + col2 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + col0 * - 95, col0 AS col0 FROM tab0
----
-1425
15
-8265
87
-9215
97

query II rowsort
SELECT DISTINCT - ( + col1 ) AS col2, + 11 AS col1 FROM tab2
----
-51
11
-67
11
-77
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col1 col2 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL - MIN( DISTINCT + col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - MIN ( DISTINCT + col0 ) AS col2 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col2 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT DISTINCT + COUNT( ALL + col1 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2479
SELECT DISTINCT + COUNT ( ALL + col1 ) col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 cor0 WHERE NOT 11 = + col1 * + + col2
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2482
SELECT DISTINCT - - col0 DIV + + col0 AS col1, col1 * + + 65 AS col2 FROM tab2 AS cor0
----
1
3315
1
4355
1
5005

skipif mysql # not compatible
query II rowsort label-2482
SELECT DISTINCT - - col0 / + + col0 AS col1, col1 * + + 65 AS col2 FROM tab2 AS cor0
----
1
3315
1
4355
1
5005

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2483
SELECT DISTINCT col1 + CAST( - - 23 AS SIGNED ) AS col1, col2 AS col1 FROM tab2 AS cor0
----
100
40
74
23
90
58

skipif mysql # not compatible
query II rowsort label-2483
SELECT DISTINCT col1 + CAST ( - - 23 AS INTEGER ) AS col1, col2 AS col1 FROM tab2 AS cor0
----
100
40
74
23
90
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2484
SELECT - - CAST( - MAX( DISTINCT col1 ) AS SIGNED ) AS col2, - COUNT( DISTINCT 93 ) * - CAST( - MIN( DISTINCT + col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-77
-51

skipif mysql # not compatible
query II rowsort label-2484
SELECT - - CAST ( - MAX ( DISTINCT col1 ) AS INTEGER ) AS col2, - COUNT ( DISTINCT 93 ) * - CAST ( - MIN ( DISTINCT + col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-77
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-2485
SELECT + - col0 DIV - ( + 91 ) + + col0 AS col1, col2 col0 FROM tab1 AS cor0
----
51
96
85
59
92
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2485
SELECT + - col0 / - ( + 91 ) + + col0 AS col1, col2 col0 FROM tab1 AS cor0
----
51
96
85
59
92
68

query I rowsort
SELECT col0 + - - 5 + + + col2 * - col1 FROM tab2 cor0
----
-1122
-3011
-3806

query I rowsort
SELECT 98 + 29 FROM tab2 AS cor0
----
127
127
127

query I rowsort
SELECT ALL - 88 * - col1 FROM tab2 AS cor0
----
4488
5896
6776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2489
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT ALL - 58 * + COUNT( * ) + + 42 + + - 76 - MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL - 58 * + COUNT ( * ) + + 42 + + - 76 - MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL COUNT( * ) col1 FROM tab0 AS cor0 WHERE ( + ( 62 ) ) * ( + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2491
SELECT ALL COUNT ( * ) col1 FROM tab0 AS cor0 WHERE ( + ( 62 ) ) * ( + col1 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT - COUNT( * ) + - - MIN( - + 98 ) AS col2 FROM tab2 cor0
----
-101

skipif mysql # not compatible
query I rowsort label-2492
SELECT - COUNT ( * ) + - - MIN ( - + 98 ) AS col2 FROM tab2 cor0
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2493
SELECT - + CAST( NULL AS SIGNED ) + - 70 - - 98 AS col2 FROM tab0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2493
SELECT - + CAST ( NULL AS INTEGER ) + - 70 - - 98 AS col2 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL - 92 - + + col1 AS col0 FROM tab1 WHERE - + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col2 + + - col0 * - col0 AS col2 FROM tab1
----
2793
7343
8417

query I rowsort
SELECT ALL - col1 + 78 + col2 AS col0 FROM tab1
----
132
160
99

query I rowsort
SELECT - col1 + - - 36 * + - col0 AS col0 FROM tab2 WHERE + - col2 IS NOT NULL
----
-1707
-2381
-2767

query I rowsort
SELECT DISTINCT 63 + 14 * - 54 + + ( + 36 ) - + - 36 FROM tab0
----
-621

query I rowsort
SELECT + col0 * - col1 AS col2 FROM tab2 WHERE - - 93 > + col0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 85 col2 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2501
SELECT DISTINCT col1 - col2 + - col0 * - col0 AS col0, - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
2519
NULL
7171
NULL
8260
NULL

skipif mysql # not compatible
query II rowsort label-2501
SELECT DISTINCT col1 - col2 + - col0 * - col0 AS col0, - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
2519
NULL
7171
NULL
8260
NULL

query II rowsort
SELECT - ( 14 ), - col1 AS col2 FROM tab2 cor0
----
-14
-51
-14
-67
-14
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2503
SELECT ALL + + SUM( DISTINCT - + CAST( + - 51 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL + + SUM ( DISTINCT - + CAST ( + - 51 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2504
SELECT ALL + MAX( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL + MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT + + COUNT( * ) * + COUNT( * ) col2 FROM tab2 WHERE ( + col1 * col1 NOT BETWEEN NULL AND + col0 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2505
SELECT + + COUNT ( * ) * + COUNT ( * ) col2 FROM tab2 WHERE ( + col1 * col1 NOT BETWEEN NULL AND + col0 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2506
SELECT * FROM tab1 AS cor0 WHERE col0 * - CAST( NULL AS SIGNED ) * + col1 + + col1 < 35 * + col1
----

skipif mysql # not compatible
query III rowsort label-2506
SELECT * FROM tab1 AS cor0 WHERE col0 * - CAST ( NULL AS INTEGER ) * + col1 + + col1 < 35 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT DISTINCT SUM( col0 ) * 89 + - + COUNT( * ) col2 FROM tab0 AS cor0
----
17708

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2507
SELECT DISTINCT SUM ( col0 ) * 89 + - + COUNT ( * ) col2 FROM tab0 AS cor0
----
17708

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 74 NOT BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT ( - COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL 86 * - - col0 FROM tab2
----
3956
5504
6450

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * col1 + + + 94 + + 66 + - 28 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL - MAX( col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - MAX ( col1 ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT + ( - 9 ) AS col1 FROM tab2
----
-9
-9
-9

query I rowsort
SELECT 84 * ( - - col2 ) AS col0 FROM tab1
----
4956
5712
8064

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT - MAX( - + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2515
SELECT - MAX ( - + col2 ) FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col1 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT col0, 49 * + col1 * col2 * + col0 * - col2 + + + col1 * + 78 FROM tab0 AS cor0
----
15
-131506497
87
-8950662
97
-46584075

query I rowsort
SELECT col1 + - 43 AS col0 FROM tab2 cor0
----
24
34
8

query II rowsort
SELECT ALL col1, - col0 * - col1 FROM tab0 AS cor0
----
1
97
21
1827
81
1215

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + + ( - col1 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * ( + - col0 ) FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL - - MIN( DISTINCT + - col0 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - - MIN ( DISTINCT + - col0 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT DISTINCT - - 88 * + - col1 + + 64 AS col2 FROM tab1 AS cor0
----
-1168
-376
-4072

query I rowsort
SELECT + col2 * + col2 * - col1 FROM tab1 cor0
----
-129024
-17405
-217328

onlyif mysql # DIV for integer division: 
query II rowsort label-2525
SELECT DISTINCT col1 DIV - 7 - + + col0 AS col2, col0 FROM tab2 AS cor0
----
-53
46
-75
64
-84
75

skipif mysql # not compatible
query II rowsort label-2525
SELECT DISTINCT col1 / - 7 - + + col0 AS col2, col0 FROM tab2 AS cor0
----
-53
46
-75
64
-84
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT ALL + + COUNT( * ) + - - 24 * + COUNT( 56 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + + COUNT ( * ) + - - 24 * + COUNT ( 56 ) FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT col2 DIV + 23 + + col0 FROM tab2
----
47
65
77

skipif mysql # not compatible
query I rowsort label-2527
SELECT col2 / + 23 + + col0 FROM tab2
----
47
65
77

query II rowsort
SELECT DISTINCT + col0, - ( + + 25 ) FROM tab0
----
15
-25
87
-25
97
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT col2 DIV 72 * - - 95 + col0 * - ( + 28 ) FROM tab2
----
-1288
-1792
-2100

skipif mysql # not compatible
query I rowsort label-2529
SELECT col2 / 72 * - - 95 + col0 * - ( + 28 ) FROM tab2
----
-1288
-1792
-2100

query II rowsort
SELECT ALL col2 + 49 + - + col2, - col1 AS col1 FROM tab2
----
49
-51
49
-67
49
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL 45 + + - COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL 45 + + - COUNT ( * ) FROM tab1
----
42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - col1 * + - col2
----

query I rowsort
SELECT - 57 + - col1 FROM tab0 AS cor0
----
-138
-58
-78

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT + ( col2 ) * 35 + 57 AS col2 FROM tab1
----
2122
2437
3417

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> 88
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT col1 IS NULL
----
14
47
5

query I rowsort
SELECT + 58 * 96 - - col2 * col1 AS col1 FROM tab0
----
5667
5778
9375

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL - COUNT( * ) col0 FROM tab1 WHERE NULL >= - col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2539
SELECT ALL - COUNT ( * ) col0 FROM tab1 WHERE NULL >= - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2540
SELECT + 1 DIV + 78 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2540
SELECT + 1 / + 78 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 - 36 AS col2 FROM tab1
----
-22
-31
11

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2542
SELECT ALL * FROM tab0 WHERE col1 * + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2542
SELECT ALL * FROM tab0 WHERE col1 * + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( 68 ) = ( col1 )
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL <= 54
----

query I rowsort
SELECT DISTINCT - col2 * col1 + - ( col2 ) FROM tab2
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT 30 * + COUNT( * ) col1 FROM tab2 WHERE NULL <> + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2546
SELECT 30 * + COUNT ( * ) col1 FROM tab2 WHERE NULL <> + col1
----
0

query I rowsort
SELECT DISTINCT + 89 * + col1 + + ( col1 ) AS col2 FROM tab1 WHERE col0 IS NOT NULL
----
1260
4230
450

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2549
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) < - 54
----

skipif mysql # not compatible
query III rowsort label-2549
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) < - 54
----

query III rowsort
SELECT * FROM tab0 WHERE 1 + - col0 >= + 83 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT ( + MAX( ALL + 81 ) ) col0 FROM tab2
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2551
SELECT DISTINCT ( + MAX ( ALL + 81 ) ) col0 FROM tab2
----
81

query I rowsort
SELECT ALL col2 * col1 + + 89 FROM tab2 WHERE NOT + col1 NOT BETWEEN col2 AND - 86 / - col2 + + ( - col2 )
----

query I rowsort
SELECT 60 FROM tab1 WHERE ( 98 ) IS NOT NULL
----
60
60
60

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 52 * + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE ( col2 * 6 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2555
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE ( col2 * 6 ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( - 48 )
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT + 90 + + 77 * + col2 AS col0 FROM tab0
----
3709
7713
860

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT ALL - 63 * COUNT( * ) + 63 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL - 63 * COUNT ( * ) + 63 FROM tab1
----
-126

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + 60 )
----

query I rowsort
SELECT DISTINCT + col2 - + 56 FROM tab0
----
-46
-9
43

query I rowsort
SELECT + 68 FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT COUNT( * ) + 18 FROM tab0 cor0 WHERE NOT ( - 53 * + 36 ) NOT IN ( + col2 )
----
18

skipif mysql # not compatible
query I rowsort label-2564
SELECT COUNT ( * ) + 18 FROM tab0 cor0 WHERE NOT ( - 53 * + 36 ) NOT IN ( + col2 )
----
18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND ( NULL )
----

query I rowsort
SELECT 2 * col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL COUNT( ALL col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL COUNT ( ALL col0 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col2 * 19 AS col0 FROM tab1
----
1121
1292
1824

query I rowsort
SELECT DISTINCT 42 FROM tab0 WHERE NOT col2 + - 8 * col0 IN ( - 37 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT CAST( NULL AS SIGNED ) + + 44 * 57 AS col2 FROM tab2 WHERE ( col1 ) >= col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT CAST ( NULL AS INTEGER ) + + 44 * 57 AS col2 FROM tab2 WHERE ( col1 ) >= col1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( - col0 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * col1 + col2 * 86 FROM tab0 AS cor0
----
10603
1301
8515

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 * - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2576
SELECT col1 + + 93 * + CAST( 29 AS SIGNED ) FROM tab2 AS cor0
----
2748
2764
2774

skipif mysql # not compatible
query I rowsort label-2576
SELECT col1 + + 93 * + CAST ( 29 AS INTEGER ) FROM tab2 AS cor0
----
2748
2764
2774

query I rowsort
SELECT ALL 13 * col1 AS col1 FROM tab2 AS cor0
----
1001
663
871

query I rowsort
SELECT + + col1 * + col1 + 43 AS col2 FROM tab0 AS cor0
----
44
484
6604

query I rowsort
SELECT 27 + col1 AS col2 FROM tab1 AS cor0
----
32
41
74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + col1 NOT BETWEEN 56 AND ( col0 )
----

query I rowsort
SELECT + 93 + 66 AS col0 FROM tab1 cor0
----
159
159
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT - 15 + COUNT( + 87 ) col1 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2582
SELECT DISTINCT - 15 + COUNT ( + 87 ) col1 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT ALL + ( + 9 ) FROM tab0 cor0
----
9
9
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2584
SELECT ALL col2 + + - 84 + 21 DIV + 7 AS col0 FROM tab2
----
-23
-41
-58

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL col2 + + - 84 + 21 / + 7 AS col0 FROM tab2
----
-23
-41
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 47 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL SUM( + - col2 ) col0 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2586
SELECT ALL SUM ( + - col2 ) col0 FROM tab1
----
-223

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( col1 ) AND + col0
----

query I rowsort
SELECT col2 FROM tab2 WHERE - col1 > 41
----

query I rowsort
SELECT DISTINCT + col2 * col2 + col2 FROM tab2
----
1640
3422
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 29 col0 FROM tab0
----
-28
-8
52

query I rowsort
SELECT + col2 - - 96 + 47 * col0 AS col1 FROM tab0 AS cor0
----
4195
4754
848

query I rowsort
SELECT ALL 20 * + - col2 FROM tab0 cor0
----
-1980
-200
-940

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 NOT IN ( 41 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2594
SELECT - + CAST( COUNT( * ) AS SIGNED ) + 1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-2594
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) + 1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-8

query II rowsort
SELECT ALL 37 AS col1, col1 FROM tab1
----
37
14
37
47
37
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT - CAST( NULL AS SIGNED ) * + - 80 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT - CAST ( NULL AS INTEGER ) * + - 80 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2598
SELECT DISTINCT - + ( - - 4 ) DIV - 44 DIV - COUNT( - col1 * 38 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT - + ( - - 4 ) / - 44 / - COUNT ( - col1 * 38 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2599
SELECT DISTINCT + - ( - - CAST( col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT + - ( - - CAST ( col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + 39 IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * col1 AS col1 FROM tab0 cor0 WHERE NOT - 58 IS NOT NULL
----

query II rowsort
SELECT ALL + + 81, col1 FROM tab1 AS cor0
----
81
14
81
47
81
5

query I rowsort
SELECT DISTINCT col0 * - 9 AS col1 FROM tab2 AS cor0 WHERE NOT ( - ( 54 ) / + 93 ) >= 50 OR NOT 68 NOT BETWEEN ( + col2 ) AND NULL
----
-414
-576
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT - ( + SUM( - col2 ) ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2604
SELECT - ( + SUM ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + 93 + + - col0 * ( 30 - - col1 ) > ( + col0 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + 93 + + - col0 * ( 30 - - col1 ) > ( + col0 + col0 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - col0 + - ( col0 ) + + col1
----

query I rowsort
SELECT + col1 * + + 46 * + col1 * + + col0 FROM tab0
----
1764882
4462
4527090

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2608
SELECT DISTINCT * FROM tab1 WHERE NULL > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2608
SELECT DISTINCT * FROM tab1 WHERE NULL > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 24 * + col2 + - 37 FROM tab0 WHERE NOT 80 < - 58
----
1091
203
2339

query I rowsort
SELECT + col1 * - ( + + col1 ) AS col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL + ( + - ( 24 ) ) FROM tab2
----
-24
-24
-24

query I rowsort
SELECT - 7 * - col1 * - col2 FROM tab2
----
-21560
-27202
-8211

onlyif mysql # DIV for integer division: 
query II rowsort label-2613
SELECT - col2 DIV col1 AS col0, - ( + ( col1 ) ) FROM tab0
----
-99
-1
0
-21
0
-81

skipif mysql # not compatible
query II rowsort label-2613
SELECT - col2 / col1 AS col0, - ( + ( col1 ) ) FROM tab0
----
-99
-1
0
-21
0
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - - 59 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2615
SELECT COUNT( DISTINCT - 9 ) DIV 88 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2615
SELECT COUNT ( DISTINCT - 9 ) / 88 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
0

query II rowsort
SELECT + col1 + col0, col0 FROM tab2 AS cor0
----
141
64
142
75
97
46

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT - + 14 IS NULL
----
-1
-21
-81

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT + 68 + - - 29 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2620
SELECT 28, col2 + + CAST( + col2 AS SIGNED ) + + col2 * + col0 AS col1 FROM tab2
----
28
1104
28
2640
28
4466

skipif mysql # not compatible
query II rowsort label-2620
SELECT 28, col2 + + CAST ( + col2 AS INTEGER ) + + col2 * + col0 AS col1 FROM tab2
----
28
1104
28
2640
28
4466

query II rowsort
SELECT ALL col1, col2 + - 45 FROM tab1
----
14
51
47
23
5
14

query I rowsort
SELECT + - AVG ( 89 ) AS col1 FROM tab0 AS cor0 WHERE col0 * + ( - col2 ) IS NULL
----
NULL

query I rowsort
SELECT + + col2 * 33 AS col2 FROM tab1 AS cor0
----
1947
2244
3168

query II rowsort
SELECT - + 97 - + - col1 * + - col0, col0 AS col2 FROM tab1 AS cor0
----
-4374
91
-522
85
-811
51

query I rowsort
SELECT - 47 * + col0 + - col1 - 12 + + 31 AS col2 FROM tab1 AS cor0
----
-2392
-3981
-4305

query I rowsort
SELECT - - col1 + - - 81 AS col2 FROM tab0 AS cor0
----
102
162
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT + COUNT( * ) + - ( 62 ) + - COUNT( * ) FROM tab2 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-2627
SELECT + COUNT ( * ) + - ( 62 ) + - COUNT ( * ) FROM tab2 cor0
----
-62

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE ( ( ( NOT NULL IS NULL ) ) )
----

query I rowsort
SELECT ALL - col0 + - 20 FROM tab0
----
-107
-117
-35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2630
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 * + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + - + col2 + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2630
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 * + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + - + col2 + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2631
SELECT - COUNT( * ) - MAX( DISTINCT col2 ) col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN - col1 AND + 89 + - col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2631
SELECT - COUNT ( * ) - MAX ( DISTINCT col2 ) col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN - col1 AND + 89 + - col1
----
NULL

query I rowsort
SELECT + col0 + - 12 AS col1 FROM tab0
----
3
75
85

query I rowsort
SELECT - col1 FROM tab0 WHERE ( col1 / + - col2 + + col0 ) IS NULL
----

query I rowsort
SELECT col2 + - 62 * col1 AS col0 FROM tab1 WHERE + col0 - - - 51 + + 22 / 17 * + col2 NOT BETWEEN + col2 / col2 AND - 87
----
-251
-2846
-772

query I rowsort
SELECT - col0 + - 85 AS col2 FROM tab1
----
-136
-170
-176

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT DISTINCT SUM( DISTINCT + col0 ) - ( + COUNT( * ) ) AS col2 FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT SUM ( DISTINCT + col0 ) - ( + COUNT ( * ) ) AS col2 FROM tab2
----
182

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( + ( col0 ) ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2639
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 + - col2 AND - col0 * col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2639
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 + - col2 AND - col0 * col1 * CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 31 col2 FROM tab0 AS cor0
----
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND - col0 * + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 IN ( + col1 - + + col2 + ( col1 ) )
----

query I rowsort
SELECT ( + 45 ) * + col1 AS col2 FROM tab2 AS cor0
----
2295
3015
3465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + CAST( NULL AS SIGNED ) + 89 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + CAST ( NULL AS INTEGER ) + 89 ) IS NOT NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + ( + 16 ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # DIV for integer division: 
query II rowsort label-2646
SELECT DISTINCT - 55 DIV - + col2 AS col1, col1 FROM tab2
----
0
67
1
77
2
51

skipif mysql # not compatible
query II rowsort label-2646
SELECT DISTINCT - 55 / - + col2 AS col1, col1 FROM tab2
----
0
67
1
77
2
51

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT 70 + + - 5 <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT ( COUNT( * ) ) * - 44 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT ( COUNT ( * ) ) * - 44 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2649
SELECT - col0 * col0 * col1 + - + ( + col1 ) DIV - col1 FROM tab1 AS cor0
----
-36124
-36413
-389206

skipif mysql # not compatible
query I rowsort label-2649
SELECT - col0 * col0 * col1 + - + ( + col1 ) / - col1 FROM tab1 AS cor0
----
-36124
-36413
-389206

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT MAX( + 7 ) AS col0 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2650
SELECT MAX ( + 7 ) AS col0 FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT DISTINCT + 19 * - COUNT( * ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT + 19 * - COUNT ( * ) FROM tab0 AS cor0
----
-57

query I rowsort
SELECT + col0 * + - col1 + - 98 - col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT SUM( DISTINCT 81 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-2653
SELECT SUM ( DISTINCT 81 ) FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT - COUNT( * ) * + MIN( - - col0 ) + + - AVG ( ALL col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT - COUNT ( * ) * + MIN ( - - col0 ) + + - AVG ( ALL col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + col0 * - 77 AS col1 FROM tab1
----
-3927
-6545
-7007

query I rowsort
SELECT col1 * + 54 AS col0 FROM tab2
----
2754
3618
4158

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT - 44 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2657
SELECT - 44 / + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT ALL 70 * 21 + COUNT( * ) AS col2 FROM tab2
----
1473

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL 70 * 21 + COUNT ( * ) AS col2 FROM tab2
----
1473

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT DISTINCT - COUNT( ALL - - col1 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2659
SELECT DISTINCT - COUNT ( ALL - - col1 ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 98 * - + col0 * + col0 * - col1 AS col2 FROM tab1 cor0
----
-3540250
-3568572
-38142286

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT ALL MAX( 87 ) * + - 79 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-6873

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL MAX ( 87 ) * + - 79 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-6873

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2662
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( col1 ) BETWEEN + 86 AND + + CAST( NULL AS DECIMAL ) + + col2 - - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2662
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( col1 ) BETWEEN + 86 AND + + CAST ( NULL AS REAL ) + + col2 - - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2663
SELECT + 43 * 9 DIV - - 92 + - col0 FROM tab0
----
-11
-83
-93

skipif mysql # not compatible
query I rowsort label-2663
SELECT + 43 * 9 / - - 92 + - col0 FROM tab0
----
-11
-83
-93

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE ( ( NOT + + col0 + + - col2 IS NOT NULL ) )
----

query I rowsort
SELECT DISTINCT - - 96 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE + col2 / 76 * 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT + 6 DIV 60 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-2668
SELECT + 6 / 60 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col1 IN ( - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col1 IN ( - 92 )
----
0

query I rowsort
SELECT DISTINCT col1 * + + 70 FROM tab0 AS cor0 WHERE NOT + col2 + - 71 * - - col2 IS NULL
----
1470
5670
70

query I rowsort
SELECT + + ( + - 97 ) * - col1 FROM tab1 AS cor0
----
1358
4559
485

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT DISTINCT - 17 * + COUNT( * ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT - 17 * + COUNT ( * ) FROM tab1
----
-51

query I rowsort
SELECT DISTINCT col1 + - + 49 FROM tab2
----
18
2
28

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) IS NOT NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + col2 ) - + 91 AS col2 FROM tab1 WHERE ( - col2 * - col0 * + 36 + - col1 ) BETWEEN NULL AND - col1 + + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 < ( + col1 )
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, + 69 * + col1 FROM tab2
----
-23
3519
-40
5313
-58
4623

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2679
SELECT DISTINCT ( COUNT( * ) ) FROM tab2 WHERE NOT ( col0 ) IN ( - col2 + - + col2 * + CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT ( COUNT ( * ) ) FROM tab2 WHERE NOT ( col0 ) IN ( - col2 + - + col2 * + CAST ( NULL AS REAL ) )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 <= col2
----
85
5
59
91
47
68

query II rowsort
SELECT - 66, col2 FROM tab0 AS cor0
----
-66
10
-66
47
-66
99

query I rowsort
SELECT DISTINCT + - 87 * + col1 FROM tab1 AS cor0
----
-1218
-4089
-435

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - - col1 ) BETWEEN ( - + ( + - col0 ) ) AND NULL
----

query I rowsort
SELECT DISTINCT + 10 * + col2 FROM tab0
----
100
470
990

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 19 ) <= NULL
----

query I rowsort
SELECT DISTINCT + 98 * + col1 AS col2 FROM tab2 AS cor0
----
4998
6566
7546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col1 FROM tab1 cor0 WHERE col0 <= NULL
----

query II rowsort
SELECT + - col1 - - 6 * col1, + col2 AS col0 FROM tab2 AS cor0
----
255
23
335
58
385
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 80 ) col2 FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT - - 8 + + 8 FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT - ( col2 ) + - 45 + 42 * + 1 FROM tab0 AS cor0
----
-102
-13
-50

query I rowsort
SELECT - ( + 33 ) + - + 65 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( col2, col2 )
----

query I rowsort
SELECT ALL + ( - - 19 ) AS col2 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT - 32 * - col0 + + - col1 + + 52 AS col1 FROM tab2
----
1473
2023
2385

query I rowsort
SELECT col0 + - - col1 + - 3 * - 65 - - col2 + - 3 FROM tab1
----
341
353
398

query I rowsort
SELECT + 40 + + - col0 * + col1 FROM tab2
----
-2306
-4888
-4985

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT DISTINCT 88 * + MAX( - + col0 ) - - COUNT( * ) * MIN( DISTINCT + + col1 ) AS col0 FROM tab1 WHERE NOT - 82 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT 88 * + MAX ( - + col0 ) - - COUNT ( * ) * MIN ( DISTINCT + + col1 ) AS col0 FROM tab1 WHERE NOT - 82 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2699
SELECT DISTINCT 58 * + CAST( NULL AS SIGNED ), + col2 + 96 + + CAST( NULL AS SIGNED ) + - col1 * - + col1 - + col2 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2699
SELECT DISTINCT 58 * + CAST ( NULL AS INTEGER ), + col2 + 96 + + CAST ( NULL AS INTEGER ) + - col1 * - + col1 - + col2 FROM tab2
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2700
SELECT ALL - COUNT( * ) + + 26 DIV - 77 col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2700
SELECT ALL - COUNT ( * ) + + 26 / - 77 col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL 7 * + MIN( + col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL 7 * + MIN ( + col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 NOT BETWEEN - - ( + col0 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2703
SELECT ALL - COUNT( * ) * - COUNT( * ) - - CAST( + ( - COUNT( * ) ) AS SIGNED ) + - 42 + - 79 * + 37 * + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= ( - ( + col0 ) + - - 38 + - 76 * - - col2 + 55 )
----
-42

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL - COUNT ( * ) * - COUNT ( * ) - - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + - 42 + - 79 * + 37 * + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= ( - ( + col0 ) + - - 38 + - 76 * - - col2 + 55 )
----
-42

query I rowsort
SELECT ALL 72 * col2 FROM tab2 AS cor0
----
1656
2880
4176

query I rowsort
SELECT ALL 46 * - 90 FROM tab0
----
-4140
-4140
-4140

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 20 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT col1 DIV - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT col1 / - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT + SUM( ALL 42 ) FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-2708
SELECT + SUM ( ALL 42 ) FROM tab2 AS cor0
----
126

query I rowsort
SELECT + 9 * + 33 FROM tab0 AS cor0
----
297
297
297

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ALL - SUM( + 66 ) AS col1 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL - SUM ( + 66 ) AS col1 FROM tab2 AS cor0
----
-198

query I rowsort
SELECT ALL + - ( - + col0 ) * - + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT DISTINCT 94 DIV - ( col2 ) AS col1 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT 94 / - ( col2 ) AS col1 FROM tab0 AS cor0
----
-2
-9
0

query II rowsort
SELECT + col1 + col1 + - ( - + col1 ) + + + 35 AS col2, - col0 AS col0 FROM tab0 cor0
----
278
-15
38
-97
98
-87

query I rowsort
SELECT DISTINCT + col0 + - + ( col0 ) FROM tab2 cor0
----
0

query I rowsort
SELECT + + col1 AS col1 FROM tab2 WHERE NOT + col2 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT ALL - 24 DIV + col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL - 24 / + col1 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 3 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - 38, col1 AS col2 FROM tab1
----
-38
14
-38
47
-38
5

query I rowsort
SELECT DISTINCT + col1 + + + 4 - col1 * - + col0 + + col0 FROM tab0
----
1315
1939
199

query II rowsort
SELECT + col0 * - + 12, + col0 FROM tab2
----
-552
46
-768
64
-900
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 34 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT DISTINCT 74 * COUNT( 30 ) FROM tab1 cor0
----
222

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT 74 * COUNT ( 30 ) FROM tab1 cor0
----
222

query I rowsort
SELECT DISTINCT col2 + + - col2 - 34 * - col1 * + + ( - 54 ) AS col0 FROM tab0
----
-148716
-1836
-38556

query I rowsort
SELECT ALL + + 19 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - ( + col1 ) * - + 85 + - col0 AND - - 86
----

query I rowsort
SELECT + col0 * + - col2 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT DISTINCT - 81 * 44 + + COUNT( * ) - 0 FROM tab1 AS cor0
----
-3561

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT - 81 * 44 + + COUNT ( * ) - 0 FROM tab1 AS cor0
----
-3561

query II rowsort
SELECT DISTINCT col1 + - - 81 + - col2 * + col0 * - col2, + col0 AS col0 FROM tab2 AS cor0
----
102558
64
24466
46
252448
75

query I rowsort
SELECT 24 FROM tab2 cor0 WHERE NULL NOT BETWEEN - 70 AND NULL
----

query II rowsort
SELECT DISTINCT 78 * - col0 / - 55 * - col0, ( + + col1 ) + - - col1 FROM tab0 AS cor0 WHERE col0 - - + 74 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col2 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT ALL - - col2 - - - col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT COUNT( + 25 ) * + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2732
SELECT COUNT ( + 25 ) * + COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT COUNT( - + 4 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2733
SELECT COUNT ( - + 4 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT + col0 * + - 88 FROM tab2
----
-4048
-5632
-6600

query I rowsort
SELECT 49 * + 33 * 13 AS col0 FROM tab0
----
21021
21021
21021

onlyif mysql # aggregate syntax: 
query II rowsort label-2736
SELECT ALL 99 AS col1, - COUNT( * ) FROM tab1
----
99
-3

skipif mysql # not compatible
query II rowsort label-2736
SELECT ALL 99 AS col1, - COUNT ( * ) FROM tab1
----
99
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 37 ) col1 FROM tab1
----
37
37
37

query II rowsort
SELECT ALL - 0 AS col0, col1 FROM tab1
----
0
14
0
47
0
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2739
SELECT - MAX( ALL - 55 ) DIV - 30 + - 82 AS col2 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-2739
SELECT - MAX ( ALL - 55 ) / - 30 + - 82 AS col2 FROM tab1
----
-83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( col1 ) <> + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + + col1 - - col1 + + col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2742
SELECT + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 + - col2 / - + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2742
SELECT + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 + - col2 / - + CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2743
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2743
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT ALL + 62 + + - col1 + col0 * col2 FROM tab0 AS cor0 WHERE NOT + ( + CAST( - col1 AS SIGNED ) ) >= - + 62 + + col2 OR NULL NOT IN ( + col0 + + col1, + 35 )
----
686
9664

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL + 62 + + - col1 + col0 * col2 FROM tab0 AS cor0 WHERE NOT + ( + CAST ( - col1 AS INTEGER ) ) >= - + 62 + + col2 OR NULL NOT IN ( + col0 + + col1, + 35 )
----
686
9664

query I rowsort
SELECT - 21 * + col0 FROM tab0 AS cor0
----
-1827
-2037
-315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col0 FROM tab1
----
28

query II rowsort
SELECT col0 * + 50, + col0 AS col0 FROM tab1
----
2550
51
4250
85
4550
91

query I rowsort
SELECT + ( + ( - 41 ) ) AS col1 FROM tab2 AS cor0
----
-41
-41
-41

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 86 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2750
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 6 AND - - ( - CAST( NULL AS SIGNED ) ) * - - col0 + + + 48
----

skipif mysql # not compatible
query III rowsort label-2750
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 6 AND - - ( - CAST ( NULL AS INTEGER ) ) * - - col0 + + + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT ALL + + MAX( + col0 ) FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + + MAX ( + col0 ) FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT + - MAX( + 48 ) AS col0 FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2752
SELECT + - MAX ( + 48 ) AS col0 FROM tab2 cor0
----
-48

query II rowsort
SELECT ALL col0 AS col2, + col0 * + col0 * col2 + - col1 AS col2 FROM tab0
----
15
10494
87
75669
97
931490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2754
SELECT 48 + CAST( NULL AS SIGNED ) * - SUM( - col0 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT 48 + CAST ( NULL AS INTEGER ) * - SUM ( - col0 ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT ALL - ( + + col0 ) DIV - - col1 + + 52 AS col1 FROM tab2
----
51
52
52

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL - ( + + col0 ) / - - col1 + + 52 AS col1 FROM tab2
----
51
52
52

query I rowsort
SELECT - ( + 2 ) + - 5 AS col1 FROM tab0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT col0 + + 5 AS col2 FROM tab1
----
56
90
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT + 40 + + COUNT( * ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-2758
SELECT + 40 + + COUNT ( * ) FROM tab0
----
43

query I rowsort
SELECT - - 17 + - ( 20 ) FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT - 13 - - col2 FROM tab1 AS cor0
----
46
55
83

query I rowsort
SELECT + col2 * + 70 AS col2 FROM tab1 AS cor0
----
4130
4760
6720

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 20 * + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT + - ( + COUNT( 79 ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2763
SELECT + - ( + COUNT ( 79 ) ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT + + ( 15 ) AS col0 FROM tab2 cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2765
SELECT 67 AS col2, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
67
3

skipif mysql # not compatible
query II rowsort label-2765
SELECT 67 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
67
3

query I rowsort
SELECT + 57 * + col0 * + col1 FROM tab2 AS cor0
----
133722
280896
286425

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 62 / + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT DISTINCT ( + ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT ( + ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + - col1 + + + col0 IS NULL
----

query II rowsort
SELECT DISTINCT - - 67 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
67
-1
67
-21
67
-81

query I rowsort
SELECT DISTINCT + 0 * + - col2 * 62 * + col0 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 / 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT DISTINCT COUNT( * ) * SUM( DISTINCT + col0 ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT COUNT ( * ) * SUM ( DISTINCT + col0 ) FROM tab1
----
681

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT ALL - 8 DIV 68 * - col1 + - 22 AS col2 FROM tab1 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL - 8 / 68 * - col1 + - 22 AS col2 FROM tab1 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2775
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST( - + col1 AS SIGNED ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2775
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( - + col1 AS INTEGER ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2776
SELECT + - ( 56 ) AS col1, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-56
3

skipif mysql # not compatible
query II rowsort label-2776
SELECT + - ( 56 ) AS col1, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-56
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL - - MIN( + - 72 ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL - - MIN ( + - 72 ) FROM tab2 AS cor0
----
-72

query I rowsort
SELECT ALL - - 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT - + 18 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT ALL 85 + + - 69 AS col0 FROM tab1
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT + SUM( DISTINCT + 30 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
30

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT + SUM ( DISTINCT + 30 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
30

query III rowsort
SELECT * FROM tab0 WHERE NOT + 32 <= NULL
----

query I rowsort
SELECT - + 85 * - - 19 + col0 FROM tab1 AS cor0
----
-1524
-1530
-1564

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT + MAX( - + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT + MAX ( - + col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2785
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 14 + col1 FROM tab2 AS cor0 WHERE + col0 * - col0 IS NOT NULL
----
37
53
63

query I rowsort
SELECT + 1 * + 59 + col1 + - - 39 AS col2 FROM tab1 AS cor0
----
103
112
145

onlyif mysql # DIV for integer division: 
query I rowsort label-2788
SELECT + 4 DIV - 41 + - col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2788
SELECT + 4 / - 41 + - col0 FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT - 58 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2790
SELECT - 58 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL - + 95 * col1 / - 79 + + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT MAX( ( - 8 ) ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-2792
SELECT MAX ( ( - 8 ) ) FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT DISTINCT ( + - 29 ) + COUNT( * ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT ( + - 29 ) + COUNT ( * ) FROM tab2
----
-26

query I rowsort
SELECT - 57 * col2 AS col0 FROM tab0
----
-2679
-5643
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - col2 * + + col0 * 41 + col0 col1 FROM tab2 AS cor0
----
13376325
1995434
6717504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT - col2 * col2 * - CAST( - 70 AS SIGNED ) AS col1 FROM tab1
----
-243670
-323680
-645120

skipif mysql # not compatible
query I rowsort label-2796
SELECT - col2 * col2 * - CAST ( - 70 AS INTEGER ) AS col1 FROM tab1
----
-243670
-323680
-645120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2797
SELECT COUNT( * ) DIV + + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2797
SELECT COUNT ( * ) / + + COUNT ( * ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT + 79 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 54 * + col2 + + 63 FROM tab1 AS cor0
----
3249
3735
5247

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT + 31 * col1 + - - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT + 31 * col1 + - - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 55 * + col0 AS col2 FROM tab2 AS cor0
----
2530
3520
4125

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT ALL + ( + 78 ) DIV + - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL + ( + 78 ) / + - col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2804
SELECT col2 * CAST( + + col2 AS SIGNED ) AS col1 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-2804
SELECT col2 * CAST ( + + col2 AS INTEGER ) AS col1 FROM tab0
----
100
2209
9801

query II rowsort
SELECT + col1 AS col1, col1 - + col0 AS col0 FROM tab2
----
51
5
67
-8
77
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2806
SELECT * FROM tab1 WHERE NOT NULL IN ( - CAST( + 45 AS SIGNED ), col0 * - - ( 58 ) )
----

skipif mysql # not compatible
query III rowsort label-2806
SELECT * FROM tab1 WHERE NOT NULL IN ( - CAST ( + 45 AS INTEGER ), col0 * - - ( 58 ) )
----

query I rowsort
SELECT DISTINCT - 44 * + 49 FROM tab0
----
-2156

query I rowsort
SELECT + + 35 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - - col2 AS col0, + ( - col0 ) AS col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2810
SELECT ALL - + 65 * - - 36 + 95 * - CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
-11460
-7945
-8800

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL - + 65 * - - 36 + 95 * - CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
-11460
-7945
-8800

query I rowsort
SELECT - - col1 + - + 11 FROM tab0 AS cor0
----
-10
10
70

query I rowsort
SELECT DISTINCT - 82 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT ALL col1 + - col1 * + 99 * - + col0 + col2 + - 8 + - col0 * 37 * + CAST( NULL AS SIGNED ) - - ( - ( + col2 ) ) * - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL col1 + - col1 * + 99 * - + col0 + col2 + - 8 + - col0 * 37 * + CAST ( NULL AS INTEGER ) - - ( - ( + col2 ) ) * - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT ALL + COUNT( * ) DIV - 24 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL + COUNT ( * ) / - 24 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT - ( 11 ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-11
-11
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2816
SELECT DISTINCT + - COUNT( * ) * - 42 DIV + - 2 AS col1 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT + - COUNT ( * ) * - 42 / + - 2 AS col1 FROM tab2 AS cor0
----
-63

query II rowsort
SELECT + 27 + - col2 AS col0, - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-20
-1215
-72
-97
17
-1827

query I rowsort
SELECT - 31 + + col2 * + col0 FROM tab1 AS cor0
----
4865
4984
6157

query I rowsort
SELECT col2 + 78 AS col1 FROM tab2 AS cor0
----
101
118
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT MIN( DISTINCT + col0 ) + 92 + - 6 AS col1 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-2820
SELECT MIN ( DISTINCT + col0 ) + 92 + - 6 AS col1 FROM tab0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-2821
SELECT - col2 + + - col0 DIV + 41 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-2821
SELECT - col2 + + - col0 / + 41 FROM tab2
----
-24
-41
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT 32 + - 23 - + col2 * + col2 * - col2 + - 21 DIV + + 78 AS col0 FROM tab0
----
1009
103832
970308

skipif mysql # not compatible
query I rowsort label-2822
SELECT 32 + - 23 - + col2 * + col2 * - col2 + - 21 / + + 78 AS col0 FROM tab0
----
1009
103832
970308

query I rowsort
SELECT DISTINCT - col0 + + 22 FROM tab1
----
-29
-63
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT DISTINCT - ( + COUNT( * ) ) + MIN( DISTINCT - CAST( + col1 AS SIGNED ) ) FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT - ( + COUNT ( * ) ) + MIN ( DISTINCT - CAST ( + col1 AS INTEGER ) ) FROM tab2
----
-80

query I rowsort
SELECT - + col0 * + col0 AS col1 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2826
SELECT DISTINCT - col0 DIV col1 + + col1 FROM tab0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT - col0 / col1 + + col1 FROM tab0
----
-96
17
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT COUNT( * ) + + + 49 AS col0 FROM tab0 AS cor0 WHERE col1 + col0 >= NULL
----
49

skipif mysql # not compatible
query I rowsort label-2828
SELECT COUNT ( * ) + + + 49 AS col0 FROM tab0 AS cor0 WHERE col1 + col0 >= NULL
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + col0 col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - ( - col0 ) * + ( + 26 ) * + col0 + - col0 + ( + 87 ) - - + col1 AND - col2 * + 16
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2831
SELECT col2 DIV + 90 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2831
SELECT col2 / + 90 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + - 99 * + col0 FROM tab0 AS cor0
----
-1485
-8613
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT + COUNT( ALL + 40 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2833
SELECT + COUNT ( ALL + 40 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 0 <> NULL
----

query I rowsort
SELECT + 3 * - col0 AS col2 FROM tab1 cor0
----
-153
-255
-273

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 50 * - - 20 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 25 AS col2, col2 + + - 73 AS col1 FROM tab2
----
25
-15
25
-33
25
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT - ( MAX( ALL - + col1 ) ) col1 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2838
SELECT - ( MAX ( ALL - + col1 ) ) col1 FROM tab2
----
51

query II rowsort
SELECT ALL + 54 * + + col1 - - - 30 AS col2, col2 AS col2 FROM tab0 AS cor0
----
1104
10
24
99
4344
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + col2 col1 FROM tab2 AS cor0
----
1058
2560
4350

query II rowsort
SELECT + col0 AS col1, col1 + + col2 AS col0 FROM tab0 AS cor0
----
15
128
87
31
97
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT COUNT( * ) * + ( - 47 ) * - CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT COUNT ( * ) * + ( - 47 ) * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT col1 + - - col2 AS col1 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT + col0 + + 37 * - - 29 FROM tab2
----
1119
1137
1148

query I rowsort
SELECT + 34 + - 90 AS col1 FROM tab2 AS cor0
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2846
SELECT + 5 + col1 DIV - - col2 FROM tab0 AS cor0
----
5
6
7

skipif mysql # not compatible
query I rowsort label-2846
SELECT + 5 + col1 / - - col2 FROM tab0 AS cor0
----
5
6
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 - - col1, col2 col2 FROM tab0 AS cor0
----
162
47
2
99
42
10

query II rowsort
SELECT DISTINCT - - col1, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 34 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2850
SELECT DISTINCT col1 DIV + 23 + - - col1 AS col1 FROM tab0
----
1
21
84

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT col1 / + 23 + - - col1 AS col1 FROM tab0
----
1
21
84

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 * - col0 + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 64 - - col2 + + + col0 AS col0 FROM tab0
----
-2
132
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 32 col2 FROM tab0 AS cor0
----
-55
-65
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT - MIN( + - col2 ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2854
SELECT - MIN ( + - col2 ) col1 FROM tab0
----
99

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= - 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT - 97 * SUM( DISTINCT 22 ) FROM tab1
----
-2134

skipif mysql # not compatible
query I rowsort label-2856
SELECT - 97 * SUM ( DISTINCT 22 ) FROM tab1
----
-2134

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) >= - 60 * - 39 - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + col1 AS col1 FROM tab1 AS cor0 WHERE NOT 84 + - col2 IS NULL
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2860
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2860
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + + col0 col0 FROM tab1 cor0
----
2601
7225
8281

query I rowsort
SELECT ALL - col2 * 40 AS col0 FROM tab1 AS cor0
----
-2360
-2720
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-2863
SELECT DISTINCT + 68 DIV 92 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT + 68 / 92 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2864
SELECT DISTINCT + col2 * + col2 * - col1 AS col1 FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) + - col0 + col1 / + 57 ) IS NULL
----
-123200
-225388
-26979

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT + col2 * + col2 * - col1 AS col1 FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) + - col0 + col1 / + 57 ) IS NULL
----
-123200
-225388
-26979

query I rowsort
SELECT - 69 * + col1 FROM tab2
----
-3519
-4623
-5313

query II rowsort
SELECT + col0 * - + 40, + col0 FROM tab0
----
-3480
87
-3880
97
-600
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL ( COUNT( * ) ) * - SUM( - col1 ) AS col0 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL ( COUNT ( * ) ) * - SUM ( - col1 ) AS col0 FROM tab2
----
585

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 <> + 99
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 4 col1 FROM tab1
----
236
272
384

query I rowsort
SELECT - col0 + 14 AS col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - col2 + - 20 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col0 col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT + 47 + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2873
SELECT + 47 + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
50

query I rowsort
SELECT DISTINCT - 72 - + col2 - - col0 * col2 FROM tab2 AS cor0
----
2448
4220
963

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2875
SELECT * FROM tab1 AS cor0 WHERE + 72 * - - col0 NOT BETWEEN - + col0 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2875
SELECT * FROM tab1 AS cor0 WHERE + 72 * - - col0 NOT BETWEEN - + col0 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 83 - col1 * - - col2 FROM tab1 AS cor0
----
-1261
-212
-3113

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + col0 ) * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2878
SELECT + - CAST( NULL AS SIGNED ) * + - col0 + - + 16 AS col1, col0 + + - col0 * + - 92 FROM tab2 AS cor0
----
NULL
4278
NULL
5952
NULL
6975

skipif mysql # not compatible
query II rowsort label-2878
SELECT + - CAST ( NULL AS INTEGER ) * + - col0 + - + 16 AS col1, col0 + + - col0 * + - 92 FROM tab2 AS cor0
----
NULL
4278
NULL
5952
NULL
6975

query I rowsort
SELECT + col0 + col1 + - col2 FROM tab2
----
101
74
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2880
SELECT DISTINCT CAST( - 13 AS SIGNED ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT CAST ( - 13 AS INTEGER ) FROM tab1
----
-13

query I rowsort
SELECT ALL + ( - + 42 ) + - 13 * - - col1 FROM tab0
----
-1095
-315
-55

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 + - - 23 * + + col1 < NULL
----

query I rowsort
SELECT ALL col1 * - + 71 AS col2 FROM tab0
----
-1491
-5751
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2884
SELECT col1 + CAST( 42 AS SIGNED ) AS col2 FROM tab2
----
109
119
93

skipif mysql # not compatible
query I rowsort label-2884
SELECT col1 + CAST ( 42 AS INTEGER ) AS col2 FROM tab2
----
109
119
93

query I rowsort
SELECT DISTINCT col2 + - col2 + - 84 + - - 91 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT COUNT( * ) * + - MIN( - col0 ) AS col2 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-2886
SELECT COUNT ( * ) * + - MIN ( - col0 ) AS col2 FROM tab2
----
225

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 24 IS NULL
----

query I rowsort
SELECT ALL - + col0 * col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + - + col1 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT - SUM( ( col1 ) ) AS col0 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2890
SELECT - SUM ( ( col1 ) ) AS col0 FROM tab2 cor0
----
-195

query I rowsort
SELECT - ( + + 5 ) FROM tab0
----
-5
-5
-5

query I rowsort
SELECT ALL col1 * + 68 * col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
124236
6596
82620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2893
SELECT ALL CAST( + ( - ( 53 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL CAST ( + ( - ( 53 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT + + col1 + col2 + col1 AS col1 FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
125
192
194

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT COUNT( * ) * SUM( col2 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1404

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT COUNT ( * ) * SUM ( col2 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1404

query I rowsort
SELECT + col1 + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT col1 * + 91 FROM tab0 AS cor0
----
1911
7371
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2898
SELECT - col0 + - CAST( - col0 AS SIGNED ) - + col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2898
SELECT - col0 + - CAST ( - col0 AS INTEGER ) - + col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL + - 65 AS col1 FROM tab1 cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2900
SELECT DISTINCT COUNT( * ) + + COUNT( + 86 ) DIV - 38 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT COUNT ( * ) + + COUNT ( + 86 ) / - 38 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT DISTINCT 80 * + COUNT( * ) col0 FROM tab0
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2901
SELECT DISTINCT 80 * + COUNT ( * ) col0 FROM tab0
----
240

query I rowsort
SELECT col0 * - 40 FROM tab1
----
-2040
-3400
-3640

query II rowsort
SELECT 65 AS col0, + col2 * 60 AS col0 FROM tab2
----
65
1380
65
2400
65
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL SUM( - 42 ) * + COUNT( * ) AS col2 FROM tab0
----
-378

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL SUM ( - 42 ) * + COUNT ( * ) AS col2 FROM tab0
----
-378

query I rowsort
SELECT + + ( - + col1 ) * - col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT + col0 - col2 FROM tab2 AS cor0 WHERE col2 * + - col2 IS NOT NULL
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT SUM( - col0 ) FROM tab2 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT SUM ( - col0 ) FROM tab2 WHERE NULL <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT 56 + - col2 * + CAST( + 11 AS SIGNED ) col2 FROM tab2
----
-197
-384
-582

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2908
SELECT 56 + - col2 * + CAST ( + 11 AS INTEGER ) col2 FROM tab2
----
-197
-384
-582

onlyif mysql # aggregate syntax: 
query II rowsort label-2909
SELECT COUNT( * ) * - ( - + COUNT( * ) ), 98 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2909
SELECT COUNT ( * ) * - ( - + COUNT ( * ) ), 98 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81
98

query I rowsort
SELECT DISTINCT col1 - - 84 FROM tab1
----
131
89
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT - COUNT( 90 ) + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-2911
SELECT - COUNT ( 90 ) + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2912
SELECT SUM( ALL + + 77 ), COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 NOT IN ( - - col0 * - col1, - col0, - + 38 + + 16 * + 81 )
----
231
3

skipif mysql # not compatible
query II rowsort label-2912
SELECT SUM ( ALL + + 77 ), COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 NOT IN ( - - col0 * - col1, - col0, - + 38 + + 16 * + 81 )
----
231
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ( + + 36 ) * MAX( - 96 ) * + + 29 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-100224

skipif mysql # not compatible
query I rowsort label-2913
SELECT ( + + 36 ) * MAX ( - 96 ) * + + 29 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-100224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2914
SELECT DISTINCT + AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT DISTINCT - COUNT( * ) - - + 54 AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT - COUNT ( * ) - - + 54 AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT + + ( + - 47 ) AS col2 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT DISTINCT + COUNT( * ) - 73 AS col2 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT + COUNT ( * ) - 73 AS col2 FROM tab2 AS cor0
----
-70

query I rowsort
SELECT 60 - + - col1 FROM tab2
----
111
127
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2919
SELECT DISTINCT COUNT( * ) * CAST( + ( + 22 ) AS SIGNED ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT COUNT ( * ) * CAST ( + ( + 22 ) AS INTEGER ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT DISTINCT SUM( DISTINCT + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT SUM ( DISTINCT + col0 ) AS col2 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2921
SELECT ALL * FROM tab2 WHERE - ( + CAST( + 44 AS SIGNED ) ) + 47 * - col0 - + CAST( NULL AS SIGNED ) NOT IN ( + CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2921
SELECT ALL * FROM tab2 WHERE - ( + CAST ( + 44 AS INTEGER ) ) + 47 * - col0 - + CAST ( NULL AS INTEGER ) NOT IN ( + CAST ( col0 AS INTEGER ) )
----

query I rowsort
SELECT ( - 15 ) AS col0 FROM tab2
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT - - COUNT( * ) col1 FROM tab2 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2923
SELECT - - COUNT ( * ) col1 FROM tab2 WHERE NOT - col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT - col0 * - - 47 FROM tab2 AS cor0
----
-2162
-3008
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT + - 32 * - MIN( - ( 56 ) ) * - 70 * SUM( col0 ) - + + COUNT( ALL + - 91 ) AS col2 FROM tab0 WHERE NOT + col0 - + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT + - 32 * - MIN ( - ( 56 ) ) * - 70 * SUM ( col0 ) - + + COUNT ( ALL + - 91 ) AS col2 FROM tab0 WHERE NOT + col0 - + col2 <= NULL
----
NULL

query I rowsort
SELECT ALL + col2 * + + 26 FROM tab2
----
1040
1508
598

query II rowsort
SELECT DISTINCT col1, 25 * - col0 AS col2 FROM tab2 AS cor0
----
51
-1150
67
-1875
77
-1600

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL SUM( - 97 ) AS col2 FROM tab1 AS cor0 WHERE col1 + + + col2 IS NOT NULL
----
-291

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL SUM ( - 97 ) AS col2 FROM tab1 AS cor0 WHERE col1 + + + col2 IS NOT NULL
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2931
SELECT + CAST( NULL AS SIGNED ) AS col1, col0 + + - col2 AS col1 FROM tab1 AS cor0
----
NULL
-45
NULL
23
NULL
26

skipif mysql # not compatible
query II rowsort label-2931
SELECT + CAST ( NULL AS INTEGER ) AS col1, col0 + + - col2 AS col1 FROM tab1 AS cor0
----
NULL
-45
NULL
23
NULL
26

query I rowsort
SELECT DISTINCT - 99 + + + col2 AS col2 FROM tab1 AS cor0
----
-3
-31
-40

query I rowsort
SELECT + 23 + - ( - col0 ) FROM tab1
----
108
114
74

query I rowsort
SELECT ALL - col0 + col0 - + 49 AS col0 FROM tab0
----
-49
-49
-49

query I rowsort
SELECT col0 + - 37 AS col1 FROM tab0
----
-22
50
60

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab2 WHERE + + col0 > NULL
----

query I rowsort
SELECT - 89 + - col0 + + - 56 AS col1 FROM tab2
----
-191
-209
-220

query I rowsort
SELECT ALL ( - 16 ) + + - col2 + - col1 FROM tab0
----
-116
-144
-47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2939
SELECT + col0 + - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2939
SELECT + col0 + - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + 56 + + 93, - ( - col0 ) AS col0 FROM tab2
----
149
46
149
64
149
75

query I rowsort
SELECT DISTINCT + col2 * - col2 * + - col2 * - col1 AS col1 FROM tab0 AS cor0
----
-21000
-8409663
-970299

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2942
SELECT CAST( NULL AS SIGNED ) AS col1, + 12 FROM tab0
----
NULL
12
NULL
12
NULL
12

skipif mysql # not compatible
query II rowsort label-2942
SELECT CAST ( NULL AS INTEGER ) AS col1, + 12 FROM tab0
----
NULL
12
NULL
12
NULL
12

query I rowsort
SELECT 68 * + + ( - + col0 ) FROM tab2
----
-3128
-4352
-5100

query I rowsort
SELECT DISTINCT 8 + 15 + - col2 * - col1 AS col2 FROM tab0
----
122
233
3830

query II rowsort
SELECT ALL + ( 47 ) AS col0, 38 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to 4e7c43aafda7be3c2747b1d9453e4c88

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= - col2 + + col1
----

query I rowsort
SELECT DISTINCT + + col1 * + col2 * col0 + - - col2 * + col0 FROM tab1 AS cor0
----
297024
30090
73440

query I rowsort
SELECT DISTINCT + + col2 - col1 * - - col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT + 52 + - col2 * 33 + col0 FROM tab2 AS cor0
----
-1204
-1787
-661

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2950
SELECT ALL col1, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2950
SELECT ALL col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT - + 87 * + + col0 + + ( - - col0 ) FROM tab2 AS cor0
----
-3956
-5504
-6450

query I rowsort
SELECT ALL + 55 - col1 * 33 FROM tab0 AS cor0
----
-2618
-638
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT DISTINCT + MAX( + 30 ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + MAX ( + 30 ) FROM tab2 AS cor0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2954
SELECT DISTINCT + COUNT( DISTINCT - 18 ) * - - CAST( - 25 AS SIGNED ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT + COUNT ( DISTINCT - 18 ) * - - CAST ( - 25 AS INTEGER ) FROM tab1 AS cor0
----
-25

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 80 + col1 BETWEEN col1 - + col0 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2956
SELECT DISTINCT + col1 DIV + - 40 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT + col1 / + - 40 AS col2 FROM tab2
----
-1

query I rowsort
SELECT + col0 * 68 FROM tab0
----
1020
5916
6596

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + + 61 / + - 32 + - col1
----

query I rowsort
SELECT ALL - col2 * + ( - 35 ) * col1 AS col1 FROM tab1
----
10325
111860
47040

query I rowsort
SELECT 60 + + col1 + + 72 FROM tab2 AS cor0
----
183
199
209

query I rowsort
SELECT + col2 + - + col1 AS col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL + MAX( - - 69 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL + MAX ( - - 69 ) FROM tab0 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL + + SUM( DISTINCT col2 ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2963
SELECT ALL + + SUM ( DISTINCT col2 ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL 43 * - - COUNT( * ) - - + 48 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL 43 * - - COUNT ( * ) - - + 48 FROM tab2 AS cor0
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT - - 86 + col1 DIV col1 * 20 DIV - col1 + + col0 AS col1 FROM tab0 AS cor0
----
101
163
173

skipif mysql # not compatible
query I rowsort label-2965
SELECT - - 86 + col1 / col1 * 20 / - col1 + + col0 AS col1 FROM tab0 AS cor0
----
101
163
173

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL - MAX( + col2 ) col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2966
SELECT ALL - MAX ( + col2 ) col0 FROM tab0 cor0
----
-99

query I rowsort
SELECT ALL 5 + col0 AS col0 FROM tab2 AS cor0
----
51
69
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2968
SELECT DISTINCT SUM( DISTINCT + - ( - col2 ) ) + - 6 + 4 DIV 26 DIV - 35 FROM tab2
----
115

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT SUM ( DISTINCT + - ( - col2 ) ) + - 6 + 4 / 26 / - 35 FROM tab2
----
115

query I rowsort
SELECT DISTINCT 68 * + + col2 FROM tab2 WHERE + + 10 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + + 41 AS col2, 49 col2 FROM tab0
----
122
49
42
49
62
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ( MIN( 71 ) ) col0 FROM tab1
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2971
SELECT ( MIN ( 71 ) ) col0 FROM tab1
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col2 col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 71 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2974
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col1, - col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-2974
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col1, - col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2975
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND - col0 * - ( + + col0 ) * - 78 + + + ( + CAST( + - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2975
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND - col0 * - ( + + col0 ) * - 78 + + + ( + CAST ( + - col1 AS INTEGER ) )
----

query I rowsort
SELECT ( + ( - ( - ( - 27 ) ) ) ) + + col0 * - 11 FROM tab2
----
-533
-731
-852

query I rowsort
SELECT ALL 2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT DISTINCT + col1 - + col0 DIV - + col1 + - col1 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT + col1 - + col0 / - + col1 + - col1 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + 84 FROM tab1 AS cor0 WHERE - col2 <= - + 68 + col2 / - col0 + - col2 * col1 * col2 AND + col2 + - + col1 / - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 78 * col0 AS col2 FROM tab2
----
3588
4992
5850

query II rowsort
SELECT DISTINCT + - 78 AS col0, col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - 96 * + col0 col1 FROM tab0
----
-116640
-175392
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NOT NULL = - ( + col2 ) * + 74 * + col2 + - + col1 + + + col1 + - - 99 + col0 + - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2983
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NOT NULL = - ( + col2 ) * + 74 * + col2 + - + col1 + + + col1 + - - 99 + col0 + - + col1 )
----
0

query I rowsort
SELECT + col0 * + 63 AS col0 FROM tab0
----
5481
6111
945

query I rowsort
SELECT ALL col0 * + + 45 FROM tab0 AS cor0
----
3915
4365
675

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > 71
----

query I rowsort
SELECT + 77 + col0 * ( col1 * 14 ) FROM tab2
----
32921
69069
70427

query I rowsort
SELECT ALL - col1 + + col2 / + col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2989
SELECT DISTINCT 56 * col2 + col0 FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) >= ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT 56 * col2 + col0 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) >= ( + col1 )
----

query I rowsort
SELECT DISTINCT + 5 AS col0 FROM tab2 WHERE NOT + 47 IS NULL
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT DISTINCT SUM( 98 ) AS col2 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT SUM ( 98 ) AS col2 FROM tab1
----
294

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * 41 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT ALL + MIN( 3 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL + MIN ( 3 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col1 FROM tab2
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT DISTINCT MAX( ALL - 19 ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT MAX ( ALL - 19 ) FROM tab2
----
-19

query I rowsort
SELECT 42 * - col1 AS col1 FROM tab2
----
-2142
-2814
-3234

query I rowsort
SELECT 80 * 25 FROM tab0
----
2000
2000
2000

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT ALL + col1 DIV 88 FROM tab1 WHERE col1 NOT BETWEEN ( + col1 * col2 - + 42 ) AND col1 + col2 DIV 7
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL + col1 / 88 FROM tab1 WHERE col1 NOT BETWEEN ( + col1 * col2 - + 42 ) AND col1 + col2 / 7
----
0
0
0

query I rowsort
SELECT DISTINCT - 15 * 20 AS col2 FROM tab2
----
-300

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + col0 AND ( ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT + 61 * - MIN( ALL col2 ) AS col0 FROM tab0
----
-610

skipif mysql # not compatible
query I rowsort label-3001
SELECT + 61 * - MIN ( ALL col2 ) AS col0 FROM tab0
----
-610

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3002
SELECT - col0 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT - col0 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + col0 AS col2 FROM tab2 WHERE + 32 IN ( 19 )
----

query I rowsort
SELECT - 51 * col2 FROM tab0
----
-2397
-5049
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL + SUM( DISTINCT + col1 ) col2 FROM tab2 WHERE - 56 + + col0 * + col0 <= - 94 * col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3005
SELECT ALL + SUM ( DISTINCT + col1 ) col2 FROM tab2 WHERE - 56 + + col0 * + col0 <= - 94 * col2
----
NULL

query I rowsort
SELECT ALL col0 * 54 FROM tab0
----
4698
5238
810

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT + col1 NOT BETWEEN - 37 AND 1 * col2 + col1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3008
SELECT * FROM tab0 WHERE NOT col0 IN ( - ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-3008
SELECT * FROM tab0 WHERE NOT col0 IN ( - ( CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT col0 + 49 AS col1 FROM tab1 AS cor0
----
100
134
140

query I rowsort
SELECT DISTINCT + 3 - + 84 FROM tab2 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3011
SELECT DISTINCT 55 DIV col1 AS col1 FROM tab1 AS cor0
----
1
11
3

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT 55 / col1 AS col1 FROM tab1 AS cor0
----
1
11
3

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT col0 * - col0 - 91 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 LEFT OUTER JOIN tab2 ON NOT ( NULL ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT - 86 FROM tab2 AS cor0 CROSS JOIN tab2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT + COUNT( * ) + - 96 AS col0 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + COUNT ( * ) + - 96 AS col0 FROM tab0
----
-93

query I rowsort
SELECT + ( 89 ) AS col2 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT ALL - ( + col0 ) + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col0 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL - SUM( - 85 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 69 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL - SUM ( - 85 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 69 AND NULL
----
NULL

query I rowsort
SELECT - - ( 57 ) AS col0 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL - COUNT( DISTINCT col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL - COUNT ( DISTINCT col0 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT DISTINCT - COUNT( * ) - 29 FROM tab2 WHERE ( + col0 ) NOT IN ( col0 + - col0 )
----
-32

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT - COUNT ( * ) - 29 FROM tab2 WHERE ( + col0 ) NOT IN ( col0 + - col0 )
----
-32

query I rowsort
SELECT col1 * 13 * ( + col0 ) FROM tab1
----
5525
55601
9282

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= - col0 / 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL - 10 * SUM( col1 ) FROM tab1 WHERE NOT ( - 22 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL - 10 * SUM ( col1 ) FROM tab1 WHERE NOT ( - 22 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ( + + 47 ) * col0 FROM tab1
----
2397
3995
4277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3027
SELECT col2 * - ( col1 ) * CAST( + ( + col1 ) + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-26550
-441048
-87360

skipif mysql # not compatible
query I rowsort label-3027
SELECT col2 * - ( col1 ) * CAST ( + ( + col1 ) + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-26550
-441048
-87360

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 30 + - col0 BETWEEN NULL AND + col1 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT ALL 59 - - 30 AS col0 FROM tab1 cor0 WHERE col0 BETWEEN ( NULL ) AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL 59 - - 30 AS col0 FROM tab1 cor0 WHERE col0 BETWEEN ( NULL ) AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) >= col0
----
0

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) >= col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3032
SELECT ALL + - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL + - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 93 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query III rowsort
SELECT * FROM tab2 WHERE ( + + col0 + col2 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3035
SELECT DISTINCT * FROM tab2 WHERE - CAST( col2 AS SIGNED ) + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3035
SELECT DISTINCT * FROM tab2 WHERE - CAST ( col2 AS INTEGER ) + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 57 ) <= ( 15 )
----

query I rowsort
SELECT DISTINCT col2 + + ( - - col0 ) AS col2 FROM tab1
----
144
147
159

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT MAX( DISTINCT - 14 ) + MIN( ALL - col1 ) AS col1 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-3039
SELECT MAX ( DISTINCT - 14 ) + MIN ( ALL - col1 ) AS col1 FROM tab2
----
-91

query I rowsort
SELECT DISTINCT - 65 * - col0 AS col2 FROM tab2 AS cor0
----
2990
4160
4875

query I rowsort
SELECT ALL - ( - ( + - col2 ) ) + - 30 AS col1 FROM tab0 AS cor0
----
-129
-40
-77

query II rowsort
SELECT ALL col1 AS col2, col1 + + 85 + col1 FROM tab2 AS cor0
----
51
187
67
219
77
239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 + - col1 * + 90 * - col1 + - 71 * - col0 col1 FROM tab1 AS cor0
----
205279
21269
8293

query I rowsort
SELECT DISTINCT 75 * + - col1 - - 68 FROM tab2 AS cor0
----
-3757
-4957
-5707

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 * + - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT + COUNT( * ) + - COUNT( * ) + - CAST( + 7 AS SIGNED ) + + 51 AS col0 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3046
SELECT + COUNT ( * ) + - COUNT ( * ) + - CAST ( + 7 AS INTEGER ) + + 51 AS col0 FROM tab2 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3047
SELECT ALL - col0 DIV - CAST( - 50 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL - col0 / - CAST ( - 50 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 96 AS col2 FROM tab1 AS cor0 WHERE - col1 * - - col2 IS NOT NULL
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3049
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 63 + - + CAST( - 87 AS SIGNED ) ) NOT IN ( col0 / + col2 + + 33 )
----

skipif mysql # not compatible
query III rowsort label-3049
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 63 + - + CAST ( - 87 AS INTEGER ) ) NOT IN ( col0 / + col2 + + 33 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * 5 IS NULL
----

query I rowsort
SELECT ALL - 49 * + 84 FROM tab1 WHERE NOT - col1 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3052
SELECT DISTINCT - COUNT( ALL + col1 ) col2, + COUNT( * ) col2 FROM tab1
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3052
SELECT DISTINCT - COUNT ( ALL + col1 ) col2, + COUNT ( * ) col2 FROM tab1
----
-3
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + - 24 * - 25 )
----

query III rowsort
SELECT * FROM tab0 WHERE + 50 * - 1 <> NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL = ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT CAST( + + 38 AS SIGNED ) FROM tab0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-3056
SELECT CAST ( + + 38 AS INTEGER ) FROM tab0
----
38
38
38

query II rowsort
SELECT ALL 79 + - col0, - col1 AS col1 FROM tab1
----
-12
-47
-6
-5
28
-14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 NOT BETWEEN col0 AND NULL AND NOT - col2 > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 - - 6 + - col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL - - 15 FROM tab1 cor0
----
15
15
15

query I rowsort
SELECT 39 + col2 FROM tab0 WHERE NOT + 62 = + - 39 * + 26
----
138
49
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT - 26 + - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-35

skipif mysql # not compatible
query I rowsort label-3062
SELECT - 26 + - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-35

query I rowsort
SELECT 1 * col0 AS col2 FROM tab2 WHERE NOT + 49 * - 67 = - col1
----
46
64
75

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + 34 < - + col0
----
-59
-68
-96

query II rowsort
SELECT col1 AS col1, - col1 AS col0 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT + ( + + 52 ) FROM tab1 AS cor0
----
52
52
52

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 3 - + - 88 AND ( 21 )
----

query I rowsort
SELECT DISTINCT - - 81 AS col2 FROM tab1 cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3069
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE - col0 * - + CAST( NULL AS SIGNED ) * ( + - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE - col0 * - + CAST ( NULL AS INTEGER ) * ( + - col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1, + col0 AS col2 FROM tab1
----
14
51
47
91
5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 8 col0, 57 col0 FROM tab1, tab0 AS cor0
----
18 values hashing to 47fa575942f11af231f750582db09367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT 73 * - col0 / 66 * CAST( NULL AS SIGNED ) * + col1 * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT 73 * - col0 / 66 * CAST ( NULL AS INTEGER ) * + col1 * - col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 80 AS col0, + col0 - + + col1 FROM tab2
----
80
-13
80
-5
80
8

query I rowsort
SELECT DISTINCT 52 * - col0 FROM tab1
----
-2652
-4420
-4732

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 - col2 NOT IN ( col2 * col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + 19, col1 * + col0 )
----

query I rowsort
SELECT DISTINCT + col1 * - 22 FROM tab1
----
-1034
-110
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT + 42 + + COUNT( * ) * + 93 AS col1 FROM tab2 AS cor0 WHERE NOT 35 / - col2 + ( col0 ) + + 31 IS NOT NULL
----
42

skipif mysql # not compatible
query I rowsort label-3079
SELECT + 42 + + COUNT ( * ) * + 93 AS col1 FROM tab2 AS cor0 WHERE NOT 35 / - col2 + ( col0 ) + + 31 IS NOT NULL
----
42

query I rowsort
SELECT - + ( - 5 ) FROM tab1 AS cor0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col2, - col2 AS col1 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 51 ) col0 FROM tab0
----
51
51
51

query I rowsort
SELECT ALL + + 0 + - col2 + + col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3084
SELECT + + col2 * col0 DIV col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3084
SELECT + + col2 * col0 / col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3085
SELECT + + CAST( - - 52 AS SIGNED ) - + CAST( NULL AS DECIMAL ) * 24 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT + + CAST ( - - 52 AS INTEGER ) - + CAST ( NULL AS REAL ) * 24 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - col0 AND - col0 / - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT - SUM( DISTINCT + ( col1 ) ) + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT - SUM ( DISTINCT + ( col1 ) ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT 24 + + col0 + - col2 * col0 FROM tab0 cor0
----
-666
-759
-9482

query III rowsort
SELECT ALL * FROM tab1 WHERE + 50 IN ( - ( - - ( col0 ) ) )
----

query I rowsort
SELECT DISTINCT + 3 + col0 FROM tab1
----
54
88
94

query I rowsort
SELECT col0 + + ( + 62 ) AS col1 FROM tab0
----
149
159
77

query I rowsort
SELECT DISTINCT col0 + - - 91 * + col0 AS col0 FROM tab0
----
1380
8004
8924

query III rowsort
SELECT * FROM tab2 WHERE - col2 + col2 NOT BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 72 * - col0 FROM tab2 AS cor0
----
-3312
-4608
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT - 12 * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3095
SELECT - 12 * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 68 - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT DISTINCT + COUNT( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT + COUNT ( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col1 * - 53 FROM tab0
----
-1113
-4293
-53

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT ( ( NOT NULL <= NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT ( - 52 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT ( - 52 ) IS NULL
----
3

query II rowsort
SELECT - col2 * - col0 * - ( - - col2 ) AS col1, - col1 * - 79 FROM tab1 AS cor0
----
-295885
395
-420784
3713
-470016
1106

query I rowsort
SELECT ALL col1 * 53 FROM tab1 AS cor0 WHERE + col2 - + - 20 * col2 - - - 25 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ( - - col0 ) AS col1 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT ALL - + col0 * + 33 + col0 FROM tab1 AS cor0
----
-1632
-2720
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT - ( - MIN( ALL + + col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3105
SELECT - ( - MIN ( ALL + + col1 ) ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT 24 * 51 FROM tab0 AS cor0
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT + COUNT( ALL 57 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3107
SELECT + COUNT ( ALL 57 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT + MAX( - + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3108
SELECT + MAX ( - + col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE - col0 - col0 * - + 92 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3110
SELECT ALL 98 DIV + col1 + col1 * + + 74 FROM tab0
----
1558
172
5995

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL 98 / + col1 + col1 * + + 74 FROM tab0
----
1558
172
5995

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * + col1 = 17 / + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3112
SELECT DISTINCT CAST( 7 AS SIGNED ) + + + COUNT( * ) AS col2 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT CAST ( 7 AS INTEGER ) + + + COUNT ( * ) AS col2 FROM tab2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3113
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( - 64 AS SIGNED ) - 20 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3113
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( - 64 AS INTEGER ) - 20 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 15 * + + col2 FROM tab1
----
1020
1440
885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT + 82 AS col0, + COUNT( * ) * - 87 col0 FROM tab2 AS cor0
----
82
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3116
SELECT + 82 AS col0, + COUNT ( * ) * - 87 col0 FROM tab2 AS cor0
----
82
-261

query I rowsort
SELECT DISTINCT 8 + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < 88 * + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3119
SELECT + CAST( NULL AS DECIMAL ) * + + col2 * ( + + ( - + col1 ) ) + + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT + CAST ( NULL AS REAL ) * + + col2 * ( + + ( - + col1 ) ) + + + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT - COUNT( * ) + - 2 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3120
SELECT - COUNT ( * ) + - 2 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT col0 * 13 + - 66 FROM tab2 AS cor0
----
532
766
909

query I rowsort
SELECT DISTINCT + 78 FROM tab1 AS cor0 WHERE NOT + col0 * + + col2 IS NULL
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3123
SELECT DISTINCT - COUNT( * ), - 95 * + COUNT( * ) * 69 AS col2 FROM tab0 AS cor0
----
-3
-19665

skipif mysql # not compatible
query II rowsort label-3123
SELECT DISTINCT - COUNT ( * ), - 95 * + COUNT ( * ) * 69 AS col2 FROM tab0 AS cor0
----
-3
-19665

onlyif mysql # DIV for integer division: 
query I rowsort label-3124
SELECT ALL col2 - - col2 DIV + col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL col2 - - col2 / + col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3125
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 45 / - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3125
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 45 / - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT - SUM( col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT - SUM ( col2 ) FROM tab2 cor0
----
-121

query I rowsort
SELECT ALL + col0 * - - col0 + + 97 * + col0 FROM tab0
----
16008
1680
18818

query II rowsort
SELECT DISTINCT - col2 * col2 AS col1, col0 * - - col1 FROM tab1
----
-3481
425
-4624
4277
-9216
714

query III rowsort
SELECT * FROM tab1 WHERE + col0 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3131
SELECT + 80 AS col0, + 82 + SUM( ALL + ( - ( - - ( - col1 ) ) ) ) col2 FROM tab1 WHERE - ( - - 48 ) * - - col0 + - + col2 IS NOT NULL
----
80
148

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3131
SELECT + 80 AS col0, + 82 + SUM ( ALL + ( - ( - - ( - col1 ) ) ) ) col2 FROM tab1 WHERE - ( - - 48 ) * - - col0 + - + col2 IS NOT NULL
----
80
148

query I rowsort
SELECT DISTINCT - 74 + - - 22 AS col0 FROM tab2
----
-52

query I rowsort
SELECT DISTINCT - col2 - - 83 FROM tab1
----
-13
15
24

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= 65
----

query I rowsort
SELECT ALL + - col2 * + - col2 FROM tab1 cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT 26 * 36 * - 87 FROM tab2
----
-81432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, 56 FROM tab2
----
23
56
40
56
58
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT DISTINCT ( SUM( - col1 ) ) col2 FROM tab1 cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3138
SELECT DISTINCT ( SUM ( - col1 ) ) col2 FROM tab1 cor0
----
-66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( NOT ( - + col2 ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 65 AS col0 FROM tab2 AS cor0 WHERE + 66 * - - 45 > 50
----
-65
-65
-65

query I rowsort
SELECT DISTINCT 30 * - col0 AS col2 FROM tab1 cor0
----
-1530
-2550
-2730

query I rowsort
SELECT DISTINCT 98 + 80 FROM tab0 AS cor0
----
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3143
SELECT DISTINCT - 95 AS col2 FROM tab2 WHERE - + col2 + + col1 - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT - 95 AS col2 FROM tab2 WHERE - + col2 + + col1 - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT + 57 + + + COUNT( * ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-3144
SELECT + 57 + + + COUNT ( * ) AS col1 FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT - 41 + + + COUNT( ALL - col0 ) AS col2 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT - 41 + + + COUNT ( ALL - col0 ) AS col2 FROM tab1
----
-38

query I rowsort
SELECT + col2 * - 97 + - 62 AS col0 FROM tab2
----
-2293
-3942
-5688

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL 45 + - + COUNT( * ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL 45 + - + COUNT ( * ) FROM tab0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT 86 * + + COUNT( * ) + 89 - + MAX( - - col2 ) * + MIN( - 95 ) + + 69 FROM tab0
----
9821

skipif mysql # not compatible
query I rowsort label-3148
SELECT 86 * + + COUNT ( * ) + 89 - + MAX ( - - col2 ) * + MIN ( - 95 ) + + 69 FROM tab0
----
9821

query I rowsort
SELECT ALL - col1 + - col1 * + + col2 AS col2 FROM tab0
----
-100
-231
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT ALL + 64 + - COUNT( * ) AS col0 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL + 64 + - COUNT ( * ) AS col0 FROM tab0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3151
SELECT 59 DIV - + 7 FROM tab1
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-3151
SELECT 59 / - + 7 FROM tab1
----
-8
-8
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3152
SELECT ALL + COUNT( * ) DIV + 38 - - SUM( 99 ) AS col2 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL + COUNT ( * ) / + 38 - - SUM ( 99 ) AS col2 FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE + col1 + - col2 <> 73 - + col1
----
-3

skipif mysql # not compatible
query I rowsort label-3153
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 + - col2 <> 73 - + col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT SUM( ALL + 89 ) - COUNT( * ) FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-3154
SELECT SUM ( ALL + 89 ) - COUNT ( * ) FROM tab1 AS cor0
----
264

query I rowsort
SELECT + 14 + + col1 + - - 61 FROM tab1 AS cor0
----
122
80
89

query I rowsort
SELECT + + ( - col2 ) FROM tab0 AS cor0 WHERE NULL <> 52
----

query I rowsort
SELECT - col0 + - - col2 AS col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT + col2 * - 52 + col1 + + col0 FROM tab2 cor0
----
-1099
-1939
-2874

query I rowsort
SELECT + + col0 + + - col1 + col2 AS col0 FROM tab1 AS cor0
----
112
133
139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3160
SELECT ALL col0 AS col2, + CAST( + + col0 AS SIGNED ) FROM tab2
----
46
46
64
64
75
75

skipif mysql # not compatible
query II rowsort label-3160
SELECT ALL col0 AS col2, + CAST ( + + col0 AS INTEGER ) FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT ALL 5 AS col2, - col1 + 18 FROM tab2
----
5
-33
5
-49
5
-59

query I rowsort
SELECT ALL - col0 + - - 11 FROM tab1
----
-40
-74
-80

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( - 57 - - col1 * + col1 - 46 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT + COUNT( ALL - col0 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3165
SELECT + COUNT ( ALL - col0 ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT SUM( ALL - - col1 ) AS col2 FROM tab1 WHERE NOT - + col0 + 12 > col1
----
66

skipif mysql # not compatible
query I rowsort label-3166
SELECT SUM ( ALL - - col1 ) AS col2 FROM tab1 WHERE NOT - + col0 + 12 > col1
----
66

query II rowsort
SELECT 74, col1 FROM tab0 AS cor0
----
74
1
74
21
74
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 12 col0 FROM tab0 cor0
----
-1044
-1164
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 16 col2 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT DISTINCT col1 * ( - col0 ) AS col2 FROM tab0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 39 * col0 col1 FROM tab0 AS cor0
----
-3403
-3882
-632

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + + 55 + + col1 * - col1 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT DISTINCT - 57 * + ( + COUNT( * ) ) FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT - 57 * + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-171

query I rowsort
SELECT + ( ( 79 ) ) + col2 FROM tab2 AS cor0
----
102
119
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3175
SELECT DISTINCT - - CAST( col1 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 82 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3177
SELECT + - MAX( - 28 ) AS col0, - ( + 37 ) AS col0 FROM tab2 AS cor0
----
28
-37

skipif mysql # not compatible
query II rowsort label-3177
SELECT + - MAX ( - 28 ) AS col0, - ( + 37 ) AS col0 FROM tab2 AS cor0
----
28
-37

query I rowsort
SELECT ALL - col1 * col1 * col2 FROM tab2 AS cor0
----
-237160
-260362
-59823

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + - - col2 >= ( NULL )
----

query I rowsort
SELECT ALL - col2 + - + col2 + + col2 AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col1 + - 35 FROM tab2
----
-102
-112
-86

query I rowsort
SELECT DISTINCT col1 + - 13 FROM tab0
----
-12
68
8

query I rowsort
SELECT ALL + col0 * + + 5 + - + col0 AS col0 FROM tab2
----
184
256
300

query II rowsort
SELECT - col2 AS col1, - col1 * - + col2 FROM tab2
----
-23
1173
-40
3080
-58
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, 84 col1 FROM tab1
----
-14
84
-47
84
-5
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT - 41 * + + COUNT( * ) AS col0 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-3187
SELECT - 41 * + + COUNT ( * ) AS col0 FROM tab2
----
-123

query I rowsort
SELECT ALL - col1 * + col2 FROM tab1 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col0 * col2 + - col2 - - col2 * col2 FROM tab1
----
10744
14016
8437

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3190
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + col0 <> - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3190
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + col0 <> - CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col1 - + 87 AS col2 FROM tab1 AS cor0
----
-40
-73
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3192
SELECT + - CAST( - + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE - 48 * col2 * + col0 <> - ( + + ( + col0 ) )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3192
SELECT + - CAST ( - + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE - 48 * col2 * + col0 <> - ( + + ( + col0 ) )
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col0 FROM tab1 cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT DISTINCT - col1 DIV + ( col0 ) - - col1 DIV - - col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT - col1 / + ( col0 ) - - col1 / - - col2 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT DISTINCT + - 92 DIV - MIN( + col0 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT + - 92 / - MIN ( + col0 ) FROM tab2 AS cor0
----
2

query I rowsort
SELECT + + 39 * - + col1 AS col1 FROM tab1 AS cor0
----
-1833
-195
-546

query I rowsort
SELECT + - col1 * + col0 + 14 AS col2 FROM tab1 AS cor0
----
-411
-4263
-700

query I rowsort
SELECT - 47 * + col1 AS col2 FROM tab2
----
-2397
-3149
-3619

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 > + 34 + + + col0 + col1 + - 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 13 * + + 6 AS col2 FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT SUM( - + col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3201
SELECT SUM ( - + col2 ) AS col1 FROM tab2
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3202
SELECT 66 DIV + COUNT( * ) AS col0 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-3202
SELECT 66 / + COUNT ( * ) AS col0 FROM tab2
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 56 col2, 70 FROM tab0
----
-56
70
-56
70
-56
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, ( - ( + + col2 ) ) col2 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

query II rowsort
SELECT ALL - col0 AS col1, col0 AS col0 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT + COUNT( * ) * - 49 * - COUNT( * ) AS col0 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
3969

skipif mysql # not compatible
query I rowsort label-3206
SELECT + COUNT ( * ) * - 49 * - COUNT ( * ) AS col0 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
3969

query I rowsort
SELECT 86 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # aggregate syntax: 
query II rowsort label-3208
SELECT - 71 AS col2, - SUM( + + 64 ) FROM tab1
----
-71
-192

skipif mysql # not compatible
query II rowsort label-3208
SELECT - 71 AS col2, - SUM ( + + 64 ) FROM tab1
----
-71
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 + - ( - 33 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-58

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL + col0 * + 4 AS col0 FROM tab0 cor0
----
348
388
60

query I rowsort
SELECT DISTINCT - col0 * - + col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT DISTINCT + MAX( DISTINCT - + 93 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT + MAX ( DISTINCT - + 93 ) FROM tab0 AS cor0
----
-93

query I rowsort
SELECT ALL 58 * + ( col1 ) + + - col0 + 35 FROM tab2 AS cor0
----
2947
3846
4437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, - col2 AS col1 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT 53 * - col1 + + - col2 AS col2 FROM tab0
----
-1123
-152
-4340

query I rowsort
SELECT - 51 + - - col1 FROM tab2
----
0
16
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT + col0 + + col1 + CAST( NULL AS SIGNED ) * + 66 + + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT + col0 + + col1 + CAST ( NULL AS INTEGER ) * + 66 + + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT MAX( ALL - 2 ) + - - SUM( ALL - - col0 ) FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-3219
SELECT MAX ( ALL - 2 ) + - - SUM ( ALL - - col0 ) FROM tab1
----
225

onlyif mysql # DIV for integer division: 
query II rowsort label-3220
SELECT + - ( col0 ), 14 DIV - col0 AS col0 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-3220
SELECT + - ( col0 ), 14 / - col0 AS col0 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT + MIN( + col1 ) * COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3221
SELECT + MIN ( + col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE + - 71 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3223
SELECT DISTINCT - COUNT( + + ( + 87 ) ) FROM tab0 AS cor0 WHERE NOT NULL = + CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT - COUNT ( + + ( + 87 ) ) FROM tab0 AS cor0 WHERE NOT NULL = + CAST ( NULL AS REAL )
----
0

query II rowsort
SELECT + + col2 AS col1, col0 + - col2 + col2 AS col0 FROM tab1 cor0
----
59
85
68
91
96
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT ALL - + col0 DIV - + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL - + col0 / - + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3226
SELECT DISTINCT - 61 AS col1, - 31 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 <= NULL
----
-61
-31

skipif mysql # not compatible
query II rowsort label-3226
SELECT DISTINCT - 61 AS col1, - 31 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 <= NULL
----
-61
-31

query I rowsort
SELECT + - col1 + + col2 FROM tab0 WHERE NOT ( NOT + 34 IS NOT NULL )
----
-11
-34
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + 23 >= 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ALL - SUM( + + col1 ) * + COUNT( * ) FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - SUM ( + + col1 ) * + COUNT ( * ) FROM tab2
----
-585

onlyif mysql # DIV for integer division: 
query I rowsort label-3230
SELECT ( + - col1 ) DIV - col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3230
SELECT ( + - col1 ) / - col2 FROM tab0
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT ALL 4 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL 4 / col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3232
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND 76 / - + CAST( 28 AS SIGNED ) + 53 * + col1
----

skipif mysql # not compatible
query III rowsort label-3232
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND 76 / - + CAST ( 28 AS INTEGER ) + 53 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT + + CAST( + - 87 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-3233
SELECT + + CAST ( + - 87 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT + + ( - col1 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT COUNT( * ), - 84 AS col0 FROM tab0
----
3
-84

skipif mysql # not compatible
query II rowsort label-3235
SELECT COUNT ( * ), - 84 AS col0 FROM tab0
----
3
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT SUM( ALL + 99 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
891

skipif mysql # not compatible
query I rowsort label-3236
SELECT SUM ( ALL + 99 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
891

onlyif mysql # DIV for integer division: 
query I rowsort label-3237
SELECT DISTINCT col1 * - col0 DIV - col0 + 64 FROM tab0
----
145
65
85

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT col1 * - col0 / - col0 + 64 FROM tab0
----
145
65
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT + ( + - COUNT( * ) ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3238
SELECT + ( + - COUNT ( * ) ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col0 + 14 - - + col2 * col1 FROM tab2 AS cor0
----
1233
3158
3975

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT DISTINCT - MIN( + 48 ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT - MIN ( + 48 ) FROM tab1 AS cor0
----
-48

query I rowsort
SELECT + col0 * - + col2 + col1 * col1 FROM tab1 AS cor0
----
-3979
-4700
-4990

query I rowsort
SELECT col1 * - col1 + - col0 FROM tab0 AS cor0
----
-528
-6576
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL + COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL + COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT - col2 DIV 36 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3244
SELECT - col2 / 36 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT col1 * 29 AS col0 FROM tab1
----
1363
145
406

query III rowsort
SELECT * FROM tab0 WHERE + + 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + - - ( - col2 ) AS col0 FROM tab2
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT ALL 93 DIV col1 + - ( + col0 ) FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL 93 / col1 + - ( + col0 ) FROM tab2
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL + ( 64 ) * - MIN( ALL + 27 ) + + 4 + + + MAX( ALL 5 ) FROM tab0
----
-1719

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL + ( 64 ) * - MIN ( ALL + 27 ) + + 4 + + + MAX ( ALL 5 ) FROM tab0
----
-1719

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT DISTINCT + SUM( DISTINCT + - col0 ) + - COUNT( DISTINCT - 33 ) AS col1 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT + SUM ( DISTINCT + - col0 ) + - COUNT ( DISTINCT - 33 ) AS col1 FROM tab2 AS cor0
----
-186

query I rowsort
SELECT - 73 * + 10 + col1 FROM tab2 AS cor0
----
-653
-663
-679

query I rowsort
SELECT ALL + - 77 - - col1 AS col1 FROM tab1 AS cor0
----
-30
-63
-72

query I rowsort
SELECT - col2 * 1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * + + col2 * - - 2 + + col1 AS col0 FROM tab2 AS cor0
----
2397
6237
7839

query II rowsort
SELECT DISTINCT - col1 AS col2, - col1 AS col1 FROM tab1 cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT ( - + MAX( ALL - - col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3256
SELECT ( - + MAX ( ALL - - col1 ) ) FROM tab0
----
-81

query I rowsort
SELECT 30 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 94 FROM tab0 cor0 WHERE NULL IS NULL
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT ALL - MIN( + col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL - MIN ( + col0 ) AS col0 FROM tab0 cor0
----
-15

query I rowsort
SELECT DISTINCT - col1 * - col1 * - ( col1 ) FROM tab2 AS cor0
----
-132651
-300763
-456533

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 40 <= + col1
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 45 >= - - col2 * + col1 - col1 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 * - + 77 - col1, - col0 col0 FROM tab0 AS cor0
----
-1638
-87
-6318
-15
-78
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT ALL col2 DIV ( col1 ) AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL col2 / ( col1 ) AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + 97 + + 11 FROM tab0 AS cor0 WHERE NULL IS NULL
----
108
108
108

query I rowsort
SELECT DISTINCT + ( - + col1 ) AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT MAX( ALL - + ( + col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3268
SELECT MAX ( ALL - + ( + col0 ) ) FROM tab2
----
-46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 33 BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT col1, col2 * col0 AS col2 FROM tab1
----
14
4896
47
6188
5
5015

query I rowsort
SELECT col2 * - - 12 * col2 FROM tab1
----
110592
41772
55488

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT + SUM( ALL + + col0 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT + SUM ( ALL + + col0 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col1, + col0 col1 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT ( col2 ) DIV col1 + + col0 FROM tab1
----
57
92
96

skipif mysql # not compatible
query I rowsort label-3274
SELECT ( col2 ) / col1 + + col0 FROM tab1
----
57
92
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 94 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT - col2 DIV - 5 FROM tab2
----
11
4
8

skipif mysql # not compatible
query I rowsort label-3276
SELECT - col2 / - 5 FROM tab2
----
11
4
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL - MAX( 61 ) AS col0 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL - MAX ( 61 ) AS col0 FROM tab1 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT COUNT( DISTINCT + ( + col0 ) ) FROM tab1 WHERE col0 NOT BETWEEN + - ( + col2 ) * + 30 - + 49 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3278
SELECT COUNT ( DISTINCT + ( + col0 ) ) FROM tab1 WHERE col0 NOT BETWEEN + - ( + col2 ) * + 30 - + 49 AND NULL
----
0

query I rowsort
SELECT + 5 * col0 * + 56 FROM tab1
----
14280
23800
25480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3280
SELECT DISTINCT - col0 + - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT - col0 + - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT ALL - CAST( NULL AS SIGNED ) - CAST( - AVG ( - - col2 ) AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3281
SELECT ALL - CAST ( NULL AS INTEGER ) - CAST ( - AVG ( - - col2 ) AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col2 - + 70 / ( col1 ) / - 27 + - col1 + + - col0 AS col2 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT col2 * + col2 - + col1 + + col1 - - - col2 DIV - + col2 FROM tab1 cor0
----
3482
4625
9217

skipif mysql # not compatible
query I rowsort label-3283
SELECT col2 * + col2 - + col1 + + col1 - - - col2 / - + col2 FROM tab1 cor0
----
3482
4625
9217

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT ALL + - ( + + COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL + - ( + + COUNT ( * ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT + - 72 + - - col2 FROM tab0 AS cor0
----
-25
-62
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT - COUNT( * ) + - 62 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-3286
SELECT - COUNT ( * ) + - 62 FROM tab1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT COUNT( * ) + - 15 AS col0 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-3287
SELECT COUNT ( * ) + - 15 AS col0 FROM tab2
----
-12

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE - col2 NOT BETWEEN NULL AND + 53
----

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT + COUNT( * ) + + + ( + - 47 ) AS col1 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-3290
SELECT + COUNT ( * ) + + + ( + - 47 ) AS col1 FROM tab1
----
-44

query I rowsort
SELECT DISTINCT ( + 95 ) + - col2 + - 90 * + + col0 FROM tab0
----
-1302
-7745
-8734

query I rowsort
SELECT - col2 + - col2 + ( + 22 ) - - col0 AS col2 FROM tab1
----
-11
-119
-23

query I rowsort
SELECT ALL 59 + col0 AS col2 FROM tab2
----
105
123
134

query I rowsort
SELECT + col1 + - + col2 AS col0 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT + col1 * - col2 + - + col2 * col1 FROM tab1
----
-2688
-590
-6392

query I rowsort
SELECT + + 20 * - - col0 AS col1 FROM tab2 AS cor0
----
1280
1500
920

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT + COUNT( * ) * - 42 AS col1 FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT + COUNT ( * ) * - 42 AS col1 FROM tab0 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT ALL + COUNT( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL + COUNT ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 6 / col1 AS col1 FROM tab2 WHERE NOT + + col2 * col0 + - 44 * + col1 <> NULL
----

query II rowsort
SELECT 53 * + 23 * - + 13 * - 35 + + col0 * - 40, col1 FROM tab1 AS cor0
----
551005
47
551245
5
552605
14

onlyif mysql # aggregate syntax: 
query II rowsort label-3301
SELECT - + 88, COUNT( * ) + - - ( + + 97 ) + - COUNT( * ) col0 FROM tab0 AS cor0
----
-88
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3301
SELECT - + 88, COUNT ( * ) + - - ( + + 97 ) + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-88
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 <> - col2
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT ALL + + COUNT( DISTINCT - col0 ) DIV + COUNT( * ) - - 34 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL + + COUNT ( DISTINCT - col0 ) / + COUNT ( * ) - - 34 FROM tab1 AS cor0
----
35

query I rowsort
SELECT DISTINCT + 48 * + col0 FROM tab1 AS cor0
----
2448
4080
4368

query II rowsort
SELECT DISTINCT col1, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT ALL + 30 * - col2 + - 80 FROM tab2
----
-1280
-1820
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT + COUNT( * ) * + - 25 AS col1 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3308
SELECT + COUNT ( * ) * + - 25 AS col1 FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3309
SELECT ( - 75 ) col2, + MIN( + 43 ) FROM tab2 AS cor0
----
-75
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3309
SELECT ( - 75 ) col2, + MIN ( + 43 ) FROM tab2 AS cor0
----
-75
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT + - 43 * SUM( - col0 ) FROM tab1 AS cor0
----
9761

skipif mysql # not compatible
query I rowsort label-3310
SELECT + - 43 * SUM ( - col0 ) FROM tab1 AS cor0
----
9761

query I rowsort
SELECT ALL 9 + + col0 FROM tab2 cor0 WHERE col1 + - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab0, tab1 AS cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3313
SELECT ALL ( - 75 ) + + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL ( - 75 ) + + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 63 + + - 91 FROM tab0
----
-28
-28
-28

query I rowsort
SELECT + ( - col2 ) + col1 * - - col2 FROM tab2
----
1150
3040
3828

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 15 - - col2 col1 FROM tab0 AS cor0
----
-5
32
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 - - col0 IN ( - - 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT ALL - SUM( col1 ) AS col1 FROM tab2 AS cor0 WHERE ( - col1 ) + - - 86 * col0 - - - col1 = col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL - SUM ( col1 ) AS col1 FROM tab2 AS cor0 WHERE ( - col1 ) + - - 86 * col0 - - - col1 = col0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 + + + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 / + col2 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > 88
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND 40
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT ALL + 12 + + col0 + + col2 DIV col0 * - col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
103
49
97

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL + 12 + + col0 + + col2 / col0 * - col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
103
49
97

query I rowsort
SELECT + 88 - + col1 * + - col0 FROM tab1
----
4365
513
802

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT + COUNT( * ) - + COUNT( * ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3325
SELECT + COUNT ( * ) - + COUNT ( * ) col0 FROM tab2
----
0

query I rowsort
SELECT ALL - ( - col2 ) + - 31 FROM tab1
----
28
37
65

query I rowsort
SELECT ALL - col2 + 77 FROM tab0
----
-22
30
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT DISTINCT + col1 - - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT + col1 - - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT ALL + 42 * ( - + COUNT( * ) ) - ( - + 7 ) + + 63 * - COUNT( * ) FROM tab1
----
-308

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL + 42 * ( - + COUNT ( * ) ) - ( - + 7 ) + + 63 * - COUNT ( * ) FROM tab1
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT - ( MIN( DISTINCT col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3330
SELECT - ( MIN ( DISTINCT col2 ) ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 42 / + col1 IS NULL
----

query II rowsort
SELECT DISTINCT col2, col2 * + + 52 AS col0 FROM tab0
----
10
520
47
2444
99
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT + 10 * - MIN( - - 7 ) AS col1 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3333
SELECT + 10 * - MIN ( - - 7 ) AS col1 FROM tab0 AS cor0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3334
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN + col2 AND + col1 * col2
----

skipif mysql # not compatible
query III rowsort label-3334
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN + col2 AND + col1 * col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3335
SELECT ALL + CAST( NULL AS SIGNED ) * 35 + + COUNT( * ) AS col1, + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3335
SELECT ALL + CAST ( NULL AS INTEGER ) * 35 + + COUNT ( * ) AS col1, + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
-3

query I rowsort
SELECT DISTINCT 92 * + + col2 FROM tab0 AS cor0
----
4324
9108
920

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN + col1 AND - - col0
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT + - ( + - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3338
SELECT + - ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL col1 AS col1, 54 FROM tab0
----
1
54
21
54
81
54

query I rowsort
SELECT ALL col1 + - col0 * 58 FROM tab1
----
-2944
-4925
-5231

query I rowsort
SELECT DISTINCT 47 + - col1 FROM tab0
----
-34
26
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3342
SELECT ALL + CAST( NULL AS SIGNED ) * col0 * - 94 + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 * - 94 + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 18 >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3344
SELECT ALL + + 32, + col2 + + 27 DIV - col0 + + col1 AS col2 FROM tab2 AS cor0
----
32
117
32
125
32
74

skipif mysql # not compatible
query II rowsort label-3344
SELECT ALL + + 32, + col2 + + 27 / - col0 + + col1 AS col2 FROM tab2 AS cor0
----
32
117
32
125
32
74

query I rowsort
SELECT ALL - col2 + - col2 * col2 FROM tab1 cor0
----
-3540
-4692
-9312

query II rowsort
SELECT col0, - 66 FROM tab2 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + + col0 + + col0 + + col0 FROM tab1 AS cor0
----
153
255
273

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3348
SELECT * FROM tab1 AS cor0 WHERE 96 NOT BETWEEN - - col0 + col2 AND - CAST( NULL AS SIGNED ) * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3348
SELECT * FROM tab1 AS cor0 WHERE 96 NOT BETWEEN - - col0 + col2 AND - CAST ( NULL AS INTEGER ) * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT DISTINCT MAX( ALL - 58 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT MAX ( ALL - 58 ) FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT ALL + + col2 * 86 - - - 45 + 5 DIV + col0 + - col0 AS col2 FROM tab2 AS cor0
----
1887
3331
4868

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + + col2 * 86 - - - 45 + 5 / + col0 + - col0 AS col2 FROM tab2 AS cor0
----
1887
3331
4868

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 78 IS NULL
----

query I rowsort
SELECT - col2 + - + ( col0 ) FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT col0 * col1 + + col1 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT - 12 * + - COUNT( * ) AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-3354
SELECT - 12 * + - COUNT ( * ) AS col2 FROM tab1
----
36

query I rowsort
SELECT DISTINCT 79 * + - col2 * - - col1 FROM tab0
----
-16590
-300753
-7821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT ALL COUNT( * ) * COUNT( * ) * - 27 - - ( + 92 ) * + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL COUNT ( * ) * COUNT ( * ) * - 27 - - ( + 92 ) * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3357
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT col0 > + 57 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - ( + + col0 ) ) col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL col0 + - 6 AS col1 FROM tab2
----
40
58
69

query I rowsort
SELECT ALL + col1 + 26 AS col2 FROM tab1
----
31
40
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3362
SELECT ALL - - MIN( ALL + - col0 ) FROM tab0 WHERE NOT CAST( + + col0 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - - MIN ( ALL + - col0 ) FROM tab0 WHERE NOT CAST ( + + col0 AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col1 + 66 + + + col1 AS col0 FROM tab0
----
108
228
68

query I rowsort
SELECT ALL + ( + ( - col2 ) ) * + ( + col1 ) + - 14 AS col2 FROM tab2 AS cor0
----
-1187
-3094
-3900

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 AS col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3366
SELECT ALL + 58 + - CAST( NULL AS SIGNED ) * + + 28 AS col1, + 90 FROM tab1 AS cor0
----
NULL
90
NULL
90
NULL
90

skipif mysql # not compatible
query II rowsort label-3366
SELECT ALL + 58 + - CAST ( NULL AS INTEGER ) * + + 28 AS col1, + 90 FROM tab1 AS cor0
----
NULL
90
NULL
90
NULL
90

query I rowsort
SELECT DISTINCT - + col1 * - 34 AS col0 FROM tab1 AS cor0
----
1598
170
476

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT col0 + + col2 * + - col0 * 83 AS col0 FROM tab1 AS cor0
----
-406317
-416160
-513513

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + 2 AND NULL
----

query I rowsort
SELECT ALL - col1 + 65 + + 80 * - - ( - col0 ) AS col1 FROM tab0 AS cor0
----
-1216
-6916
-7696

query I rowsort
SELECT ALL + + col2 * col1 - - + col0 AS col1 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT DISTINCT - - col0 - - col1 + col1 FROM tab2 AS cor0
----
148
209
218

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT DISTINCT + COUNT( - 64 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT + COUNT ( - 64 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT 32, col2 AS col1 FROM tab2 AS cor0
----
32
23
32
40
32
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 - col1 * col0 >= NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3378
SELECT + COUNT( * ) DIV 67 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3378
SELECT + COUNT ( * ) / 67 AS col0 FROM tab2
----
0

query I rowsort
SELECT + col0 * + 54 AS col2 FROM tab1
----
2754
4590
4914

onlyif mysql # DIV for integer division: 
query I rowsort label-3380
SELECT - ( - - col0 ) DIV + 34 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-3380
SELECT - ( - - col0 ) / + 34 FROM tab0
----
-2
-2
0

query I rowsort
SELECT - 19 FROM tab1 WHERE NOT - + ( col1 ) BETWEEN ( - 81 ) AND - 39
----
-19
-19

onlyif mysql # DIV for integer division: 
query III rowsort label-3382
SELECT ALL 87 DIV + 53 AS col2, + col0 - - + col2 * 97, + + col1 AS col1 FROM tab1 AS cor0
----
9 values hashing to 621c619f7ec5cb333d5869789676d052

skipif mysql # not compatible
query III rowsort label-3382
SELECT ALL 87 / + 53 AS col2, + col0 - - + col2 * 97, + + col1 AS col1 FROM tab1 AS cor0
----
9 values hashing to 621c619f7ec5cb333d5869789676d052

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 17 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3383
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 17 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 + + + col1 + - + 98 FROM tab1 AS cor0 WHERE NOT ( NOT - 5 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3386
SELECT ALL - - 22, COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
22
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3386
SELECT ALL - - 22, COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
22
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL + COUNT( - 9 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL + COUNT ( - 9 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT ALL + MAX( DISTINCT 15 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL + MAX ( DISTINCT 15 ) AS col1 FROM tab0 AS cor0
----
15

query II rowsort
SELECT + col0 AS col1, 25 FROM tab1 cor0
----
51
25
85
25
91
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT 99 DIV 74 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3390
SELECT 99 / 74 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT MIN( + + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3391
SELECT MIN ( + + col2 ) AS col1 FROM tab0
----
10

query I rowsort
SELECT DISTINCT col2 + 76 * + col2 AS col0 FROM tab0
----
3619
7623
770

query I rowsort
SELECT - 54 + 10 FROM tab2
----
-44
-44
-44

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * col0 NOT BETWEEN - - 93 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT - 67 + CAST( NULL AS SIGNED ) * - 36 * - 3 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT - 67 + CAST ( NULL AS INTEGER ) * - 36 * - 3 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3396
SELECT col0 + col2 DIV + + col2 + + + 0 + - 13 FROM tab2
----
34
52
63

skipif mysql # not compatible
query I rowsort label-3396
SELECT col0 + col2 / + + col2 + + + 0 + - 13 FROM tab2
----
34
52
63

query I rowsort
SELECT col0 + - col0 + + 0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 67 + col1 AS col0 FROM tab1
----
114
72
81

query I rowsort
SELECT DISTINCT - - col1 / - 20 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 72 * col2 FROM tab0 cor0
----
3384
7128
720

query I rowsort
SELECT DISTINCT - 27 - + col0 FROM tab1
----
-112
-118
-78

query I rowsort
SELECT + + col2 AS col2 FROM tab1 cor0 WHERE - 90 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT DISTINCT - COUNT( * ) - 19 AS col2 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT - COUNT ( * ) - 19 AS col2 FROM tab2 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3404
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3404
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 25 * - + col1 FROM tab2 AS cor0
----
1275
1675
1925

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - 89 * + + col1 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT ALL - CAST( NULL AS SIGNED ) * 93 / + 61 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL - CAST ( NULL AS INTEGER ) * 93 / + 61 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * + - 23 FROM tab2 AS cor0
----
1058
1472
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT DISTINCT 5 * + MIN( + col2 ) AS col0 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT 5 * + MIN ( + col2 ) AS col0 FROM tab0 AS cor0
----
50

query I rowsort
SELECT ( ( + - col1 ) ) * 39 + col1 - + col1 FROM tab0
----
-3159
-39
-819

query I rowsort
SELECT 21 * - col1 * + - col1 * 70 * col1 AS col0 FROM tab2
----
194996970
442121610
671103510

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3412
SELECT DISTINCT + 5 * + 76 AS col2, COUNT( * ) DIV + + 6 FROM tab0
----
380
0

skipif mysql # not compatible
query II rowsort label-3412
SELECT DISTINCT + 5 * + 76 AS col2, COUNT ( * ) / + + 6 FROM tab0
----
380
0

query I rowsort
SELECT ALL - col0 * col1 * col2 AS col0 FROM tab2
----
-197120
-291450
-53958

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 <> NULL
----

query I rowsort
SELECT DISTINCT - col1 * - + col2 AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT ALL 58 DIV + col1 AS col2 FROM tab0
----
0
2
58

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL 58 / + col1 AS col2 FROM tab0
----
0
2
58

query I rowsort
SELECT 18 * + 76 AS col0 FROM tab0
----
1368
1368
1368

query II rowsort
SELECT + + col1, 12 FROM tab0 cor0
----
1
12
21
12
81
12

query II rowsort
SELECT - col0 AS col1, ( 46 ) AS col2 FROM tab1 cor0
----
-51
46
-85
46
-91
46

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT DISTINCT - COUNT( * ) * + - 60 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
540

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT - COUNT ( * ) * + - 60 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
540

query I rowsort
SELECT - col2 * col2 * + col0 + - - col1 * col2 + + col2 - - + 36 FROM tab2 AS cor0
----
-23102
-248320
-99244

query I rowsort
SELECT - 19 + col1 + + col0 + 72 FROM tab1 AS cor0
----
118
143
191

query I rowsort
SELECT + col1 * 82 / - - col0 FROM tab1 AS cor0 WHERE NULL <= 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT DISTINCT - CAST( col0 AS SIGNED ) col2 FROM tab1 WHERE ( 57 ) > + col0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3425
SELECT DISTINCT - CAST ( col0 AS INTEGER ) col2 FROM tab1 WHERE ( 57 ) > + col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3426
SELECT COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 49 + - 11 FROM tab2
----
38
38
38

query I rowsort
SELECT ALL 76 - - 12 - col0 * + - col2 FROM tab1
----
4984
5103
6276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - col1 col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT - - COUNT( * ) + - ( + 97 ) col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3430
SELECT DISTINCT - - COUNT ( * ) + - ( + 97 ) col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, - col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NULL NOT IN ( + 98 * + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NULL NOT IN ( + 98 * + col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT + 2 - 96 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT + 2 - 96 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + ( + ( col0 ) ) * - 31 FROM tab0
----
2707
3106
512

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - ( col2 ) col1 FROM tab1
----
-23
-26
45

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 * col0 + col1 ) > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL ( + MIN( + col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL ( + MIN ( + col2 ) ) FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3439
SELECT DISTINCT - col1 DIV + 95 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT - col1 / + 95 AS col2 FROM tab2
----
0

query I rowsort
SELECT 40 AS col1 FROM tab0 WHERE - 98 > + 66
----

query I rowsort
SELECT ( 98 ) AS col0 FROM tab1
----
98
98
98

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab0 WHERE col1 <> ( col0 )
----
16

query I rowsort
SELECT DISTINCT col2 * col2 AS col1 FROM tab0 WHERE ( 45 + col1 ) IS NULL
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - ( col1 ) BETWEEN 17 AND col0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) = col0
----

query I rowsort
SELECT 49 - - 79 * col2 FROM tab0 WHERE NOT - 96 BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3447
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + 75 * 50 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT CAST ( NULL AS REAL ) + + 75 * 50 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT COUNT( * ) + + 77 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT COUNT ( * ) + + 77 FROM tab0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL MAX( DISTINCT 10 ) AS col2 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL MAX ( DISTINCT 10 ) AS col2 FROM tab1
----
10

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - ( col2 ) = - col0 / - col1
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 + ( col1 - 39 ) * + col1 col2 FROM tab0
----
-324
16
3456

query III rowsort
SELECT * FROM tab2 WHERE col0 * - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 / col1 AND + col2
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT ALL 40 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL 40 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT COUNT( ALL + 51 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3455
SELECT COUNT ( ALL + 51 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 67 * - col1 FROM tab0 cor0
----
-1407
-5427
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT + MAX( + 56 ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-3457
SELECT + MAX ( + 56 ) FROM tab1
----
56

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3459
SELECT - CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3459
SELECT - CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - col1 + + col2 FROM tab2 WHERE + ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 45 * col2 FROM tab1 AS cor0
----
-2655
-3060
-4320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3462
SELECT ALL MAX( + col1 ) DIV - 84 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL MAX ( + col1 ) / - 84 FROM tab0 cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 48 IN ( - 39 / + 40 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 96 < + 6 + + 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3465
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( + 66 * 81 + - CAST( + 58 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3465
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( + 66 * 81 + - CAST ( + 58 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + + col2 * - 13 AS col0 FROM tab2 AS cor0
----
-248
-443
-687

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT ALL - col0 / + CAST( 4 / CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL - col0 / + CAST ( 4 / CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3469
SELECT + CAST( - col2 AS SIGNED ) + col2 DIV + 10 FROM tab1 AS cor0
----
-54
-62
-87

skipif mysql # not compatible
query I rowsort label-3469
SELECT + CAST ( - col2 AS INTEGER ) + col2 / + 10 FROM tab1 AS cor0
----
-54
-62
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3470
SELECT ALL + ( + 1 ) DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + ( + 1 ) / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col0 + - + 48 + col2 * col1 AS col1 FROM tab0
----
148
249
3774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3472
SELECT + 92 DIV + COUNT( col0 ) FROM tab0 WHERE + col0 * col1 IS NOT NULL
----
30

skipif mysql # not compatible
query I rowsort label-3472
SELECT + 92 / + COUNT ( col0 ) FROM tab0 WHERE + col0 * col1 IS NOT NULL
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT ALL col2 + + CAST( NULL AS SIGNED ) * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) * + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3474
SELECT + 21 + + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT + 21 + + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + ( + col0 ) + - col1 * - col2 FROM tab1
----
1446
3378
465

query I rowsort
SELECT col2 + + - 47 FROM tab1
----
12
21
49

query I rowsort
SELECT ALL - 34 FROM tab1 WHERE ( + col1 ) IN ( - 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT - COUNT( * ) + + COUNT( * ) + + 75 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3478
SELECT - COUNT ( * ) + + COUNT ( * ) + + 75 FROM tab0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT DISTINCT col2 + CAST( col2 AS SIGNED ) FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT col2 + CAST ( col2 AS INTEGER ) FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT 68 * ( + COUNT( DISTINCT - col2 ) ) col1 FROM tab0 WHERE + col2 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3480
SELECT 68 * ( + COUNT ( DISTINCT - col2 ) ) col1 FROM tab0 WHERE + col2 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL >= col1
----

skipif mysql # not compatible
query I rowsort label-3481
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL >= col1
----

query I rowsort
SELECT ALL 74 FROM tab1 cor0 WHERE ( 71 ) NOT BETWEEN ( - 27 ) AND + 66
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT DISTINCT MAX( ALL - 70 ) FROM tab0 cor0 WHERE 35 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT MAX ( ALL - 70 ) FROM tab0 cor0 WHERE 35 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT + COUNT( * ) - - - 9 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT + COUNT ( * ) - - - 9 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT col2 FROM tab0 WHERE NOT ( NOT ( - 74 ) NOT BETWEEN 15 / - CAST( col0 AS SIGNED ) AND NULL )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3485
SELECT col2 FROM tab0 WHERE NOT ( NOT ( - 74 ) NOT BETWEEN 15 / - CAST ( col0 AS INTEGER ) AND NULL )
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3486
SELECT ALL + 83 AS col0, - ( COUNT( * ) ) FROM tab0 AS cor0
----
83
-3

skipif mysql # not compatible
query II rowsort label-3486
SELECT ALL + 83 AS col0, - ( COUNT ( * ) ) FROM tab0 AS cor0
----
83
-3

query II rowsort
SELECT - + col2, + col0 FROM tab2 cor0
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3488
SELECT - col0 col1, + col2 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-51
110
-85
64
-91
115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3488
SELECT - col0 col1, + col2 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-51
110
-85
64
-91
115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col2 ) col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 2 + + col1 + - col2 * + col1 <> ( NULL )
----

query II rowsort
SELECT + 0 AS col0, - col2 AS col2 FROM tab0 cor0
----
0
-10
0
-47
0
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - MIN( + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3492
SELECT - MIN ( + col0 ) FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3493
SELECT - CAST( col1 AS SIGNED ) * + 50 col0 FROM tab2
----
-2550
-3350
-3850

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3493
SELECT - CAST ( col1 AS INTEGER ) * + 50 col0 FROM tab2
----
-2550
-3350
-3850

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 91 + + ( 71 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT + COUNT( * ) FROM tab1 WHERE NOT col1 + - col0 = 27
----
3

skipif mysql # not compatible
query I rowsort label-3495
SELECT + COUNT ( * ) FROM tab1 WHERE NOT col1 + - col0 = 27
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT CAST( + col1 AS SIGNED ) FROM tab0 WHERE NOT ( + + col2 ) <> col2
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3496
SELECT CAST ( + col1 AS INTEGER ) FROM tab0 WHERE NOT ( + + col2 ) <> col2
----
1
21
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT ALL col1 + + - 58 FROM tab0
----
-37
-57
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3499
SELECT DISTINCT + CAST( + - 75 AS SIGNED ) AS col0 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT + CAST ( + - 75 AS INTEGER ) AS col0 FROM tab0
----
-75

query I rowsort
SELECT DISTINCT - col2 * - col1 + col0 + - col0 FROM tab1
----
1344
295
3196

query I rowsort
SELECT col0 + + col0 * + col1 + col2 FROM tab2 AS cor0
----
2415
5032
5158

query I rowsort
SELECT col1 + + col2 * - col0 * + + col0 * col2 + 42 FROM tab2 AS cor0
----
-1119271
-18922391
-6553481

query I rowsort
SELECT + ( + col1 ) + + + col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT - ( col0 ) + - 98 AS col1 FROM tab2 AS cor0
----
-144
-162
-173

query I rowsort
SELECT ALL col2 + col0 + + - col1 * + - col2 * + col0 + col0 FROM tab1 AS cor0
----
25304
291086
68742

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col2 * + 79 BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3506
SELECT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col2 * + 79 BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT + 65 * - 41 FROM tab1 AS cor0
----
-2665
-2665
-2665

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT DISTINCT COUNT( - 59 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT COUNT ( - 59 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 21 + - 99 FROM tab1
----
-78
-78
-78

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) < col0
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT + - ( - 7 ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query II rowsort
SELECT - 24 AS col2, 30 FROM tab2
----
-24
30
-24
30
-24
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 WHERE NULL <> + 47 - - col0
----

query I rowsort
SELECT DISTINCT + 27 + + col2 AS col1 FROM tab0
----
126
37
74

query I rowsort
SELECT AVG ( + - 57 ) FROM tab0 WHERE NULL <= + + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT - COUNT( DISTINCT + - 82 ) - + 25 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-3516
SELECT - COUNT ( DISTINCT + - 82 ) - + 25 FROM tab1
----
-26

query I rowsort
SELECT ALL col0 - + 17 AS col2 FROM tab1
----
34
68
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT col2 / + CAST( NULL AS SIGNED ) - + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT col2 / + CAST ( NULL AS INTEGER ) - + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - + col0 AS col1 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * + - col2 * + - col1 ) = col0 + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3521
SELECT col0 + + + col2 DIV col2 + - 97 AS col1, - col1 + col2 FROM tab2 AS cor0
----
-21
-9
-32
-37
-50
-28

skipif mysql # not compatible
query II rowsort label-3521
SELECT col0 + + + col2 / col2 + - 97 AS col1, - col1 + col2 FROM tab2 AS cor0
----
-21
-9
-32
-37
-50
-28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col2 - + 84 )
----

query I rowsort
SELECT ALL - col1 - - ( - 27 ) FROM tab1 AS cor0
----
-32
-41
-74

query I rowsort
SELECT col1 * - col2 * - 24 AS col2 FROM tab0
----
2376
5040
91368

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3525
SELECT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL + COUNT( ALL col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL + COUNT ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 70 AS col0 FROM tab2 cor0
----
70
70
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 70 )
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND - - col0 * + ( + col1 ) * col1 + + + col0 + - 82 - 81
----
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col2 ) * + col1 + + - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT 86 IS NOT NULL )
----

query II rowsort
SELECT + 56, 4 + - + col1 FROM tab2 AS cor0 WHERE NOT ( NOT + 43 IS NULL )
----

query I rowsort
SELECT - - 63 * col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 36, 14 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL + MIN( col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - col2 * - - 99 / + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + MIN ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - col2 * - - 99 / + col0 )
----
NULL

query I rowsort
SELECT + col1 * + 58 AS col0 FROM tab0
----
1218
4698
58

query II rowsort
SELECT DISTINCT - col0 AS col2, col0 * col0 + 26 * + ( + - col0 ) FROM tab0
----
-15
-165
-87
5307
-97
6887

onlyif mysql # aggregate syntax: 
query II rowsort label-3537
SELECT DISTINCT 44 * - - ( COUNT( * ) ), - COUNT( * ) AS col2 FROM tab2
----
132
-3

skipif mysql # not compatible
query II rowsort label-3537
SELECT DISTINCT 44 * - - ( COUNT ( * ) ), - COUNT ( * ) AS col2 FROM tab2
----
132
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT COUNT( + + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3538
SELECT COUNT ( + + col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT MIN( - ( + - col0 ) ) * - 80 AS col2 FROM tab2
----
-3680

skipif mysql # not compatible
query I rowsort label-3539
SELECT MIN ( - ( + - col0 ) ) * - 80 AS col2 FROM tab2
----
-3680

query II rowsort
SELECT DISTINCT col0 AS col1, + 68 + 1 AS col2 FROM tab1
----
51
69
85
69
91
69

query III rowsort
SELECT * FROM tab2 WHERE NOT 80 <> col0
----

query I rowsort
SELECT + col0 + + 99 + + col1 * - col1 FROM tab2
----
-2456
-4315
-5766

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 11 / + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3545
SELECT DISTINCT - + CAST( NULL AS SIGNED ), col1 * + col2 + + col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= col1
----

skipif mysql # not compatible
query II rowsort label-3545
SELECT DISTINCT - + CAST ( NULL AS INTEGER ), col1 * + col2 + + col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= col1
----

query II rowsort
SELECT ALL col0, col0 * + + 33 AS col2 FROM tab0 AS cor0
----
15
495
87
2871
97
3201

onlyif mysql # DIV for integer division: 
query II rowsort label-3547
SELECT DISTINCT - col1 + - + col1 * - + col0 * col1, - col0 DIV - 58 AS col1 FROM tab0
----
38346
1
96
1
98334
0

skipif mysql # not compatible
query II rowsort label-3547
SELECT DISTINCT - col1 + - + col1 * - + col0 * col1, - col0 / - 58 AS col1 FROM tab0
----
38346
1
96
1
98334
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

onlyif mysql # aggregate syntax: 
query II rowsort label-3549
SELECT SUM( - col1 ) AS col0, MIN( ALL + + col1 ) AS col2 FROM tab1
----
-66
5

skipif mysql # not compatible
query II rowsort label-3549
SELECT SUM ( - col1 ) AS col0, MIN ( ALL + + col1 ) AS col2 FROM tab1
----
-66
5

query I rowsort
SELECT - 1 AS col0 FROM tab0 cor0 WHERE 3 + - - 97 NOT IN ( - 98 )
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3551
SELECT DISTINCT + 76 DIV + col1 + - col1 FROM tab0 AS cor0
----
-18
-81
75

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT + 76 / + col1 + - col1 FROM tab0 AS cor0
----
-18
-81
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3552
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3552
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3553
SELECT - COUNT( * ) DIV - 71 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3553
SELECT - COUNT ( * ) / - 71 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT ALL + - 32 - 20 * + col2 FROM tab2 AS cor0
----
-1192
-492
-832

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT col2 DIV col1 * + col1 * - col1 + + - col2 * + + col0 AS col2 FROM tab1 AS cor0
----
-5290
-6072
-8397

skipif mysql # not compatible
query I rowsort label-3555
SELECT col2 / col1 * + col1 * - col1 + + - col2 * + + col0 AS col2 FROM tab1 AS cor0
----
-5290
-6072
-8397

query I rowsort
SELECT - col1 * + col1 - - col2 AS col2 FROM tab1 AS cor0 WHERE - 35 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3557
SELECT + col2 DIV - + col1 + + CAST( + 17 AS SIGNED ) + - col0 AS col1 FROM tab0 AS cor0
----
-179
-70
2

skipif mysql # not compatible
query I rowsort label-3557
SELECT + col2 / - + col1 + + CAST ( + 17 AS INTEGER ) + - col0 AS col1 FROM tab0 AS cor0
----
-179
-70
2

query I rowsort
SELECT - 37 + - 37 FROM tab1 AS cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + COUNT( * ) + 33 * 20 FROM tab2 AS cor0
----
663

skipif mysql # not compatible
query I rowsort label-3559
SELECT + COUNT ( * ) + 33 * 20 FROM tab2 AS cor0
----
663

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 45 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT - 82 + - + COUNT( * ) + + COUNT( * ) FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-3561
SELECT - 82 + - + COUNT ( * ) + + COUNT ( * ) FROM tab0
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3562
SELECT + 0 + + 87 DIV + COUNT( - 78 ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-3562
SELECT + 0 + + 87 / + COUNT ( - 78 ) FROM tab2
----
29

query III rowsort
SELECT * FROM tab0 WHERE + - col1 NOT BETWEEN - col1 AND NULL
----

query II rowsort
SELECT - col1 + + col0 - - col1 AS col1, - 9 FROM tab0
----
15
-9
87
-9
97
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 1 * col0 + col0 - col0 * - - col2 AS col2, col2 col2 FROM tab1
----
-4794
96
-4845
59
-6006
68

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 BETWEEN - - 80 AND NULL
----

query I rowsort
SELECT DISTINCT + - 25 + + + 28 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT MAX( - + 23 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3568
SELECT MAX ( - + 23 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL - MAX( + col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL - MAX ( + col0 ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - 78 * + col0 + + col2 FROM tab2 AS cor0
----
-3565
-4952
-5792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 * 42 col1 FROM tab0
----
18522
275562
42

query I rowsort
SELECT - 95 FROM tab1 WHERE NOT NULL BETWEEN - + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3574
SELECT + 77 DIV col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
1
3

skipif mysql # not compatible
query I rowsort label-3574
SELECT + 77 / col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
1
3

query II rowsort
SELECT + col2, 88 FROM tab2 AS cor0
----
23
88
40
88
58
88

query I rowsort
SELECT DISTINCT + 7 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 66, col1 FROM tab0 AS cor0
----
66
1
66
21
66
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 82 col0, + col1 AS col1 FROM tab1 cor0
----
82
14
82
47
82
5

query I rowsort
SELECT 94 * - 5 FROM tab1 cor0
----
-470
-470
-470

query II rowsort
SELECT + 72 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
72
-14
72
-47
72
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3581
SELECT + 51 AS col1, COUNT( * ) FROM tab0 AS cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-3581
SELECT + 51 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL + - COUNT( - 60 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + - COUNT ( - 60 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 15 + - - ( - 24 ) AS col1 FROM tab1 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3584
SELECT - COUNT( * ) DIV - CAST( - MIN( ( - 39 ) ) AS SIGNED ) * + 56 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3584
SELECT - COUNT ( * ) / - CAST ( - MIN ( ( - 39 ) ) AS INTEGER ) * + 56 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 + - col0 + 11 FROM tab1 AS cor0
----
-12
-15
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL + + MIN( ALL ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL + + MIN ( ALL ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + col2 * - 61 + + - col2 FROM tab0 AS cor0
----
-2914
-6138
-620

query I rowsort
SELECT ALL - 55 + + col0 FROM tab2
----
-9
20
9

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL BETWEEN + + col0 AND NULL
----

query I rowsort
SELECT ALL + 37 + - 19 FROM tab2
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3591
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) * + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3591
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) * + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3592
SELECT - - col0 DIV col2 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3592
SELECT - - col0 / col2 AS col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT ALL 93 * col2 FROM tab2 AS cor0
----
2139
3720
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT + MAX( DISTINCT - col0 ) * + 73 AS col0 FROM tab1 AS cor0
----
-3723

skipif mysql # not compatible
query I rowsort label-3594
SELECT + MAX ( DISTINCT - col0 ) * + 73 AS col0 FROM tab1 AS cor0
----
-3723

query II rowsort
SELECT DISTINCT + col0, ( + 9 ) FROM tab2 AS cor0
----
46
9
64
9
75
9

query I rowsort
SELECT ALL + + 66 * - - col1 FROM tab1 AS cor0
----
3102
330
924

query I rowsort
SELECT ALL + - 61 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT COUNT( * ) - - + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3598
SELECT COUNT ( * ) - - + COUNT ( * ) AS col2 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT - COUNT( * ) - 62 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-3599
SELECT - COUNT ( * ) - 62 FROM tab0
----
-65

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 19 IS NOT NULL
----

query I rowsort
SELECT ALL + 32 * + - 79 AS col0 FROM tab2
----
-2528
-2528
-2528

query I rowsort
SELECT + + col0 FROM tab1 WHERE - col1 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT + COUNT( * ) - - SUM( ALL - col2 ) AS col1 FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-3603
SELECT + COUNT ( * ) - - SUM ( ALL - col2 ) AS col1 FROM tab1
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT - ( ( + COUNT( * ) ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3604
SELECT - ( ( + COUNT ( * ) ) ) AS col1 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT ALL - 5 DIV + - 35 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL - 5 / + - 35 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3606
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3606
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 ) * - col0 * + 69 = ( - col1 * + ( col1 ) - + 18 * - + ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + - MAX( ALL - 73 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
73

skipif mysql # not compatible
query I rowsort label-3608
SELECT + - MAX ( ALL - 73 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 col2 FROM tab1
----
70

query I rowsort
SELECT DISTINCT ( - + ( - col1 ) ) FROM tab1
----
14
47
5

query II rowsort
SELECT - col1 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ALL - 6 * + col1 FROM tab2 AS cor0
----
-306
-402
-462

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 41 BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3614
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST( NULL AS DECIMAL ) * 36 * + 16
----

skipif mysql # not compatible
query III rowsort label-3614
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST ( NULL AS REAL ) * 36 * + 16
----

query I rowsort
SELECT DISTINCT - + 79 FROM tab0 AS cor0 WHERE ( - + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + 15 + - - 95 - - 19 FROM tab0 AS cor0
----
129
1329
429

query I rowsort
SELECT ALL + - col2 + ( + + col0 ) AS col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL 82 * + - col2 AS col0 FROM tab0
----
-3854
-8118
-820

query I rowsort
SELECT ALL - 47 FROM tab2 WHERE + 40 * - col2 * + col1 IS NOT NULL
----
-47
-47
-47

query I rowsort
SELECT col0 + + col0 * - col1 AS col1 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT ALL 36 + col1 + - 66 AS col1 FROM tab1
----
-16
-25
17

query I rowsort
SELECT DISTINCT ( - col2 ) + col2 AS col0 FROM tab1
----
0

query II rowsort
SELECT DISTINCT + 38 AS col0, + col2 * col2 + col2 * - - 51 AS col1 FROM tab0
----
38
14850
38
4606
38
610

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT DISTINCT - 72 + - - 45 + + + 92 DIV - - col1 FROM tab0
----
-23
-26
65

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT - 72 + - - 45 + + + 92 / - - col1 FROM tab0
----
-23
-26
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT 45 / - CAST( - 74 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3625
SELECT 45 / - CAST ( - 74 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query II rowsort
SELECT + col1, + col2 * 5 + + col1 AS col0 FROM tab0 AS cor0
----
1
496
21
71
81
316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3627
SELECT - - 69 DIV COUNT( * ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3627
SELECT - - 69 / COUNT ( * ) FROM tab2 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT + 67 - COUNT( * ) AS col2 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-3628
SELECT + 67 - COUNT ( * ) AS col2 FROM tab0
----
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + 5 * + + col1
----

query I rowsort
SELECT col2 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-2323
-4888
-4967

onlyif mysql # DIV for integer division: 
query II rowsort label-3632
SELECT + col0 + + + ( - col2 ) DIV + + col2 + + col1 + + ( - col0 ), + col0 FROM tab0 cor0
----
0
97
20
87
80
15

skipif mysql # not compatible
query II rowsort label-3632
SELECT + col0 + + + ( - col2 ) / + + col2 + + col1 + + ( - col0 ), + col0 FROM tab0 cor0
----
0
97
20
87
80
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 * col1 + - 74 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 69 + + ( - col1 ) FROM tab0 AS cor0
----
-12
48
68

query I rowsort
SELECT - + 59 + + 74 + col2 * ( + + 55 ) FROM tab1 AS cor0
----
3260
3755
5295

query II rowsort
SELECT DISTINCT col1 AS col2, ( col0 ) FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT DISTINCT 45 * 6 * + + COUNT( * ) + 4 FROM tab1, tab0 AS cor0
----
2434

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT 45 * 6 * + + COUNT ( * ) + 4 FROM tab1, tab0 AS cor0
----
2434

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 + + - 25 <= - - col2 * - - col2 + - col1 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + 83 ) col2 FROM tab0 AS cor0
----
83

query I rowsort
SELECT DISTINCT col1 * ( col2 ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL - 93 * ( - col2 ) AS col2 FROM tab2
----
2139
3720
5394

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3642
SELECT DISTINCT 46 * col1 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT 46 * col1 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - - 58
----
0

skipif mysql # not compatible
query I rowsort label-3643
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT COUNT( ALL - col2 ) + - + 55 FROM tab0 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3644
SELECT COUNT ( ALL - col2 ) + - + 55 FROM tab0 cor0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT DISTINCT 12 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT 12 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + 19
----

query I rowsort
SELECT ALL 66 * ( col2 ) AS col0 FROM tab2 AS cor0
----
1518
2640
3828

query I rowsort
SELECT - 96 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-96
-96
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3649
SELECT DISTINCT + 38 DIV COUNT( * ) AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT + 38 / COUNT ( * ) AS col0 FROM tab1
----
12

query I rowsort
SELECT + col0 * 93 * - 48 AS col0 FROM tab1
----
-227664
-379440
-406224

onlyif mysql # DIV for integer division: 
query I rowsort label-3651
SELECT ALL - col2 + - col0 DIV - 32 FROM tab2
----
-22
-38
-56

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL - col2 + - col0 / - 32 FROM tab2
----
-22
-38
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT + 82 * + COUNT( * ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT + 82 * + COUNT ( * ) FROM tab0
----
246

query I rowsort
SELECT col2 - - + col2 AS col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT DISTINCT + col0 + - - 91 AS col1 FROM tab2 AS cor0
----
137
155
166

onlyif mysql # DIV for integer division: 
query I rowsort label-3655
SELECT DISTINCT - + 95 DIV + - col1 FROM tab1 AS cor0
----
19
2
6

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT - + 95 / + - col1 FROM tab1 AS cor0
----
19
2
6

query I rowsort
SELECT - + col1 * col1 + + col0 AS col1 FROM tab0 cor0
----
-354
-6546
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 71 * + 71 * col1, col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 + - + 93 + 29 + + - 64 IS NOT NULL
----

query I rowsort
SELECT ALL - - 74 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3660
SELECT ALL CAST( NULL AS SIGNED ) / - 89 * - - 51 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT + 54 <= + 88
----

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL CAST ( NULL AS INTEGER ) / - 89 * - - 51 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT + 54 <= + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT - 27 * 49 * - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
11907

skipif mysql # not compatible
query I rowsort label-3661
SELECT - 27 * 49 * - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
11907

query I rowsort
SELECT ALL col2 + 87 FROM tab2
----
110
127
145

query II rowsort
SELECT + - col0, ( + 97 ) + col2 AS col2 FROM tab0 AS cor0
----
-15
144
-87
107
-97
196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3664
SELECT ALL - CAST( NULL AS DECIMAL ) * + 3 * + 35 + - AVG ( ALL - col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL - CAST ( NULL AS REAL ) * + 3 * + 35 + - AVG ( ALL - col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3665
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT + - CAST ( NULL AS REAL ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3666
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 IN ( + + CAST( NULL AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query III rowsort label-3666
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 IN ( + + CAST ( NULL AS INTEGER ), - col1 )
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query II rowsort
SELECT col2 * col2 AS col2, + 31 AS col1 FROM tab0
----
100
31
2209
31
9801
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT + 50 DIV - col2 AS col0 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3669
SELECT + 50 / - col2 AS col0 FROM tab0
----
-1
-5
0

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ( - 23 ) AS col1 FROM tab1
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL + - COUNT( + col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL + - COUNT ( + col0 ) FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3673
SELECT - + 35 DIV 13, - 37 + - 99 - + + col0 AS col2 FROM tab1 AS cor0
----
-2
-187
-2
-221
-2
-227

skipif mysql # not compatible
query II rowsort label-3673
SELECT - + 35 / 13, - 37 + - 99 - + + col0 AS col2 FROM tab1 AS cor0
----
-2
-187
-2
-221
-2
-227

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3674
SELECT DISTINCT col1 / + CAST( 61 AS DECIMAL ) / - - col1 AS col2 FROM tab0 AS cor0 WHERE ( + col1 <> NULL )
----

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT col1 / + CAST ( 61 AS REAL ) / - - col1 AS col2 FROM tab0 AS cor0 WHERE ( + col1 <> NULL )
----

query I rowsort
SELECT ALL - 42 * + + 50 * - col0 * col1 AS col2 FROM tab0 AS cor0
----
203700
2551500
3836700

query II rowsort
SELECT - col2, + 29 AS col0 FROM tab2
----
-23
29
-40
29
-58
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3677
SELECT + 4 AS col0, - CAST( 47 AS SIGNED ) FROM tab2
----
4
-47
4
-47
4
-47

skipif mysql # not compatible
query II rowsort label-3677
SELECT + 4 AS col0, - CAST ( 47 AS INTEGER ) FROM tab2
----
4
-47
4
-47
4
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col1 FROM tab2
----
-141
-142
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT DISTINCT - col1 DIV - + col1 + + col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT - col1 / - + col1 + + col2 FROM tab2
----
24
41
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3680
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col2 + - 2 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 + - - col1 + + col0 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT DISTINCT + MAX( ALL + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + col0 / - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT + MAX ( ALL + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + col0 / - - 25
----
NULL

query I rowsort
SELECT + col1 * col2 * - + 41 / + + col1 AS col1 FROM tab2 AS cor0 WHERE + col0 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3685
SELECT DISTINCT - 28 * col1 * col2, - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
-37632
NULL
-8260
NULL
-89488
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3685
SELECT DISTINCT - 28 * col1 * col2, - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
-37632
NULL
-8260
NULL
-89488
NULL

query II rowsort
SELECT ALL - - col0 * + col2 + + col1 * 65, col2 + + col1 AS col1 FROM tab0 AS cor0
----
2235
31
5970
128
9668
100

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3687
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 15 IN ( - - CAST( NULL AS DECIMAL ), + CAST( NULL AS SIGNED ) ) AND col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3687
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 15 IN ( - - CAST ( NULL AS REAL ), + CAST ( NULL AS INTEGER ) ) AND col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3688
SELECT - 30 * - col2 + + col0 + - 42 + - 78 + - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT - 30 * - col2 + + col0 + - 42 + - 78 + - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - - col0 ) > + - ( - 89 )
----

query I rowsort
SELECT DISTINCT col2 * 87 + - - col1 AS col2 FROM tab2
----
2052
3557
5113

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ALL - COUNT( * ) + + 88 * COUNT( * ) AS col1 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL - COUNT ( * ) + + 88 * COUNT ( * ) AS col1 FROM tab1
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT DISTINCT - col0 DIV col1 DIV 18 + ( - 27 ) + + col0 AS col2 FROM tab0
----
-12
60
65

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT - col0 / col1 / 18 + ( - 27 ) + + col0 AS col2 FROM tab0
----
-12
60
65

query I rowsort
SELECT ALL + 10 + - col2 FROM tab0
----
-37
-89
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3694
SELECT ALL - CAST( NULL AS SIGNED ) + - - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL - CAST ( NULL AS INTEGER ) + - - col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT DISTINCT + + MAX( + 48 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT + + MAX ( + 48 ) FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3697
SELECT DISTINCT - - ( COUNT( * ) ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3697
SELECT DISTINCT - - ( COUNT ( * ) ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL + 93 * - COUNT( - 5 ) * - 72 FROM tab2 AS cor0
----
20088

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + 93 * - COUNT ( - 5 ) * - 72 FROM tab2 AS cor0
----
20088

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT + + 85, ( COUNT( * ) ) AS col0 FROM tab1 cor0
----
85
3

skipif mysql # not compatible
query II rowsort label-3699
SELECT + + 85, ( COUNT ( * ) ) AS col0 FROM tab1 cor0
----
85
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3700
SELECT DISTINCT ( + + 19 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT ( + + 19 ) / - col1 AS col0 FROM tab1 AS cor0
----
-1
-3
0

query I rowsort
SELECT - + col1 * + 55 AS col2 FROM tab1 AS cor0
----
-2585
-275
-770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col2 FROM tab2 cor0
----
85
85
85

query I rowsort
SELECT - ( - - col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + col1 * - ( ( + - col2 ) ) * + col2 * - col0 * - col0 FROM tab1 AS cor0
----
125751125
1799693168
335591424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, col1 col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL 98 FROM tab1 WHERE col1 IS NOT NULL
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT + - col0 + col2 AS col0 FROM tab2 WHERE NOT col1 / ( col2 ) < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3707
SELECT + - col0 + col2 AS col0 FROM tab2 WHERE NOT col1 / ( col2 ) < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 * - - 66 FROM tab2
----
-3366
-4422
-5082

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3709
SELECT - col2 AS col0 FROM tab1 WHERE NOT NULL > CAST( NULL AS DECIMAL ) * + + col2 + + col1 - - col2 + - - col1
----

skipif mysql # not compatible
query I rowsort label-3709
SELECT - col2 AS col0 FROM tab1 WHERE NOT NULL > CAST ( NULL AS REAL ) * + + col2 + + col1 - - col2 + - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT - 96 DIV - - col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3710
SELECT - 96 / - - col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col0 * + ( - col0 ) - - col1 FROM tab1 cor0
----
-2587
-7220
-8234

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL + MAX( ALL ( - + col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL + MAX ( ALL ( - + col1 ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT 54 AS col1 FROM tab1 WHERE NOT NULL <= - col1 + - col2
----

query I rowsort
SELECT 57 * - + col0 + - 77 - - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-4949
-5509
-917

query I rowsort
SELECT col0 + + col2 + - col2 + + + 27 + - col1 + 98 FROM tab0
----
191
221
59

query I rowsort
SELECT DISTINCT - col1 + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT + + COUNT( * ) + 97 AS col0 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-3717
SELECT + + COUNT ( * ) + 97 AS col0 FROM tab1 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT + ( - ( MAX( DISTINCT - 2 ) ) ) + + - COUNT( ALL + col1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3718
SELECT + ( - ( MAX ( DISTINCT - 2 ) ) ) + + - COUNT ( ALL + col1 ) FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT - + col2 * col1 DIV + col1 + + - col2 DIV + - col1 + col0 AS col2 FROM tab0 AS cor0
----
-32
77
97

skipif mysql # not compatible
query I rowsort label-3719
SELECT - + col2 * col1 / + col1 + + - col2 / + - col1 + col0 AS col2 FROM tab0 AS cor0
----
-32
77
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * + col0 col0 FROM tab0 AS cor0
----
-1740
-1940
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT + MIN( - col0 ) + - COUNT( * ) * 35 FROM tab1 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT + MIN ( - col0 ) + - COUNT ( * ) * 35 FROM tab1 AS cor0
----
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3722
SELECT COUNT( + - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3722
SELECT COUNT ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query I rowsort
SELECT col2 * - + 21 - - col2 - - + 84 FROM tab1
----
-1096
-1276
-1836

query II rowsort
SELECT col2, + col0 * - col2 + col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
10
-860
47
-658
99
-9504

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT ALL col1 DIV - col2 - - - col2 AS col1 FROM tab2
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL col1 / - col2 - - - col2 AS col1 FROM tab2
----
-25
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT DISTINCT 71 + - COUNT( * ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT 71 + - COUNT ( * ) FROM tab0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - + COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3727
SELECT - + COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT col2 - + 22 * - - 56 AS col1 FROM tab1 AS cor0
----
-1136
-1164
-1173

onlyif mysql # DIV for integer division: 
query I rowsort label-3729
SELECT + col0 * + col2 + col0 + - col0 DIV + col2 FROM tab1 AS cor0
----
4947
5099
6278

skipif mysql # not compatible
query I rowsort label-3729
SELECT + col0 * + col2 + col0 + - col0 / + col2 FROM tab1 AS cor0
----
4947
5099
6278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT CAST( NULL AS SIGNED ) + + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3730
SELECT CAST ( NULL AS INTEGER ) + + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT COUNT( * ) * - 77 * + COUNT( * ) FROM tab2
----
-693

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT COUNT ( * ) * - 77 * + COUNT ( * ) FROM tab2
----
-693

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 76 / + col1 IN ( col0, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3734
SELECT 23 DIV + - COUNT( * ) AS col2 FROM tab1 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3734
SELECT 23 / + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 2 * - col1 col2 FROM tab1 AS cor0
----
10
28
94

query II rowsort
SELECT DISTINCT + ( col1 ), col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT ALL + ( 91 ) AS col0 FROM tab0
----
91
91
91

query III rowsort
SELECT * FROM tab2 WHERE NOT 89 = ( NULL )
----

query II rowsort
SELECT DISTINCT col2, col0 * + 74 FROM tab1 WHERE NOT ( NOT + 94 NOT BETWEEN NULL AND col0 )
----
59
6290
68
6734
96
3774

query I rowsort
SELECT - col1 * + - ( - col0 ) AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT DISTINCT col1 DIV + 57 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT col1 / + 57 FROM tab0
----
0
1

query III rowsort
SELECT - col2 AS col0, 46 * - - col1 AS col1, - 24 AS col2 FROM tab2
----
9 values hashing to bcda76220913dc501dbfd9d9c2fbef55

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT ALL + MAX( - - col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL + MAX ( - - col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT DISTINCT - ( COUNT( - col0 ) ) * + 83 * - 91 * 79 FROM tab2 AS cor0
----
1790061

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT - ( COUNT ( - col0 ) ) * + 83 * - 91 * 79 FROM tab2 AS cor0
----
1790061

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL ( - COUNT( * ) ) * - - 59 + + + 83 col1 FROM tab2 cor0
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3745
SELECT ALL ( - COUNT ( * ) ) * - - 59 + + + 83 col1 FROM tab2 cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - COUNT( * ) * - - 23 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3746
SELECT - COUNT ( * ) * - - 23 FROM tab1 AS cor0
----
-69

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col2 / - col1 AND 25
----

query I rowsort
SELECT DISTINCT 77 + - col2 AS col0 FROM tab2
----
19
37
54

query II rowsort
SELECT col1 AS col0, - col0 + 7 FROM tab2
----
51
-39
67
-68
77
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT COUNT( + + col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3750
SELECT COUNT ( + + col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT + col2 FROM tab0 WHERE + - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT COUNT( * ) * + - 7 AS col0 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-3752
SELECT COUNT ( * ) * + - 7 AS col0 FROM tab2
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 71 * col0 * + col1 col1 FROM tab1
----
30234
303735
50790

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 3 + 55 > + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL - + COUNT( ALL - - 93 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL - + COUNT ( ALL - - 93 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 7, col2 * - col2 * + 32 AS col2 FROM tab0 cor0
----
7
-313632
7
-3200
7
-70688

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT - col1 + - 10 FROM tab2 AS cor0
----
-61
-77
-87

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL + 34 * + + MAX( DISTINCT - + 91 ) AS col1 FROM tab2 AS cor0
----
-3094

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + 34 * + + MAX ( DISTINCT - + 91 ) AS col1 FROM tab2 AS cor0
----
-3094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col2 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN 33 / + + col2 AND NULL
----

query I rowsort
SELECT + - col1 + + 86 AS col2 FROM tab2 AS cor0
----
19
35
9

query I rowsort
SELECT DISTINCT ( col1 ) * + col2 + + col2 + + + 57 AS col2 FROM tab0
----
255
277
3911

query I rowsort
SELECT ( - col1 ) + + - col1 AS col2 FROM tab0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3766
SELECT ALL CAST( - 15 AS SIGNED ) AS col0, + col0 AS col1 FROM tab1
----
-15
51
-15
85
-15
91

skipif mysql # not compatible
query II rowsort label-3766
SELECT ALL CAST ( - 15 AS INTEGER ) AS col0, + col0 AS col1 FROM tab1
----
-15
51
-15
85
-15
91

query I rowsort
SELECT DISTINCT - 13 * + col1 + + + 76 AS col1 FROM tab0
----
-197
-977
63

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN + 1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col1 col0 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT - col2 * - ( + 57 ) * - col1 + - - 83 FROM tab2
----
-175477
-221419
-66778

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NULL OR NOT NULL <= NULL
----

query I rowsort
SELECT col0 * - + 22 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 - ( 40 ) + col0 - + + col2 AS col2 FROM tab2 AS cor0
----
24
35
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col1 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3775
SELECT DISTINCT + - ( + 89 ) * - COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT - CAST( + - ( - 36 ) AS DECIMAL ) IS NULL
----
267

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT + - ( + 89 ) * - COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( + - ( - 36 ) AS REAL ) IS NULL
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL - COUNT( * ) * SUM( ALL - ( + col2 ) ) col1 FROM tab2 AS cor0
----
363

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3776
SELECT ALL - COUNT ( * ) * SUM ( ALL - ( + col2 ) ) col1 FROM tab2 AS cor0
----
363

query I rowsort
SELECT ( - 33 ) AS col0 FROM tab1
----
-33
-33
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT ALL + col0 DIV - 72 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL + col0 / - 72 FROM tab1
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 50 + + col0 * + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + - col1 ) + 75 + + - ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3781
SELECT - - 14 AS col2, COUNT( * ) * - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
14
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3781
SELECT - - 14 AS col2, COUNT ( * ) * - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
14
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3782
SELECT + - col2 DIV - 67 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3782
SELECT + - col2 / - 67 AS col2 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT col2 AS col0, 67 * + + ( + + 4 ) FROM tab2 AS cor0
----
23
268
40
268
58
268

query I rowsort
SELECT ALL + - 28 * 5 AS col1 FROM tab2 AS cor0
----
-140
-140
-140

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 >= 66
----

query I rowsort
SELECT ( - 31 ) FROM tab1 AS cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 38 * col2 * col2 * + 50 NOT BETWEEN + 94 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3787
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 38 * col2 * col2 * + 50 NOT BETWEEN + 94 AND NULL
----
0

query II rowsort
SELECT ALL + col0 * + col2 AS col0, 61 AS col0 FROM tab0
----
705
61
870
61
9603
61

query II rowsort
SELECT DISTINCT 54 * + col0, + col2 FROM tab0
----
4698
10
5238
99
810
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3790
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / + col0 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3790
SELECT DISTINCT + CAST ( NULL AS REAL ) / + col0 col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3791
SELECT ALL - col0 + 7 - - - CAST( + - col0 AS SIGNED ) col2, - col1 / - - CAST( NULL AS SIGNED ) + + col0 / - - CAST( NULL AS SIGNED ) FROM tab1
----
7
NULL
7
NULL
7
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3791
SELECT ALL - col0 + 7 - - - CAST ( + - col0 AS INTEGER ) col2, - col1 / - - CAST ( NULL AS INTEGER ) + + col0 / - - CAST ( NULL AS INTEGER ) FROM tab1
----
7
NULL
7
NULL
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - MAX( + ( col1 ) ) FROM tab1 WHERE NOT + 6 IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-3792
SELECT - MAX ( + ( col1 ) ) FROM tab1 WHERE NOT + 6 IS NULL
----
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 21 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3794
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - CAST ( NULL AS REAL ) + COUNT ( * ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 51 col0 FROM tab2 AS cor0
----
51
51
51

query II rowsort
SELECT + + 74 * + + col0, ( + ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
1110
-81
6438
-21
7178
-1

query I rowsort
SELECT ALL 61 * ( - col1 ) FROM tab1 AS cor0
----
-2867
-305
-854

query I rowsort
SELECT - + col0 * 7 FROM tab0 AS cor0
----
-105
-609
-679

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3799
SELECT + + COUNT( col2 ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT + + COUNT ( col2 ) + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL - MIN( DISTINCT 74 ) AS col1 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL - MIN ( DISTINCT 74 ) AS col1 FROM tab1
----
-74

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + + 22 AND - - 40 + - col0 + - 81
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 col2 FROM tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT + COUNT( 90 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3803
SELECT + COUNT ( 90 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 80 + - col0 - + ( + col0 ) + + 13 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-35
-57
1

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT col0 - col0 + col0 DIV - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3806
SELECT col0 - col0 + col0 / - col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT 15 - - col2 AS col1 FROM tab0
----
114
25
62

query I rowsort
SELECT 64 + - 77 + col2 FROM tab1
----
46
55
83

query II rowsort
SELECT ALL - 96 AS col1, + 91 AS col2 FROM tab0 AS cor0
----
-96
91
-96
91
-96
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3810
SELECT DISTINCT - 92 * - + COUNT( * ) DIV - - COUNT( * ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - 92 * - + COUNT ( * ) / - - COUNT ( * ) FROM tab2 AS cor0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3811
SELECT DISTINCT + - CAST( COUNT( * ) AS SIGNED ) + + - COUNT( * ) FROM tab2 AS cor0 WHERE col1 * ( - CAST( + + col2 AS SIGNED ) ) + + - col2 NOT IN ( - 74, 84 + + col0 )
----
-6

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT + - CAST ( COUNT ( * ) AS INTEGER ) + + - COUNT ( * ) FROM tab2 AS cor0 WHERE col1 * ( - CAST ( + + col2 AS INTEGER ) ) + + - col2 NOT IN ( - 74, 84 + + col0 )
----
-6

query I rowsort
SELECT DISTINCT - - col1 * - + 32 + 38 * - col0 FROM tab2 AS cor0
----
-3380
-4896
-4994

onlyif mysql # DIV for integer division: 
query I rowsort label-3813
SELECT + 98 DIV 87 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3813
SELECT + 98 / 87 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3814
SELECT 71 * MAX( col1 ) DIV + + COUNT( * ) FROM tab1
----
1112

skipif mysql # not compatible
query I rowsort label-3814
SELECT 71 * MAX ( col1 ) / + + COUNT ( * ) FROM tab1
----
1112

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ( - MAX( ALL + ( - + col1 ) ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3815
SELECT ( - MAX ( ALL + ( - + col1 ) ) ) FROM tab0
----
1

query I rowsort
SELECT ALL + col2 * - col0 + - 79 AS col0 FROM tab1 AS cor0
----
-4975
-5094
-6267

query I rowsort
SELECT DISTINCT + + col1 * + 10 FROM tab1 AS cor0
----
140
470
50

query I rowsort
SELECT ALL - + 54 AS col2 FROM tab0 cor0
----
-54
-54
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT ALL - + col0 * col1 DIV - 65 FROM tab0 AS cor0
----
1
18
28

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL - + col0 * col1 / - 65 FROM tab0 AS cor0
----
1
18
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col2, ( col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 * 90 * + col0 IS NULL
----
-15
81
-87
21
-97
1

query II rowsort
SELECT - col0 AS col1, + col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT DISTINCT - col1 DIV - col0 * ( - 94 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT - col1 / - col0 * ( - 94 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT col2 + col2 + 71 * - - 85 FROM tab2
----
6081
6115
6151

query I rowsort
SELECT - 53 * col2 - - col0 FROM tab2 WHERE NOT - col2 <= + 76 * - col1
----
-1173
-2056
-2999

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT COUNT( * ) + COUNT( ALL + 29 ) + + ( + COUNT( * ) ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3825
SELECT COUNT ( * ) + COUNT ( ALL + 29 ) + + ( + COUNT ( * ) ) AS col0 FROM tab0
----
9

query I rowsort
SELECT DISTINCT 37 + + 98 FROM tab2
----
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT DISTINCT COUNT( * ) + + + 40 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
49

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT COUNT ( * ) + + + 40 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
49

query I rowsort
SELECT ALL + col2 - - 90 + - + col2 FROM tab1 cor0
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3831
SELECT ALL + col1 DIV + + col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL + col1 / + + col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL MAX( + + ( + col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL MAX ( + + ( + col1 ) ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT + 73 * + 31 + SUM( + 48 ) AS col1 FROM tab0 AS cor0
----
2407

skipif mysql # not compatible
query I rowsort label-3833
SELECT + 73 * + 31 + SUM ( + 48 ) AS col1 FROM tab0 AS cor0
----
2407

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT ( + MIN( DISTINCT - + col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT ( + MIN ( DISTINCT - + col2 ) ) FROM tab0 AS cor0
----
-99

query II rowsort
SELECT ALL - ( + + 71 ) * + + col1 - + 51, 33 AS col0 FROM tab1 AS cor0
----
-1045
33
-3388
33
-406
33

query I rowsort
SELECT col1 * + col2 + - 81 * - + col0 FROM tab0
----
5022
7257
7956

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT + COUNT( - 47 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT + COUNT ( - 47 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT + SUM( + 44 ) + 28 AS col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT + SUM ( + 44 ) + 28 AS col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3839
SELECT DISTINCT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) BETWEEN + 74 AND + - col2
----

skipif mysql # not compatible
query III rowsort label-3839
SELECT DISTINCT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) BETWEEN + 74 AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT ALL 70 * - COUNT( - - 81 ) AS col1 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL 70 * - COUNT ( - - 81 ) AS col1 FROM tab1
----
-210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col2 col2 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / + col2 <= + - 59 + + + 60
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 35 * + col1 * - + col0 AS col0 FROM tab0 AS cor0
----
3395
42525
63945

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3845
SELECT + COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3846
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT ALL col0 * - 63 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3849
SELECT + 50 + + col2 + - col2 * + ( col0 ) * CAST( NULL AS SIGNED ) + - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT + 50 + + col2 + - col2 * + ( col0 ) * CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3850
SELECT + CAST( NULL AS SIGNED ) AS col1, - 93 FROM tab2 AS cor0
----
NULL
-93
NULL
-93
NULL
-93

skipif mysql # not compatible
query II rowsort label-3850
SELECT + CAST ( NULL AS INTEGER ) AS col1, - 93 FROM tab2 AS cor0
----
NULL
-93
NULL
-93
NULL
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL + MAX( - 96 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL + MAX ( - 96 ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ( + COUNT( * ) ) * - 61 AS col1 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-3852
SELECT ( + COUNT ( * ) ) * - 61 AS col1 FROM tab0 AS cor0
----
-183

query I rowsort
SELECT DISTINCT ( 37 ) * - - col1 AS col2 FROM tab1 AS cor0
----
1739
185
518

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL + - 38 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + - 38 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT ALL - 41 * ( - - col0 ) + - - col2 AS col0 FROM tab0 WHERE + 95 * 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT DISTINCT - SUM( - 39 ) * - - 42 + - 4 FROM tab1 AS cor0
----
4910

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT - SUM ( - 39 ) * - - 42 + - 4 FROM tab1 AS cor0
----
4910

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT - COUNT( - + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3857
SELECT - COUNT ( - + col2 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( - + ( 2 ) ) * + col2 / + 85 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT 32 - COUNT( * ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3859
SELECT 32 - COUNT ( * ) FROM tab1 AS cor0
----
29

query II rowsort
SELECT ALL + + col1 AS col1, col2 FROM tab1 cor0
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab1 WHERE NOT 61 > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3862
SELECT * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) < + col1 * - - col0 * - col1
----

skipif mysql # not compatible
query III rowsort label-3862
SELECT * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) < + col1 * - - col0 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3863
SELECT 15 DIV col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3863
SELECT 15 / col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT ALL CAST( NULL AS SIGNED ) * + 67 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL CAST ( NULL AS INTEGER ) * + 67 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT - MIN( col2 ) * - + MAX( + - 61 ) AS col0 FROM tab0
----
-610

skipif mysql # not compatible
query I rowsort label-3865
SELECT - MIN ( col2 ) * - + MAX ( + - 61 ) AS col0 FROM tab0
----
-610

onlyif mysql # DIV for integer division: 
query II rowsort label-3866
SELECT DISTINCT + col0 DIV + col0 AS col1, - col2 * - - ( - 79 ) FROM tab2
----
1
1817
1
3160
1
4582

skipif mysql # not compatible
query II rowsort label-3866
SELECT DISTINCT + col0 / + col0 AS col1, - col2 * - - ( - 79 ) FROM tab2
----
1
1817
1
3160
1
4582

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT ( col1 ) DIV - 2 FROM tab2
----
-25
-33
-38

skipif mysql # not compatible
query I rowsort label-3867
SELECT ( col1 ) / - 2 FROM tab2
----
-25
-33
-38

query I rowsort
SELECT + col0 * 88 AS col2 FROM tab1
----
4488
7480
8008

query I rowsort
SELECT - 74 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-74
-74
-74

query I rowsort
SELECT ALL col0 - col2 AS col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL - MAX( - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - MAX ( - col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - col1 * - 60 FROM tab0
----
1260
4860
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ALL - ( - MAX( + 75 ) ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL - ( - MAX ( + 75 ) ) FROM tab0 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * - col0 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 56 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col1, + 12 FROM tab2 cor0
----
51
12
67
12
77
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT ALL COUNT( - 4 ) + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL COUNT ( - 4 ) + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT + 26 + - COUNT( * ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3878
SELECT + 26 + - COUNT ( * ) FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3879
SELECT col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 25 * col2 + + 28 AS col0 FROM tab2
----
1028
1478
603

query I rowsort
SELECT ALL - col2 + col2 * + 84 * + 8 * - 5 FROM tab2
----
-134440
-194938
-77303

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT - SUM( + 41 ) + 11 + + COUNT( - 17 ) FROM tab2
----
-109

skipif mysql # not compatible
query I rowsort label-3882
SELECT - SUM ( + 41 ) + 11 + + COUNT ( - 17 ) FROM tab2
----
-109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + ( - + 91 ) col0 FROM tab1
----
-44
-77
-86

query I rowsort
SELECT DISTINCT - col2 + - 47 FROM tab0
----
-146
-57
-94

query I rowsort
SELECT DISTINCT 55 + - 46 AS col1 FROM tab0 cor0
----
9

query I rowsort
SELECT ALL 64 - - + 52 FROM tab2 AS cor0
----
116
116
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT DISTINCT COUNT( DISTINCT + 50 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT COUNT ( DISTINCT + 50 ) FROM tab1 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT 18 * 85 DIV + col2 AS col0 FROM tab2 AS cor0
----
26
38
66

skipif mysql # not compatible
query I rowsort label-3888
SELECT 18 * 85 / + col2 AS col0 FROM tab2 AS cor0
----
26
38
66

query I rowsort
SELECT DISTINCT - 18 * + + 90 AS col1 FROM tab1
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL COUNT( * ) + - MAX( + col2 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL COUNT ( * ) + - MAX ( + col2 ) FROM tab0
----
-96

query I rowsort
SELECT - col1 * + col0 - - - col1 + - 37 FROM tab1 cor0 WHERE + col0 IS NOT NULL
----
-4361
-467
-765

query I rowsort
SELECT ALL - ( col2 ) + col0 * - ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 12 * col2 * + col2 < NULL
----

query I rowsort
SELECT - 90 * - col1 AS col2 FROM tab0 AS cor0
----
1890
7290
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3895
SELECT MIN( - + col0 ), MAX( + col1 ) AS col2 FROM tab0 AS cor0
----
-97
81

skipif mysql # not compatible
query II rowsort label-3895
SELECT MIN ( - + col0 ), MAX ( + col1 ) AS col2 FROM tab0 AS cor0
----
-97
81

query I rowsort
SELECT + 44 * + col1 AS col2 FROM tab2
----
2244
2948
3388

query I rowsort
SELECT DISTINCT + col2 * + 3 AS col1 FROM tab2
----
120
174
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NOT + col0 <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NOT + col0 <= NULL )
----
0

query II rowsort
SELECT col0, 22 FROM tab1 AS cor0
----
51
22
85
22
91
22

query I rowsort
SELECT + - 63 FROM tab2 cor0
----
-63
-63
-63

query III rowsort
SELECT * FROM tab2 WHERE col2 * + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT + COUNT( + 10 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3903
SELECT + COUNT ( + 10 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT COUNT( * ) * + 80 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-3904
SELECT COUNT ( * ) * + 80 FROM tab0
----
240

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 79 ) * 82 + 7 NOT IN ( - col1 + - 45 * 65 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE col0 * col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3908
SELECT ALL col0 * ( ( 34 ) / ( CAST( NULL AS DECIMAL ) * - 51 ) ) AS col1 FROM tab2 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL col0 * ( ( 34 ) / ( CAST ( NULL AS REAL ) * - 51 ) ) AS col1 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT + 86 * COUNT( * ) FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-3909
SELECT + 86 * COUNT ( * ) FROM tab0
----
258

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3910
SELECT - COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT - COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT + 3 * - col1 - col0 FROM tab1
----
-100
-232
-93

query I rowsort
SELECT - 75 * - col2 AS col2 FROM tab2
----
1725
3000
4350

query I rowsort
SELECT 91 * + 29 FROM tab0
----
2639
2639
2639

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) NOT BETWEEN - col1 + 71 * col0 AND col1 / + 83 + - 76
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * - col0 + ( 17 + + ( - 91 ) ) IN ( + 23 )
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT 95 <= 43 + + 78
----

query I rowsort
SELECT DISTINCT 15 * 81 + - 67 * - col1 AS col1 FROM tab2
----
4632
5704
6374

query I rowsort
SELECT DISTINCT - col2 * 20 AS col1 FROM tab1
----
-1180
-1360
-1920

query I rowsort
SELECT ALL - col2 + + col1 * col1 FROM tab1 WHERE NOT - 44 > 17
----
-34
100
2141

query I rowsort
SELECT ALL + 70 / + 29 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 * + col2 + - col1 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 1 * + 52 AS col0 FROM tab0
----
52

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( col2 ) BETWEEN ( NULL ) AND col1
----
51
85
91

query I rowsort
SELECT ALL - 19 * col1 AS col1 FROM tab1
----
-266
-893
-95

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( + col2 / 15 )
----

query I rowsort
SELECT ALL - col1 * 41 AS col0 FROM tab0
----
-3321
-41
-861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col2 FROM tab1 WHERE + col2 * col0 = ( - col0 )
----

query I rowsort
SELECT ( - ( 24 ) ) FROM tab1
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL COUNT( * ) - 69 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL COUNT ( * ) - 69 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT - COUNT( * ) + + ( COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT - COUNT ( * ) + + ( COUNT ( * ) ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3932
SELECT ALL - CAST( AVG ( ALL col1 ) AS SIGNED ) AS col0 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL - CAST ( AVG ( ALL col1 ) AS INTEGER ) AS col0 FROM tab1
----
-22

query I rowsort
SELECT DISTINCT + ( ( + ( col1 ) ) ) AS col1 FROM tab0 AS cor0 WHERE + col1 * - 60 > - col2
----
1

query I rowsort
SELECT 36 - + col0 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT COUNT( * ) FROM tab2 cor0 WHERE - col0 + - 33 * + col1 BETWEEN col2 * col0 AND + col1 * col0 + col0
----
0

skipif mysql # not compatible
query I rowsort label-3935
SELECT COUNT ( * ) FROM tab2 cor0 WHERE - col0 + - 33 * + col1 BETWEEN col2 * col0 AND + col1 * col0 + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 NOT IN ( 68 * + 49 - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT 37 IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3938
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT 37 IS NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3939
SELECT ALL col0 / col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL col0 / col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3940
SELECT CAST( 79 AS SIGNED ) * - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
-702

skipif mysql # not compatible
query I rowsort label-3940
SELECT CAST ( 79 AS INTEGER ) * - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
-702

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 60 + - col0 <= + col0
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 AS cor0 WHERE + col0 NOT IN ( + col0 + + 22 * 54 )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT DISTINCT - CAST( 75 AS SIGNED ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT - CAST ( 75 AS INTEGER ) FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + ( - col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT DISTINCT col2 + - 52 AS col0 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT col2 + - 52 AS col0 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3946
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - ( + 62 ) + + CAST( - ( 58 ) AS SIGNED ) * 14 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3946
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - ( + 62 ) + + CAST ( - ( 58 ) AS INTEGER ) * 14 AND NULL
----

query I rowsort
SELECT - 69 FROM tab0 WHERE NOT - col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - 4 FROM tab0
----
-348
-388
-60

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT col0 * 53 * col1 FROM tab2
----
124338
261184
266325

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL COUNT( * ) col1 FROM tab2 WHERE NOT - ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3951
SELECT ALL COUNT ( * ) col1 FROM tab2 WHERE NOT - ( col2 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT ALL ( - 12 ) * - COUNT( * ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL ( - 12 ) * - COUNT ( * ) AS col2 FROM tab0
----
36

query I rowsort
SELECT col2 * 79 + col2 AS col0 FROM tab1 WHERE NOT col1 * 58 IS NULL
----
4720
5440
7680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3954
SELECT DISTINCT - COUNT( * ) DIV COUNT( DISTINCT col1 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT - COUNT ( * ) / COUNT ( DISTINCT col1 ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - MIN( + - col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3955
SELECT - MIN ( + - col2 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT col2 * + 87 AS col1 FROM tab0
----
4089
8613
870

onlyif mysql # DIV for integer division: 
query I rowsort label-3957
SELECT - 46 DIV - col2 * 62 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3957
SELECT - 46 / - col2 * 62 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * - + col1 AS col1 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 4 >= NULL
----

query I rowsort
SELECT ALL + 89 + - col2 - - col1 AS col0 FROM tab2 AS cor0
----
117
126
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 * + + 48 + col2 FROM tab1
----
2891
3332
4704

onlyif mysql # DIV for integer division: 
query I rowsort label-3963
SELECT DISTINCT - + 75 DIV 98 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT - + 75 / 98 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col0 * - col0 col2 FROM tab0
----
3375
658503
912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT DISTINCT + 9 AS col1 FROM tab2 WHERE ( - - col0 * + col2 ) IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT ALL - MAX( 78 ) FROM tab0 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL - MAX ( 78 ) FROM tab0 cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 * col2 col2 FROM tab1 AS cor0 WHERE NOT ( 57 + - col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - + 54
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( + - 73 )
----

query I rowsort
SELECT - + ( - + col1 ) + + col1 FROM tab1 cor0
----
10
28
94

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE 64 * + + 50 + 93 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT DISTINCT 41 + - MIN( + - 62 ) + + 75 * COUNT( * ) FROM tab0 AS cor0
----
328

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT 41 + - MIN ( + - 62 ) + + 75 * COUNT ( * ) FROM tab0 AS cor0
----
328

query III rowsort
SELECT * FROM tab2 WHERE + col2 BETWEEN + col2 * + col0 AND 72 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT - 52 + - COUNT( 92 ) FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-3975
SELECT - 52 + - COUNT ( 92 ) FROM tab1
----
-55

query I rowsort
SELECT ALL + col1 + + + col2 + - 52 - - + col0 FROM tab1
----
109
154
97

query I rowsort
SELECT ( - ( col2 ) ) + - - col1 * + col0 AS col2 FROM tab0
----
-2
1168
1817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3978
SELECT COUNT( * ) * COUNT( * ) + + ( COUNT( * ) ) + COUNT( * ) * CAST( - SUM( - ( + 31 ) ) AS SIGNED ) FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-3978
SELECT COUNT ( * ) * COUNT ( * ) + + ( COUNT ( * ) ) + COUNT ( * ) * CAST ( - SUM ( - ( + 31 ) ) AS INTEGER ) FROM tab1
----
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3979
SELECT ALL - CAST( NULL AS SIGNED ) * - + COUNT( * ) + 88 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + 88 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT col1 + col1 AS col0, - col1 AS col0 FROM tab0
----
162
-81
2
-1
42
-21

query I rowsort
SELECT ALL + 44 - 25 AS col1 FROM tab2
----
19
19
19

query I rowsort
SELECT 38 * - ( col2 ) AS col0 FROM tab2 WHERE ( + col2 ) <> ( 37 + 38 )
----
-1520
-2204
-874

query III rowsort
SELECT * FROM tab0 WHERE + 88 + + 42 + + col0 - - col1 IS NOT NULL OR - 75 NOT BETWEEN 97 * - col1 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 AS col0, 9 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT DISTINCT - COUNT( * ) * 97 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT - COUNT ( * ) * 97 FROM tab2 AS cor0
----
-291

query I rowsort
SELECT ALL - ( col2 ) AS col0 FROM tab1 WHERE NOT + 13 NOT BETWEEN ( col1 ) AND + 25 * + ( + 2 )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3988
SELECT - col2 col0, 73 + - CAST( - 78 AS SIGNED ) FROM tab1
----
-59
151
-68
151
-96
151

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3988
SELECT - col2 col0, 73 + - CAST ( - 78 AS INTEGER ) FROM tab1
----
-59
151
-68
151
-96
151

query I rowsort
SELECT + 50 AS col1 FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 0 AS col0, 11 AS col0 FROM tab1
----
0
11
0
11
0
11

query I rowsort
SELECT DISTINCT + + col1 * - col2 AS col0 FROM tab0 WHERE NOT NULL <= - col2 / + + 68 + + col1
----

query II rowsort
SELECT DISTINCT + 2 AS col0, col0 AS col1 FROM tab0
----
2
15
2
87
2
97

query II rowsort
SELECT ALL - col1 AS col0, col2 FROM tab0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT col1 * + ( - - col0 ) * - + col0 AS col1 FROM tab0
----
-158949
-18225
-9409

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 / - 17 / + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3996
SELECT col2 * + 92 + col2 DIV + - 46 AS col0 FROM tab2
----
2116
3680
5335

skipif mysql # not compatible
query I rowsort label-3996
SELECT col2 * + 92 + col2 / + - 46 AS col0 FROM tab2
----
2116
3680
5335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT DISTINCT 42 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT 42 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT col0 + ( - + col2 ) FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL + - col1 + - + 80 + - 61 + col0 FROM tab2 AS cor0
----
-133
-146
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + - 51 - + 61 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - 51 - + 61 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - + 99 - + col2 AS col2 FROM tab1 AS cor0
----
-5900
-6800
-9600

query I rowsort
SELECT DISTINCT + col1 * + - ( - col1 ) FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT + COUNT( * ) * 1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4003
SELECT + COUNT ( * ) * 1 FROM tab0 cor0
----
3

query I rowsort
SELECT - + col2 * - - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT DISTINCT - 7 DIV + col1 AS col2 FROM tab0 cor0
----
-7
0

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT - 7 / + col1 AS col2 FROM tab0 cor0
----
-7
0

query II rowsort
SELECT ALL - + 84 + + - ( + col2 ) AS col0, + 49 FROM tab1 AS cor0
----
-143
49
-152
49
-180
49

query I rowsort
SELECT + 36 * col1 * - - 87 FROM tab0 AS cor0
----
253692
3132
65772

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT SUM( + 7 ) FROM tab1 AS cor0 WHERE NOT 22 < 15
----
21

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT SUM ( + 7 ) FROM tab1 AS cor0 WHERE NOT 22 < 15
----
21

query II rowsort
SELECT DISTINCT - col1 + - ( - + col2 ) AS col2, + col0 * + - col2 * + ( col0 ) FROM tab2
----
-28
-48668
-37
-163840
-9
-326250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 17 + ( 8 ) col2, - ( col2 ) * + col2 * + col2 * ( 39 ) AS col0 FROM tab2
----
25
-2496000
25
-474513
25
-7609368

query I rowsort
SELECT 67 - - col0 - col2 FROM tab1
----
22
90
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ( COUNT( * ) ) - + + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4012
SELECT ( COUNT ( * ) ) - + + COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4014
SELECT * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) + - col2 BETWEEN - - 49 AND + - 47 * + 45
----

skipif mysql # not compatible
query III rowsort label-4014
SELECT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) + - col2 BETWEEN - - 49 AND + - 47 * + 45
----

query I rowsort
SELECT 45 * + + col1 + - + 45 FROM tab2
----
2250
2970
3420

query I rowsort
SELECT + ( col1 ) + + + col2 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT 8 + + col0 AS col0 FROM tab1
----
59
93
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4018
SELECT - MIN( col1 ) col0 FROM tab2 WHERE CAST( col2 AS SIGNED ) * 23 + 67 <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4018
SELECT - MIN ( col1 ) col0 FROM tab2 WHERE CAST ( col2 AS INTEGER ) * 23 + 67 <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 + - col2 col1 FROM tab1
----
-149
-158
-186

query I rowsort
SELECT DISTINCT + - col2 + 66 FROM tab0 AS cor0
----
-33
19
56

query I rowsort
SELECT ALL - col2 - - - 37 FROM tab2 AS cor0
----
-60
-77
-95

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE ( 29 ) IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT - col2 + + + 51 + - col1 AS col2 FROM tab0 AS cor0
----
-49
-77
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT DISTINCT - + COUNT( * ), + 76 AS col0 FROM tab0 cor0
----
-3
76

skipif mysql # not compatible
query II rowsort label-4024
SELECT DISTINCT - + COUNT ( * ), + 76 AS col0 FROM tab0 cor0
----
-3
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) + col0 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) + col0 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT 61 DIV col0 AS col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4026
SELECT 61 / col0 AS col2 FROM tab0
----
0
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT - SUM( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + ( + 29 ) + + col1 IN ( - col1 )
----
121

skipif mysql # not compatible
query I rowsort label-4027
SELECT - SUM ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + ( + 29 ) + + col1 IN ( - col1 )
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 AS cor0 WHERE NOT 47 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 8 AS col2 FROM tab1 cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4030
SELECT ALL * FROM tab2 WHERE NOT + col0 / col1 + - col1 + + 78 = CAST( + col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4030
SELECT ALL * FROM tab2 WHERE NOT + col0 / col1 + - col1 + + 78 = CAST ( + col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT + COUNT( 40 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4031
SELECT + COUNT ( 40 ) FROM tab2
----
3

query I rowsort
SELECT - 98 * col2 AS col2 FROM tab0
----
-4606
-9702
-980

onlyif mysql # DIV for integer division: 
query I rowsort label-4033
SELECT - - col0 DIV + ( + col1 ) AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4033
SELECT - - col0 / + ( + col1 ) AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + ( - - 3 ) FROM tab2 AS cor0 WHERE NOT ( + 40 ) * - - col0 + col1 + - 2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT COUNT( ALL - - 79 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4035
SELECT COUNT ( ALL - - 79 ) FROM tab0
----
3

query I rowsort
SELECT ALL - - 64 * - ( + - 1 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 21 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= ( + - col2 )
----

query I rowsort
SELECT DISTINCT + + col2 + + - col0 AS col2 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT ALL + col1 - col1 * - 23 AS col0 FROM tab2 AS cor0
----
1224
1608
1848

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col1 + + col1 - col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + + col0 * 21 + 71 FROM tab2 cor0
----
1037
1415
1646

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE - 37 / + ( + + col1 ) NOT IN ( - + col0, + col1 * - col0, - - col0 * col1 * col2 * + col0 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT - ( - COUNT( * ) ) + 89 AS col1 FROM tab1 cor0
----
92

skipif mysql # not compatible
query I rowsort label-4045
SELECT - ( - COUNT ( * ) ) + 89 AS col1 FROM tab1 cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT DISTINCT + + 10 * - - MIN( col1 ) AS col1 FROM tab2 AS cor0
----
510

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT + + 10 * - - MIN ( col1 ) AS col1 FROM tab2 AS cor0
----
510

query I rowsort
SELECT ALL - col1 + - - 77 FROM tab2 AS cor0
----
0
10
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE col1 * + col2 <> 82
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE col1 * + col2 <> 82
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col0 - col0 + - 27 <= + + col2 + - + col0 + - + 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 5 + - ( - col0 ) AS col2 FROM tab2
----
51
69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT + SUM( ALL 37 ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-4051
SELECT + SUM ( ALL 37 ) FROM tab0
----
111

query I rowsort
SELECT col2 * + - col1 * + 65 * col1 AS col1 FROM tab1
----
-1223040
-95875
-9763780

query I rowsort
SELECT ALL - 18 + + 20 AS col1 FROM tab0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT DISTINCT CAST( + - 47 AS SIGNED ) + + - 26 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT CAST ( + - 47 AS INTEGER ) + + - 26 FROM tab0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT MIN( - 68 ) AS col2 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-4055
SELECT MIN ( - 68 ) AS col2 FROM tab0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4056
SELECT * FROM tab0 WHERE ( ( NOT ( - 11 IN ( + col2 * - CAST( - - col2 AS SIGNED ) * 96 + - 67 * + col2 ) ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4056
SELECT * FROM tab0 WHERE ( ( NOT ( - 11 IN ( + col2 * - CAST ( - - col2 AS INTEGER ) * 96 + - 67 * + col2 ) ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 65 AS col1 FROM tab2 cor0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4058
SELECT DISTINCT 41 DIV + COUNT( DISTINCT ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT 41 / + COUNT ( DISTINCT ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
13

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 > NULL
----

query I rowsort
SELECT + 98 + - + col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
51
88

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < 37
----

query I rowsort
SELECT - col2 * col1 + + + col1 * + + col2 + - + 30 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT + col2 * - 91, 54 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col2 * + 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT DISTINCT SUM( ALL - + 12 ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT SUM ( ALL - + 12 ) FROM tab1 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT - - 21 * ( COUNT( * ) ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-4065
SELECT - - 21 * ( COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-4066
SELECT - - 91 AS col0, COUNT( * ) AS col0 FROM tab0 cor0
----
91
3

skipif mysql # not compatible
query II rowsort label-4066
SELECT - - 91 AS col0, COUNT ( * ) AS col0 FROM tab0 cor0
----
91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT - + SUM( ALL col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - + SUM ( ALL col1 ) FROM tab0 AS cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT + SUM( DISTINCT - 55 ) AS col1 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4069
SELECT + SUM ( DISTINCT - 55 ) AS col1 FROM tab0 AS cor0
----
-55

query I rowsort
SELECT 93 / - 5 + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL + 62 * - COUNT( * ) * + + 27 * 84 AS col1 FROM tab1 AS cor0
----
-421848

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL + 62 * - COUNT ( * ) * + + 27 * 84 AS col1 FROM tab1 AS cor0
----
-421848

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT DISTINCT 61 + + + COUNT( * ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT 61 + + + COUNT ( * ) FROM tab1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4073
SELECT ALL * FROM tab0 WHERE col2 + + col1 <> ( CAST( + - col1 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4073
SELECT ALL * FROM tab0 WHERE col2 + + col1 <> ( CAST ( + - col1 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 8 + + 82 FROM tab2 WHERE NOT NULL >= - 33 * + col2 + col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT - MAX( + col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT - MAX ( + col1 ) AS col0 FROM tab1
----
-47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > 54
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 * - - col2 col1 FROM tab0
----
1683
170
799

query I rowsort
SELECT DISTINCT - col2 * 18 AS col2 FROM tab1
----
-1062
-1224
-1728

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * - 52 IS NOT NULL
----

query I rowsort
SELECT ALL 20 FROM tab0 cor0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT - + COUNT( * ), 28 AS col2 FROM tab1 cor0
----
-3
28

skipif mysql # not compatible
query II rowsort label-4082
SELECT - + COUNT ( * ), 28 AS col2 FROM tab1 cor0
----
-3
28

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 17 * + 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL + 22 * - COUNT( * ) * COUNT( * ) * + COUNT( * ) FROM tab2 cor0
----
-594

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL + 22 * - COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0
----
-594

onlyif mysql # DIV for integer division: 
query II rowsort label-4085
SELECT ALL col1, - 11 DIV - - col2 - + col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

skipif mysql # not compatible
query II rowsort label-4085
SELECT ALL col1, - 11 / - - col2 - + col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 37 * - col1 - col2 col0 FROM tab0 AS cor0
----
-62
2950
767

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT COUNT( * ) * 30 FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-4087
SELECT COUNT ( * ) * 30 FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col1
----
0

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - 90 * + col0 AS col0 FROM tab0
----
-1350
-7830
-8730

query I rowsort
SELECT + 88 - + ( - - col0 ) AS col0 FROM tab0
----
-9
1
73

query II rowsort
SELECT DISTINCT - col2 * + 25, col2 AS col2 FROM tab2
----
-1000
40
-1450
58
-575
23

query II rowsort
SELECT DISTINCT - 8 AS col1, - col2 FROM tab0
----
-8
-10
-8
-47
-8
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL - 63 * COUNT( ( + col1 ) ) AS col0 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL - 63 * COUNT ( ( + col1 ) ) AS col0 FROM tab1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT 46 * - COUNT( * ) FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-4094
SELECT 46 * - COUNT ( * ) FROM tab0
----
-138

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4095
SELECT + CAST( NULL AS DECIMAL ) / ( - col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT + CAST ( NULL AS REAL ) / ( - col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT + + COUNT( DISTINCT - + 58 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4096
SELECT + + COUNT ( DISTINCT - + 58 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT 74 * col0 - - col1 * + col1 AS col0 FROM tab1 AS cor0
----
3970
6315
8943

query II rowsort
SELECT DISTINCT - col2, col1 * col1 AS col2 FROM tab0 AS cor0
----
-10
441
-47
6561
-99
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4099
SELECT ALL + 89 DIV + SUM( 91 ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4099
SELECT ALL + 89 / + SUM ( 91 ) col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 95 * - 61 * + 92 AS col0 FROM tab2
----
-533140
-533140
-533140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT + CAST( col2 AS SIGNED ) FROM tab2 WHERE NOT 72 IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4101
SELECT + CAST ( col2 AS INTEGER ) FROM tab2 WHERE NOT 72 IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT - + SUM( 51 ) AS col2 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4103
SELECT - + SUM ( 51 ) AS col2 FROM tab2 AS cor0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4104
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + CAST( NULL AS SIGNED ) * + col1 - 37 - 71
----

skipif mysql # not compatible
query III rowsort label-4104
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + CAST ( NULL AS INTEGER ) * + col1 - 37 - 71
----

query I rowsort
SELECT ALL col0 * - col2 * - col0 FROM tab0 AS cor0
----
10575
75690
931491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4106
SELECT ALL COUNT( * ) * + + ( COUNT( - 5 ) ) + + 11 * + 83 DIV - 77 + + - 51 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL COUNT ( * ) * + + ( COUNT ( - 5 ) ) + + 11 * + 83 / - 77 + + - 51 FROM tab2 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT 70 + + MIN( + + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT 70 + + MIN ( + + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT DISTINCT + + col1 * - + 19 AS col2, + col1 * + - ( col1 ) * + 68 AS col1 FROM tab2 AS cor0
----
-1273
-305252
-1463
-403172
-969
-176868

onlyif mysql # DIV for integer division: 
query I rowsort label-4109
SELECT + 75 DIV + 78 * col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4109
SELECT + 75 / + 78 * col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT + 40 + - COUNT( * ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-4110
SELECT + 40 + - COUNT ( * ) FROM tab2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4111
SELECT + col2 + + CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-4111
SELECT + col2 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 27 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT - COUNT( ALL + col0 ) + + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT - COUNT ( ALL + col0 ) + + COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL - col0 + - 51 * + + 45 * col1 FROM tab1 WHERE NULL IS NULL
----
-107956
-11560
-32181

query I rowsort
SELECT + 48 * + col0 * + 58 + + - col2 AS col0 FROM tab1
----
141888
236581
253276

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - ( + 29 ) = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT MAX( - 63 ) + - - 67 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4117
SELECT MAX ( - 63 ) + - - 67 FROM tab0
----
4

query I rowsort
SELECT ALL 92 + - col2 * col1 AS col2 FROM tab2
----
-1081
-2988
-3794

query I rowsort
SELECT + 41 + + col0 + col0 FROM tab0
----
215
235
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL - 94 * COUNT( * ) FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL - 94 * COUNT ( * ) FROM tab0 AS cor0
----
-282

query I rowsort
SELECT ALL - 54 + - col2 AS col1 FROM tab1 AS cor0
----
-113
-122
-150

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT + 20 DIV - - col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4123
SELECT + 20 / - - col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4124
SELECT DISTINCT - MIN( DISTINCT + col0 ) AS col1, + 50 FROM tab1
----
-51
50

skipif mysql # not compatible
query II rowsort label-4124
SELECT DISTINCT - MIN ( DISTINCT + col0 ) AS col1, + 50 FROM tab1
----
-51
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 91 col0 FROM tab1
----
-5369
-6188
-8736

query I rowsort
SELECT ALL + 45 + - col2 FROM tab1
----
-14
-23
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4127
SELECT DISTINCT + 51 + - CAST( + col2 AS SIGNED ) FROM tab1
----
-17
-45
-8

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT + 51 + - CAST ( + col2 AS INTEGER ) FROM tab1
----
-17
-45
-8

query I rowsort
SELECT DISTINCT ( + 63 ) + col0 FROM tab0
----
150
160
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 43 IS NULL
----

query II rowsort
SELECT DISTINCT - col0 - - col0, col0 + - col0 FROM tab2 AS cor0
----
0
0

query I rowsort
SELECT DISTINCT + col0 - - - col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + col2 IS NULL )
----

query I rowsort
SELECT ALL + - 66 AS col0 FROM tab2 AS cor0
----
-66
-66
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + 64 NOT BETWEEN NULL AND ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4135
SELECT col0 DIV - 90 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4135
SELECT col0 / - 90 AS col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL COUNT( * ) * + 67 AS col0 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL COUNT ( * ) * + 67 AS col0 FROM tab1
----
201

query I rowsort
SELECT + 98 * + 59 FROM tab1
----
5782
5782
5782

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL 52 * - + COUNT( * ) * + MIN( + 36 ) AS col0 FROM tab0
----
-5616

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL 52 * - + COUNT ( * ) * + MIN ( + 36 ) AS col0 FROM tab0
----
-5616

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT - - 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4140
SELECT ALL COUNT( * ), 5 AS col0 FROM tab2 cor0
----
3
5

skipif mysql # not compatible
query II rowsort label-4140
SELECT ALL COUNT ( * ), 5 AS col0 FROM tab2 cor0
----
3
5

query I rowsort
SELECT DISTINCT col2 + + - 83 AS col0 FROM tab0
----
-36
-73
16

query I rowsort
SELECT 12 + + col1 - + - col1 FROM tab1
----
106
22
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4143
SELECT + + 81 + COUNT( * ) AS col0, 80 AS col1 FROM tab0 cor0
----
84
80

skipif mysql # not compatible
query II rowsort label-4143
SELECT + + 81 + COUNT ( * ) AS col0, 80 AS col1 FROM tab0 cor0
----
84
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT - 48 + MIN( + col2 ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-4144
SELECT - 48 + MIN ( + col2 ) FROM tab0 AS cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 90 col0, + col0 col0 FROM tab0 AS cor0
----
-90
15
-90
87
-90
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4146
SELECT + col2 / + CAST( NULL AS SIGNED ), col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4146
SELECT + col2 / + CAST ( NULL AS INTEGER ), col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT DISTINCT - 68 DIV + - col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT - 68 / + - col0 FROM tab1 AS cor0
----
0
1

query II rowsort
SELECT col0, - col2 AS col0 FROM tab0 WHERE 87 * + - col1 + + - ( col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 NOT BETWEEN NULL AND col2
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT 86 / - col0 - CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT 86 / - col0 - CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0, - 21 FROM tab0 AS cor0 WHERE col0 + - - col0 + col2 IS NOT NULL
----
15
-21
87
-21
97
-21

query I rowsort
SELECT + col0 + 64 FROM tab2 AS cor0
----
110
128
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT ALL - ( CAST( - 43 AS SIGNED ) ) - - col1 AS col2 FROM tab2 AS cor0
----
110
120
94

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL - ( CAST ( - 43 AS INTEGER ) ) - - col1 AS col2 FROM tab2 AS cor0
----
110
120
94

query I rowsort
SELECT - 27 + - + col2 + + - ( + col1 ) * col1 * + - col1 AS col2 FROM tab0 AS cor0
----
-125
531367
9224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4155
SELECT + col0 + + col1 AS col0, - CAST( - ( - 78 ) AS SIGNED ) FROM tab1 AS cor0
----
138
-78
65
-78
90
-78

skipif mysql # not compatible
query II rowsort label-4155
SELECT + col0 + + col1 AS col0, - CAST ( - ( - 78 ) AS INTEGER ) FROM tab1 AS cor0
----
138
-78
65
-78
90
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4156
SELECT DISTINCT - + 29 DIV + col1 + - - col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT - + 29 / + col1 + - - col1 AS col2 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT ALL - col1, + 3 AS col0 FROM tab1
----
-14
3
-47
3
-5
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4158
SELECT 86 AS col0, COUNT( * ) AS col1 FROM tab0
----
86
3

skipif mysql # not compatible
query II rowsort label-4158
SELECT 86 AS col0, COUNT ( * ) AS col1 FROM tab0
----
86
3

query II rowsort
SELECT + 98, col1 * - + col2 AS col0 FROM tab0
----
98
-210
98
-3807
98
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT DISTINCT 68 + + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT 68 + + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 72 + 15 AS col1 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
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-4162
SELECT - ( + COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + ( + 43 ) AS col2 FROM tab2 cor0
----
-43

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / + + col0 > col1 AND ( ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT + MAX( ALL - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT + MAX ( ALL - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 60 * - col2 AS col1 FROM tab1 WHERE NOT col1 IS NULL
----
-3540
-4080
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT - COUNT( * ) * - 59 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-4168
SELECT - COUNT ( * ) * - 59 FROM tab2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + COUNT( * ) * + + MIN( 29 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-4169
SELECT + COUNT ( * ) * + + MIN ( 29 ) FROM tab2
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-4170
SELECT col0 DIV + col2, col1 FROM tab2
----
1
67
1
77
2
51

skipif mysql # not compatible
query II rowsort label-4170
SELECT col0 / + col2, col1 FROM tab2
----
1
67
1
77
2
51

query I rowsort
SELECT ALL - 92 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT COUNT( ALL + - 20 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4172
SELECT COUNT ( ALL + - 20 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + + col0 * - - col0 AS col0 FROM tab0 cor0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col1 AS col2, col2 AS col2 FROM tab1
----
-14
96
-47
68
-5
59

query I rowsort
SELECT - 47 * + col2 AS col2 FROM tab2
----
-1081
-1880
-2726

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 + + col2 * col2 + + col0 ) < + col2 * - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 82 NOT BETWEEN - + 32 AND 21
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col2, + 44 + + col0 AS col1 FROM tab1 AS cor0
----
59
129
68
135
96
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4181
SELECT ALL + CAST( NULL AS SIGNED ) * + SUM( + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + CAST ( NULL AS INTEGER ) * + SUM ( + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT - 90 * - 61 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT - 90 * - 61 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 + 25 + - - col2 * col1 AS col0 FROM tab1 AS cor0
----
1273
261
3153

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ( + 62 ) + - MAX( + 62 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4184
SELECT ( + 62 ) + - MAX ( + 62 ) FROM tab1
----
0

query I rowsort
SELECT + 19 + + col0 + + + col2 AS col0 FROM tab1
----
163
166
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT DISTINCT - ( - + 95 ) + - COUNT( * ) AS col0 FROM tab1 WHERE NOT + col1 / - 26 * col0 + 58 / + 0 / - col2 - + col1 < NULL
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort label-4186
SELECT DISTINCT - ( - + 95 ) + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col1 / - 26 * col0 + 58 / + 0 / - col2 - + col1 < NULL
----
95

query I rowsort
SELECT DISTINCT col1 * + col2 + + ( + - 65 ) * + col0 AS col2 FROM tab1
----
-1971
-2719
-5230

query I rowsort
SELECT 89 + - col2 FROM tab2
----
31
49
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT + COUNT( * ) * - - 79 + + 78 FROM tab2
----
315

skipif mysql # not compatible
query I rowsort label-4189
SELECT + COUNT ( * ) * - - 79 + + 78 FROM tab2
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT COUNT( * ) FROM tab2 WHERE NULL > - - col2 * + - col0
----
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT COUNT ( * ) FROM tab2 WHERE NULL > - - col2 * + - col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 86 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - col0 + - - col1 + - 71 AS col0 FROM tab2
----
-58
-66
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL MIN( - col0 ) - - ( - + 81 ) col0 FROM tab1
----
-172

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4194
SELECT ALL MIN ( - col0 ) - - ( - + 81 ) col0 FROM tab1
----
-172

query I rowsort
SELECT ALL 66 - + - 25 + - col2 FROM tab2 AS cor0
----
33
51
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT ALL + col1 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + col1 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT DISTINCT COUNT( * ) + ( ( + COUNT( * ) ) ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT COUNT ( * ) + ( ( + COUNT ( * ) ) ) AS col2 FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT + col2 DIV + ( - + col0 ) - - col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4198
SELECT + col2 / + ( - + col0 ) - - col0 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4200
SELECT + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT + - 83 AS col1 FROM tab2 cor0
----
-83
-83
-83

query I rowsort
SELECT 34 * col1 AS col1 FROM tab0 AS cor0
----
2754
34
714

query II rowsort
SELECT - 21 AS col0, 49 * col2 + + col0 FROM tab1
----
-21
2976
-21
3423
-21
4755

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT COUNT( * ) * ( - 46 ) AS col0 FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-4204
SELECT COUNT ( * ) * ( - 46 ) AS col0 FROM tab1
----
-138

query I rowsort
SELECT ALL - 9 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col1, - 29 FROM tab2
----
-23
-29
-40
-29
-58
-29

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 > - 11
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4208
SELECT + 91 DIV + COUNT( * ) + + SUM( ALL - CAST( + - col0 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
229

skipif mysql # not compatible
query I rowsort label-4208
SELECT + 91 / + COUNT ( * ) + + SUM ( ALL - CAST ( + - col0 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
229

onlyif mysql # aggregate syntax: 
query II rowsort label-4209
SELECT + + 39 col0, COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
39
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4209
SELECT + + 39 col0, COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
39
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4210
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( + + col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4210
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( + + col2 AS REAL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT ALL + COUNT( 91 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL + COUNT ( 91 ) AS col2 FROM tab2 cor0
----
3

query II rowsort
SELECT DISTINCT col0 + 29 AS col2, - col1 FROM tab1
----
114
-5
120
-47
80
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT - + COUNT( * ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4214
SELECT - + COUNT ( * ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4215
SELECT - 53 * + CAST( NULL AS SIGNED ) AS col1, - 65 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 67df4410f2c5ee24f2b23f13664c38da

skipif mysql # not compatible
query II rowsort label-4215
SELECT - 53 * + CAST ( NULL AS INTEGER ) AS col1, - 65 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 67df4410f2c5ee24f2b23f13664c38da

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT + + 37 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT + + 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT - - 42 + - COUNT( * ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4217
SELECT - - 42 + - COUNT ( * ) FROM tab1 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT - CAST( NULL AS SIGNED ) * - 76 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT - CAST ( NULL AS INTEGER ) * - 76 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT + + MIN( - 8 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4219
SELECT + + MIN ( - 8 ) FROM tab2 AS cor0
----
-8

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 BETWEEN NULL AND col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL + 73 * COUNT( * ) FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + 73 * COUNT ( * ) FROM tab2 AS cor0
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4222
SELECT 68 + col2 FROM tab2 AS cor0 WHERE - col0 + + col1 IN ( - col2 * CAST( NULL AS SIGNED ), + 25 )
----

skipif mysql # not compatible
query I rowsort label-4222
SELECT 68 + col2 FROM tab2 AS cor0 WHERE - col0 + + col1 IN ( - col2 * CAST ( NULL AS INTEGER ), + 25 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4223
SELECT 14 DIV - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4223
SELECT 14 / - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE 70 IS NULL
----

query I rowsort
SELECT ALL col1 * - col2 + + col0 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT DISTINCT - 38 * + col0 + + + 93 * col0 FROM tab1
----
2805
4675
5005

query I rowsort
SELECT DISTINCT ( col0 ) - - 90 AS col2 FROM tab2
----
136
154
165

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE - 1 IS NULL
----

query I rowsort
SELECT ALL col2 + + - col2 * - col0 AS col1 FROM tab2
----
1081
2600
4408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT + ( CAST( NULL AS SIGNED ) ) + 23 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT + ( CAST ( NULL AS INTEGER ) ) + 23 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 29 + + - 87 FROM tab1
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 17 + col1 col1 FROM tab2 AS cor0
----
68
84
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT col0 * + 19 * 65 + + + CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT col0 * + 19 * 65 + + + CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 59 - + 52 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT DISTINCT + - 69 - MAX( col0 ) - 45 FROM tab0 AS cor0
----
-211

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT + - 69 - MAX ( col0 ) - 45 FROM tab0 AS cor0
----
-211

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT ALL + SUM( ( col1 ) ) - - 40 * + ( - + 2 ) * 80 * COUNT( * ) FROM tab2 AS cor0
----
-19005

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL + SUM ( ( col1 ) ) - - 40 * + ( - + 2 ) * 80 * COUNT ( * ) FROM tab2 AS cor0
----
-19005

query I rowsort
SELECT ALL + 38 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query II rowsort
SELECT col2 AS col0, - col1 * + col1 AS col0 FROM tab1
----
59
-25
68
-2209
96
-196

query II rowsort
SELECT col0 AS col2, + 56 * - 23 AS col0 FROM tab1
----
51
-1288
85
-1288
91
-1288

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT 67 * COUNT( * ) col1 FROM tab2
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4240
SELECT 67 * COUNT ( * ) col1 FROM tab2
----
201

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4241
SELECT DISTINCT CAST( ( col1 ) AS SIGNED ) DIV - 53 AS col0, col0 DIV + col0 FROM tab0
----
-1
1
0
1

skipif mysql # not compatible
query II rowsort label-4241
SELECT DISTINCT CAST ( ( col1 ) AS INTEGER ) / - 53 AS col0, col0 / + col0 FROM tab0
----
-1
1
0
1

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 cor0 WHERE - col0 + - - col1 IS NULL
----

query II rowsort
SELECT ALL + ( + col0 ) AS col0, - col2 AS col1 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + 77 col2, 45 FROM tab0 AS cor0
----
1155
45
6699
45
7469
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4247
SELECT col2 * - col2, - col0 DIV - col1 AS col0 FROM tab2
----
-1600
0
-3364
1
-529
0

skipif mysql # not compatible
query II rowsort label-4247
SELECT col2 * - col2, - col0 / - col1 AS col0 FROM tab2
----
-1600
0
-3364
1
-529
0

query I rowsort
SELECT - ( - 73 ) * 56 FROM tab2
----
4088
4088
4088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - 15 col1 FROM tab2
----
66
82
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4250
SELECT ALL col2 DIV - + 43 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL col2 / - + 43 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT + 62 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
109
161
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT + 97 - + - COUNT( * ) - - - 17 + + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
80

skipif mysql # not compatible
query I rowsort label-4252
SELECT + 97 - + - COUNT ( * ) - - - 17 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 + + col0 col0 FROM tab1
----
118
152
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT DISTINCT + COUNT( * ) + - 47 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT + COUNT ( * ) + - 47 FROM tab0
----
-44

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NOT + 10 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL + col0 + col1 * - col2 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT DISTINCT COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4257
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - col0 * ( - col2 ) + - 65 - + - 27 FROM tab1 AS cor0
----
4858
4977
6150

query II rowsort
SELECT DISTINCT 74 AS col0, 16 FROM tab1 AS cor0
----
74
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4260
SELECT ALL + CAST( NULL AS SIGNED ), - col0 AS col2 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-4260
SELECT ALL + CAST ( NULL AS INTEGER ), - col0 AS col2 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4261
SELECT ALL col1 DIV col0 + - 46 + + col1 * - - col1 + + ( col2 ) FROM tab1 AS cor0
----
2231
246
38

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL col1 / col0 + - 46 + + col1 * - - col1 + + ( col2 ) FROM tab1 AS cor0
----
2231
246
38

query II rowsort
SELECT ALL + col2, 41 AS col0 FROM tab2 AS cor0
----
23
41
40
41
58
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT + col2 DIV + - col2 + + col1 * + col1 FROM tab1 AS cor0
----
195
2208
24

skipif mysql # not compatible
query I rowsort label-4263
SELECT + col2 / + - col2 + + col1 * + col1 FROM tab1 AS cor0
----
195
2208
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT - 75 + + COUNT( * ) + - - 43 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4264
SELECT - 75 + + COUNT ( * ) + - - 43 FROM tab1 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4265
SELECT - 87 * - COUNT( ALL col2 ) * - 37 AS col1, 22 AS col2 FROM tab1
----
-9657
22

skipif mysql # not compatible
query II rowsort label-4265
SELECT - 87 * - COUNT ( ALL col2 ) * - 37 AS col1, 22 AS col2 FROM tab1
----
-9657
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4266
SELECT + 5 * COUNT( * ) * - + SUM( 1 ) AS col0, - CAST( NULL AS SIGNED ) FROM tab1
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-4266
SELECT + 5 * COUNT ( * ) * - + SUM ( 1 ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab1
----
-45
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT ALL col1 DIV ( - - col0 ) + + ( 78 ) + - - 97 * - col0 FROM tab1
----
-4869
-8167
-8749

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL col1 / ( - - col0 ) + + ( 78 ) + - - 97 * - col0 FROM tab1
----
-4869
-8167
-8749

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT DISTINCT COUNT( - col2 ) FROM tab1 WHERE NOT col2 - - - col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT COUNT ( - col2 ) FROM tab1 WHERE NOT col2 - - - col1 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT col1 AS col2 FROM tab0 WHERE - col2 * + CAST( NULL AS SIGNED ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4269
SELECT col1 AS col2 FROM tab0 WHERE - col2 * + CAST ( NULL AS INTEGER ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT - COUNT( ALL - + col1 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4270
SELECT - COUNT ( ALL - + col1 ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT - ( + ( + MIN( ALL + col0 ) ) ) AS col0, 79 FROM tab1 AS cor0
----
-51
79

skipif mysql # not compatible
query II rowsort label-4271
SELECT - ( + ( + MIN ( ALL + col0 ) ) ) AS col0, 79 FROM tab1 AS cor0
----
-51
79

query I rowsort
SELECT ( 50 ) * 25 AS col2 FROM tab0 AS cor0
----
1250
1250
1250

onlyif mysql # DIV for integer division: 
query I rowsort label-4273
SELECT ALL - - col0 DIV + 35 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL - - col0 / + 35 FROM tab1 AS cor0
----
1
2
2

query I rowsort
SELECT DISTINCT 7 * col0 * - + 79 FROM tab1
----
-28203
-47005
-50323

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4275
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + col0 * + 66 + + 53 + - 78 AS col1 FROM tab1 AS cor0
----
3341
5585
5981

query II rowsort
SELECT ALL + + col2 AS col0, col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4278
SELECT DISTINCT CAST( + 81 AS SIGNED ) * + 21, + 77 AS col1 FROM tab1 AS cor0
----
1701
77

skipif mysql # not compatible
query II rowsort label-4278
SELECT DISTINCT CAST ( + 81 AS INTEGER ) * + 21, + 77 AS col1 FROM tab1 AS cor0
----
1701
77

query I rowsort
SELECT DISTINCT col1 * + 76 + col0 * - 81 FROM tab1 cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4280
SELECT + CAST( - - CAST( - 84 AS SIGNED ) AS SIGNED ), col1 AS col0 FROM tab1 AS cor0
----
-84
14
-84
47
-84
5

skipif mysql # not compatible
query II rowsort label-4280
SELECT + CAST ( - - CAST ( - 84 AS INTEGER ) AS INTEGER ), col1 AS col0 FROM tab1 AS cor0
----
-84
14
-84
47
-84
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT + + col2 * - + col0 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT + + col2 * - + col0 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * + 65 AS col1 FROM tab0 AS cor0
----
5655
6305
975

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL AND col0 * - 45 / - + 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT SUM( - + col0 ) AS col2 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4284
SELECT SUM ( - + col0 ) AS col2 FROM tab0 cor0
----
-199

onlyif mysql # DIV for integer division: 
query II rowsort label-4285
SELECT DISTINCT - col2 DIV - 29, col2 AS col1 FROM tab2
----
0
23
1
40
2
58

skipif mysql # not compatible
query II rowsort label-4285
SELECT DISTINCT - col2 / - 29, col2 AS col1 FROM tab2
----
0
23
1
40
2
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL COUNT( * ) + - COUNT( - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL COUNT ( * ) + - COUNT ( - col0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT DISTINCT + MIN( + 85 ) + - 54 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT + MIN ( + 85 ) + - 54 FROM tab0
----
31

query II rowsort
SELECT DISTINCT + col2 AS col2, + 13 + - ( + + col2 ) AS col2 FROM tab2
----
23
-10
40
-27
58
-45

query I rowsort
SELECT - col1 + - - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 WHERE - col2 + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * 85 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4292
SELECT ALL + 18 - + + MIN( ALL - ( + - col1 ) ) FROM tab1 AS cor0 WHERE NOT + CAST( + - col2 AS SIGNED ) + + + 90 * - + 9 * col0 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL + 18 - + + MIN ( ALL - ( + - col1 ) ) FROM tab1 AS cor0 WHERE NOT + CAST ( + - col2 AS INTEGER ) + + + 90 * - + 9 * col0 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - - 92 AS col0 FROM tab0 AS cor0 WHERE - 98 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 7 * + + 11 / - col1 IN ( 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL MIN( - - 92 ) * + - COUNT( * ) AS col1 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL MIN ( - - 92 ) * + - COUNT ( * ) AS col1 FROM tab1
----
-276

query II rowsort
SELECT DISTINCT ( - + col1 ) * + 93 AS col1, - ( + col0 ) * 59 + - col0 + + col2 * + col1 FROM tab1
----
-1302
-1716
-4371
-2264
-465
-4805

query III rowsort
SELECT ALL * FROM tab0 WHERE 3 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4298
SELECT + col2 - + col2 DIV - - col0 AS col1 FROM tab1
----
59
68
95

skipif mysql # not compatible
query I rowsort label-4298
SELECT + col2 - + col2 / - - col0 AS col1 FROM tab1
----
59
68
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4299
SELECT ALL * FROM tab1 WHERE NOT - + CAST( - col0 AS SIGNED ) * + col2 + + - 58 / - + 44 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4299
SELECT ALL * FROM tab1 WHERE NOT - + CAST ( - col0 AS INTEGER ) * + col2 + + - 58 / - + 44 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + - col1 ) * - - 85 * - - 66 AS col1 FROM tab0
----
-117810
-454410
-5610

query I rowsort
SELECT DISTINCT + col1 + col0 + + col0 * col1 FROM tab2
----
2443
5069
5167

query III rowsort
SELECT * FROM tab1 WHERE - 18 + col0 NOT IN ( + + ( + 15 ), + col2 * - col0, - + col0 + - + 69, + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
196
2209
25

query I rowsort
SELECT - col1 + + ( - - col1 ) AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT - COUNT( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4306
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 WHERE col2 < + CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 < + CAST ( NULL AS REAL )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - col2 * col0
----

query I rowsort
SELECT DISTINCT - col2 * - 7 + + ( 92 ) AS col2 FROM tab2 cor0
----
253
372
498

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col0 FROM tab0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT - 70 * - col2 * col1 AS col1 FROM tab2
----
215600
272020
82110

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4311
SELECT col2 DIV - - col2 AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-4311
SELECT col2 / - - col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
1
NULL
1
NULL
1
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - col1, - 6 col1 FROM tab1 AS cor0
----
1344
-6
295
-6
3196
-6

query I rowsort
SELECT - + col0 * - - 98 FROM tab0 AS cor0
----
-1470
-8526
-9506

query I rowsort
SELECT ALL col1 * + 85 * + 55 FROM tab2 AS cor0
----
238425
313225
359975

onlyif mysql # aggregate syntax: 
query II rowsort label-4315
SELECT + COUNT( - + col0 ), - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4315
SELECT + COUNT ( - + col0 ), - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
0

query I rowsort
SELECT ALL + 48 + - col1 FROM tab0
----
-33
27
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT DISTINCT 62 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT 62 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 51 * - - 37 - + + col2 ) <= - col2
----

query I rowsort
SELECT + 8 + ( + col0 ) FROM tab0
----
105
23
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - 75 + + col0 * + 69 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - ( + + 88 ) FROM tab1 AS cor0
----
-88

query I rowsort
SELECT ALL 56 + col1 AS col2 FROM tab2 AS cor0
----
107
123
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4324
SELECT - ( 95 ) DIV + + SUM( + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4324
SELECT - ( 95 ) / + + SUM ( + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT + col2, 59 * + - col2 FROM tab1
----
59
-3481
68
-4012
96
-5664

query I rowsort
SELECT DISTINCT + col0 + - col0 + + - col2 AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 65 - - - 3 + - col0 * 23 FROM tab0 AS cor0
----
-1939
-2169
-283

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL COUNT( * ) + + - 86 AS col2 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL COUNT ( * ) + + - 86 AS col2 FROM tab1 AS cor0
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4329
SELECT ALL - COUNT( * ) DIV - 36 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - COUNT ( * ) / - 36 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT DISTINCT + 36 DIV col0 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT + 36 / col0 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 IS NULL AND NOT 14 IS NULL
----

query I rowsort
SELECT ALL + - col0 - + + col0 AS col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4333
SELECT * FROM tab1 AS cor0 WHERE CAST( + 70 AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4333
SELECT * FROM tab1 AS cor0 WHERE CAST ( + 70 AS REAL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - col1 + + 36 AS col0 FROM tab1 AS cor0
----
-11
22
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT 10 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
13

skipif mysql # not compatible
query I rowsort label-4335
SELECT 10 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT DISTINCT - - MIN( ( col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT - - MIN ( ( col2 ) ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT col2 * + 21 * 12 FROM tab0
----
11844
24948
2520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4338
SELECT - 65 DIV + MIN( DISTINCT - + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4338
SELECT - 65 / + MIN ( DISTINCT - + col2 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - + MAX( col0 ) * - 25 * - MIN( + 27 ) AS col2 FROM tab1 AS cor0
----
-61425

skipif mysql # not compatible
query I rowsort label-4339
SELECT - + MAX ( col0 ) * - 25 * - MIN ( + 27 ) AS col2 FROM tab1 AS cor0
----
-61425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4340
SELECT - + col0 * - - CAST( NULL AS SIGNED ) + - 25 AS col0, - 43 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
-43
NULL
-43
NULL
-43

skipif mysql # not compatible
query II rowsort label-4340
SELECT - + col0 * - - CAST ( NULL AS INTEGER ) + - 25 AS col0, - 43 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
-43
NULL
-43
NULL
-43

query I rowsort
SELECT ALL + - 24 FROM tab0 cor0 WHERE 33 IS NOT NULL
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - SUM( + 77 ) AS col2 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-4342
SELECT - SUM ( + 77 ) AS col2 FROM tab1
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4343
SELECT ALL - CAST( NULL AS SIGNED ), - col2 col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4343
SELECT ALL - CAST ( NULL AS INTEGER ), - col2 col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4344
SELECT DISTINCT 34 AS col2, + SUM( ALL - 46 ) FROM tab1
----
34
-138

skipif mysql # not compatible
query II rowsort label-4344
SELECT DISTINCT 34 AS col2, + SUM ( ALL - 46 ) FROM tab1
----
34
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ALL COUNT( DISTINCT + 28 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL COUNT ( DISTINCT + 28 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - col1 * + - 90 FROM tab1 AS cor0
----
1260
4230
450

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL - ( SUM( DISTINCT col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL - ( SUM ( DISTINCT col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT - - 33 * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4348
SELECT - - 33 * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * + col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, - col0 * 96 FROM tab2 AS cor0
----
51
-4416
67
-7200
77
-6144

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL COUNT( * ) * - + COUNT( * ) + - + SUM( ( + + 38 ) ) AS col1 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL COUNT ( * ) * - + COUNT ( * ) + - + SUM ( ( + + 38 ) ) AS col1 FROM tab2 AS cor0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL COUNT( * ) * COUNT( * ) + + + 30 AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL COUNT ( * ) * COUNT ( * ) + + + 30 AS col0 FROM tab0
----
39

query I rowsort
SELECT ALL col2 * 66 AS col1 FROM tab1
----
3894
4488
6336

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 40 >= NULL
----

query I rowsort
SELECT col0 + - 72 + + - col2 FROM tab2 AS cor0
----
-48
-49
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4356
SELECT 92 + + col1 - + col0 DIV - 92 + - col1 AS col0 FROM tab0 AS cor0
----
92
92
93

skipif mysql # not compatible
query I rowsort label-4356
SELECT 92 + + col1 - + col0 / - 92 + - col1 AS col0 FROM tab0 AS cor0
----
92
92
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4357
SELECT * FROM tab1 AS cor0 WHERE - 66 * + + 36 * + - ( - 1 ) NOT IN ( col2, - col0, - col2, 68 + - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4357
SELECT * FROM tab1 AS cor0 WHERE - 66 * + + 36 * + - ( - 1 ) NOT IN ( col2, - col0, - col2, 68 + - + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT DISTINCT - + MAX( + - col0 ) + + - 20 AS col0 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT - + MAX ( + - col0 ) + + - 20 AS col0 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT DISTINCT MIN( ALL col2 ) + + COUNT( ALL + 40 ) + 89 AS col2 FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT MIN ( ALL col2 ) + + COUNT ( ALL + 40 ) + 89 AS col2 FROM tab2 AS cor0
----
115

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 99 + + col1 < + ( + + 94 ) * + 3
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 82 ) AS col0 FROM tab1
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT ALL + 5 * + CAST( - + 53 AS SIGNED ) - - col2 AS col0 FROM tab1 AS cor0
----
-169
-197
-206

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL + 5 * + CAST ( - + 53 AS INTEGER ) - - col2 AS col0 FROM tab1 AS cor0
----
-169
-197
-206

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 60 * col2 / - - col1 + + col1 AND - ( + + col2 ) + + - ( col1 ) * col0 * + col1
----

query I rowsort
SELECT DISTINCT + - 3 AS col1 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT ALL + ( - CAST( + 8 AS SIGNED ) ) col2 FROM tab0 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4366
SELECT ALL + ( - CAST ( + 8 AS INTEGER ) ) col2 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - 53 + - col1 AS col0 FROM tab2
----
-104
-120
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4368
SELECT + ( + ( - 13 ) ) + + 17 + - 25 * - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT + ( + ( - 13 ) ) + + 17 + - 25 * - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT 34 * - col2 - col1 AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 71 + 78
----

query I rowsort
SELECT + col2 * - 60 + - + col2 AS col2 FROM tab2
----
-1403
-2440
-3538

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE ( NULL IS NULL )
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col2 AND - col1
----

query II rowsort
SELECT ALL - - 37, col1 FROM tab0 AS cor0
----
37
1
37
21
37
81

query I rowsort
SELECT + col0 * + col2 * - - col1 + + col1 AS col0 FROM tab2 AS cor0
----
197197
291517
54009

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT - 22 - - - col2 + - 42 DIV + col1 AS col1 FROM tab1 cor0
----
-121
-89
-90

skipif mysql # not compatible
query I rowsort label-4375
SELECT - 22 - - - col2 + - 42 / + col1 AS col1 FROM tab1 cor0
----
-121
-89
-90

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 66 * - + col2 >= - - 24
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 * - col1 ) NOT IN ( 43 * - col1 + 69 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4378
SELECT ( + ( - COUNT( * ) ) ) DIV + 72 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4378
SELECT ( + ( - COUNT ( * ) ) ) / + 72 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT COUNT( * ) - - MAX( ALL col0 ) AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-4379
SELECT COUNT ( * ) - - MAX ( ALL col0 ) AS col0 FROM tab1
----
94

query I rowsort
SELECT ALL col1 + ( - 80 ) FROM tab2
----
-13
-29
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( col2 ) ) + - col2 * 42 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT DISTINCT - MAX( DISTINCT + 40 ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT - MAX ( DISTINCT + 40 ) FROM tab2
----
-40

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 IN ( + col0 + + 3 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT - col0 + 80 AS col1 FROM tab1
----
-11
-5
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT MIN( 70 ) + + COUNT( * ) AS col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4386
SELECT MIN ( 70 ) + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT ( + SUM( DISTINCT col2 ) ) AS col2 FROM tab0 WHERE col1 + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT ( + SUM ( DISTINCT col2 ) ) AS col2 FROM tab0 WHERE col1 + + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL COUNT( * ) + + 16 * COUNT( * ) col1 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4388
SELECT ALL COUNT ( * ) + + 16 * COUNT ( * ) col1 FROM tab2
----
51

query I rowsort
SELECT ( - 1 ) + - 91 FROM tab2
----
-92
-92
-92

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 25 > ( NULL )
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT 7 - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - AVG ( ALL + col2 ) ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT SUM( + 90 ) * + 61 FROM tab2 AS cor0
----
16470

skipif mysql # not compatible
query I rowsort label-4393
SELECT SUM ( + 90 ) * + 61 FROM tab2 AS cor0
----
16470

query I rowsort
SELECT - 5 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 + col0 ) <> ( - 20 ) - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT - col1 * + ( 61 ) + col2 IS NOT NULL
----

query I rowsort
SELECT - 39 AS col0 FROM tab2 AS cor0 WHERE col1 * - col1 IS NOT NULL
----
-39
-39
-39

query I rowsort
SELECT ALL - col2 + + 72 AS col0 FROM tab2 AS cor0
----
14
32
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT - col1 DIV ( - ( - col0 ) * col2 - col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4401
SELECT - col1 / ( - ( - col0 ) * col2 - col0 ) FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 76 col1 FROM tab1 cor0
----
1064
3572
380

onlyif mysql # DIV for integer division: 
query I rowsort label-4403
SELECT + + 93 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4403
SELECT + + 93 / - col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( 97 ) * col0 FROM tab1 AS cor0
----
4947
8245
8827

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4405
SELECT * FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4405
SELECT * FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL MIN( DISTINCT col2 ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL MIN ( DISTINCT col2 ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4408
SELECT DISTINCT 6 * + col2 + - 90 DIV - col2 AS col2 FROM tab1 AS cor0
----
355
409
576

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT 6 * + col2 + - 90 / - col2 AS col2 FROM tab1 AS cor0
----
355
409
576

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT + 71 * + SUM( - col2 ) + 60 * + 85 col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4409
SELECT + 71 * + SUM ( - col2 ) + 60 * + 85 col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL + 37 + SUM( DISTINCT + col2 ) FROM tab0
----
193

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + 37 + SUM ( DISTINCT + col2 ) FROM tab0
----
193

query I rowsort
SELECT DISTINCT + col2 + 76 FROM tab0
----
123
175
86

query I rowsort
SELECT DISTINCT - 22 + col2 AS col1 FROM tab1 WHERE - 97 * - 80 IN ( + 45 )
----

query I rowsort
SELECT - col1 - - col0 * col0 FROM tab1
----
2587
7220
8234

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 * 73 * col0 + + col0 col1 FROM tab2
----
228390
317760
372375

query I rowsort
SELECT - 79 - - col2 AS col1 FROM tab2
----
-21
-39
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4418
SELECT ALL - col0 + + - col2 + 81 DIV 42 AS col1 FROM tab1
----
-143
-146
-158

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL - col0 + + - col2 + 81 / 42 AS col1 FROM tab1
----
-143
-146
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 - col2 col0 FROM tab0
----
-33
19
56

query I rowsort
SELECT DISTINCT - + 33 * + 65 + col0 AS col0 FROM tab1 AS cor0
----
-2054
-2060
-2094

query I rowsort
SELECT 19 * + 32 * - 62 + - 49 FROM tab1 AS cor0
----
-37745
-37745
-37745

query I rowsort
SELECT DISTINCT - col2 * col0 - 36 AS col0 FROM tab1 AS cor0
----
-4932
-5051
-6224

query I rowsort
SELECT 24 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 * - col1 + - col2 / - 78 AND - col2
----

query I rowsort
SELECT + 48 AS col1 FROM tab1 WHERE ( - 82 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT CAST( col0 AS SIGNED ) AS col1 FROM tab0 WHERE NOT + col1 * 25 BETWEEN ( + ( + 77 ) ) AND 96 + 5
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4425
SELECT CAST ( col0 AS INTEGER ) AS col1 FROM tab0 WHERE NOT + col1 * 25 BETWEEN ( + ( + 77 ) ) AND 96 + 5
----
15
87
97

query I rowsort
SELECT + 53 FROM tab2 WHERE NOT ( - 51 ) IS NULL
----
53
53
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4427
SELECT DISTINCT CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4427
SELECT DISTINCT CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 * col0 + + 85 IN ( + col2 )
----

query II rowsort
SELECT ALL + 23 AS col1, col0 FROM tab0 AS cor0
----
23
15
23
87
23
97

query I rowsort
SELECT ALL + 27 AS col0 FROM tab0 AS cor0 WHERE col1 >= - 34 * col0 + col1
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4431
SELECT ALL - 61 * + col2 + + col0 / - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - 61 * + col2 + + col0 / - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - 48 )
----

query I rowsort
SELECT ALL - - 72 * - 26 FROM tab0 AS cor0
----
-1872
-1872
-1872

query I rowsort
SELECT - col1 - + ( col0 ) / ( + 46 + - 42 * - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 - col1 NOT BETWEEN ( col0 / - col0 + 60 ) AND col0 / col0 + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT ALL col1 * col2 DIV + col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL col1 * col2 / + col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4437
SELECT ALL + CAST( - AVG ( ALL col0 ) AS SIGNED ) AS col1 FROM tab2 WHERE NOT - 38 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + CAST ( - AVG ( ALL col0 ) AS INTEGER ) AS col1 FROM tab2 WHERE NOT - 38 >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - col0 col1 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4439
SELECT DISTINCT SUM( + 96 ) DIV - - COUNT( * ) col1 FROM tab2
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4439
SELECT DISTINCT SUM ( + 96 ) / - - COUNT ( * ) col1 FROM tab2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT - CAST( - + col1 AS SIGNED ) * - + 91 FROM tab1
----
-1274
-4277
-455

skipif mysql # not compatible
query I rowsort label-4440
SELECT - CAST ( - + col1 AS INTEGER ) * - + 91 FROM tab1
----
-1274
-4277
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT COUNT( * ) * + 58 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-4441
SELECT COUNT ( * ) * + 58 FROM tab1
----
174

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 - col1 + 56 / 93 IS NULL
----

query I rowsort
SELECT ALL 70 + - col2 AS col2 FROM tab0
----
-29
23
60

query III rowsort
SELECT * FROM tab1 WHERE - + 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4445
SELECT COUNT( * ) AS col0, - ( - + 58 ) FROM tab1
----
3
58

skipif mysql # not compatible
query II rowsort label-4445
SELECT COUNT ( * ) AS col0, - ( - + 58 ) FROM tab1
----
3
58

query I rowsort
SELECT ALL col1 * col1 * + 82 AS col1 FROM tab2 AS cor0
----
213282
368098
486178

query I rowsort
SELECT + - col0 * - col1 + + col2 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT DISTINCT - 57 * - 28 * - col2 * + + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1872108
-4915680
-6202056

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT - 57 * - 28 * - col2 * + + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1872108
-4915680
-6202056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( + col2 ) col0 FROM tab2 WHERE 51 * - ( - 21 ) BETWEEN + - col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT + 37 + COUNT( * ) AS col1 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-4450
SELECT + 37 + COUNT ( * ) AS col1 FROM tab0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT col2 / + + 22 * + col0 + - CAST( NULL AS SIGNED ) * + ( - col1 ) + - col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4451
SELECT col2 / + + 22 * + col0 + - CAST ( NULL AS INTEGER ) * + ( - col1 ) + - col2 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + + 31 + 40 FROM tab0
----
-2657
-2967
-425

query I rowsort
SELECT + ( + + 88 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT DISTINCT + 69 - CAST( + col2 AS SIGNED ) FROM tab2
----
11
29
46

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT + 69 - CAST ( + col2 AS INTEGER ) FROM tab2
----
11
29
46

query I rowsort
SELECT ALL 7 + col1 * col0 AS col2 FROM tab1 AS cor0 WHERE col1 / + + col2 / + - col2 IN ( - col0 * - col2 * + 31 + 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL - MAX( ALL col0 ) col0 FROM tab0 cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4456
SELECT ALL - MAX ( ALL col0 ) col0 FROM tab0 cor0
----
-97

query I rowsort
SELECT ALL col0 + + + col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 88 NOT IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 58 - col0 AS col2 FROM tab0 AS cor0
----
-29
-39
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT ALL ( - CAST( + COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL ( - CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + - col2 - - - col1 * 97 FROM tab0 AS cor0
----
-196
-2047
-7904

query I rowsort
SELECT - + 3 - - - 45 AS col0 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT COUNT( - 47 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT COUNT ( - 47 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 72 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
72

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT - 60 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT 91 * - - COUNT( * ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-4466
SELECT 91 * - - COUNT ( * ) FROM tab0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT - COUNT( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( 24 ) = ( 83 )
----
-3

skipif mysql # not compatible
query I rowsort label-4467
SELECT - COUNT ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( 24 ) = ( 83 )
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= + 84
----

query I rowsort
SELECT DISTINCT + - 16 FROM tab1 AS cor0 WHERE ( NOT 18 * + 41 IS NULL )
----
-16

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 68 + col1 < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4471
SELECT + MAX( CAST( + ( col1 ) AS SIGNED ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4471
SELECT + MAX ( CAST ( + ( col1 ) AS INTEGER ) ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN + 15 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4473
SELECT ALL - - col2 * + - col1 + + - col2 DIV 15 * - + col2 FROM tab2 AS cor0
----
-1150
-3000
-3712

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL - - col2 * + - col1 + + - col2 / 15 * - + col2 FROM tab2 AS cor0
----
-1150
-3000
-3712

query I rowsort
SELECT ( + - 94 ) AS col2 FROM tab0 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT DISTINCT - COUNT( ALL - - col2 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4475
SELECT DISTINCT - COUNT ( ALL - - col2 ) col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 / + 53 * - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL SUM( ALL + - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL SUM ( ALL + - col2 ) FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4478
SELECT ALL - col0 * + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL - col0 * + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 14 * col2 + - ( col1 ) - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL + SUM( ALL + - 25 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL + SUM ( ALL + - 25 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-75

query I rowsort
SELECT DISTINCT - - ( + col0 ) AS col2 FROM tab1 WHERE NOT + - col1 + 87 IS NULL
----
51
85
91

query I rowsort
SELECT - 67 * - - col2 AS col2 FROM tab0
----
-3149
-6633
-670

query I rowsort
SELECT 4 * 34 FROM tab2 WHERE NOT 97 * + col2 - col0 + + col2 * - 21 > ( + - col2 - col1 )
----

query I rowsort
SELECT - + col1 * + - 13 FROM tab0 AS cor0
----
1053
13
273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 * + - 30 col1 FROM tab2 AS cor0
----
-90

query II rowsort
SELECT ALL - col0 AS col1, 71 + col2 + - 2 - - ( + col1 ) * - - 98 AS col2 FROM tab2 AS cor0
----
-46
5090
-64
7655
-75
6693

query II rowsort
SELECT + + col2 * ( 19 ) AS col2, - 55 * - 4 FROM tab0 AS cor0
----
1881
220
190
220
893
220

query I rowsort
SELECT DISTINCT + 19 * + 11 FROM tab1 AS cor0
----
209

query I rowsort
SELECT ALL + + 16 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT + 12 + 91 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT ALL + col0 * CAST( + 63 AS SIGNED ) FROM tab1 AS cor0
----
3213
5355
5733

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL + col0 * CAST ( + 63 AS INTEGER ) FROM tab1 AS cor0
----
3213
5355
5733

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 79 NOT IN ( - 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 21 * 74 FROM tab2 AS cor0
----
1554
1554
1554

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL - 39 + + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL - 39 + + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT - col2 * - - col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * col1, 43 * - + col2 )
----

query I rowsort
SELECT - - 5 * - col1 AS col2 FROM tab2 AS cor0
----
-255
-335
-385

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 <> + col2 * + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT ALL + CAST( NULL AS SIGNED ) + - - col1 * - 85 * - col0 * + ( + + col0 ) * - 65 + + - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + CAST ( NULL AS INTEGER ) + - - col1 * - 85 * - col0 * + ( + + col0 ) * - 65 + + - col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT - col0 - 24 DIV + - col1 FROM tab0
----
-15
-73
-86

skipif mysql # not compatible
query I rowsort label-4500
SELECT - col0 - 24 / + - col1 FROM tab0
----
-15
-73
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL - 42 + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL - 42 + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 78 ) + 95 col2 FROM tab0
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT ALL col0 + + col1 DIV 13 FROM tab2
----
49
69
80

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL col0 + + col1 / 13 FROM tab2
----
49
69
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4504
SELECT - 74 * CAST( + 2 AS SIGNED ) + COUNT( * ) AS col2 FROM tab2
----
-145

skipif mysql # not compatible
query I rowsort label-4504
SELECT - 74 * CAST ( + 2 AS INTEGER ) + COUNT ( * ) AS col2 FROM tab2
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4505
SELECT * FROM tab2 WHERE + CAST( 36 AS SIGNED ) + col1 + - + 44 <> - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4505
SELECT * FROM tab2 WHERE + CAST ( 36 AS INTEGER ) + col1 + - + 44 <> - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 71 + - + col1 FROM tab0
----
-152
-72
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT 76 * CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT 76 * CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4508
SELECT + - col1 FROM tab0 AS cor0 WHERE ( + CAST( 13 AS SIGNED ) ) IN ( - col2 * + col0 * col0, + col2 )
----

skipif mysql # not compatible
query I rowsort label-4508
SELECT + - col1 FROM tab0 AS cor0 WHERE ( + CAST ( 13 AS INTEGER ) ) IN ( - col2 * + col0 * col0, + col2 )
----

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= + col2
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4510
SELECT 16 col0, COUNT( * ) * - COUNT( - col2 ) FROM tab2 AS cor0 WHERE NOT 4 IS NULL
----
16
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4510
SELECT 16 col0, COUNT ( * ) * - COUNT ( - col2 ) FROM tab2 AS cor0 WHERE NOT 4 IS NULL
----
16
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4511
SELECT ALL - 2, MAX( DISTINCT + - col0 ) AS col0 FROM tab1
----
-2
-51

skipif mysql # not compatible
query II rowsort label-4511
SELECT ALL - 2, MAX ( DISTINCT + - col0 ) AS col0 FROM tab1
----
-2
-51

query I rowsort
SELECT - 22 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT 60 * + 83 FROM tab1
----
4980
4980
4980

onlyif mysql # aggregate syntax: 
query II rowsort label-4514
SELECT DISTINCT - - COUNT( * ), COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4514
SELECT DISTINCT - - COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0
----
3
3

query II rowsort
SELECT + 31, + col1 FROM tab1 AS cor0
----
31
14
31
47
31
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT + - 1 DIV - + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4516
SELECT + - 1 / - + col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 - + + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 AS cor0 WHERE 2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT + + COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT + + COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - ( + + col1 ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT - SUM( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT - SUM ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT - MIN( + 27 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-4522
SELECT - MIN ( + 27 ) FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT + ( - SUM( col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4523
SELECT + ( - SUM ( col0 ) ) FROM tab2
----
-185

query I rowsort
SELECT col0 + - 28 FROM tab0
----
-13
59
69

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT DISTINCT + 82 * + - col0 / - + CAST( NULL AS SIGNED ) * + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT + 82 * + - col0 / - + CAST ( NULL AS INTEGER ) * + col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT - 76 + - + COUNT( * ) AS col1 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-4527
SELECT - 76 + - + COUNT ( * ) AS col1 FROM tab1
----
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 * - + 52 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - ( + 78 ) AS col0, col1 * 21 AS col2 FROM tab0 cor0
----
-78
1701
-78
21
-78
441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 24 col0 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT COUNT( ALL - + col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4531
SELECT COUNT ( ALL - + col1 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT + - ( CAST( NULL AS SIGNED ) ) * + 35 + + - MIN( DISTINCT + 96 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT + - ( CAST ( NULL AS INTEGER ) ) * + 35 + + - MIN ( DISTINCT + 96 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query II rowsort
SELECT DISTINCT 0, col0 AS col1 FROM tab2
----
0
46
0
64
0
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + 31 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL - 53 - - COUNT( * ) col0 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4535
SELECT ALL - 53 - - COUNT ( * ) col0 FROM tab1 AS cor0
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 56 col2, 85 AS col2 FROM tab0 AS cor0
----
-56
85
-56
85
-56
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4537
SELECT + ( - MAX( - CAST( 7 AS SIGNED ) ) ) DIV + 57 + - MAX( + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4537
SELECT + ( - MAX ( - CAST ( 7 AS INTEGER ) ) ) / + 57 + - MAX ( + col0 ) FROM tab2 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = + + 54 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE ( ( + col0 IS NOT NULL ) )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT SUM( DISTINCT col1 ) + COUNT( * ) FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-4540
SELECT SUM ( DISTINCT col1 ) + COUNT ( * ) FROM tab0 AS cor0
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4541
SELECT - COUNT( * ) DIV - 90 * - - 6 + COUNT( * ) + 75 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4541
SELECT - COUNT ( * ) / - 90 * - - 6 + COUNT ( * ) + 75 FROM tab1 AS cor0
----
78

query I rowsort
SELECT - col1 * 90 AS col1 FROM tab2
----
-4590
-6030
-6930

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 90 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4545
SELECT DISTINCT - CAST( + + AVG ( + col1 ) AS SIGNED ) * + + COUNT( * ) + + - 22 + + 16 + + - 73, - SUM( ALL - - col2 ) + 48 + - COUNT( * ) AS col2 FROM tab0
----
-181
-111

skipif mysql # not compatible
query II rowsort label-4545
SELECT DISTINCT - CAST ( + + AVG ( + col1 ) AS INTEGER ) * + + COUNT ( * ) + + - 22 + + 16 + + - 73, - SUM ( ALL - - col2 ) + 48 + - COUNT ( * ) AS col2 FROM tab0
----
-181
-111

query I rowsort
SELECT 45 AS col2 FROM tab1 WHERE - - col0 + - - 53 + + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT SUM( ALL - 28 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-4547
SELECT SUM ( ALL - 28 ) FROM tab1
----
-84

query I rowsort
SELECT ALL - ( - + col2 ) AS col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT - - MAX( ALL - 99 ) * + ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-4549
SELECT - - MAX ( ALL - 99 ) * + ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT MIN( - + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT MIN ( - + col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 1 col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL 53 * + 3 FROM tab2
----
159
159
159

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( col0 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN - col0 * + - col2 + - 37 * - col2 AND + col0 / - 82 * + col0
----

query I rowsort
SELECT + 17 * - 33 / - - col0 + + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT DISTINCT - MAX( - + 27 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT - MAX ( - + 27 ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT + col1 + - col1 - 19 * col0 FROM tab2 AS cor0 WHERE NOT 31 IS NULL
----
-1216
-1425
-874

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4560
SELECT DISTINCT CAST( NULL AS SIGNED ) col0, col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4560
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0, col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT ALL 74 + - + 36 AS col1 FROM tab2
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT + COUNT( * ) * - 31 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT + COUNT ( * ) * - 31 FROM tab1
----
-93

query I rowsort
SELECT ALL 40 + 76 AS col2 FROM tab2
----
116
116
116

query I rowsort
SELECT DISTINCT + col2 * - - col2 * + ( col1 ) + col2 * + + ( col2 ) FROM tab1
----
138240
20886
221952

query I rowsort
SELECT + 0 * - 6 AS col0 FROM tab1 WHERE - ( ( - ( + - ( + col2 ) ) ) ) IS NOT NULL
----
0
0
0

query I rowsort
SELECT 6 * 86 AS col0 FROM tab2
----
516
516
516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT - CAST( NULL AS SIGNED ) * + - col1 + col1 - + 12 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT - CAST ( NULL AS INTEGER ) * + - col1 + col1 - + 12 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 92 + col0 * col1 + - + col1 FROM tab1 cor0
----
-2026
-5008
-8132

query II rowsort
SELECT DISTINCT col1 AS col0, - col2 AS col0 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + - COUNT( * ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) FROM tab1
----
-12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - col1 + - + 27 * + - col1 * + 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 9 + 91 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fdbc64d082fd12518b9c868f375d2675

query I rowsort
SELECT ALL - + col2 + - + col2 FROM tab1 AS cor0
----
-118
-136
-192

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 57 AS col0 FROM tab2 cor0
----
57
57
57

query I rowsort
SELECT - 88 - + col2 AS col0 FROM tab2 AS cor0
----
-111
-128
-146

query I rowsort
SELECT - col2 * col1 FROM tab2 AS cor0 WHERE col0 * 89 / + + col2 < NULL
----

query I rowsort
SELECT ALL + 15 * - col1 FROM tab2
----
-1005
-1155
-765

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col1 NOT BETWEEN NULL AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT + COUNT( * ) FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT + COUNT ( * ) FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----
0

query I rowsort
SELECT DISTINCT + col0 * + - 64 AS col0 FROM tab1
----
-3264
-5440
-5824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4582
SELECT ALL 31 DIV - - COUNT( * ) AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL 31 / - - COUNT ( * ) AS col0 FROM tab1
----
10

query II rowsort
SELECT + col1, 52 AS col0 FROM tab1
----
14
52
47
52
5
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col1 * - + col2 AS col0 FROM tab0
----
-10
-210
-47
-3807
-99
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT 37, - COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
37
-9

skipif mysql # not compatible
query II rowsort label-4585
SELECT 37, - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT DISTINCT + 20 * COUNT( * ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT + 20 * COUNT ( * ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT + + MIN( ALL + ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4587
SELECT + + MIN ( ALL + ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT - 50 * - CAST( - col2 AS SIGNED ) * + col0 AS col2 FROM tab0
----
-35250
-43500
-480150

skipif mysql # not compatible
query I rowsort label-4589
SELECT - 50 * - CAST ( - col2 AS INTEGER ) * + col0 AS col2 FROM tab0
----
-35250
-43500
-480150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT + 17 * - CAST( - col0 AS SIGNED ) FROM tab0
----
1479
1649
255

skipif mysql # not compatible
query I rowsort label-4590
SELECT + 17 * - CAST ( - col0 AS INTEGER ) FROM tab0
----
1479
1649
255

query II rowsort
SELECT - - col2 AS col2, + col2 - - col0 AS col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT - + ( + - SUM( ALL - 24 ) ) AS col1 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4592
SELECT - + ( + - SUM ( ALL - 24 ) ) AS col1 FROM tab0 AS cor0
----
-72

query I rowsort
SELECT ALL + 75 FROM tab1 cor0
----
75
75
75

query I rowsort
SELECT - col0 + + col2 FROM tab1 cor0 WHERE NOT col0 - - col2 * + + 82 * col0 - + - 62 / 35 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL - COUNT( * ) * - 57 AS col0 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - COUNT ( * ) * - 57 AS col0 FROM tab1 AS cor0
----
171

query I rowsort
SELECT 80 + + 19 AS col1 FROM tab1
----
99
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4597
SELECT 17 * + COUNT( DISTINCT CAST( col1 AS SIGNED ) ) FROM tab2 WHERE + + col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4597
SELECT 17 * + COUNT ( DISTINCT CAST ( col1 AS INTEGER ) ) FROM tab2 WHERE + + col2 = NULL
----
0

query I rowsort
SELECT - 65 + col1 FROM tab1
----
-18
-51
-60

query I rowsort
SELECT 88 + + + 87 AS col2 FROM tab2
----
175
175
175

query I rowsort
SELECT col0 + + col1 * - col1 AS col2 FROM tab0
----
-354
-6546
96

query I rowsort
SELECT 61 * col1 + col0 * - - col0 AS col2 FROM tab1
----
11148
3455
7530

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT ALL MAX( ALL - - col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL MAX ( ALL - - col0 ) AS col1 FROM tab1
----
91

query II rowsort
SELECT ( col0 ) + + col1 AS col2, 88 + + col2 FROM tab1
----
138
156
65
184
90
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 49 col0, - col1 FROM tab1
----
49
-14
49
-47
49
-5

query I rowsort
SELECT ALL - col2 * + col0 + col0 - - 48 AS col2 FROM tab2
----
-2448
-4227
-964

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN - - 40 - - col2 - 54 / - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + ( + 16 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4609
SELECT + - CAST( NULL AS SIGNED ) / + + SUM( + 14 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4609
SELECT + - CAST ( NULL AS INTEGER ) / + + SUM ( + 14 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT ALL - 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT DISTINCT + + col1 + - + 24 AS col2 FROM tab2 cor0
----
27
43
53

query I rowsort
SELECT ALL - col2 - - - 56 FROM tab0 AS cor0
----
-103
-155
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * - - 17 col0 FROM tab2 AS cor0
----
833
833
833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT ALL - + CAST( - - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 * 44 FROM tab2 AS cor0
----
1012
1760
2552

query I rowsort
SELECT DISTINCT 98 * - col0 - - + 30 AS col1 FROM tab1 AS cor0 WHERE NOT 1 BETWEEN 9 AND ( - col2 * - col2 )
----
-4968
-8300
-8888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT ( - MAX( CAST( col2 AS SIGNED ) ) ) * + 3 AS col0 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-4617
SELECT ( - MAX ( CAST ( col2 AS INTEGER ) ) ) * + 3 AS col0 FROM tab1
----
-288

onlyif mysql # DIV for integer division: 
query II rowsort label-4618
SELECT col1 * + + 6 AS col2, - 55 + + - 19 + - - col2 DIV + - 69 AS col2 FROM tab2
----
306
-74
402
-74
462
-74

skipif mysql # not compatible
query II rowsort label-4618
SELECT col1 * + + 6 AS col2, - 55 + + - 19 + - - col2 / + - 69 AS col2 FROM tab2
----
306
-74
402
-74
462
-74

query I rowsort
SELECT col2 + 85 FROM tab1 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE NOT col1 IS NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 75 * - ( - 77 ) AS col1 FROM tab2
----
5775
5775
5775

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT - 81 IS NOT NULL
----

query I rowsort
SELECT + - col0 + + - col0 AS col2 FROM tab2 cor0 WHERE NOT col0 * - col2 <> - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4625
SELECT - CAST( COUNT( 38 ) AS SIGNED ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT - CAST ( COUNT ( 38 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, + col0 * col2 + col0 FROM tab2
----
46
1104
64
2624
75
4425

query I rowsort
SELECT - 79 * - - 9 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 70778f5d9dd5470296c8b67f7590fb05

onlyif mysql # aggregate syntax: 
query II rowsort label-4628
SELECT DISTINCT - COUNT( * ) AS col2, - 60 col1 FROM tab1 AS cor0
----
-3
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4628
SELECT DISTINCT - COUNT ( * ) AS col2, - 60 col1 FROM tab1 AS cor0
----
-3
-60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 / col2 < + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT MAX( ALL - 74 ) col1 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4630
SELECT MAX ( ALL - 74 ) col1 FROM tab2 AS cor0
----
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND + + col0 + - 30 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4632
SELECT DISTINCT - 50 * + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT - 50 * + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 36 * - 79 + col2 * + + ( - 58 ) * + col2 + + + 11 AS col2 FROM tab1 AS cor0
----
-204731
-271025
-537361

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 91 IS NULL
----

query I rowsort
SELECT ALL col2 + 16 FROM tab2
----
39
56
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL + 98 * + + col0 + + col2 - + col2 * col2 FROM tab2
----
4002
4044
4712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 * col2 * - col0 col0 FROM tab2
----
-135680
-230550
-56074

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * - + col1 * + col1 * - col0 + - 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT DISTINCT COUNT( * ) * + MAX( + + 84 ) FROM tab1 WHERE - col1 IS NOT NULL
----
252

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT COUNT ( * ) * + MAX ( + + 84 ) FROM tab1 WHERE - col1 IS NOT NULL
----
252

query I rowsort
SELECT DISTINCT col2 + + col1 - - - col2 FROM tab1
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE - 35 - ( col2 ) - + 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT ALL 74 DIV - col1 - - 86 * - col2 AS col2 FROM tab2 AS cor0
----
-1979
-3440
-4989

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL 74 / - col1 - - 86 * - col2 AS col2 FROM tab2 AS cor0
----
-1979
-3440
-4989

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT - - col2 + - - col0 DIV - col0 + - ( - col2 ) FROM tab2 AS cor0
----
115
45
79

skipif mysql # not compatible
query I rowsort label-4644
SELECT - - col2 + - - col0 / - col0 + - ( - col2 ) FROM tab2 AS cor0
----
115
45
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT DISTINCT COUNT( 5 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT COUNT ( 5 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT - col1 DIV col2 * + col2 AS col2 FROM tab2
----
-40
-46
-58

skipif mysql # not compatible
query I rowsort label-4646
SELECT - col1 / col2 * + col2 AS col2 FROM tab2
----
-40
-46
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, - 83 * - - ( + col1 ) FROM tab2 AS cor0
----
51
-4233
67
-5561
77
-6391

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( col0 ) > + col0 + - ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4649
SELECT ALL - CAST( NULL AS SIGNED ) * 65 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL - CAST ( NULL AS INTEGER ) * 65 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 25 AS col0 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT col2 * CAST( NULL AS SIGNED ) * - 66 * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT col2 * CAST ( NULL AS INTEGER ) * - 66 * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4652
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST( col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4652
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST ( col0 AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4653
SELECT * FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4653
SELECT * FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + - 81 FROM tab1
----
-4131
-6885
-7371

query I rowsort
SELECT ALL - + ( 76 ) * + 1 FROM tab2 WHERE NOT + - col0 + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + - col0 / + - col2 * + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT SUM( ALL + 22 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4657
SELECT SUM ( ALL + 22 ) AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL + - COUNT( ALL col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL + - COUNT ( ALL col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 96 * - + col2 AS col2 FROM tab2 cor0
----
-2208
-3840
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL COUNT( * ) * 77 AS col1 FROM tab1 cor0
----
231

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL COUNT ( * ) * 77 AS col1 FROM tab1 cor0
----
231

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT col2 NOT IN ( + + col1, - col2, 58 * - col2, - - col0 )
----

query I rowsort
SELECT ALL - 30 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT ALL + col2 * + 6 AS col2 FROM tab1 AS cor0
----
354
408
576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 20 * + 86 col2 FROM tab2 cor0
----
115240
132440
87720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT + col2 + - CAST( + + 49 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND + + col2
----

skipif mysql # not compatible
query I rowsort label-4665
SELECT + col2 + - CAST ( + + 49 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT DISTINCT + 63 + - + 4 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT + 63 + - + 4 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 22 * + 89 )
----

query I rowsort
SELECT ALL - col2 + + 17 AS col2 FROM tab0
----
-30
-82
7

query I rowsort
SELECT ALL col0 * - + ( + col1 ) + - col2 FROM tab2
----
-2369
-4968
-5083

query I rowsort
SELECT col0 + ( + col0 ) * + - col0 AS col0 FROM tab2
----
-2070
-4032
-5550

query I rowsort
SELECT ALL + col1 + + - col2 AS col0 FROM tab2
----
28
37
9

query I rowsort
SELECT ALL col1 - 11 + + 60 * 85 * + - col2 FROM tab0
----
-239630
-504910
-50990

query II rowsort
SELECT DISTINCT col2, col1 - + + col0 FROM tab0
----
10
-66
47
66
99
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4674
SELECT ALL col1 DIV - - 24 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL col1 / - - 24 AS col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4675
SELECT DISTINCT + COUNT( * ) - + 97 + - 19 AS col0, + 70 col0 FROM tab2 AS cor0
----
-113
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4675
SELECT DISTINCT + COUNT ( * ) - + 97 + - 19 AS col0, + 70 col0 FROM tab2 AS cor0
----
-113
70

query I rowsort
SELECT ALL - + 15 - + col2 AS col0 FROM tab1 cor0
----
-111
-74
-83

query I rowsort
SELECT + 60 - 38 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT - col1 + + - 35 + 89 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - 84 AND col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( + 52 ), + col0, + col1, - col0 / - ( - col0 ) / + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= 26 * 92 * - col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT MIN( ALL + 68 ) AS col0 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT MIN ( ALL + 68 ) AS col0 FROM tab0
----
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 99, - col2 AS col0 FROM tab0
----
-99
-10
-99
-47
-99
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4684
SELECT - COUNT( * ) DIV - - SUM( 42 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4684
SELECT - COUNT ( * ) / - - SUM ( 42 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT MAX( ALL + 52 ) + - COUNT( * ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-4685
SELECT MAX ( ALL + 52 ) + - COUNT ( * ) FROM tab2
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-4686
SELECT DISTINCT + col1 AS col1, - col2 DIV col0 DIV - - col2 col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4686
SELECT DISTINCT + col1 AS col1, - col2 / col0 / - - col2 col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT col1 * - - col0 + + - 44 + + 91 AS col0 FROM tab0 AS cor0
----
1262
144
1874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4688
SELECT - + COUNT( * ) DIV - MAX( DISTINCT - + ( - - col1 ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4688
SELECT - + COUNT ( * ) / - MAX ( DISTINCT - + ( - - col1 ) ) FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4689
SELECT - CAST( NULL AS SIGNED ) / + COUNT( * ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT - CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col2 FROM tab2 cor0
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col2, 35 * - 90 FROM tab0 AS cor0
----
10
-3150
47
-3150
99
-3150

onlyif mysql # DIV for integer division: 
query II rowsort label-4691
SELECT DISTINCT + + col2 DIV col2 * + - 65 + + col2 + col1 * - col0 AS col2, - 4 AS col2 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IS NULL
----
-2388
-4
-4953
-4
-5032
-4

skipif mysql # not compatible
query II rowsort label-4691
SELECT DISTINCT + + col2 / col2 * + - 65 + + col2 + col1 * - col0 AS col2, - 4 AS col2 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IS NULL
----
-2388
-4
-4953
-4
-5032
-4

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - - col1 / + col2 > 69
----

query I rowsort
SELECT ALL 54 + + col1 * - 66 AS col0 FROM tab0
----
-12
-1332
-5292

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT COUNT( * ) + - COUNT( col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4694
SELECT COUNT ( * ) + - COUNT ( col1 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE ( - col1 ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 59 * ( - 89 ) - - 74 FROM tab1
----
-5177

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 72 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + - + ( col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-149
-161
-206

query II rowsort
SELECT - col0 + col0 + 33 AS col1, - 98 * + 82 * + col2 + - 74 - - - ( - col0 ) FROM tab0 AS cor0
----
33
-377751
33
-795541
33
-80347

query I rowsort
SELECT DISTINCT col1 * ( 97 ) - + ( + col1 ) AS col1 FROM tab2 AS cor0
----
4896
6432
7392

query I rowsort
SELECT ALL 25 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 92 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT + 64 * + 56 FROM tab0 AS cor0
----
3584
3584
3584

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + col1 > - col0 * + - col2 - - 16 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( 42 ) AS col1 FROM tab1
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL MAX( - - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL MAX ( - - col0 ) FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col2 ) col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4708
SELECT COUNT( DISTINCT - - 72 ) DIV + - MIN( + col2 ) FROM tab1 WHERE NOT + - col0 > + 72
----
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT COUNT ( DISTINCT - - 72 ) / + - MIN ( + col2 ) FROM tab1 WHERE NOT + - col0 > + 72
----
0

query I rowsort
SELECT 48 + + col0 AS col2 FROM tab0
----
135
145
63

query I rowsort
SELECT 27 + - col2 * + col2 + - - col0 - + - ( col0 ) AS col2 FROM tab0
----
-2152
-9580
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4711
SELECT + + CAST( NULL AS SIGNED ) * - col1 + ( - - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4711
SELECT + + CAST ( NULL AS INTEGER ) * - col1 + ( - - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT DISTINCT - + COUNT( * ) * AVG ( col2 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT - + COUNT ( * ) * AVG ( col2 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT ALL col2, - col1 AS col1 FROM tab1 WHERE NULL < - col1 + 87
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 = - col0
----

query I rowsort
SELECT DISTINCT col2 * col0 + col1 + + 66 FROM tab2
----
1175
2703
4483

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT - COUNT( * ) * 29 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4716
SELECT - COUNT ( * ) * 29 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-261

query II rowsort
SELECT DISTINCT + col0, - 35 * - col2 AS col1 FROM tab1 AS cor0
----
51
3360
85
2065
91
2380

query I rowsort
SELECT + col2 + - 7 + - col1 + - col1 FROM tab0 AS cor0
----
-122
-39
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4719
SELECT COUNT( * ) + - 77 AS col2, COUNT( + 2 ) DIV 30 FROM tab2
----
-74
0

skipif mysql # not compatible
query II rowsort label-4719
SELECT COUNT ( * ) + - 77 AS col2, COUNT ( + 2 ) / 30 FROM tab2
----
-74
0

query III rowsort
SELECT * FROM tab0 WHERE - 57 * col0 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL - col0 + + + col2 + + 48 FROM tab2
----
24
25
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4722
SELECT * FROM tab2 WHERE NULL IN ( + col0 * - ( - - col1 ), CAST( NULL AS SIGNED ) * + - col2 * + + col0 + + - 24 * + col0, - + col2 + - col2, col2 )
----

skipif mysql # not compatible
query III rowsort label-4722
SELECT * FROM tab2 WHERE NULL IN ( + col0 * - ( - - col1 ), CAST ( NULL AS INTEGER ) * + - col2 * + + col0 + + - 24 * + col0, - + col2 + - col2, col2 )
----

query I rowsort
SELECT DISTINCT + 0 + col0 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-4724
SELECT 13, + 39 DIV + col0 AS col1 FROM tab0
----
13
0
13
0
13
2

skipif mysql # not compatible
query II rowsort label-4724
SELECT 13, + 39 / + col0 AS col1 FROM tab0
----
13
0
13
0
13
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4725
SELECT ALL + col1 * - + CAST( NULL AS SIGNED ) * + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL + col1 * - + CAST ( NULL AS INTEGER ) * + - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + COUNT( * ) FROM tab1 WHERE - - 70 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4726
SELECT + COUNT ( * ) FROM tab1 WHERE - - 70 IS NULL
----
0

query I rowsort
SELECT col2 * - - col0 AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT col2 * - - 6 AS col1 FROM tab1 AS cor0
----
354
408
576

query I rowsort
SELECT ALL 32 AS col0 FROM tab0 cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT - COUNT( * ) * + 25 + - ( - COUNT( * ) ) + + + COUNT( * ) * - COUNT( 48 ) col1 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4730
SELECT DISTINCT - COUNT ( * ) * + 25 + - ( - COUNT ( * ) ) + + + COUNT ( * ) * - COUNT ( 48 ) col1 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT + - ( - 37 ) AS col1 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT ALL - col1 * 34 AS col0 FROM tab0 AS cor0
----
-2754
-34
-714

query I rowsort
SELECT DISTINCT + 67 + - col0 * - + 8 AS col2 FROM tab1
----
475
747
795

query I rowsort
SELECT DISTINCT col2 * - - 56 AS col1 FROM tab1
----
3304
3808
5376

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + + + col0 - - - col2 FROM tab0
----
-17
164
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 25 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 25 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT ( - - 38 ) FROM tab0 AS cor0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4739
SELECT - 13 + + ( 70 ) + + + ( - + CAST( - COUNT( * ) AS SIGNED ) ) AS col2, 46 FROM tab1 AS cor0
----
60
46

skipif mysql # not compatible
query II rowsort label-4739
SELECT - 13 + + ( 70 ) + + + ( - + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2, 46 FROM tab1 AS cor0
----
60
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 17 IN ( - col2, - col1, - col2, + + col2 * + col2, - ( + ( col0 ) ) + + - col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 17 IN ( - col2, - col1, - col2, + + col2 * + col2, - ( + ( col0 ) ) + + - col1 )
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 28 + col2 * 11 < - ( ( - col2 ) )
----

query II rowsort
SELECT ALL + col2 * - col1 AS col1, + 50 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT ALL 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT ( + - CAST( - + col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4744
SELECT ( + - CAST ( - + col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT + COUNT( ALL + 24 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4745
SELECT + COUNT ( ALL + 24 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT DISTINCT + ( + col1 ) DIV - col1 - + + col2 + - - col2 + + col1 AS col0 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT + ( + col1 ) / - col1 - + + col2 + - - col2 + + col1 AS col0 FROM tab2 AS cor0
----
50
66
76

query I rowsort
SELECT ALL 19 * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1539
19
399

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4749
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( + - 7 AS DECIMAL ) IN ( col0, 88, - col1 )
----

skipif mysql # not compatible
query III rowsort label-4749
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( + - 7 AS REAL ) IN ( col0, 88, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT + CAST( + ( - col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4750
SELECT + CAST ( + ( - col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT ALL - - CAST( - - col2 AS SIGNED ) FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - - CAST ( - - col2 AS INTEGER ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT + - col0 FROM tab2 WHERE NULL BETWEEN + col2 * col1 AND - - col1 * 93
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4753
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 + + 15, CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) / - 33 FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4753
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 + + 15, CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / - 33 FROM tab0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT COUNT( * ) * + 79 * - COUNT( * ) FROM tab1 WHERE - col1 / 97 + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4754
SELECT COUNT ( * ) * + 79 * - COUNT ( * ) FROM tab1 WHERE - col1 / 97 + + col0 IS NULL
----
0

query I rowsort
SELECT 60 * + col2 + - 16 FROM tab1
----
3524
4064
5744

query III rowsort
SELECT * FROM tab0 WHERE + - col2 + - - col1 - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + col1 * - 40 FROM tab1
----
-11800
-127840
-53760

query I rowsort
SELECT ALL + col2 * - col1 + col1 + col1 + col2 + - - 66 * + + col2 FROM tab1 cor0
----
1454
3668
5116

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 >= + col0
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 74 AND + ( 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT + MAX( ( - 83 ) ) FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-4761
SELECT + MAX ( ( - 83 ) ) FROM tab1
----
-83

query I rowsort
SELECT 77 * col1 FROM tab0
----
1617
6237
77

query I rowsort
SELECT col1 * + 5 AS col0 FROM tab0
----
105
405
5

query II rowsort
SELECT DISTINCT col2, 19 AS col1 FROM tab2
----
23
19
40
19
58
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT COUNT( - 48 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT COUNT ( - 48 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT - 40 * - COUNT( * ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-4766
SELECT - 40 * - COUNT ( * ) FROM tab1 AS cor0
----
120

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 + + - col2 AND col1
----

query I rowsort
SELECT ALL + - col1 * - - ( col1 ) AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT ALL - - 44 * 71 * + + 60 + + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
187440
187440
187440

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL - - 44 * 71 * + + 60 + + col2 / + col1 AS col1 FROM tab2 AS cor0
----
187440
187440
187440

onlyif mysql # DIV for integer division: 
query I rowsort label-4770
SELECT DISTINCT + - ( col2 ) DIV col2 col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4770
SELECT DISTINCT + - ( col2 ) / col2 col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT ( + + COUNT( * ) ) * 83 AS col2 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT ( + + COUNT ( * ) ) * 83 AS col2 FROM tab0
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT CAST( NULL AS SIGNED ) * - col0 + + + 7 * + 39 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4772
SELECT CAST ( NULL AS INTEGER ) * - col0 + + + 7 * + 39 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 79 + - col1 FROM tab1
----
32
65
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 60 col0 FROM tab2 WHERE NULL IS NULL
----
60
60
60

query III rowsort
SELECT * FROM tab1 WHERE + 53 / - + 30 * + - col1 IS NULL
----

query I rowsort
SELECT + ( 28 ) + + - col0 + + 63 - + 97 FROM tab2
----
-52
-70
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4777
SELECT DISTINCT + - col1 + + col0 AS col2 FROM tab0 AS cor0 WHERE col2 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT + - col1 + + col0 AS col2 FROM tab0 AS cor0 WHERE col2 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4778
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> - - col1
----

skipif mysql # not compatible
query III rowsort label-4778
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> - - col1
----

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 > - + col2 + col1 + + + col1 + + col0
----
-10
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4780
SELECT - COUNT( * ) * CAST( + ( - COUNT( * ) ) AS SIGNED ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4780
SELECT - COUNT ( * ) * CAST ( + ( - COUNT ( * ) ) AS INTEGER ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT - col1 FROM tab2 WHERE - + col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT col0 - 46 AS col1 FROM tab1
----
39
45
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4783
SELECT ALL - 58 FROM tab0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL AND NULL > + col2
----

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - 58 FROM tab0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL AND NULL > + col2
----

query I rowsort
SELECT ALL ( + 32 ) + - col0 + + col0 AS col0 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4785
SELECT DISTINCT col0, - col1 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4785
SELECT DISTINCT col0, - col1 + + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4786
SELECT ALL col0 + - col2 + + 14 / CAST( NULL AS DECIMAL ) + + + 64 + + - 8 * + 54 + + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL col0 + - col2 + + 14 / CAST ( NULL AS REAL ) + + + 64 + + - 8 * + 54 + + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT + 50 * - MAX( DISTINCT - + col0 ) * + 25 FROM tab0 AS cor0
----
18750

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT + 50 * - MAX ( DISTINCT - + col0 ) * + 25 FROM tab0 AS cor0
----
18750

query II rowsort
SELECT DISTINCT col0 AS col1, col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT - 7 * + COUNT( * ) * - + 20 FROM tab1 cor0
----
420

skipif mysql # not compatible
query I rowsort label-4790
SELECT - 7 * + COUNT ( * ) * - + 20 FROM tab1 cor0
----
420

query I rowsort
SELECT ALL + + ( - 4 ) FROM tab2 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT COUNT( DISTINCT + 97 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT COUNT ( DISTINCT + 97 ) FROM tab1
----
1

query I rowsort
SELECT + 37 * - col2 FROM tab2
----
-1480
-2146
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - COUNT( * ) * 33 AS col2 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-4794
SELECT - COUNT ( * ) * 33 AS col2 FROM tab2
----
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 * - - ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT DISTINCT ( + SUM( col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT ( + SUM ( col1 ) ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT MAX( ALL + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4797
SELECT MAX ( ALL + col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + col1 * - - 57 AS col2 FROM tab2 AS cor0
----
2907
3819
4389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4799
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + 54 * - - 26 FROM tab2 AS cor0
----
1404
1404
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT - SUM( DISTINCT 68 ) FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT - SUM ( DISTINCT 68 ) FROM tab2 AS cor0
----
-68

query I rowsort
SELECT - 32 * + 45 * + 67 FROM tab0 AS cor0 WHERE NOT NULL IN ( ( + + col1 ), 25 )
----

query I rowsort
SELECT ALL col2 * - col1 * + col2 * + col0 * col1 FROM tab1 AS cor0
----
-7397125
-92123136
-929511856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4804
SELECT DISTINCT + COUNT( * ) DIV + MIN( col0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT + COUNT ( * ) / + MIN ( col0 ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * - 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT - COUNT( + + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4806
SELECT - COUNT ( + + col1 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - + 64 AS col2, 68 FROM tab0 AS cor0
----
-64
68
-64
68
-64
68

query I rowsort
SELECT ALL col1 * - 92 + - + col2 AS col2 FROM tab0 AS cor0
----
-191
-1942
-7499

query I rowsort
SELECT DISTINCT col2 + + 43 + - col1 + - col2 + 91 + - col0 FROM tab1
----
-4
44
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT + MAX( - col0 ) AS col0, + COUNT( DISTINCT 41 ) AS col1 FROM tab0
----
-15
1

skipif mysql # not compatible
query II rowsort label-4810
SELECT + MAX ( - col0 ) AS col0, + COUNT ( DISTINCT 41 ) AS col1 FROM tab0
----
-15
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4811
SELECT ALL + col2 + + ( - CAST( NULL AS DECIMAL ) ) + col1 + - + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + col2 + + ( - CAST ( NULL AS REAL ) ) + col1 + - + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 99 AS col0, 52 col1 FROM tab1
----
-99
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT ALL col1 + col1 + - col2 + - col0 DIV - 64 AS col0 FROM tab2
----
115
77
79

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL col1 + col1 + - col2 + - col0 / - 64 AS col0 FROM tab2
----
115
77
79

query II rowsort
SELECT + 48 AS col1, col2 FROM tab2 WHERE NULL <= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT + 78 + COUNT( * ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT + 78 + COUNT ( * ) FROM tab2
----
81

query I rowsort
SELECT ALL - + 42 AS col0 FROM tab1 WHERE NOT - + col1 BETWEEN + col0 AND NULL
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4817
SELECT ALL COUNT( * ), + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4817
SELECT ALL COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( + col0 ) + - + 34 col1 FROM tab2 AS cor0
----
-2150
-4130
-5659

query II rowsort
SELECT DISTINCT - - col0, + 17 * + col1 * - col1 AS col2 FROM tab1 AS cor0
----
51
-3332
85
-425
91
-37553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 * + ( - + col2 ) * 98 col0 FROM tab1 WHERE + 94 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT DISTINCT + 68 * COUNT( * ) - + - COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT + 68 * COUNT ( * ) - + - COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT + 79 - + ( - CAST( + + 50 AS SIGNED ) ) col1 FROM tab2 AS cor0
----
129
129
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4822
SELECT + 79 - + ( - CAST ( + + 50 AS INTEGER ) ) col1 FROM tab2 AS cor0
----
129
129
129

query I rowsort
SELECT ALL col1 - 71 AS col1 FROM tab0 AS cor0
----
-50
-70
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 + + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4824
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 + + col0 IS NULL
----
3

query II rowsort
SELECT DISTINCT - 13 AS col0, + 91 * - 22 * + + col2 AS col0 FROM tab0
----
-13
-198198
-13
-20020
-13
-94094

query I rowsort
SELECT DISTINCT + col2 * - + ( - col0 ) + - + col1 * - - col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 col2 FROM tab2
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - COUNT( ALL + + col0 ) * - COUNT( ALL + 77 ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4828
SELECT - COUNT ( ALL + + col0 ) * - COUNT ( ALL + 77 ) AS col1 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4829
SELECT + col0 DIV + + col2 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4829
SELECT + col0 / + + col2 AS col1 FROM tab2
----
1
1
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + - + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4831
SELECT DISTINCT 97, COUNT( * ) AS col2 FROM tab1
----
97
3

skipif mysql # not compatible
query II rowsort label-4831
SELECT DISTINCT 97, COUNT ( * ) AS col2 FROM tab1
----
97
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT COUNT( * ) DIV 18 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT COUNT ( * ) / 18 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 18 * - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * 83 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 51 + 32 AS col1 FROM tab2
----
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 - 95 * + ( col2 * col0 ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + 60 <= - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 75 * + col1 col2 FROM tab1
----
1101
3616
460

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) <> 72
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 79 * 19 IS NOT NULL
----

query I rowsort
SELECT + 22 FROM tab1 WHERE NOT col1 + - 93 NOT IN ( - 72 / - col2 )
----

query I rowsort
SELECT + col1 * 51 + 76 AS col2 FROM tab2
----
2677
3493
4003

query III rowsort
SELECT * FROM tab2 WHERE col2 + 9 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + col2 * - col1 IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT ( - 38 * - 24 - + col0 ) IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col2 FROM tab2 WHERE NOT 64 + 33 NOT BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT - MIN( ( col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4848
SELECT - MIN ( ( col2 ) ) FROM tab2
----
-23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 BETWEEN col2 + - 66 AND + 80
----
85
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 * ( + 89 ) col2 FROM tab0
----
3471
3471
3471

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - 74 * COUNT( * ) FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-4851
SELECT - 74 * COUNT ( * ) FROM tab2
----
-222

query I rowsort
SELECT col0 * ( 93 ) AS col2 FROM tab1
----
4743
7905
8463

query I rowsort
SELECT ALL + 27 * 41 AS col1 FROM tab2
----
1107
1107
1107

query I rowsort
SELECT - 63 * - col1 FROM tab2
----
3213
4221
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT 36 - - COUNT( * ) AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-4855
SELECT 36 - - COUNT ( * ) AS col0 FROM tab0
----
39

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND + 64
----

query I rowsort
SELECT ALL col0 * - 5 AS col0 FROM tab1
----
-255
-425
-455

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4858
SELECT ALL CAST( NULL AS DECIMAL ) * 69 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL CAST ( NULL AS REAL ) * 69 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT MIN( DISTINCT - col1 ) FROM tab1 WHERE NOT - col1 / col1 BETWEEN NULL AND ( col0 * - col2 + + col1 * + 20 )
----
-47

skipif mysql # not compatible
query I rowsort label-4859
SELECT MIN ( DISTINCT - col1 ) FROM tab1 WHERE NOT - col1 / col1 BETWEEN NULL AND ( col0 * - col2 + + col1 * + 20 )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4860
SELECT 58 FROM tab0 WHERE NOT 29 + + 71 <> CAST( 96 AS SIGNED ) + col2
----

skipif mysql # not compatible
query I rowsort label-4860
SELECT 58 FROM tab0 WHERE NOT 29 + + 71 <> CAST ( 96 AS INTEGER ) + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * col0 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT + MAX( 73 ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + MAX ( 73 ) FROM tab0 AS cor0
----
73

query I rowsort
SELECT + 66 * + col1 - + col0 * 70 FROM tab2 AS cor0
----
-828
146
602

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT MAX( DISTINCT - col0 ) - + 52 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4864
SELECT MAX ( DISTINCT - col0 ) - + 52 FROM tab0 AS cor0
----
-67

query I rowsort
SELECT 6 - col0 * col2 FROM tab2 cor0
----
-1052
-2554
-4344

query I rowsort
SELECT + col2 * col1 - - col1 AS col0 FROM tab2
----
1224
3157
3953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT col1 * col2 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT col1 * col2 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT COUNT( * ) + - ( + 70 ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-4868
SELECT COUNT ( * ) + - ( + 70 ) FROM tab1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT 55 + + CAST( NULL AS SIGNED ) * 69 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT 55 + + CAST ( NULL AS INTEGER ) * 69 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + col0 + col2 * ( col1 * + col0 ) FROM tab1
----
299117
32300
71145

query I rowsort
SELECT col0 + 96 FROM tab1
----
147
181
187

query I rowsort
SELECT ALL col1 * + col1 AS col2 FROM tab2 AS cor0 WHERE - col0 >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT DISTINCT + CAST( COUNT( col1 ) AS SIGNED ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + CAST ( COUNT ( col1 ) AS INTEGER ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT + MAX( ALL col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4874
SELECT + MAX ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT 53 FROM tab0 AS cor0 WHERE NOT ( - 96 * - 86 ) NOT IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col0 + - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + ( - col0 ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT DISTINCT COUNT( * ) col0 FROM tab2 cor0 WHERE NOT ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4878
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 cor0 WHERE NOT ( col2 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4879
SELECT - COUNT( + CAST( + 70 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4879
SELECT - COUNT ( + CAST ( + 70 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 * - col1 ) > NULL
----

query I rowsort
SELECT DISTINCT + + 18 * col2 FROM tab2 AS cor0
----
1044
414
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4882
SELECT - CAST( + ( - 63 ) AS SIGNED ) AS col0 FROM tab1
----
63
63
63

skipif mysql # not compatible
query I rowsort label-4882
SELECT - CAST ( + ( - 63 ) AS INTEGER ) AS col0 FROM tab1
----
63
63
63

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 >= col2
----
51
14
96

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * 95 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL MAX( DISTINCT - 98 ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL MAX ( DISTINCT - 98 ) FROM tab1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4886
SELECT ALL MIN( ALL + CAST( NULL AS SIGNED ) ) * + MIN( + 69 * 64 ) AS col2 FROM tab0 WHERE NOT NULL <= - ( 15 ) + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL MIN ( ALL + CAST ( NULL AS INTEGER ) ) * + MIN ( + 69 * 64 ) AS col2 FROM tab0 WHERE NOT NULL <= - ( 15 ) + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ( - 72 ) * + MAX( ALL col2 ) FROM tab2
----
-4176

skipif mysql # not compatible
query I rowsort label-4887
SELECT ( - 72 ) * + MAX ( ALL col2 ) FROM tab2
----
-4176

query I rowsort
SELECT DISTINCT - 55 AS col2 FROM tab0 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT - COUNT( col0 ) * 44 col0 FROM tab2
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4889
SELECT - COUNT ( col0 ) * 44 col0 FROM tab2
----
-132

query I rowsort
SELECT DISTINCT + col2 * - 32 AS col0 FROM tab0
----
-1504
-3168
-320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 31 col1 FROM tab1 WHERE NOT NULL <= + 5 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL COUNT( * ) * + ( - COUNT( * ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL COUNT ( * ) * + ( - COUNT ( * ) ) FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 35 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 * + 55 ) IN ( - 90 + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 * + 55 ) IN ( - 90 + col1 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT + COUNT( + col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4895
SELECT + COUNT ( + col1 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - col2 + 32 * 94 AS col1 FROM tab0 AS cor0
----
3018
3055
3107

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 ) WHERE ( + 0 ) >= + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL 4 + - MIN( ( col1 ) ) FROM tab0 WHERE NULL NOT BETWEEN + 70 AND - col0 - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL 4 + - MIN ( ( col1 ) ) FROM tab0 WHERE NULL NOT BETWEEN + 70 AND - col0 - - col1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 * col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT - 71 DIV + + 29 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-4901
SELECT - 71 / + + 29 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT - + col0 * 75 FROM tab2 cor0
----
-3450
-4800
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT - - COUNT( * ) * COUNT( col1 ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4903
SELECT - - COUNT ( * ) * COUNT ( col1 ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT + + col2 * 78 AS col1 FROM tab1 AS cor0
----
4602
5304
7488

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( col1 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 75 ) col1 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT + + 2 * 34 + - col0 + + 65 DIV col2 AS col0 FROM tab2 AS cor0
----
-6
24
5

skipif mysql # not compatible
query I rowsort label-4907
SELECT + + 2 * 34 + - col0 + + 65 / col2 AS col0 FROM tab2 AS cor0
----
-6
24
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT + SUM( - ( - col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4908
SELECT + SUM ( - ( - col2 ) ) FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL + SUM( 91 ) + - COUNT( * ) * 19 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL + SUM ( 91 ) + - COUNT ( * ) * 19 FROM tab1 AS cor0
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT - CAST( NULL AS SIGNED ) + col2 col0 FROM tab0 WHERE ( NULL ) >= ( - - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4910
SELECT - CAST ( NULL AS INTEGER ) + col2 col0 FROM tab0 WHERE ( NULL ) >= ( - - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + + col1 AND + col2
----

query I rowsort
SELECT ( ( 86 ) ) FROM tab2
----
86
86
86

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - - col1 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + 83 + col0 + col0 AS col2 FROM tab2
----
175
211
233

query I rowsort
SELECT + col1 * + col1 AS col1 FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 2 + col1 AS col0 FROM tab2 cor0 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 + - col1 + - + col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( NULL ) <= - 86
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - + col0
----

query I rowsort
SELECT - 60 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT + col0 * 3 FROM tab2
----
138
192
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT 96 + + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
105

skipif mysql # not compatible
query I rowsort label-4923
SELECT 96 + + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
105

query I rowsort
SELECT ALL + ( col2 ) FROM tab0 cor0 WHERE 76 + + 4 NOT IN ( + col0 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4925
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN 58 AND + col1 * + col2 + + CAST( - col2 AS SIGNED ) / - 44 + col0 * 89
----

skipif mysql # not compatible
query III rowsort label-4925
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN 58 AND + col1 * + col2 + + CAST ( - col2 AS INTEGER ) / - 44 + col0 * 89
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT ALL - - col1 * ( 13 ) DIV - col0 + + + col2 AS col2 FROM tab1 AS cor0
----
59
62
93

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL - - col1 * ( 13 ) / - col0 + + + col2 AS col2 FROM tab1 AS cor0
----
59
62
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4927
SELECT DISTINCT - 84 * 21 + + + 73 AS col0, - CAST( NULL AS SIGNED ) / - col1 FROM tab1 AS cor0
----
-1691
NULL

skipif mysql # not compatible
query II rowsort label-4927
SELECT DISTINCT - 84 * 21 + + + 73 AS col0, - CAST ( NULL AS INTEGER ) / - col1 FROM tab1 AS cor0
----
-1691
NULL

query I rowsort
SELECT + + col0 AS col1 FROM tab0 WHERE NOT + - col0 + + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT COUNT( * ) / - 12 * AVG ( 45 ) col0 FROM tab2 WHERE NOT ( + + col0 / + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4929
SELECT COUNT ( * ) / - 12 * AVG ( 45 ) col0 FROM tab2 WHERE NOT ( + + col0 / + col0 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 * col0 * col1 AS col0 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL MIN( ( - + col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL MIN ( ( - + col0 ) ) FROM tab1
----
-91

query I rowsort
SELECT DISTINCT col1 * + + col1 * 24 AS col1 FROM tab1
----
4704
53016
600

query I rowsort
SELECT ( - col0 ) * + - col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( + 37 <= + col2 )
----
1

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( + 37 <= + col2 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT 54 * col1 DIV + col2 FROM tab2
----
103
119
62

skipif mysql # not compatible
query I rowsort label-4935
SELECT 54 * col1 / + col2 FROM tab2
----
103
119
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4936
SELECT * FROM tab2 WHERE NOT NULL IN ( + CAST( NULL AS SIGNED ) + + - col2, col0 )
----

skipif mysql # not compatible
query III rowsort label-4936
SELECT * FROM tab2 WHERE NOT NULL IN ( + CAST ( NULL AS INTEGER ) + + - col2, col0 )
----

query II rowsort
SELECT ALL 9, + col0 FROM tab0
----
9
15
9
87
9
97

query I rowsort
SELECT ALL - 34 * + col1 FROM tab1
----
-1598
-170
-476

query I rowsort
SELECT ALL + + ( - ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4940
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - CAST( + col0 AS SIGNED ) + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4940
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - CAST ( + col0 AS INTEGER ) + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4941
SELECT + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 17 AND + CAST( ( col0 ) AS SIGNED ) * + CAST( col2 AS SIGNED ) * 41
----

skipif mysql # not compatible
query I rowsort label-4941
SELECT + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 17 AND + CAST ( ( col0 ) AS INTEGER ) * + CAST ( col2 AS INTEGER ) * 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( 39 ) > ( + + 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4944
SELECT + col2 * - - 35 * + ( + - col2 ) - + 13 DIV col2 + - - 60 FROM tab1 AS cor0
----
-121775
-161780
-322500

skipif mysql # not compatible
query I rowsort label-4944
SELECT + col2 * - - 35 * + ( + - col2 ) - + 13 / col2 + - - 60 FROM tab1 AS cor0
----
-121775
-161780
-322500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 col1 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT - 32 + - + 27 AS col2, col2 AS col1 FROM tab2 cor0
----
-59
23
-59
40
-59
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1 + col0, + 54 AS col1, + 6 - - 19 * - 67 col0 FROM tab1 AS cor0
----
9 values hashing to 66164121a72d4388ea6d19c3b9868995

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT + col1 + 20 * col2 DIV col2 AS col2 FROM tab0 AS cor0
----
101
21
41

skipif mysql # not compatible
query I rowsort label-4948
SELECT + col1 + 20 * col2 / col2 AS col2 FROM tab0 AS cor0
----
101
21
41

query III rowsort
SELECT * FROM tab0 WHERE - + 64 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4950
SELECT - SUM( + col1 ) + - - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT - SUM ( + col1 ) + - - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4951
SELECT 65 AS col0, COUNT( * ) FROM tab0
----
65
3

skipif mysql # not compatible
query II rowsort label-4951
SELECT 65 AS col0, COUNT ( * ) FROM tab0
----
65
3

query II rowsort
SELECT - col1, 72 AS col1 FROM tab1
----
-14
72
-47
72
-5
72

query I rowsort
SELECT ALL col1 + 82 FROM tab2
----
133
149
159

query I rowsort
SELECT ALL - 1 - col0 * - + 98 * col0 + - + ( col1 ) - col1 AS col2 FROM tab1
----
254869
708039
811443

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 * + + col0 * - col1 * 57 + col0 + - 70 + + + col2 col2 FROM tab0 AS cor0
----
530910
6648472
9997371

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 * - + col2 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 * + 45 col2 FROM tab0
----
-540

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
82

query I rowsort
SELECT DISTINCT + 60 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 + + 86 <> ( + + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT + col2 BETWEEN ( + col1 ) AND + 23 - - 96
----
15
87

query I rowsort
SELECT DISTINCT col1 * + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-178929
-2100
-9801

query I rowsort
SELECT ALL + col2 * - - 2 - + - 82 AS col0 FROM tab2 AS cor0
----
128
162
198

query I rowsort
SELECT ALL + ( - col1 ) * - 45 AS col2 FROM tab1 AS cor0
----
2115
225
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT ALL col2 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - col1 + + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL col2 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - col1 + + col2 = NULL
----

query I rowsort
SELECT ALL + col2 * - 30 FROM tab1
----
-1770
-2040
-2880

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 / - ( - + col2 ) * + col0 * + 17 - + 53 * 76 / col1 * col0 NOT BETWEEN col0 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2, col1 * - col1 FROM tab0
----
10
-441
47
-6561
99
-1

query I rowsort
SELECT col1 * 3 * - col2 FROM tab2
----
-11658
-3519
-9240

query III rowsort
SELECT * FROM tab1 WHERE NOT 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 + + 37 AS col0 FROM tab2
----
104
114
88

query II rowsort
SELECT DISTINCT col2 AS col2, col2 AS col0 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4973
SELECT ALL ( - COUNT( * ) ) * + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) * + ( 92 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL ( - COUNT ( * ) ) * + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * + ( 92 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

query II rowsort
SELECT 27 AS col2, 59 FROM tab1 AS cor0
----
27
59
27
59
27
59

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( - col2 * col1 ) AND 95 * - col1
----

query I rowsort
SELECT DISTINCT col2 * col0 * col2 AS col2 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # DIV for integer division: 
query I rowsort label-4978
SELECT DISTINCT col1 DIV + 23 + col0 + + ( + col1 ) FROM tab1
----
140
65
90

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT col1 / + 23 + col0 + + ( + col1 ) FROM tab1
----
140
65
90

query I rowsort
SELECT DISTINCT ( - col0 ) + - 85 * - col0 AS col2 FROM tab0
----
1260
7308
8148

query I rowsort
SELECT - 38 * + col0 AS col2 FROM tab1 AS cor0
----
-1938
-3230
-3458

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 22
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * - 96 = + col2 + + 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 46 * - 58 + ( + - 20 ) col2, 88 AS col1 FROM tab2 AS cor0 WHERE col0 * - col1 * + col1 * + col2 IS NOT NULL
----
-2688
88
-2688
88
-2688
88

query I rowsort
SELECT col0 * col1 + - 33 AS col0 FROM tab2 AS cor0
----
2313
4895
4992

query I rowsort
SELECT - 96 * col0 + 13 AS col1 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL AND NULL BETWEEN - col2 - - col0 * - col1 * - - 91 AND ( NULL )
----

query I rowsort
SELECT ALL col2 - 15 + + - col1 AS col1 FROM tab2
----
-24
-43
-52

query I rowsort
SELECT DISTINCT - col0 * + 84 - - col1 AS col0 FROM tab1 cor0 WHERE ( NULL ) = - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT + MIN( - + ( + col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4988
SELECT + MIN ( - + ( + col0 ) ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL MAX( col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL MAX ( col2 ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4990
SELECT - COUNT( * ) * + ( + - SUM( - col1 ) ) * + + MIN( col1 ) AS col1, 45 FROM tab2
----
-29835
45

skipif mysql # not compatible
query II rowsort label-4990
SELECT - COUNT ( * ) * + ( + - SUM ( - col1 ) ) * + + MIN ( col1 ) AS col1, 45 FROM tab2
----
-29835
45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 52 AS col2, col0 FROM tab2
----
52
46
52
64
52
75

query I rowsort
SELECT DISTINCT - - col2 + - + col0 + + col2 * + - col0 FROM tab2 WHERE NOT + 33 * + col1 - + + 82 IS NULL
----
-1081
-2584
-4367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, 64 + - col2 AS col1 FROM tab0 AS cor0
----
-15
17
-87
54
-97
-35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 <= - col1
----

query II rowsort
SELECT DISTINCT + - col2 * col0 + + + col0 AS col2, ( + + col0 ) AS col2 FROM tab2 AS cor0
----
-1012
46
-2496
64
-4275
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT + SUM( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4997
SELECT + SUM ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 + + ( + 12 ) * + col1 col0 FROM tab0 AS cor0 WHERE ( NOT - col0 IS NOT NULL )
----

query II rowsort
SELECT - - col1 AS col2, - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * col2 * col0 >= ( + col2 )
----

query I rowsort
SELECT + 40 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
40
40
40

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5003
SELECT CAST( 61 AS SIGNED ) DIV - COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-20

skipif mysql # not compatible
query I rowsort label-5003
SELECT CAST ( 61 AS INTEGER ) / - COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-20

query I rowsort
SELECT + 16 + + col0 * + col1 + col2 FROM tab0
----
1278
1853
212

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5005
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) + ( + 69 ) NOT IN ( 62 )
----

skipif mysql # not compatible
query III rowsort label-5005
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) + ( + 69 ) NOT IN ( 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL 99 + - - COUNT( * ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL 99 + - - COUNT ( * ) FROM tab2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT ( + 53 ) + + - 5 * - - ( + - 72 ) * + MAX( 85 ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
30653

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5007
SELECT ( + 53 ) + + - 5 * - - ( + - 72 ) * + MAX ( 85 ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
30653

query I rowsort
SELECT - col0 * - - col0 FROM tab0 AS cor0 WHERE + 91 IS NULL
----

query I rowsort
SELECT DISTINCT - - ( + 3 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT MAX( ALL col2 ) + - COUNT( + col0 ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT MAX ( ALL col2 ) + - COUNT ( + col0 ) FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT 99 - - - COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5011
SELECT 99 - - - COUNT ( * ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5012
SELECT + + 27 AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to c3cb4681cbb897389c79937bf6a9fdd7

skipif mysql # not compatible
query II rowsort label-5012
SELECT + + 27 AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to c3cb4681cbb897389c79937bf6a9fdd7

query I rowsort
SELECT 48 + - 33 AS col2 FROM tab2
----
15
15
15

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col2 + - col0 + - 60 * col0, + 98 * + col0, + col2, - col1 * 81 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT ALL CAST( - ( + + 1 ) AS SIGNED ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL CAST ( - ( + + 1 ) AS INTEGER ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5017
SELECT ALL - + col1 * + col1 + 0 + - col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL - + col1 * + col1 + 0 + - col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT DISTINCT + 61 - - col0 + + 29 + - - col1 / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT + 61 - - col0 + + 29 + - - col1 / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT SUM( ALL - + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5019
SELECT SUM ( ALL - + col1 ) FROM tab0
----
-103

query I rowsort
SELECT col2 * + + 1 AS col0 FROM tab1
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT ALL 72 * + CAST( + col1 AS SIGNED ) FROM tab2
----
3672
4824
5544

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL 72 * + CAST ( + col1 AS INTEGER ) FROM tab2
----
3672
4824
5544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5023
SELECT ( + CAST( - ( - MAX( DISTINCT - 53 ) ) AS SIGNED ) ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-5023
SELECT ( + CAST ( - ( - MAX ( DISTINCT - 53 ) ) AS INTEGER ) ) FROM tab1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT DISTINCT SUM( DISTINCT + 50 ) * + COUNT( * ) FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT SUM ( DISTINCT + 50 ) * + COUNT ( * ) FROM tab1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) * 85 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5025
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) * 85 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ALL - + SUM( + - 17 ) AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - + SUM ( + - 17 ) AS col0 FROM tab0 AS cor0
----
51

query I rowsort
SELECT DISTINCT + ( + 68 ) FROM tab1
----
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 / 5 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5029
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT + COUNT( * ) + 95 + + + 85 * + - 19 AS col2 FROM tab1 AS cor0
----
-1517

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT + COUNT ( * ) + 95 + + + 85 * + - 19 AS col2 FROM tab1 AS cor0
----
-1517

query II rowsort
SELECT ALL col2, - col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT - MAX( + + col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5032
SELECT - MAX ( + + col1 ) AS col1 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5033
SELECT - CAST( + - MIN( col0 ) AS SIGNED ) DIV + - SUM( 11 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5033
SELECT - CAST ( + - MIN ( col0 ) AS INTEGER ) / + - SUM ( 11 ) FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col2 FROM tab1 cor0
----
-92
-92
-92

query I rowsort
SELECT ( - - 52 ) AS col1 FROM tab2 cor0
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5036
SELECT ALL 63 DIV - col1 + + 84 * 24 FROM tab2
----
2015
2016
2016

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL 63 / - col1 + + 84 * 24 FROM tab2
----
2015
2016
2016

query I rowsort
SELECT - col0 FROM tab1 WHERE - col2 + + ( + col0 ) NOT BETWEEN - + col1 AND NULL
----
-51

query I rowsort
SELECT + 16 * - + col0 FROM tab0
----
-1392
-1552
-240

query I rowsort
SELECT ALL - 11 + - - col2 FROM tab1
----
48
57
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5040
SELECT + + MIN( ALL + + 28 ) * + COUNT( * ) AS col2, 52 FROM tab1 AS cor0 WHERE + col2 * col2 IS NOT NULL
----
84
52

skipif mysql # not compatible
query II rowsort label-5040
SELECT + + MIN ( ALL + + 28 ) * + COUNT ( * ) AS col2, 52 FROM tab1 AS cor0 WHERE + col2 * col2 IS NOT NULL
----
84
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE col2 * - + 17 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5041
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE col2 * - + 17 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT - col0 DIV col1 * 86 + + col2 + + + 18 AS col2 FROM tab1 AS cor0
----
-1385
-144
0

skipif mysql # not compatible
query I rowsort label-5042
SELECT - col0 / col1 * 86 + + col2 + + + 18 AS col2 FROM tab1 AS cor0
----
-1385
-144
0

query I rowsort
SELECT ALL - col2 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 < + - 23 / + 18 + - ( + 33 )
----
1344
295

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL COUNT( * ) * + 19 + + 69 AS col0 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL COUNT ( * ) * + 19 + + 69 AS col0 FROM tab2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT SUM( - col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5045
SELECT SUM ( - col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT + COUNT( * ) - + + 91 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5046
SELECT + COUNT ( * ) - + + 91 FROM tab0 AS cor0
----
-88

query I rowsort
SELECT DISTINCT - + col0 - + col1 * 2 FROM tab2 AS cor0
----
-148
-209
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT DISTINCT COUNT( * ) - - AVG ( DISTINCT + col1 ) + COUNT( * ) FROM tab0 AS cor0 WHERE col2 IN ( + - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT COUNT ( * ) - - AVG ( DISTINCT + col1 ) + COUNT ( * ) FROM tab0 AS cor0 WHERE col2 IN ( + - 0 )
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT DISTINCT 55 - COUNT( * ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT 55 - COUNT ( * ) FROM tab2 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 83 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 83 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL - COUNT( * ) * 10 FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL - COUNT ( * ) * 10 FROM tab0 cor0
----
-30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - col1 <> - 97 + - col2
----

query I rowsort
SELECT ALL + ( - + col2 ) * - + col1 * - + 0 * col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5055
SELECT ALL + 10 AS col0 FROM tab1 WHERE NOT + col0 + + col2 * - col1 * + CAST( - col2 AS SIGNED ) NOT IN ( 53 )
----

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL + 10 AS col0 FROM tab1 WHERE NOT + col0 + + col2 * - col1 * + CAST ( - col2 AS INTEGER ) NOT IN ( 53 )
----

query I rowsort
SELECT ALL 36 * + - 60 AS col2 FROM tab1
----
-2160
-2160
-2160

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 40 + - col0 - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5058
SELECT col1 DIV + + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5058
SELECT col1 / + + col2 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5059
SELECT CAST( - ( col1 ) AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5059
SELECT CAST ( - ( col1 ) AS INTEGER ) FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5060
SELECT + CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5060
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT - 49 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-49
-49
-49

query I rowsort
SELECT DISTINCT 43 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT - COUNT( ALL - col2 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5063
SELECT - COUNT ( ALL - col2 ) col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5064
SELECT ALL - COUNT( * ) AS col2, MAX( + + col0 ) AS col1 FROM tab2 AS cor0
----
-3
75

skipif mysql # not compatible
query II rowsort label-5064
SELECT ALL - COUNT ( * ) AS col2, MAX ( + + col0 ) AS col1 FROM tab2 AS cor0
----
-3
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5065
SELECT - + col1 DIV + - 64 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5065
SELECT - + col1 / + - 64 FROM tab2 AS cor0
----
0
1
1

query II rowsort
SELECT - 47, + col2 FROM tab0 cor0
----
-47
10
-47
47
-47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5067
SELECT DISTINCT - - 61 col2, 71 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
61
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5067
SELECT DISTINCT - - 61 col2, 71 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
61
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT DISTINCT + - COUNT( - - col1 ) + + - COUNT( col0 ) * - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT + - COUNT ( - - col1 ) + + - COUNT ( col0 ) * - COUNT ( * ) FROM tab2 AS cor0
----
6

query II rowsort
SELECT + col0 + - 2 AS col2, + col0 FROM tab0
----
13
15
85
87
95
97

query I rowsort
SELECT + ( + 63 ) + + + 78 - + + col1 FROM tab2
----
64
74
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5071
SELECT - 42 + - col1 + - CAST( 78 AS SIGNED ) * + ( - col0 ) * - + col0 DIV + col0 FROM tab1
----
-4034
-6677
-7187

skipif mysql # not compatible
query I rowsort label-5071
SELECT - 42 + - col1 + - CAST ( 78 AS INTEGER ) * + ( - col0 ) * - + col0 / + col0 FROM tab1
----
-4034
-6677
-7187

query I rowsort
SELECT ALL + col0 + - - 94 + col0 AS col0 FROM tab2
----
186
222
244

query I rowsort
SELECT + 21 * ( col0 ) FROM tab0 AS cor0
----
1827
2037
315

query I rowsort
SELECT ALL - + 34 - col0 FROM tab2 AS cor0
----
-109
-80
-98

query I rowsort
SELECT - col1 * col0 * - col2 AS col1 FROM tab0 AS cor0 WHERE - col0 + + 16 IS NOT NULL
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5076
SELECT ALL + col2 DIV - - col1 - + - 16 DIV - + CAST( 96 AS SIGNED ) * - col1 + - - col1 FROM tab0 AS cor0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL + col2 / - - col1 - + - 16 / - + CAST ( 96 AS INTEGER ) * - col1 + - - col1 FROM tab0 AS cor0
----
100
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT + 7 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT + 7 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT - MAX( ALL 77 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5078
SELECT - MAX ( ALL 77 ) AS col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + col2 * + 39 FROM tab0 AS cor0
----
1833
3861
390

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT ALL + MAX( + ( + col2 ) ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL + MAX ( + ( + col2 ) ) AS col2 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT - - 87 AS col1 FROM tab2 WHERE NOT ( NOT + col0 * - - CAST( NULL AS SIGNED ) IS NULL )
----
87
87
87

skipif mysql # not compatible
query I rowsort label-5081
SELECT - - 87 AS col1 FROM tab2 WHERE NOT ( NOT + col0 * - - CAST ( NULL AS INTEGER ) IS NULL )
----
87
87
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT 35 DIV - 33 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5082
SELECT 35 / - 33 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT col1 * + + CAST( - 69 AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3243
-345
-966

skipif mysql # not compatible
query I rowsort label-5083
SELECT col1 * + + CAST ( - 69 AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3243
-345
-966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5084
SELECT DISTINCT - col2 * col2 * - CAST( NULL AS SIGNED ) - - col0 - - + col2 FROM tab2 WHERE NOT ( NULL = ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT - col2 * col2 * - CAST ( NULL AS INTEGER ) - - col0 - - + col2 FROM tab2 WHERE NOT ( NULL = ( NULL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL BETWEEN col2 AND - - 75 + + - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( col2 ) + - - col1 + col2 NOT IN ( + + 72, col1, + 44 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 49 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5088
SELECT ( - col2 ) DIV - CAST( + - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-5088
SELECT ( - col2 ) / - CAST ( + - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-99
0
0

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, - ( + col2 ) )
----

query I rowsort
SELECT DISTINCT - 58 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT + 20 + - - col0 + + CAST( + + ( - 98 ) AS SIGNED ) FROM tab2
----
-14
-3
-32

skipif mysql # not compatible
query I rowsort label-5091
SELECT + 20 + - - col0 + + CAST ( + + ( - 98 ) AS INTEGER ) FROM tab2
----
-14
-3
-32

query I rowsort
SELECT ( + ( - col2 ) ) FROM tab2 cor0 WHERE NOT ( NOT - 34 - - col2 * col1 NOT BETWEEN - col1 AND + - col1 )
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT - col2 DIV + 46 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT - col2 / + 46 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + 81 * - 28 AS col0 FROM tab0 AS cor0
----
-2268

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL + + MAX( ALL + - col2 ) col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5095
SELECT ALL + + MAX ( ALL + - col2 ) col2 FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5096
SELECT + 15 DIV + + col1 AS col2 FROM tab0 AS cor0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-5096
SELECT + 15 / + + col1 AS col2 FROM tab0 AS cor0
----
0
0
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 * - 13 AND NULL
----

query I rowsort
SELECT DISTINCT + 83 AS col0 FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT - + 5 AS col1 FROM tab2 cor0 WHERE ( col0 * + 48 >= NULL )
----

query I rowsort
SELECT ALL + col0 + - + col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5101
SELECT - col0 DIV - + 24 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5101
SELECT - col0 / - + 24 FROM tab2
----
1
2
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + ( 82 ) * - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5103
SELECT ALL CAST( - col1 AS SIGNED ) * + + 83 + - col0 * + + col2 FROM tab1
----
-10089
-5430
-6058

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL CAST ( - col1 AS INTEGER ) * + + 83 + - col0 * + + col2 FROM tab1
----
-10089
-5430
-6058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 * + 34 col0 FROM tab0
----
2835
35
735

query I rowsort
SELECT + col1 + + col1 * + col2 AS col2 FROM tab2 WHERE + 89 > NULL
----

query I rowsort
SELECT ALL - 81 * + - col0 FROM tab1 WHERE NOT + 32 - col2 <= - col0
----
6885
7371

query I rowsort
SELECT col2 + + + 98 * - col0 * col0 - + + col2 * col2 FROM tab0 cor0
----
-24212
-741852
-931784

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + + 5 BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab2 WHERE + + 10 + + col0 + - 97 * - - 70 + + - 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - AVG ( ALL + col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * + - col1 * + col1 * - col1 + + col2 AS col1 FROM tab2 AS cor0
----
20151179
35153081
6765224

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT - COUNT( + 87 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5112
SELECT - COUNT ( + 87 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL SUM( ALL col1 ) col1 FROM tab0 WHERE - + col0 + col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5113
SELECT ALL SUM ( ALL col1 ) col1 FROM tab0 WHERE - + col0 + col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5114
SELECT 52 DIV + col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5114
SELECT 52 / + col2 FROM tab2
----
0
1
2

query I rowsort
SELECT ALL - - col0 * - 6 + - - 58 AS col1 FROM tab1 cor0
----
-248
-452
-488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT CAST( + 94 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-5116
SELECT CAST ( + 94 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT + + col2 + col0 + col0 FROM tab1 WHERE NOT CAST( + col2 AS SIGNED ) + + 68 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5117
SELECT + + col2 + col0 + col0 FROM tab1 WHERE NOT CAST ( + col2 AS INTEGER ) + + 68 IS NOT NULL
----

query I rowsort
SELECT ALL + 58 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT DISTINCT + - 55 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - col2, ( + 70 ) col2 FROM tab2
----
1173
70
3080
70
3886
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT DISTINCT + COUNT( * ) * + + 1 * + 59 col1 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5122
SELECT DISTINCT + COUNT ( * ) * + + 1 * + 59 col1 FROM tab2 AS cor0
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 2 + col1 * ( + 10 ), - 29 col2 FROM tab2 cor0
----
512
-29
672
-29
772
-29

query I rowsort
SELECT + - col1 * - + 83 + - col0 + + col2 AS col1 FROM tab0 AS cor0
----
1666
6755
85

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5125
SELECT + 34 + 87 * + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT + 34 + 87 * + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0 WHERE - CAST ( NULL AS REAL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5126
SELECT DISTINCT - col0 DIV + col2 - + col1 col0 FROM tab1 AS cor0
----
-14
-48
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5126
SELECT DISTINCT - col0 / + col2 - + col1 col0 FROM tab1 AS cor0
----
-14
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT MAX( DISTINCT - 9 ) + + ( - + 36 ) AS col1 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-5127
SELECT MAX ( DISTINCT - 9 ) + + ( - + 36 ) AS col1 FROM tab0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5128
SELECT + COUNT( ALL - + col1 ) DIV + + 19 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5128
SELECT + COUNT ( ALL - + col1 ) / + + 19 AS col0 FROM tab2
----
0

query I rowsort
SELECT + 90 * - col0 - + col2 FROM tab2 AS cor0
----
-4163
-5800
-6808

query I rowsort
SELECT ALL + - col2 + - - 50 FROM tab1 AS cor0
----
-18
-46
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5131
SELECT DISTINCT - 35 AS col1 FROM tab2 WHERE NOT - 28 / - ( col0 ) IS NOT NULL AND 97 <= - 73 + + CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT - 35 AS col1 FROM tab2 WHERE NOT - 28 / - ( col0 ) IS NOT NULL AND 97 <= - 73 + + CAST ( + - col2 AS INTEGER )
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE - col2 IN ( - col1, + 16 )
----

query I rowsort
SELECT + col0 + + 95 FROM tab0
----
110
182
192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 60 ) - - - 86 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5135
SELECT - col2, + 70 * col1 DIV - - 82 col1 FROM tab1 cor0
----
-59
4
-68
40
-96
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5135
SELECT - col2, + 70 * col1 / - - 82 col1 FROM tab1 cor0
----
-59
4
-68
40
-96
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT ALL MAX( ALL col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL MAX ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
77

query II rowsort
SELECT DISTINCT - - 73 AS col1, - col1 * + - col0 FROM tab0 AS cor0
----
73
1215
73
1827
73
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT + MIN( col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5138
SELECT + MIN ( col0 ) AS col2 FROM tab2
----
46

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 WHERE NOT NULL = + 87
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL = col1
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT - 25 DIV + + col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT - 25 / + + col2 FROM tab0 AS cor0
----
-2
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - ( - - col1 ) ) + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT ALL COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
18

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT ( - 58 ) * 64 * COUNT( * ) + + 45 FROM tab1
----
-11091

skipif mysql # not compatible
query I rowsort label-5145
SELECT ( - 58 ) * 64 * COUNT ( * ) + + 45 FROM tab1
----
-11091

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE 70 * + col2 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT col1 DIV + ( - + 27 ) FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5147
SELECT col1 / + ( - + 27 ) FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT - + col0 * - + col0 FROM tab1 cor0
----
2601
7225
8281

query I rowsort
SELECT ALL + 93 * + col0 AS col1 FROM tab1 AS cor0
----
4743
7905
8463

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= col1
----

query I rowsort
SELECT ALL col2 + - - col1 AS col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT DISTINCT MIN( ALL - - CAST( - col1 AS SIGNED ) ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT MIN ( ALL - - CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5153
SELECT col2 * - + 98 * - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT col2 * - + 98 * - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 74 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT ALL CAST( NULL AS SIGNED ) + - SUM( + - col0 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL CAST ( NULL AS INTEGER ) + - SUM ( + - col0 ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL + COUNT( * ) * 50 * - SUM( ALL - ( col1 ) ) + + COUNT( * ) FROM tab2
----
29253

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL + COUNT ( * ) * 50 * - SUM ( ALL - ( col1 ) ) + + COUNT ( * ) FROM tab2
----
29253

query I rowsort
SELECT DISTINCT ( - col1 ) * col2 + + col1 + col1 * + col2 + + col0 + + - col1 * col0 * - col1 FROM tab1
----
10061
201157
2215

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 96 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 26 + col2 * + col1 FROM tab0 cor0
----
125
236
3833

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT col2 + - 80 < - + col2 - col1
----
51
85
91

query I rowsort
SELECT DISTINCT + ( - 57 ) FROM tab1
----
-57

query I rowsort
SELECT + + 79 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + COUNT( + 99 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5163
SELECT + COUNT ( + 99 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5164
SELECT ALL 80 DIV + col2 + - 2 * - col2 FROM tab1 AS cor0
----
119
137
192

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL 80 / + col2 + - 2 * - col2 FROM tab1 AS cor0
----
119
137
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 * + ( - + col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT 96 * COUNT( + - col0 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-5168
SELECT 96 * COUNT ( + - col0 ) FROM tab1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT + ( + COUNT( * ) ) * 80 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT + ( + COUNT ( * ) ) * 80 FROM tab0
----
240

query I rowsort
SELECT ALL - ( - ( + + col1 ) ) AS col0 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5171
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( col1 * - col0 + + - col1 * - col1, - col0 / + - 83, - col1 * - - col1, + 63 )
----

skipif mysql # not compatible
query III rowsort label-5171
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( col1 * - col0 + + - col1 * - col1, - col0 / + - 83, - col1 * - - col1, + 63 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 95 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 56 ) AS col1 FROM tab0 AS cor0
----
-56

query II rowsort
SELECT - col1 AS col0, + col2 * - + col0 AS col0 FROM tab0 AS cor0
----
-1
-9603
-21
-870
-81
-705

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE - col2 > NULL
----

query I rowsort
SELECT col2 + - 68 AS col0 FROM tab0
----
-21
-58
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT + - 13 + - 57 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-184

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT + - 13 + - 57 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-184

query I rowsort
SELECT - 83 * + col0 + - 1 + + col1 + 64 AS col2 FROM tab1 cor0
----
-4156
-6987
-7443

query II rowsort
SELECT + + col1 + - col0 AS col1, 23 * + + col2 * col2 AS col0 FROM tab0 cor0
----
-66
2300
-96
225423
66
50807

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 49 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5181
SELECT - 43 DIV 81 DIV - COUNT( * ), + SUM( DISTINCT - - col0 ) AS col2 FROM tab2 AS cor0
----
0
185

skipif mysql # not compatible
query II rowsort label-5181
SELECT - 43 / 81 / - COUNT ( * ), + SUM ( DISTINCT - - col0 ) AS col2 FROM tab2 AS cor0
----
0
185

query I rowsort
SELECT ALL - 58 + - - 69 FROM tab2
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT - 89 * + COUNT( * ) * COUNT( * ) col2 FROM tab0
----
-801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5183
SELECT - 89 * + COUNT ( * ) * COUNT ( * ) col2 FROM tab0
----
-801

onlyif mysql # DIV for integer division: 
query II rowsort label-5184
SELECT ALL + col0 col0, col2 DIV + - col0 + - 85 AS col1 FROM tab0
----
15
-88
87
-85
97
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5184
SELECT ALL + col0 col0, col2 / + - col0 + - 85 AS col1 FROM tab0
----
15
-88
87
-85
97
-86

query III rowsort
SELECT * FROM tab0 WHERE + ( col0 ) NOT BETWEEN NULL AND 58
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL 69 + - COUNT( * ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL 69 + - COUNT ( * ) AS col1 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT MIN( - - col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5187
SELECT MIN ( - - col2 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT - 87 * - 71 FROM tab2
----
6177
6177
6177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5189
SELECT COUNT( * ), CAST( + COUNT( + 93 ) AS SIGNED ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-5189
SELECT COUNT ( * ), CAST ( + COUNT ( + 93 ) AS INTEGER ) AS col0 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT + COUNT( * ) * + 81 AS col1 FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-5190
SELECT + COUNT ( * ) * + 81 AS col1 FROM tab1
----
243

query I rowsort
SELECT + col0 FROM tab0 WHERE - col2 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - - 79 + - col2 AS col2, - col0 FROM tab1 WHERE NULL NOT BETWEEN col2 AND 36
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 97 ) col1 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT + - col0 * + + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT - + 63 * + + 68 FROM tab0 AS cor0
----
-4284
-4284
-4284

query I rowsort
SELECT - + 76 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT DISTINCT col2 * - 66 * - col2 FROM tab1
----
229746
305184
608256

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 90 NOT BETWEEN NULL AND + + 3
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 - + 39 * col0 >= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT + CAST( + col0 AS SIGNED ) * + + 41 FROM tab0 AS cor0
----
3567
3977
615

skipif mysql # not compatible
query I rowsort label-5201
SELECT + CAST ( + col0 AS INTEGER ) * + + 41 FROM tab0 AS cor0
----
3567
3977
615

query I rowsort
SELECT DISTINCT + + col2 * - + col0 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col2 FROM tab2 AS cor0
----
83
83
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5205
SELECT - CAST( + MAX( + col2 ) AS SIGNED ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5205
SELECT - CAST ( + MAX ( + col2 ) AS INTEGER ) FROM tab0 cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 54 > col2 OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ( - MAX( ALL col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5207
SELECT ( - MAX ( ALL col1 ) ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL - ( + 90 ) + col0 + 73 / col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 * 33 AS col1 FROM tab2
----
1683
2211
2541

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT + COUNT( * ) * 55 AS col0 FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-5210
SELECT + COUNT ( * ) * 55 AS col0 FROM tab0
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT ALL + CAST( NULL AS SIGNED ) + + 21 + - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL + CAST ( NULL AS INTEGER ) + + 21 + - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col2 ) + - col1 + + - 56 FROM tab1
----
-2
-35
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5213
SELECT ALL - + 90 col1, col2 * - col2 + - col1 + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-90
NULL
-90
NULL
-90
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5213
SELECT ALL - + 90 col1, col2 * - col2 + - col1 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-90
NULL
-90
NULL
-90
NULL

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 cor0 WHERE NOT 74 IS NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col0, + col2 - + - col0 * 44 + - 76 col0 FROM tab1 AS cor0
----
-14
2264
-47
3996
-5
3723

query I rowsort
SELECT DISTINCT + col2 - + 73 FROM tab1 AS cor0
----
-14
-5
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 89 < NULL
----

query II rowsort
SELECT + + ( + - 49 ), + col1 FROM tab1 AS cor0
----
-49
14
-49
47
-49
5

query I rowsort
SELECT - col1 - - - 38 AS col1 FROM tab1 cor0
----
-43
-52
-85

query I rowsort
SELECT DISTINCT 29 * + - col1 - + 56 FROM tab2 AS cor0
----
-1535
-1999
-2289

query I rowsort
SELECT DISTINCT - 59 - col1 FROM tab0 AS cor0
----
-140
-60
-80

query I rowsort
SELECT + col1 - - - col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT DISTINCT - SUM( + - col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - SUM ( + - col0 ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT + + COUNT( * ) AS col2 FROM tab0 WHERE NOT - col2 + - - col0 + - - 85 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5224
SELECT + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col2 + - - col0 + - - 85 IS NULL
----
3

query I rowsort
SELECT + 8 AS col0 FROM tab1 WHERE NOT + + 69 IS NOT NULL
----

query I rowsort
SELECT 89 * - - 81 FROM tab2
----
7209
7209
7209

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT - 72 * + COUNT( + + col0 ) AS col2 FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-5227
SELECT - 72 * + COUNT ( + + col0 ) AS col2 FROM tab2
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT DISTINCT + col2 * col1 DIV + 22 FROM tab1
----
13
145
61

skipif mysql # not compatible
query I rowsort label-5228
SELECT DISTINCT + col2 * col1 / + 22 FROM tab1
----
13
145
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT - - CAST( col2 AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND + ( 25 )
----

skipif mysql # not compatible
query I rowsort label-5229
SELECT - - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND + ( 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5230
SELECT - 16 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5230
SELECT - 16 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT + + COUNT( DISTINCT + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5231
SELECT + + COUNT ( DISTINCT + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 45 * + 64 col1 FROM tab2 cor0
----
2880
2880
2880

query II rowsort
SELECT - 38 + - col2, col0 + + col0 + + ( 91 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + - 96 AND + col0
----

query I rowsort
SELECT ALL + col0 * + 33 * - col2 AS col2 FROM tab1 AS cor0
----
-161568
-165495
-204204

query I rowsort
SELECT ALL + 87 FROM tab1 AS cor0 WHERE ( col2 ) > + - col2
----
87
87
87

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 99 * + col1 AND - col2
----

query I rowsort
SELECT + col0 + - - ( col0 ) + - 65 AS col0 FROM tab2
----
27
63
85

query I rowsort
SELECT - col1 + + - col1 + + - col1 AS col2 FROM tab1
----
-141
-15
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col2 FROM tab0
----
21

query I rowsort
SELECT ALL + 36 + + + col1 * 77 AS col2 FROM tab0
----
113
1653
6273

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND + col0 - + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5244
SELECT + SUM( - col2 ) AS col2, - COUNT( 31 ) * COUNT( * ) FROM tab2
----
-121
-9

skipif mysql # not compatible
query II rowsort label-5244
SELECT + SUM ( - col2 ) AS col2, - COUNT ( 31 ) * COUNT ( * ) FROM tab2
----
-121
-9

query III rowsort
SELECT * FROM tab1 WHERE + + col2 > + col2 + + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col0 * - col0 * ( - col2 ), col0 FROM tab1 AS cor0
----
249696
51
426275
85
563108
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT ALL - ( col2 ) DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - ( col2 ) / col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 26 * + col2 col1, col0 - col2 * + + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1040
-123136
1508
-225313
598
-26933

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5249
SELECT * FROM tab1 AS cor0 WHERE + 82 IN ( 70 + + 17, 84, - - col1 + - col2, + + CAST( - + 88 AS DECIMAL ), + 72, + col2 )
----

skipif mysql # not compatible
query III rowsort label-5249
SELECT * FROM tab1 AS cor0 WHERE + 82 IN ( 70 + + 17, 84, - - col1 + - col2, + + CAST ( - + 88 AS REAL ), + 72, + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5250
SELECT - col2 * - 60 * - col0 - - 86 DIV - - 51 AS col2, + col1 FROM tab2
----
-153599
77
-260999
67
-63479
51

skipif mysql # not compatible
query II rowsort label-5250
SELECT - col2 * - 60 * - col0 - - 86 / - - 51 AS col2, + col1 FROM tab2
----
-153599
77
-260999
67
-63479
51

query I rowsort
SELECT ALL ( - ( + col2 ) ) + ( - 90 ) + - - col0 + - 19 AS col2 FROM tab0
----
-111
-141
-32

query I rowsort
SELECT DISTINCT 64 + col0 AS col2 FROM tab2
----
110
128
139

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 61 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + 42 + + + col1 AS col1 FROM tab2
----
109
119
93

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + ( - - col1 ) ) AND - col1 * + + 72
----

query I rowsort
SELECT ALL 88 - - col0 * - + col0 FROM tab1 AS cor0
----
-2513
-7137
-8193

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + col1 ) >= 80 + col1 + - ( - + 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT - ( - + COUNT( + col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5258
SELECT - ( - + COUNT ( + col0 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * - - col1 col1 FROM tab0 AS cor0
----
1785
6885
85

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 BETWEEN NULL AND + 69 + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5262
SELECT DISTINCT 58 AS col2, - COUNT( * ) AS col1 FROM tab2
----
58
-3

skipif mysql # not compatible
query II rowsort label-5262
SELECT DISTINCT 58 AS col2, - COUNT ( * ) AS col1 FROM tab2
----
58
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5263
SELECT COUNT( * ) AS col1, + 53 col2 FROM tab2
----
3
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5263
SELECT COUNT ( * ) AS col1, + 53 col2 FROM tab2
----
3
53

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 WHERE + + col0 IS NULL
----

query I rowsort
SELECT - ( + 16 ) AS col0 FROM tab2 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT MAX( ALL + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5266
SELECT MAX ( ALL + col0 ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT + col0, - 47 FROM tab2 AS cor0
----
46
-47
64
-47
75
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT + 9 * - MIN( col0 ) AS col2 FROM tab1 AS cor0
----
-459

skipif mysql # not compatible
query I rowsort label-5268
SELECT + 9 * - MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
-459

query I rowsort
SELECT DISTINCT + - ( - + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 32 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - col2 * col0 + + + col0 + - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-18915
-8352
-915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 col2 FROM tab1 cor0 WHERE NOT 62 + + + col1 IS NULL
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5272
SELECT - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) AS col0, + 73 FROM tab0 cor0
----
NULL
73
NULL
73
NULL
73

skipif mysql # not compatible
query II rowsort label-5272
SELECT - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) AS col0, + 73 FROM tab0 cor0
----
NULL
73
NULL
73
NULL
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5273
SELECT + col0 AS col2 FROM tab1 cor0 WHERE NOT - 25 NOT BETWEEN ( - col0 ) AND + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5273
SELECT + col0 AS col2 FROM tab1 cor0 WHERE NOT - 25 NOT BETWEEN ( - col0 ) AND + + CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 * + - 61 * col2 col2, - 77 * - 25 AS col1 FROM tab1 AS cor0
----
-17995
1925
-194956
1925
-81984
1925

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ALL + COUNT( DISTINCT - col1 ) + 88 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL + COUNT ( DISTINCT - col1 ) + 88 FROM tab2 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT - - MAX( - + 23 ) AS col0 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5277
SELECT - - MAX ( - + 23 ) AS col0 FROM tab0 AS cor0
----
-23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5279
SELECT + SUM( 87 ), 71 - - COUNT( * ) * + COUNT( - 87 ) AS col1 FROM tab1 AS cor0
----
261
80

skipif mysql # not compatible
query II rowsort label-5279
SELECT + SUM ( 87 ), 71 - - COUNT ( * ) * + COUNT ( - 87 ) AS col1 FROM tab1 AS cor0
----
261
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5280
SELECT ALL - col0 DIV + 61 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL - col0 / + 61 FROM tab1
----
-1
-1
0

query I rowsort
SELECT + col1 * 22 FROM tab0 WHERE - - 57 IS NOT NULL
----
1782
22
462

onlyif mysql # DIV for integer division: 
query I rowsort label-5282
SELECT ALL - col0 + + 28 + - 85 + + + col2 DIV + + 77 FROM tab2
----
-103
-121
-132

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - col0 + + 28 + - 85 + + + col2 / + + 77 FROM tab2
----
-103
-121
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT - - 13 + - - COUNT( * ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-5283
SELECT - - 13 + - - COUNT ( * ) FROM tab1 AS cor0
----
16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 3, - 3 + + col1, col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT DISTINCT 33 * SUM( ALL - col2 ) AS col2 FROM tab1
----
-7359

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT 33 * SUM ( ALL - col2 ) AS col2 FROM tab1
----
-7359

query I rowsort
SELECT + ( col0 ) + col1 FROM tab1
----
138
65
90

query III rowsort
SELECT * FROM tab1 WHERE - ( col0 ) BETWEEN + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 17 / + 2 < + col1
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT DISTINCT + 59 DIV col2 AS col0 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT + 59 / col2 AS col0 FROM tab2
----
1
2

query I rowsort
SELECT 38 - col0 AS col0 FROM tab0
----
-49
-59
23

query I rowsort
SELECT DISTINCT col0 + col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
141
142
97

query I rowsort
SELECT ALL + col1 * + col0 FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT - col2 FROM tab0 WHERE + 3 NOT IN ( - col1 + CAST( col0 AS SIGNED ) * + 21 )
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5293
SELECT - col2 FROM tab0 WHERE + 3 NOT IN ( - col1 + CAST ( col0 AS INTEGER ) * + 21 )
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT 76 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5295
SELECT ALL - CAST( + 49 AS SIGNED ) FROM tab1
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL - CAST ( + 49 AS INTEGER ) FROM tab1
----
-49
-49
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5296
SELECT + MAX( ALL col1 ) + 30 DIV CAST( CAST( COUNT( + col1 ) AS DECIMAL ) AS SIGNED ) AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-5296
SELECT + MAX ( ALL col1 ) + 30 / CAST ( CAST ( COUNT ( + col1 ) AS REAL ) AS INTEGER ) AS col0 FROM tab0
----
91

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col0 FROM tab0 WHERE + col0 * + col2 - 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT - 53 + - COUNT( + col0 ) * - 78 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
-53

skipif mysql # not compatible
query I rowsort label-5299
SELECT - 53 + - COUNT ( + col0 ) * - 78 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
-53

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * col1 IN ( + 93 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT DISTINCT MAX( - 65 ) AS col2 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT MAX ( - 65 ) AS col2 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT DISTINCT - 96 FROM tab2 cor0 WHERE NOT 77 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 11 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = - col0 * + 88
----

query I rowsort
SELECT ALL 77 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 96 / ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT + COUNT( - col1 ) FROM tab1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5308
SELECT + COUNT ( - col1 ) FROM tab1 WHERE NOT NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ( + COUNT( + 34 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5309
SELECT ( + COUNT ( + 34 ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT - 64 * - MIN( - col1 * - col1 ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT - 64 * - MIN ( - col1 * - col1 ) FROM tab0
----
64

query I rowsort
SELECT DISTINCT - 88 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5312
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5312
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * 39 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
1794
2496
2925

query I rowsort
SELECT ALL 62 * col1 AS col2 FROM tab1 cor0
----
2914
310
868

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * + col2 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 62 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT COUNT( * ) + - 71 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-5317
SELECT COUNT ( * ) + - 71 FROM tab1
----
-68

query I rowsort
SELECT 29 + + + 89 FROM tab1
----
118
118
118

query I rowsort
SELECT - 46 * + - col0 + col2 FROM tab2
----
2139
2984
3508

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 50 * + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 19 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * + 6 AS col1 FROM tab1 WHERE NULL IN ( + 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5323
SELECT + CAST( - - col2 AS SIGNED ) AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5323
SELECT + CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( col2 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT col1 / - 47 FROM tab2 WHERE col2 * + col0 BETWEEN ( NULL ) AND ( 53 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN NULL AND ( 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT DISTINCT MAX( - 31 ) FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT MAX ( - 31 ) FROM tab0 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5328
SELECT - 94 - + + ( col0 ) DIV + CAST( 14 + 29 AS SIGNED ) FROM tab2 AS cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-5328
SELECT - 94 - + + ( col0 ) / + CAST ( 14 + 29 AS INTEGER ) FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT - col1 * - + col0 + - + 21 FROM tab0
----
1194
1806
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT 80 + + MAX( DISTINCT - 41 ) AS col0 FROM tab0 WHERE ( + col1 * col2 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT 80 + + MAX ( DISTINCT - 41 ) AS col0 FROM tab0 WHERE ( + col1 * col2 ) <> NULL
----
NULL

query I rowsort
SELECT + col1 FROM tab0 WHERE ( + col1 ) NOT IN ( - 19 )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT DISTINCT - - CAST( + 45 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT - - CAST ( + 45 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 ) BETWEEN + col1 AND - col2 + ( col2 + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 62 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * 10 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
470
990

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT - - COUNT( ALL + 37 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5336
SELECT - - COUNT ( ALL + 37 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT + 21 AS col2, - col1 * - col0 AS col0 FROM tab2 AS cor0
----
21
2346
21
4928
21
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT + MAX( ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5338
SELECT + MAX ( ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5340
SELECT + 35 * - 85 AS col0, + COUNT( * ) FROM tab0
----
-2975
3

skipif mysql # not compatible
query II rowsort label-5340
SELECT + 35 * - 85 AS col0, + COUNT ( * ) FROM tab0
----
-2975
3

query II rowsort
SELECT ALL - ( + col2 ), + col2 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5342
SELECT ALL 74 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL 74 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 1 * 10 AS col1 FROM tab1
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT 69 DIV - - col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5344
SELECT 69 / - - col0 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5345
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( + col2 AS SIGNED ) * col0 = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5345
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( + col2 AS INTEGER ) * col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT MIN( - 49 ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT MIN ( - 49 ) FROM tab2
----
-49

query I rowsort
SELECT DISTINCT + 89 FROM tab1 WHERE + 68 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 60 + + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5349
SELECT - + 59 DIV + col0 + - col0 * + 30 AS col2 FROM tab0 AS cor0
----
-2610
-2910
-453

skipif mysql # not compatible
query I rowsort label-5349
SELECT - + 59 / + col0 + - col0 * + 30 AS col2 FROM tab0 AS cor0
----
-2610
-2910
-453

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5350
SELECT + + col1 DIV + CAST( col2 AS SIGNED ) + 44 * 90 FROM tab1 AS cor0
----
3960
3960
3960

skipif mysql # not compatible
query I rowsort label-5350
SELECT + + col1 / + CAST ( col2 AS INTEGER ) + 44 * 90 FROM tab1 AS cor0
----
3960
3960
3960

query I rowsort
SELECT DISTINCT + 53 FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
53

query I rowsort
SELECT - col2 FROM tab0 WHERE - 78 * - + 15 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5353
SELECT DISTINCT + col1 + - + CAST( NULL AS SIGNED ) + col1 / - - col1 * - 32 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT + col1 + - + CAST ( NULL AS INTEGER ) + col1 / - - col1 * - 32 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT COUNT( + col0 ) * - 25 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-5354
SELECT COUNT ( + col0 ) * - 25 FROM tab0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL + + ( - ( COUNT( * ) ) ) + + 28 AS col2 FROM tab2 cor0
----
25

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL + + ( - ( COUNT ( * ) ) ) + + 28 AS col2 FROM tab2 cor0
----
25

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE ( ( + + 45 ) + + - col0 ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5357
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 56 AS col2 FROM tab2 AS cor0
----
NULL
56
NULL
56
NULL
56

skipif mysql # not compatible
query II rowsort label-5357
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 56 AS col2 FROM tab2 AS cor0
----
NULL
56
NULL
56
NULL
56

query I rowsort
SELECT col0 * - col2 * + col0 * + - col0 FROM tab1 AS cor0
----
12734496
36233375
51242828

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 59 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + - col0 ) * + col1 * ( - col2 ) FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5361
SELECT * FROM tab1 cor0 WHERE col2 * col2 - - CAST( NULL AS SIGNED ) >= + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5361
SELECT * FROM tab1 cor0 WHERE col2 * col2 - - CAST ( NULL AS INTEGER ) >= + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT 48 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT DISTINCT - col0 + - col2 + + - col2 + + 60 + 2 * + + CAST( + col0 AS SIGNED ) * col1 AS col2 FROM tab2
----
4660
9772
9919

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT - col0 + - col2 + + - col2 + + 60 + 2 * + + CAST ( + col0 AS INTEGER ) * col1 AS col2 FROM tab2
----
4660
9772
9919

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL > ( col0 / - 20 * + - col2 - - 9 ) )
----

query I rowsort
SELECT ALL + 9 * + - ( 63 ) FROM tab0, tab0 AS cor0
----
9 values hashing to e11dc7b02a8d9b10f4b5769c238e5f98

query I rowsort
SELECT DISTINCT - 52 + + col2 * + 83 AS col2 FROM tab1
----
4845
5592
7916

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5367
SELECT ALL * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) > - 56
----

skipif mysql # not compatible
query III rowsort label-5367
SELECT ALL * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) > - 56
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + 99, col2 )
----

query I rowsort
SELECT DISTINCT + 25 - - + 98 AS col1 FROM tab0
----
123

query I rowsort
SELECT + col0 + - - col2 + + + 46 AS col0 FROM tab1
----
190
193
205

query I rowsort
SELECT ALL col1 - col0 * - col1 + + + col2 FROM tab2
----
2420
5045
5150

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) BETWEEN NULL AND + - ( - 24 ) * 14 )
----

query I rowsort
SELECT + 87 * col2 + col2 AS col0 FROM tab0 AS cor0
----
4136
8712
880

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 88 < NULL
----

query I rowsort
SELECT DISTINCT col0 * col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND + ( 93 ) + 80
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= ( - col2 + + col0 )
----

query I rowsort
SELECT ALL - 76 * col1 + - 35 FROM tab1 AS cor0
----
-1099
-3607
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT DISTINCT + + ( + MIN( + 53 ) ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5378
SELECT DISTINCT + + ( + MIN ( + 53 ) ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
53

query I rowsort
SELECT DISTINCT - ( col2 ) * 72 - + 8 FROM tab0 WHERE NOT + col0 BETWEEN ( - - col0 ) + + col1 AND ( NULL )
----
-3392
-7136
-728

query III rowsort
SELECT * FROM tab1 WHERE - ( - ( - ( 82 ) ) ) IS NOT NULL AND ( - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - - 4 * - 99 * + col2 + + col2 * col1 + col2 + - col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * 4 AS col2 FROM tab1 AS cor0
----
188
20
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5383
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST( + col1 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5383
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST ( + col1 AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT 15 * - - col0 FROM tab0 cor0 WHERE NOT - col2 / - col0 >= ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5384
SELECT 15 * - - col0 FROM tab0 cor0 WHERE NOT - col2 / - col0 >= ( - + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - - col2 * - col0 + + 25
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5386
SELECT ALL CAST( + col1 AS SIGNED ) DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL CAST ( + col1 AS INTEGER ) / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col0 * - - col1 AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT - ( + col2 ) * - col2 FROM tab1
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT 38 DIV ( + + col1 ) AS col2 FROM tab0
----
0
1
38

skipif mysql # not compatible
query I rowsort label-5389
SELECT 38 / ( + + col1 ) AS col2 FROM tab0
----
0
1
38

query I rowsort
SELECT - 51 * - col2 FROM tab2
----
1173
2040
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT + MAX( ALL ( - col0 ) ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT + MAX ( ALL ( - col0 ) ) AS col1 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT + COUNT( * ) * 75 AS col2 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-5392
SELECT + COUNT ( * ) * 75 AS col2 FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - SUM( - 1 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5393
SELECT - SUM ( - 1 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 < NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * + 8 + + col1 + - col2 * + col1 AS col2 FROM tab2 AS cor0 WHERE 43 IS NULL
----

query I rowsort
SELECT DISTINCT - - ( - 49 ) * - - 16 FROM tab0 AS cor0
----
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( col1 ) IN ( + col0 * + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5397
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( col1 ) IN ( + col0 * + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT ALL - MAX( DISTINCT - col2 ) AS col0 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL - MAX ( DISTINCT - col2 ) AS col0 FROM tab1 cor0
----
59

query I rowsort
SELECT col1 * - col0 * + col2 + + 40 FROM tab1
----
-25035
-290796
-68504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + - col2 AS col2, col1 col1 FROM tab1
----
0
14
0
47
0
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 - + + 74 NOT BETWEEN + col0 * - 71 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5402
SELECT DISTINCT - 0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT - 0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT DISTINCT - ( 28 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-28

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL OR col1 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + - + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 31 * + col0 - - + 88 / + col2
----

query I rowsort
SELECT col1 + + 53 + - + col1 AS col2 FROM tab2 AS cor0
----
53
53
53

query III rowsort
SELECT * FROM tab0 WHERE - 49 + - - ( + + 84 ) + + 66 * + col2 / ( + 31 ) NOT IN ( - + col1 * 71 - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - col0 - + 46 + - col2 + + 97 * + - 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 91 + + ( - + col2 ) AS col2 FROM tab1
----
-150
-159
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT MAX( ALL + 96 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5411
SELECT MAX ( ALL + 96 ) AS col2 FROM tab1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5412
SELECT COUNT( * ) DIV - ( 89 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5412
SELECT COUNT ( * ) / - ( 89 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5413
SELECT - SUM( ALL + col2 ) DIV - - 68 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5413
SELECT - SUM ( ALL + col2 ) / - - 68 AS col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT MAX( - 14 ) AS col1 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-5414
SELECT MAX ( - 14 ) AS col1 FROM tab2
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col0 FROM tab0 AS cor0 WHERE col0 <= + 74
----
46

query I rowsort
SELECT col2 * + col1 - - col2 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT SUM( DISTINCT - col2 ) * + 71 AS col0 FROM tab1 AS cor0
----
-15833

skipif mysql # not compatible
query I rowsort label-5417
SELECT SUM ( DISTINCT - col2 ) * + 71 AS col0 FROM tab1 AS cor0
----
-15833

query I rowsort
SELECT DISTINCT + col2 * 76 + - col2 AS col0 FROM tab0 AS cor0
----
3525
7425
750

query I rowsort
SELECT col2 * - - 25 FROM tab2
----
1000
1450
575

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * + 47 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( 21 ) FROM tab0 AS cor0 WHERE + ( col2 ) / col2 + - 79 * + col1 = ( col0 )
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NULL <> + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + col1, - 56 * 11 FROM tab1 AS cor0
----
14
-616
47
-616
5
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT MIN( col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-5425
SELECT MIN ( col0 ) FROM tab2 cor0
----
46

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT COUNT( 74 ) + COUNT( * ) col2 FROM tab2, tab0 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5427
SELECT COUNT ( 74 ) + COUNT ( * ) col2 FROM tab2, tab0 AS cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5428
SELECT ALL + CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL + CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab1, tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL MAX( DISTINCT - + col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL MAX ( DISTINCT - + col1 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT col2 * + ( + + col1 ) AS col2 FROM tab0
----
210
3807
99

query II rowsort
SELECT DISTINCT col0 AS col2, - col2 FROM tab0 WHERE NOT + - ( + - col0 ) NOT BETWEEN + + col1 AND - 80
----

query I rowsort
SELECT + col2 + + + 51 FROM tab1 cor0
----
110
119
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 20, col2 * + col1 + - 0, + ( 99 ) * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 20, col2 * + col1 + - 0, + ( 99 ) * - col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5434
SELECT + col2 + - col1, col1 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
21
NULL
54
NULL
82
NULL

skipif mysql # not compatible
query II rowsort label-5434
SELECT + col2 + - col1, col1 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
21
NULL
54
NULL
82
NULL

query I rowsort
SELECT col0 + - 84 - col0 + - 40 FROM tab1 AS cor0
----
-124
-124
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-5436
SELECT DISTINCT + MIN( DISTINCT - - col0 ), - COUNT( ALL col2 ) * 51 AS col2 FROM tab2 AS cor0
----
46
-153

skipif mysql # not compatible
query II rowsort label-5436
SELECT DISTINCT + MIN ( DISTINCT - - col0 ), - COUNT ( ALL col2 ) * 51 AS col2 FROM tab2 AS cor0
----
46
-153

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5438
SELECT + COUNT( * ) AS col2, - COUNT( * ) col2 FROM tab1 cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5438
SELECT + COUNT ( * ) AS col2, - COUNT ( * ) col2 FROM tab1 cor0
----
3
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + - col0 / + col0 < ( + - 72 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT + 10 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT + 10 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL 85 * - - 64 - + COUNT( * ) + - 65 AS col2 FROM tab2 AS cor0
----
5372

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL 85 * - - 64 - + COUNT ( * ) + - 65 AS col2 FROM tab2 AS cor0
----
5372

query I rowsort
SELECT DISTINCT col0 - - + col0 AS col2 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT DISTINCT + 91 DIV + col1 AS col2 FROM tab1 AS cor0
----
1
18
6

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT + 91 / + col1 AS col2 FROM tab1 AS cor0
----
1
18
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT - ( + 28 ) - + - SUM( ALL 0 ) FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-5444
SELECT - ( + 28 ) - + - SUM ( ALL 0 ) FROM tab2 AS cor0
----
-28

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > + 23 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL MAX( ALL - 60 ) AS col2 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL MAX ( ALL - 60 ) AS col2 FROM tab0
----
-60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT ALL 53 + - col1 + - col0 DIV - col2 col1 FROM tab1
----
39
49
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5448
SELECT ALL 53 + - col1 + - col0 / - col2 col1 FROM tab1
----
39
49
7

query I rowsort
SELECT DISTINCT - + AVG ( ALL - + 18 ) FROM tab1 WHERE NOT NULL = 5 * + - col2 * + col2 * - 4
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5450
SELECT ALL + col0 + + ( + col1 ) DIV col1 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL + col0 + + ( + col1 ) / col1 FROM tab1
----
52
86
92

query I rowsort
SELECT ALL - 30 + + col2 AS col2 FROM tab2
----
-7
10
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT - ( - MIN( DISTINCT col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5452
SELECT - ( - MIN ( DISTINCT col2 ) ) AS col2 FROM tab0
----
10

query I rowsort
SELECT - 74 * - + col2 AS col0 FROM tab1
----
4366
5032
7104

query II rowsort
SELECT ALL + 49 AS col0, + col2 AS col0 FROM tab1
----
49
59
49
68
49
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5455
SELECT + COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5455
SELECT + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2
----
3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - col2 NOT BETWEEN - - col1 * - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT + - col0 DIV - col1 + + col2 FROM tab2 AS cor0
----
23
40
59

skipif mysql # not compatible
query I rowsort label-5457
SELECT + - col0 / - col1 + + col2 FROM tab2 AS cor0
----
23
40
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT ALL + CAST( NULL AS SIGNED ) * - - 62 - ( 77 ) 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-5458
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 62 - ( 77 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL - + COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL - + COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT col1 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT MIN( + col1 ) + - - 96 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-5461
SELECT MIN ( + col1 ) + - - 96 FROM tab1
----
101

query I rowsort
SELECT DISTINCT 59 + - + col1 * + col2 FROM tab1
----
-1285
-236
-3137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5463
SELECT - COUNT( * ) DIV - MIN( 41 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5463
SELECT - COUNT ( * ) / - MIN ( 41 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 WHERE NOT col0 * + 25 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT col0 * + 25 IS NOT NULL
----
0

query II rowsort
SELECT + col2, + ( + 31 ) FROM tab1
----
59
31
68
31
96
31

query I rowsort
SELECT DISTINCT 45 * + + ( + - col1 ) AS col2 FROM tab0
----
-3645
-45
-945

onlyif mysql # aggregate syntax: 
query II rowsort label-5467
SELECT ALL - 6 * + - COUNT( * ) AS col1, 37 FROM tab1 AS cor0
----
18
37

skipif mysql # not compatible
query II rowsort label-5467
SELECT ALL - 6 * + - COUNT ( * ) AS col1, 37 FROM tab1 AS cor0
----
18
37

query I rowsort
SELECT ALL col2 * + - 85 FROM tab0 AS cor0
----
-3995
-8415
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT DISTINCT + + COUNT( * ) * + + 4 AS col2 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT + + COUNT ( * ) * + + 4 AS col2 FROM tab2 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT ALL + col1 DIV 67 * - 30 DIV + 44 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL + col1 / 67 * - 30 / + 44 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL <= col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5472
SELECT ALL - ( 36 ) + - CAST( NULL AS SIGNED ) + + + col1 AS col2, ( + col0 ) FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5472
SELECT ALL - ( 36 ) + - CAST ( NULL AS INTEGER ) + + + col1 AS col2, ( + col0 ) FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5473
SELECT ALL + - 23, COUNT( * ) - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-23
0

skipif mysql # not compatible
query II rowsort label-5473
SELECT ALL + - 23, COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-23
0

query II rowsort
SELECT ALL + col0, 38 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5475
SELECT + 26 - - - CAST( NULL AS SIGNED ) + - col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5475
SELECT + 26 - - - CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + ( + - col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT ( ( NOT + ( - 90 ) BETWEEN - 76 AND + - 49 + + + col2 ) ) OR + col2 / - + 41 IS NULL
----

query I rowsort
SELECT - col2 * + col2 + - 20 FROM tab1
----
-3501
-4644
-9236

query I rowsort
SELECT ALL 78 + + 21 - - 97 * + 33 + 56 AS col0 FROM tab2
----
3356
3356
3356

onlyif mysql # aggregate syntax: 
query II rowsort label-5480
SELECT DISTINCT COUNT( * ) - + - COUNT( * ) AS col2, + COUNT( * ) FROM tab1 AS cor0
----
6
3

skipif mysql # not compatible
query II rowsort label-5480
SELECT DISTINCT COUNT ( * ) - + - COUNT ( * ) AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
6
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 col1 FROM tab1 AS cor0
----
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-5482
SELECT ALL - - ( col0 ) AS col0, + 53 + - col0 + - col2 DIV - 57 col0 FROM tab2 AS cor0
----
46
7
64
-11
75
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5482
SELECT ALL - - ( col0 ) AS col0, + 53 + - col0 + - col2 / - 57 col0 FROM tab2 AS cor0
----
46
7
64
-11
75
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT + - SUM( col1 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-5483
SELECT + - SUM ( col1 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-585

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 NOT BETWEEN NULL AND + col2 + + + 52
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT col1 DIV - - col0 AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5485
SELECT col1 / - - col0 AS col1 FROM tab0
----
0
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT 0 DIV + - 41 * + + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5486
SELECT 0 / + - 41 * + + col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT COUNT( * ) * - 51 AS col2 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT COUNT ( * ) * - 51 AS col2 FROM tab1
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-5488
SELECT DISTINCT - col1 DIV - + 66 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT - col1 / - + 66 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT - COUNT( * ) + + - SUM( ALL - col0 ) col0 FROM tab0 AS cor0 WHERE NULL >= col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5489
SELECT DISTINCT - COUNT ( * ) + + - SUM ( ALL - col0 ) col0 FROM tab0 AS cor0 WHERE NULL >= col2
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col1, - 53 AS col2 FROM tab1 AS cor0
----
59
-53
68
-53
96
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-5491
SELECT - 14 * - col1 + + ( - 45 ) DIV - 95 * col2, + 89 * - + col2 AS col0 FROM tab2 AS cor0
----
1078
-3560
714
-2047
938
-5162

skipif mysql # not compatible
query II rowsort label-5491
SELECT - 14 * - col1 + + ( - 45 ) / - 95 * col2, + 89 * - + col2 AS col0 FROM tab2 AS cor0
----
1078
-3560
714
-2047
938
-5162

onlyif mysql # DIV for integer division: 
query II rowsort label-5492
SELECT DISTINCT - 70 AS col2, - 28 DIV ( + + col2 ) * - 70 FROM tab0 AS cor0
----
-70
0
-70
140

skipif mysql # not compatible
query II rowsort label-5492
SELECT DISTINCT - 70 AS col2, - 28 / ( + + col2 ) * - 70 FROM tab0 AS cor0
----
-70
0
-70
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 13 ) col0 FROM tab0 AS cor0
----
-13
-13
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5494
SELECT - CAST( + 17 AS SIGNED ) * - 72 * - + COUNT( * ) FROM tab0
----
-3672

skipif mysql # not compatible
query I rowsort label-5494
SELECT - CAST ( + 17 AS INTEGER ) * - 72 * - + COUNT ( * ) FROM tab0
----
-3672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 80 col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT - col0 DIV + 72 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5498
SELECT - col0 / + 72 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5499
SELECT COUNT( * ) DIV MIN( - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT COUNT ( * ) / MIN ( - col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 41 + - + 6 AS col1 FROM tab2 AS cor0
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT DISTINCT - 65 DIV 78 + col1 - - + col2 * + col1 AS col2 FROM tab2
----
1224
3157
3953

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT - 65 / 78 + col1 - - + col2 * + col1 AS col2 FROM tab2
----
1224
3157
3953

query I rowsort
SELECT ALL 55 + + 88 AS col0 FROM tab1
----
143
143
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5503
SELECT DISTINCT COUNT( * ) + - 59 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT COUNT ( * ) + - 59 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT col2 * ( col2 ) + - col2 + + 89 DIV col1 + - + 73 - col2 - - - col2 DIV 59 - + - ( + col0 ) - - col2 * col0 * + - 40 AS col2 FROM tab0
----
-26142
-34702
-374405

skipif mysql # not compatible
query I rowsort label-5504
SELECT col2 * ( col2 ) + - col2 + + 89 / col1 + - + 73 - col2 - - - col2 / 59 - + - ( + col0 ) - - col2 * col0 * + - 40 AS col2 FROM tab0
----
-26142
-34702
-374405

query I rowsort
SELECT ALL + 86 * col2 FROM tab0 AS cor0 WHERE NOT 17 IS NULL
----
4042
8514
860

query II rowsort
SELECT DISTINCT - col2 AS col2, 16 AS col2 FROM tab0 AS cor0
----
-10
16
-47
16
-99
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL - - MIN( DISTINCT + - 27 ) * + SUM( col0 ) + + COUNT( * ) FROM tab1 AS cor0
----
-6126

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL - - MIN ( DISTINCT + - 27 ) * + SUM ( col0 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-6126

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < col2 + - + col0
----

query I rowsort
SELECT ALL - - 86 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 * + col2 * col2 + col2 + + ( 78 ) * col2 * - col0 * 1 col2 FROM tab0
----
-58550
150494
162558

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT DISTINCT - ( - + COUNT( * ) ) - - 0 AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT - ( - + COUNT ( * ) ) - - 0 AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL - col0 - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-138
-192
-225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5513
SELECT - + CAST( NULL AS DECIMAL ) - - 18 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT - + CAST ( NULL AS REAL ) - - 18 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0, col0 * col2 FROM tab0 AS cor0
----
15
705
87
870
97
9603

query I rowsort
SELECT DISTINCT - 30 * + 14 AS col0 FROM tab1
----
-420

query II rowsort
SELECT ALL - col1 * - col0, col2 AS col2 FROM tab0
----
1215
47
1827
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT - 61 DIV + col0 AS col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5517
SELECT - 61 / + col0 AS col0 FROM tab0
----
-4
0
0

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( - col1 * - col0 ) BETWEEN + 19 AND - 18 + - - col2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT ALL 6 DIV + col0 * col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL 6 / + col0 * col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5520
SELECT * FROM tab1 WHERE NOT NULL IN ( - col1 * - col2 * - col2 - col1 * + + 46 + - col0, col1 + - CAST( - 86 AS DECIMAL ), + 27 )
----

skipif mysql # not compatible
query III rowsort label-5520
SELECT * FROM tab1 WHERE NOT NULL IN ( - col1 * - col2 * - col2 - col1 * + + 46 + - col0, col1 + - CAST ( - 86 AS REAL ), + 27 )
----

query I rowsort
SELECT DISTINCT + + 0 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 92 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 1 * col1 / col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5524
SELECT DISTINCT + 57 DIV MIN( DISTINCT + 38 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + 57 / MIN ( DISTINCT + 38 ) FROM tab1
----
1

query I rowsort
SELECT + 98 * - col2 AS col1 FROM tab1
----
-5782
-6664
-9408

query I rowsort
SELECT + 42 * + - 81 AS col0 FROM tab2 AS cor0
----
-3402
-3402
-3402

query I rowsort
SELECT ALL AVG ( ALL + - 68 ) AS col0 FROM tab2 cor0 WHERE - col0 IS NULL
----
NULL

query I rowsort
SELECT col1 + + 44 FROM tab2 AS cor0
----
111
121
95

query I rowsort
SELECT DISTINCT - + 29 AS col1 FROM tab0 cor0
----
-29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 = + 20
----

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT 77 NOT BETWEEN NULL AND + col0 * + col0 + 86 / - ( - + col0 ) * col1
----

query II rowsort
SELECT ALL + - col0 * + col2 * - - col1, - col2 AS col2 FROM tab2 AS cor0
----
-197120
-40
-291450
-58
-53958
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5533
SELECT AVG ( - CAST( NULL AS SIGNED ) ) + + + 27 * - 3 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) + + + 27 * - 3 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT MAX( + 59 ) + + 57 AS col1 FROM tab2
----
116

skipif mysql # not compatible
query I rowsort label-5534
SELECT MAX ( + 59 ) + + 57 AS col1 FROM tab2
----
116

query I rowsort
SELECT + col1 * 95 FROM tab1
----
1330
4465
475

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT + ( - COUNT( * ) ) FROM tab1, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5536
SELECT + ( - COUNT ( * ) ) FROM tab1, tab0 cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5537
SELECT - - CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5537
SELECT - - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
13

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( ( col2 ) ) + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * 16 + col0 + + col2 FROM tab2 AS cor0
----
-1128
-747
-939

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5541
SELECT CAST( NULL AS SIGNED ) + - 69 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT CAST ( NULL AS INTEGER ) + - 69 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + col2 + - - 55 + + - 54 * - col2 * + col0 NOT IN ( - col2 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 12 col1 FROM tab1
----
39
73
79

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-57

query I rowsort
SELECT ALL - + col2 - + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-198
-20
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 col0 FROM tab0 AS cor0 WHERE 4 * - 76 * 10 IS NOT NULL
----
57
57
57

query I rowsort
SELECT + 31 AS col2 FROM tab0 cor0 WHERE NOT - col1 / + col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - 54 * + + col2 * + 35 AS col2 FROM tab0 AS cor0
----
15
-88830
87
-18900
97
-187110

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT 7 * + + MIN( DISTINCT + col0 ) FROM tab1 cor0
----
357

skipif mysql # not compatible
query I rowsort label-5549
SELECT 7 * + + MIN ( DISTINCT + col0 ) FROM tab1 cor0
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT - COUNT( - 14 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5550
SELECT - COUNT ( - 14 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT + - col1 * col1 * - 5 - + - ( - + col0 ) + + - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT + - col1 * col1 * - 5 - + - ( - + col0 ) + + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5552
SELECT ALL 70 DIV + + COUNT( * ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL 70 / + + COUNT ( * ) FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT ALL - MIN( DISTINCT 25 ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL - MIN ( DISTINCT 25 ) FROM tab0
----
-25

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + - 29 IS NOT NULL
----

query II rowsort
SELECT ALL col1 * + col0 * - + 42 * + - ( - 19 ) * - col0 AS col0, - col2 FROM tab0
----
126841302
-10
14543550
-47
7508382
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5556
SELECT + COUNT( * ) DIV 1 AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5556
SELECT + COUNT ( * ) / 1 AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL 79 * + MIN( 17 ) col1 FROM tab2 AS cor0
----
1343

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5557
SELECT ALL 79 * + MIN ( 17 ) col1 FROM tab2 AS cor0
----
1343

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 22 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5559
SELECT 11 + - - COUNT( DISTINCT - col0 ) DIV 75 AS col0 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5559
SELECT 11 + - - COUNT ( DISTINCT - col0 ) / 75 AS col0 FROM tab0 AS cor0
----
11

query I rowsort
SELECT DISTINCT - 78 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-5561
SELECT DISTINCT - MIN( + col0 ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-5561
SELECT DISTINCT - MIN ( + col0 ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
-15
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5562
SELECT MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 cor0 WHERE 73 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT + - 70 DIV col2 * - col2 AS col1 FROM tab0 cor0
----
0
47
70

skipif mysql # not compatible
query I rowsort label-5564
SELECT + - 70 / col2 * - col2 AS col1 FROM tab0 cor0
----
0
47
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT DISTINCT MAX( col1 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT MAX ( col1 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5567
SELECT * FROM tab2 WHERE + 53 BETWEEN + CAST( NULL AS SIGNED ) AND - col0 + + + col2
----

skipif mysql # not compatible
query III rowsort label-5567
SELECT * FROM tab2 WHERE + 53 BETWEEN + CAST ( NULL AS INTEGER ) AND - col0 + + + col2
----

query I rowsort
SELECT ALL - col1 * - col1 * - 30 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5569
SELECT ALL - CAST( NULL AS DECIMAL ) + - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - CAST ( NULL AS REAL ) + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 + 48 - - + col2 + + 52 AS col1 FROM tab2
----
146
180
216

query I rowsort
SELECT ALL - 85 * - col1 AS col0 FROM tab1
----
1190
3995
425

query I rowsort
SELECT + col2 + + - 2 * + - col2 FROM tab2
----
120
174
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5573
SELECT + CAST( + ( - COUNT( * ) ) AS SIGNED ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5573
SELECT + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) FROM tab0 cor0
----
-3

query I rowsort
SELECT + 96 * - ( - 91 ) AS col0 FROM tab0 AS cor0
----
8736
8736
8736

query II rowsort
SELECT - col0 AS col0, col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * - + col1 IS NOT NULL
----

query I rowsort
SELECT - 30 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL MIN( 75 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL MIN ( 75 ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5578
SELECT CAST( - 19 AS SIGNED ) * - col2 + + col1 + col1 - + 29 * - 14 * + 79 FROM tab1
----
33205
33460
33926

skipif mysql # not compatible
query I rowsort label-5578
SELECT CAST ( - 19 AS INTEGER ) * - col2 + + col1 + col1 - + 29 * - 14 * + 79 FROM tab1
----
33205
33460
33926

query II rowsort
SELECT col0, col0 * + col1 + - col2 FROM tab2
----
46
2323
64
4888
75
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT COUNT( - - col2 ) * 70 + - 10 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 7 ) < ( NULL )
----
-10

skipif mysql # not compatible
query I rowsort label-5580
SELECT COUNT ( - - col2 ) * 70 + - 10 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 7 ) < ( NULL )
----
-10

query I rowsort
SELECT ALL col2 * 67 FROM tab2
----
1541
2680
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT COUNT( DISTINCT + + col0 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5582
SELECT DISTINCT COUNT ( DISTINCT + + col0 ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT DISTINCT + CAST( + ( + ( col1 ) ) AS SIGNED ) + + - 54 AS col0 FROM tab1
----
-40
-49
-7

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT + CAST ( + ( + ( col1 ) ) AS INTEGER ) + + - 54 AS col0 FROM tab1
----
-40
-49
-7

query I rowsort
SELECT 97 * + ( - 44 ) FROM tab1
----
-4268
-4268
-4268

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT - MIN( DISTINCT + col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5585
SELECT - MIN ( DISTINCT + col0 ) AS col2 FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5586
SELECT + ( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT + ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + - 74 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + - 63 FROM tab0 AS cor0
----
-144
-64
-84

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2, col2 * + - 48 )
----

query I rowsort
SELECT ALL - col1 + + - 64 FROM tab0 cor0
----
-145
-65
-85

query I rowsort
SELECT + + col2 + - col0 + + 34 + - - col2 + + col2 AS col1 FROM tab0 AS cor0
----
-23
160
234

query I rowsort
SELECT col1 * + col2 + + + col0 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT DISTINCT - col1 * col0 * 8 + - col0 AS col1 FROM tab0
----
-14703
-873
-9735

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT + SUM( - 4 ) * ( - 95 ) FROM tab2
----
1140

skipif mysql # not compatible
query I rowsort label-5594
SELECT + SUM ( - 4 ) * ( - 95 ) FROM tab2
----
1140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5595
SELECT - ( - 47 ) DIV COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-5595
SELECT - ( - 47 ) / COUNT ( * ) FROM tab2
----
15

query I rowsort
SELECT 35 * - 47 AS col0 FROM tab1
----
-1645
-1645
-1645

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT ALL ( - ( + COUNT( * ) ) ) - - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL ( - ( + COUNT ( * ) ) ) - - COUNT ( * ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT DISTINCT col1 DIV - - col0 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT col1 / - - col0 AS col2 FROM tab2 AS cor0
----
0
1

query II rowsort
SELECT col2 + 45 AS col1, - col2 + - col1 AS col0 FROM tab0 cor0
----
144
-100
55
-31
92
-128

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND col2 * - - 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5601
SELECT + 99 AS col0, CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
99
10
99
47
99
99

skipif mysql # not compatible
query II rowsort label-5601
SELECT + 99 AS col0, CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
99
10
99
47
99
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5602
SELECT - ( - SUM( 36 ) ) AS col2, 20 FROM tab0 AS cor0
----
108
20

skipif mysql # not compatible
query II rowsort label-5602
SELECT - ( - SUM ( 36 ) ) AS col2, 20 FROM tab0 AS cor0
----
108
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT ALL + COUNT( * ) * - 11 AS col1 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL + COUNT ( * ) * - 11 AS col1 FROM tab0 AS cor0
----
-33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 93 / + col1 + col2 * - col0 < 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 48 FROM tab1 WHERE NOT ( - - col1 ) >= - 44 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT ALL + MIN( + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL + MIN ( + col1 ) AS col2 FROM tab1
----
5

query I rowsort
SELECT DISTINCT ( - + 67 ) * - + 15 + - col0 AS col2 FROM tab0
----
908
918
990

query I rowsort
SELECT ALL - col2 * - col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT DISTINCT + + col0 * + + 87 * - + 90 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT + + col0 * + + 87 * - + 90 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col2 * col2 + + + col0 FROM tab0 AS cor0
----
187
2224
9898

query I rowsort
SELECT + 96 + + - col1 FROM tab0 AS cor0
----
15
75
95

query I rowsort
SELECT ALL col1 * - col1 * + col2 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT ALL 79 + - col1 AS col1 FROM tab2 cor0
----
12
2
28

query I rowsort
SELECT - col0 * + - col0 * - - 11 + - col2 * col2 FROM tab2 AS cor0
----
22747
43456
58511

query I rowsort
SELECT DISTINCT + ( col0 ) * + col2 - - 52 FROM tab1 AS cor0
----
4948
5067
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT MIN( DISTINCT + 81 ) AS col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5616
SELECT MIN ( DISTINCT + 81 ) AS col2 FROM tab1 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL 32 / + CAST( NULL AS SIGNED ) * + 85 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL 32 / + CAST ( NULL AS INTEGER ) * + 85 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL - - MAX( ALL + 52 ) AS col1 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I ro