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 rowsort label-5618
SELECT ALL - - MAX ( ALL + 52 ) AS col1 FROM tab2 AS cor0
----
52

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

query II rowsort
SELECT ALL - col2 + - - col1 * - + col1 * col2 + col0 * col1 AS col1, ( - col1 ) * col0 AS col0 FROM tab2
----
-232272
-4928
-255395
-5025
-57500
-2346

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 + + + col0 + - + 86 * + + col2 col1 FROM tab1
----
-4975
-5743
-8191

query III rowsort
SELECT * FROM tab2 WHERE + 56 * + 7 * - col0 <= 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 15 FROM tab0 WHERE ( NOT - col0 IS NOT NULL )
----

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

skipif mysql # not compatible
query I rowsort label-5624
SELECT - MIN ( ALL - - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + + 86 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
86

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

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

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

query I rowsort
SELECT col0 * - 97 - - - col1 AS col1 FROM tab2 AS cor0
----
-4513
-6285
-7342

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT COUNT( * ) + + - SUM( DISTINCT + col2 ) AS col0 FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-5630
SELECT COUNT ( * ) + + - SUM ( DISTINCT + col2 ) AS col0 FROM tab1
----
-220

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5631
SELECT ALL col2 * 94 DIV CAST( col2 AS SIGNED ) col0 FROM tab0
----
94
94
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5631
SELECT ALL col2 * 94 / CAST ( col2 AS INTEGER ) col0 FROM tab0
----
94
94
94

query II rowsort
SELECT col0, + 66 + - + col2 FROM tab2
----
46
43
64
26
75
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5633
SELECT col2 DIV - 90 col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5633
SELECT col2 / - 90 col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL ( + col1 ) * col2 - + + col2 + - col1 * - + 54 * col2 * col0 + col1 FROM tab1 AS cor0
----
1354291
15708319
3702638

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5636
SELECT + + 65 + 7 AS col1, - COUNT( * ) + + - COUNT( ALL - 47 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
72
-18

skipif mysql # not compatible
query II rowsort label-5636
SELECT + + 65 + 7 AS col1, - COUNT ( * ) + + - COUNT ( ALL - 47 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
72
-18

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

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

query I rowsort
SELECT col0 + + - col0 FROM tab0 cor0
----
0
0
0

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5643
SELECT + COUNT ( * ) / - 43 AS col2 FROM tab0
----
0

query II rowsort
SELECT 42 * - col2 * - col1 AS col2, - col1 AS col2 FROM tab0
----
159894
-81
4158
-1
8820
-21

query I rowsort
SELECT DISTINCT + col0 + 38 * 75 + col0 FROM tab1
----
2952
3020
3032

query I rowsort
SELECT col2 - - - 71 AS col0 FROM tab0
----
-24
-61
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5647
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE - + col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE - + col0 <> NULL
----

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

query II rowsort
SELECT ALL - 97, + col2 - - col0 AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 * 77 AS col0, + col2 + + col0 AS col1 FROM tab1
----
1078
147
3619
159
385
144

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT DISTINCT - col1 DIV + + ( + col2 ) AS col0 FROM tab1
----
0

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

query I rowsort
SELECT 21 * - col2 AS col1 FROM tab0
----
-2079
-210
-987

onlyif mysql # DIV for integer division: 
query I rowsort label-5653
SELECT ALL - - col1 DIV + 99 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL - - col1 / + 99 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 78 + - col2 = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5656
SELECT + - CAST( NULL AS SIGNED ), - 45 * - 32 col1 FROM tab2 AS cor0
----
NULL
1440
NULL
1440
NULL
1440

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5656
SELECT + - CAST ( NULL AS INTEGER ), - 45 * - 32 col1 FROM tab2 AS cor0
----
NULL
1440
NULL
1440
NULL
1440

query I rowsort
SELECT DISTINCT - - col0 + 29 FROM tab2 AS cor0
----
104
75
93

query I rowsort
SELECT + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 = NULL
----

query I rowsort
SELECT ALL + + col0 + - - col0 AS col2 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT ALL SUM( + col2 ) * - 3 FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL SUM ( + col2 ) * - 3 FROM tab2 AS cor0
----
-363

query I rowsort
SELECT + col0 * - ( - 77 ) AS col1 FROM tab1
----
3927
6545
7007

query III rowsort
SELECT DISTINCT 69 + - 71 AS col0, + col1, 4 AS col2 FROM tab2
----
9 values hashing to e516d411c864d2120ca56e5c8f47307b

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5663
SELECT ALL - ( - COUNT ( * ) ) + - COUNT ( * ) col0 FROM tab1
----
0

query I rowsort
SELECT ALL + 30 * col0 AS col1 FROM tab0 AS cor0
----
2610
2910
450

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5665
SELECT - - col1 + + CAST( - - col1 AS SIGNED ) + - 49 DIV col1 AS col2, col0 AS col0 FROM tab1 AS cor0
----
1
85
25
51
93
91

skipif mysql # not compatible
query II rowsort label-5665
SELECT - - col1 + + CAST ( - - col1 AS INTEGER ) + - 49 / col1 AS col2, col0 AS col0 FROM tab1 AS cor0
----
1
85
25
51
93
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT + col0 DIV + 34 + + + col2 AS col2 FROM tab1 AS cor0
----
61
70
97

skipif mysql # not compatible
query I rowsort label-5667
SELECT + col0 / + 34 + + + col2 AS col2 FROM tab1 AS cor0
----
61
70
97

query II rowsort
SELECT - + ( 5 ) + + 7 + - ( col0 ) * col1 * + 99 AS col0, ( - - col2 ) + 67 FROM tab2 cor0
----
-232252
90
-487870
107
-497473
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT + COUNT( * ) + + COUNT( * ) * 88 AS col1 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-5669
SELECT + COUNT ( * ) + + COUNT ( * ) * 88 AS col1 FROM tab0 AS cor0
----
267

query I rowsort
SELECT 52 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT - col1 - + 2 - - col0 AS col2 FROM tab1 AS cor0
----
35
42
78

query I rowsort
SELECT - 12 - - col0 AS col1 FROM tab2 cor0
----
34
52
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5673
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 88 IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 88 IS NOT NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT - col0 * 61 + - col0 + + col2, 51 AS col0 FROM tab2 AS cor0
----
-2829
51
-3928
51
-4592
51

query I rowsort
SELECT 4 - - - 20 AS col1 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT col1 - + + col1 - col2 * + 86 FROM tab1 AS cor0
----
-5074
-5848
-8256

query I rowsort
SELECT + col0 - + col0 * col1 + - - 66 AS col0 FROM tab2 AS cor0
----
-2234
-4798
-4884

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT DISTINCT SUM( - 13 ) AS col0 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT SUM ( - 13 ) AS col0 FROM tab1 AS cor0
----
-39

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

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

query I rowsort
SELECT ( - 20 ) * + 49 FROM tab2
----
-980
-980
-980

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

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

query I rowsort
SELECT ALL - 18 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-18
-18
-18

query I rowsort
SELECT DISTINCT + 48 AS col2 FROM tab2 AS cor0 WHERE NULL = col1
----

query I rowsort
SELECT 90 * + + 71 AS col1 FROM tab0
----
6390
6390
6390

query I rowsort
SELECT + 12 * 10 * 72 AS col2 FROM tab2 AS cor0
----
8640
8640
8640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 col2, ( col1 ) + + - col2 FROM tab2 AS cor0
----
51
28
67
9
77
37

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

query I rowsort
SELECT col0 * + + 45 * + + col1 * + - ( col2 ) AS col0 FROM tab2 AS cor0
----
-13115250
-2428110
-8870400

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 41 IN ( + col2 + 96 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT - MAX ( 23 ) FROM tab2 AS cor0
----
-23

query II rowsort
SELECT 3 + - - col1 * + col0 * + - col2 * - 68 AS col0, - col0 AS col1 FROM tab2 AS cor0
----
13404163
-64
19818603
-75
3669147
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, 25 + - + 78 col0 FROM tab0 AS cor0 WHERE col0 * + 32 NOT BETWEEN NULL AND + col1
----
-15
-53
-87
-53
-97
-53

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - 63 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5696
SELECT ALL COUNT( * ) * - 32 + + COUNT( * ) - - MAX( - 33 ) * - 30 - + 96 DIV - + COUNT( * ) FROM tab2
----
929

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL COUNT ( * ) * - 32 + + COUNT ( * ) - - MAX ( - 33 ) * - 30 - + 96 / - + COUNT ( * ) FROM tab2
----
929

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

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL MIN ( ALL - 1 ) AS col0 FROM tab0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL + COUNT( * ) * - SUM( DISTINCT col0 ) + - + COUNT( * ) FROM tab0
----
-600

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL + COUNT ( * ) * - SUM ( DISTINCT col0 ) + - + COUNT ( * ) FROM tab0
----
-600

query II rowsort
SELECT + 80, 94 AS col2 FROM tab1
----
80
94
80
94
80
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5701
SELECT + COUNT( * ), COUNT( * ) AS col0 FROM tab2 WHERE + col2 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5701
SELECT + COUNT ( * ), COUNT ( * ) AS col0 FROM tab2 WHERE + col2 IS NULL
----
0
0

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + 77 IN ( + col0 )
----
15
81
47
97
1
99

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

query I rowsort
SELECT ALL + + col2 + - 98 + - 0 AS col0 FROM tab2 WHERE NOT + 0 <> - - 23 + + col2 * 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT COUNT( * ) + - 40 * COUNT( * ) AS col1 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-5706
SELECT COUNT ( * ) + - 40 * COUNT ( * ) AS col1 FROM tab2
----
-117

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 3 <> + col2
----

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

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

query II rowsort
SELECT DISTINCT col1 AS col0, col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT ALL col2 - + col2 DIV + col2 col0 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5712
SELECT ALL col2 - + col2 / + col2 col0 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5713
SELECT - col1 FROM tab1 AS cor0 WHERE NOT + 60 / 72 - - CAST( - + 53 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5713
SELECT - col1 FROM tab1 AS cor0 WHERE NOT + 60 / 72 - - CAST ( - + 53 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * ( - + 55 ) * - col1 FROM tab0
----
100485
5335
66825

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

query II rowsort
SELECT DISTINCT - 83 AS col0, - col1 AS col1 FROM tab2
----
-83
-51
-83
-67
-83
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT DISTINCT SUM( col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT SUM ( col0 ) FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT MAX( - + 88 ) * - ( + COUNT( * ) ) - COUNT( * ), + COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
783
9

skipif mysql # not compatible
query II rowsort label-5718
SELECT MAX ( - + 88 ) * - ( + COUNT ( * ) ) - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
783
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5719
SELECT ALL - COUNT ( * ) col0 FROM tab1, tab0 AS cor0
----
-9

query I rowsort
SELECT ALL + - 93 * + 11 AS col1 FROM tab2 AS cor0
----
-1023
-1023
-1023

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 76 + col2 + - 38 - - + col0 AND NULL
----

query I rowsort
SELECT ( 81 ) AS col0 FROM tab0
----
81
81
81

query I rowsort
SELECT 39 * col0 + col2 FROM tab2
----
1817
2536
2983

onlyif mysql # DIV for integer division: 
query I rowsort label-5724
SELECT DISTINCT col1 + - col0 DIV col2 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT col1 + - col0 / col2 FROM tab2
----
49
66
76

query I rowsort
SELECT - col2 * - 2 FROM tab0
----
198
20
94

query I rowsort
SELECT col1 FROM tab1 WHERE + 5 * col1 IS NULL
----

query I rowsort
SELECT - 81 + col0 * 67 AS col2 FROM tab0
----
5748
6418
924

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL MIN( ALL 95 ) * - COUNT( * ) col0 FROM tab1
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5730
SELECT ALL MIN ( ALL 95 ) * - COUNT ( * ) col0 FROM tab1
----
-285

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE ( NULL ) IN ( 88 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT ALL col1 * + col0 + + col0 DIV + 37 AS col1 FROM tab2
----
2347
4929
5027

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL col1 * + col0 + + col0 / + 37 AS col1 FROM tab2
----
2347
4929
5027

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) = ( col0 )
----

query I rowsort
SELECT DISTINCT + 80 * 16 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
1280

query I rowsort
SELECT DISTINCT - 26 * + 52 AS col0 FROM tab1
----
-1352

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

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

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

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

query I rowsort
SELECT col0 FROM tab1 WHERE ( col0 ) * - 67 + col0 / - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT COUNT( DISTINCT 66 ) FROM tab1 WHERE NOT 29 / - 96 > col1
----
1

skipif mysql # not compatible
query I rowsort label-5740
SELECT COUNT ( DISTINCT 66 ) FROM tab1 WHERE NOT 29 / - 96 > col1
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 * + 34 ) = 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT - COUNT ( col1 ) * COUNT ( * ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT ALL + 3 * 39 - 53 FROM tab0
----
64
64
64

query I rowsort
SELECT ALL 65 * - col1 - - col2 FROM tab0
----
-1355
-5218
34

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( + 57 * - col1 )
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * col1 IS NULL
----
-46
-64
-75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5748
SELECT DISTINCT 76 DIV col0 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT 76 / col0 AS col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL - 90 FROM tab2 AS cor0 WHERE NULL BETWEEN 29 / + col2 AND NULL
----

query I rowsort
SELECT ALL col1 + - 58 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
-11
-44
-53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) < ( + col1 * - 33 + + col1 * + col1 )
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT COUNT( * ) * + COUNT( * ) + + ( 45 ) col0 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5752
SELECT COUNT ( * ) * + COUNT ( * ) + + ( 45 ) col0 FROM tab0 AS cor0
----
54

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

query I rowsort
SELECT - 40 - col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT DISTINCT + 85 * CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab0 cor0 WHERE NOT + 33 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT + 85 * CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab0 cor0 WHERE NOT + 33 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT ALL col1 DIV + 93 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL col1 / + 93 FROM tab2 cor0
----
0
0
0

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

query I rowsort
SELECT ALL 64 AS col1 FROM tab0 AS cor0 WHERE 91 * col0 IS NULL
----

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

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

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

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

skipif mysql # not compatible
query III rowsort label-5764
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT IN ( - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab1 AS cor0 WHERE ( - 51 ) NOT IN ( 40 + - col1 )
----
34

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

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

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

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

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

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

query I rowsort
SELECT - 70 * - + col2 AS col1 FROM tab0
----
3290
6930
700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5771
SELECT + MIN( ALL - + CAST( + CAST( col2 AS SIGNED ) AS SIGNED ) ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT + MIN ( ALL - + CAST ( + CAST ( col2 AS INTEGER ) AS INTEGER ) ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL - SUM( ALL - 7 ) FROM tab2 WHERE NOT 20 * 6 + - 98 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL - SUM ( ALL - 7 ) FROM tab2 WHERE NOT 20 * 6 + - 98 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL - 44 * + - COUNT( * ) AS col0 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL - 44 * + - COUNT ( * ) AS col0 FROM tab1
----
132

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 + + 86 + + - 48 + col0 FROM tab1
----
103
128
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5780
SELECT CAST( MIN( DISTINCT - 67 ) AS SIGNED ) FROM tab2 AS cor0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT CAST ( MIN ( DISTINCT - 67 ) AS INTEGER ) FROM tab2 AS cor0 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - + ( col1 ) * + 89 FROM tab1 AS cor0
----
-1246
-4183
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT - MAX( ALL - + col1 ) * - COUNT( * ) + 71 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5782
SELECT - MAX ( ALL - + col1 ) * - COUNT ( * ) + 71 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT DISTINCT + - 91 * + - col2 + - col2 AS col2 FROM tab0 AS cor0
----
4230
8910
900

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

query I rowsort
SELECT ALL 90 * - ( - col2 ) * + 26 + ( col0 ) AS col1 FROM tab0
----
109995
231757
23487

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5787
SELECT ( ( - - CAST( + 40 AS SIGNED ) ) ) DIV 56 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5787
SELECT ( ( - - CAST ( + 40 AS INTEGER ) ) ) / 56 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT SUM( DISTINCT 27 ) col1 FROM tab2
----
27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5790
SELECT CAST( MIN( DISTINCT + col1 ) AS SIGNED ) FROM tab0
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5791
SELECT DISTINCT 48 * - + col1 + + 77 + - col2 DIV + col1 FROM tab2
----
-2371
-3139
-3619

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT 48 * - + col1 + + 77 + - col2 / + col1 FROM tab2
----
-2371
-3139
-3619

onlyif mysql # DIV for integer division: 
query II rowsort label-5792
SELECT ALL + 44 DIV - 46, 73 + 9 + col2 AS col2 FROM tab1
----
0
141
0
150
0
178

skipif mysql # not compatible
query II rowsort label-5792
SELECT ALL + 44 / - 46, 73 + 9 + col2 AS col2 FROM tab1
----
0
141
0
150
0
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5793
SELECT ALL CAST( + 88 AS SIGNED ) - - COUNT( ALL - col1 ) + + 55 * - 13 FROM tab1
----
-624

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL CAST ( + 88 AS INTEGER ) - - COUNT ( ALL - col1 ) + + 55 * - 13 FROM tab1
----
-624

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5794
SELECT col0 AS col0, CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + 8 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5794
SELECT col0 AS col0, CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + 8 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
NULL
87
NULL
97
NULL

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

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

query I rowsort
SELECT col1 + col2 * + + col0 * - + col0 FROM tab1
----
-249682
-426270
-563061

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 96 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5798
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 96 + - col2 )
----
0

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

query I rowsort
SELECT + col2 * 83 AS col2 FROM tab2 cor0 WHERE NOT 53 + + col0 IN ( - + col2 + col2 )
----
1909
3320
4814

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5802
SELECT 59, 3 + COUNT( * ) col2 FROM tab0
----
59
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5802
SELECT 59, 3 + COUNT ( * ) col2 FROM tab0
----
59
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5803
SELECT - SUM( ALL col1 ) DIV + + MIN( DISTINCT + col0 ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-5803
SELECT - SUM ( ALL col1 ) / + + MIN ( DISTINCT + col0 ) FROM tab0
----
-6

query I rowsort
SELECT DISTINCT 32 * + 69 FROM tab0
----
2208

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5806
SELECT SUM( ALL 92 ) * + + CAST( NULL AS SIGNED ) * - + CAST( - 7 AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT SUM ( ALL 92 ) * + + CAST ( NULL AS INTEGER ) * - + CAST ( - 7 AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5807
SELECT ALL COUNT( DISTINCT - - col2 ) DIV + 47 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL COUNT ( DISTINCT - - col2 ) / + 47 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5808
SELECT ALL - SUM( DISTINCT - - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL - SUM ( DISTINCT - - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-195

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT DISTINCT + COUNT( * ) + - 78 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT + COUNT ( * ) + - 78 FROM tab2
----
-75

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

skipif mysql # not compatible
query I rowsort label-5813
SELECT + - CAST ( + - 32 AS INTEGER ) * + col1 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 72 * - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-1080
-6264
-6984

query II rowsort
SELECT - - 22 * col1, ( col1 ) FROM tab0 AS cor0
----
1782
81
22
1
462
21

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

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

query I rowsort
SELECT + col0 * 59 FROM tab2 AS cor0
----
2714
3776
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT DISTINCT COUNT( * ) + + COUNT( * ) - + - 31 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN col1 AND NULL
----
31

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) - + - 31 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN col1 AND NULL
----
31

query I rowsort
SELECT DISTINCT + col2 + - 45 * col0 - + 68 AS col0 FROM tab0 AS cor0
----
-3973
-4334
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT - 84 - - 85 - - - COUNT( * ) col1 FROM tab1
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5820
SELECT - 84 - - 85 - - - COUNT ( * ) col1 FROM tab1
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5821
SELECT 8 + - 98 - - - ( - col2 ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5821
SELECT 8 + - 98 - - - ( - col2 ) * - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT 87 + + + 29 FROM tab2
----
116
116
116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT 95 + - + 9 + - MIN( col0 ) - - 89 AS col2 FROM tab0
----
160

skipif mysql # not compatible
query I rowsort label-5826
SELECT 95 + - + 9 + - MIN ( col0 ) - - 89 AS col2 FROM tab0
----
160

query I rowsort
SELECT + 91 + - ( 94 ) * - + col2 * - + col1 FROM tab1 AS cor0
----
-126245
-27639
-300333

query I rowsort
SELECT - ( + col2 ) * - col0 + + col0 + col1 FROM tab0 AS cor0
----
801
9701
978

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT - COUNT( * ) * + 53 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-477

skipif mysql # not compatible
query I rowsort label-5829
SELECT - COUNT ( * ) * + 53 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-477

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - + 65 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 49 * - + 82 + - 21 FROM tab1 AS cor0
----
3997
3997
3997

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

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

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

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

query I rowsort
SELECT DISTINCT 17 * + col0 FROM tab1 AS cor0
----
1445
1547
867

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + - col1 - - 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - 39 AS col2 FROM tab2
----
23
-39
40
-39
58
-39

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

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

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

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

skipif mysql # not compatible
query II rowsort label-5842
SELECT - COUNT ( * ) AS col0, - CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab1
----
-3
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5845
SELECT DISTINCT - 43 DIV - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT - 43 / - col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 * - col0 * + + col2 * - col1 * + 62 AS col2 FROM tab0 AS cor0
----
11327400
166403970
58943214

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

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

query I rowsort
SELECT 72 + + 13 AS col2 FROM tab0
----
85
85
85

query II rowsort
SELECT DISTINCT - col0, col2 + 88 AS col0 FROM tab2
----
-46
111
-64
128
-75
146

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5850
SELECT 81 + + 92 - + + col2 + + CAST( NULL AS DECIMAL ) * + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5850
SELECT 81 + + 92 - + + col2 + + CAST ( NULL AS REAL ) * + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT ALL + col1 * 14 FROM tab0
----
1134
14
294

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 BETWEEN + - col0 AND - ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5855
SELECT - ( + CAST( 24 AS SIGNED ) ) * + COUNT( * ) * - + 13 + - - 6 AS col2, COUNT( * ) * - COUNT( * ) FROM tab1, tab1 AS cor0
----
2814
-81

skipif mysql # not compatible
query II rowsort label-5855
SELECT - ( + CAST ( 24 AS INTEGER ) ) * + COUNT ( * ) * - + 13 + - - 6 AS col2, COUNT ( * ) * - COUNT ( * ) FROM tab1, tab1 AS cor0
----
2814
-81

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT - - COUNT( * ) DIV + COUNT( - col0 ) - 33 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5857
SELECT - - COUNT ( * ) / + COUNT ( - col0 ) - 33 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT - - 5 * + col0 AS col1 FROM tab2 cor0
----
230
320
375

query I rowsort
SELECT DISTINCT - + 40 AS col2 FROM tab2 cor0
----
-40

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

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

query I rowsort
SELECT DISTINCT col1 * + + 74 FROM tab1
----
1036
3478
370

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL + 99 * - SUM( col0 ) FROM tab0
----
-19701

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL + 99 * - SUM ( col0 ) FROM tab0
----
-19701

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, + col2 + - 9 * - - col2 col1 FROM tab1 AS cor0
----
-51
-768
-85
-472
-91
-544

query I rowsort
SELECT col0 * + ( - + 84 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( + 42 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5868
SELECT ALL + col2 DIV - - col1 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL + col2 / - - col1 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT ALL + col1 DIV + - col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL + col1 / + - col1 FROM tab0
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT + MAX( + col2 ) * - 89 AS col0 FROM tab1
----
-8544

skipif mysql # not compatible
query I rowsort label-5871
SELECT + MAX ( + col2 ) * - 89 AS col0 FROM tab1
----
-8544

onlyif mysql # aggregate syntax: 
query II rowsort label-5872
SELECT SUM( ALL + col0 ) col1, 93 FROM tab2
----
185
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5872
SELECT SUM ( ALL + col0 ) col1, 93 FROM tab2
----
185
93

onlyif mysql # DIV for integer division: 
query II rowsort label-5873
SELECT DISTINCT col1 DIV + col1 - col1 + + col1 * col2 AS col1, - 1 FROM tab1 WHERE NULL IS NULL
----
1331
-1
291
-1
3150
-1

skipif mysql # not compatible
query II rowsort label-5873
SELECT DISTINCT col1 / + col1 - col1 + + col1 * col2 AS col1, - 1 FROM tab1 WHERE NULL IS NULL
----
1331
-1
291
-1
3150
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5874
SELECT - + MAX( ALL col2 ) + - 10 + - 59 DIV + 48 FROM tab1 WHERE NOT - 47 IS NULL
----
-107

skipif mysql # not compatible
query I rowsort label-5874
SELECT - + MAX ( ALL col2 ) + - 10 + - 59 / + 48 FROM tab1 WHERE NOT - 47 IS NULL
----
-107

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

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

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

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

query II rowsort
SELECT - col1 + + 94 AS col2, col0 AS col2 FROM tab1 cor0
----
47
91
80
51
89
85

query I rowsort
SELECT + col1 + + + 93 * col2 FROM tab0 AS cor0
----
4452
9208
951

query II rowsort
SELECT col1 + + col1 AS col2, col1 + + col1 AS col0 FROM tab2 AS cor0
----
102
102
134
134
154
154

query II rowsort
SELECT ALL col1 * col1, col1 AS col2 FROM tab2 AS cor0
----
2601
51
4489
67
5929
77

query II rowsort
SELECT DISTINCT - + col0 + - col1 AS col1, 91 * - - col2 FROM tab0 AS cor0
----
-108
910
-96
4277
-98
9009

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

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

query I rowsort
SELECT ALL + 72 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT ALL - CAST( - ( col1 ) AS SIGNED ) + col1 col1 FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5884
SELECT ALL - CAST ( - ( col1 ) AS INTEGER ) + col1 col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT + 78 AS col0 FROM tab0 AS cor0 WHERE col1 + + + CAST( NULL AS SIGNED ) = - + col1
----

skipif mysql # not compatible
query I rowsort label-5885
SELECT + 78 AS col0 FROM tab0 AS cor0 WHERE col1 + + + CAST ( NULL AS INTEGER ) = - + col1
----

query I rowsort
SELECT col1 * 75 * + col0 * - col2 FROM tab1 AS cor0
----
-1880625
-21812700
-5140800

query II rowsort
SELECT + + 82 - + col1 + + col1 AS col0, + col1 * col1 FROM tab1 AS cor0
----
82
196
82
2209
82
25

query I rowsort
SELECT + 62 - - col0 + + + col1 FROM tab0 AS cor0
----
158
160
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5889
SELECT + 68 + + COUNT( * ) DIV - COUNT( * ) FROM tab2 cor0 WHERE col2 * 77 DIV - 77 IS NOT NULL
----
67

skipif mysql # not compatible
query I rowsort label-5889
SELECT + 68 + + COUNT ( * ) / - COUNT ( * ) FROM tab2 cor0 WHERE col2 * 77 / - 77 IS NOT NULL
----
67

query I rowsort
SELECT + 67 - + col1 * - - col1 FROM tab0 cor0
----
-374
-6494
66

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

skipif mysql # not compatible
query I rowsort label-5891
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + - 53 AS col2 FROM tab1 AS cor0
----
-56

query I rowsort
SELECT - 72 + + + col2 AS col0 FROM tab2
----
-14
-32
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT DISTINCT col1 DIV col0 + 29 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT col1 / col0 + 29 FROM tab1
----
29

query III rowsort
SELECT * FROM tab1 WHERE - 79 + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - - 96 / ( - - 18 ) / + - 74 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 88 + - col0 AS col1 FROM tab2
----
13
24
42

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5898
SELECT ALL col2 DIV - col1 + - ( 16 ) col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-115
-16
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5898
SELECT ALL col2 / - col1 + - ( 16 ) col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-115
-16
-16

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

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

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE NOT col1 * - - col0 / - col0 < NULL
----

query I rowsort
SELECT 41 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 col1, col0 + - 24 FROM tab2 AS cor0
----
-46
22
-64
40
-75
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5903
SELECT - + COUNT( * ) DIV + + 87 FROM tab2 cor0 WHERE NOT + col1 * + - 26 - - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5903
SELECT - + COUNT ( * ) / + + 87 FROM tab2 cor0 WHERE NOT + col1 * + - 26 - - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT DISTINCT MAX( DISTINCT - - 53 ) col0 FROM tab2
----
53

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

query I rowsort
SELECT ALL 85 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL + 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5907
SELECT + MAX( DISTINCT + CAST( - 58 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5907
SELECT + MAX ( DISTINCT + CAST ( - 58 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5908
SELECT + COUNT( * ) DIV 89 AS col1, 94 - - COUNT( * ) FROM tab0 AS cor0
----
0
97

skipif mysql # not compatible
query II rowsort label-5908
SELECT + COUNT ( * ) / 89 AS col1, 94 - - COUNT ( * ) FROM tab0 AS cor0
----
0
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= 35
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5910
SELECT - - COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 * + col2 * + + CAST( NULL AS DECIMAL ) NOT BETWEEN - + col2 + + col1 + + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5910
SELECT - - COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 * + col2 * + + CAST ( NULL AS REAL ) NOT BETWEEN - + col2 + + col1 + + col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT + 89 * + + col2 FROM tab0 AS cor0
----
4183
8811
890

query I rowsort
SELECT DISTINCT + col2 * - - ( + + col2 ) + + 70 AS col0 FROM tab0 AS cor0
----
170
2279
9871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 * ( - ( + + 49 ) ) + 27 - - 80 col1 FROM tab1 AS cor0
----
-2784

query I rowsort
SELECT DISTINCT + 87 * - 17 AS col2 FROM tab1
----
-1479

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

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

query I rowsort
SELECT ALL 83 + - ( - 2 ) FROM tab0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT - 49 * + COUNT( col2 ) FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-5917
SELECT - 49 * + COUNT ( col2 ) FROM tab0
----
-147

query I rowsort
SELECT + 16 * + + col1 * 56 AS col2 FROM tab0
----
18816
72576
896

query I rowsort
SELECT ALL 64 * - - ( + 18 ) AS col2 FROM tab0
----
1152
1152
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5920
SELECT SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5921
SELECT + 3 * - CAST( NULL AS SIGNED ) + + + 43, col0 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
141
NULL
142
NULL
97

skipif mysql # not compatible
query II rowsort label-5921
SELECT + 3 * - CAST ( NULL AS INTEGER ) + + + 43, col0 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
141
NULL
142
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT DISTINCT + - 38 DIV 96 AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT + - 38 / 96 AS col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT - SUM( DISTINCT - + 33 ) + + 42 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-5923
SELECT - SUM ( DISTINCT - + 33 ) + + 42 FROM tab0
----
75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + col2 * 51 col1 FROM tab0 AS cor0
----
-112659
-499851
-5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5927
SELECT DISTINCT + + col1 - - - col1 - + CAST( col0 AS SIGNED ) * col0 + + + col2 AS col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT + + col1 - - - col1 - + CAST ( col0 AS INTEGER ) * col0 + + + col2 AS col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

query I rowsort
SELECT ALL - col2 + + + col0 AS col1 FROM tab0 cor0
----
-2
-32
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5930
SELECT ( + 66 ) DIV col1 - + col0 col2 FROM tab0
----
-15
-31
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5930
SELECT ( + 66 ) / col1 - + col0 col2 FROM tab0
----
-15
-31
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5931
SELECT MIN( ALL + + col0 ) DIV + + 81 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5931
SELECT MIN ( ALL + + col0 ) / + + 81 FROM tab1
----
0

query I rowsort
SELECT 77 * - - 73 * 58 * - col0 FROM tab2
----
-14996828
-20865152
-24451350

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5935
SELECT ALL - CAST( + + col0 AS SIGNED ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab2 cor0 WHERE NOT 95 IS NULL
----
25

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

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

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

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT - MIN ( DISTINCT - ( - - 1 ) ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + 44 FROM tab1, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT + COUNT( DISTINCT - 38 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5940
SELECT + COUNT ( DISTINCT - 38 ) FROM tab0
----
1

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

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

query II rowsort
SELECT DISTINCT col0, + 48 + 16 AS col2 FROM tab2 cor0
----
46
64
64
64
75
64

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

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

query II rowsort
SELECT DISTINCT - - col2 * + col2 * + col2 + + col1 AS col0, + col1 - - + col0 AS col1 FROM tab2 AS cor0
----
12218
97
195179
142
64077
141

query II rowsort
SELECT - 11 AS col2, - 83 AS col2 FROM tab2 AS cor0
----
-11
-83
-11
-83
-11
-83

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

skipif mysql # not compatible
query I rowsort label-5947
SELECT - - ( + + MIN ( ALL + ( - - CAST ( col0 AS INTEGER ) ) ) ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - 32 * - - col2 + 79 AS col0 FROM tab1 AS cor0
----
-1809
-2097
-2993

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT DISTINCT - + 98 + COUNT( * ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT - + 98 + COUNT ( * ) FROM tab0 AS cor0
----
-95

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

query I rowsort
SELECT ALL 47 + - - 69 + 22 FROM tab2
----
138
138
138

query II rowsort
SELECT - ( + + col2 ) AS col0, + 77 FROM tab0
----
-10
77
-47
77
-99
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT - SUM( + - 43 ) FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-5953
SELECT - SUM ( + - 43 ) FROM tab0
----
129

query III rowsort
SELECT * FROM tab2 WHERE ( + - col2 * + col2 + 47 / - 27 ) >= ( NULL )
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE col1 + - 24 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 21 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5958
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 21 IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT COUNT( * ) - 58 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-5959
SELECT COUNT ( * ) - 58 FROM tab2
----
-55

query I rowsort
SELECT DISTINCT + col2 - - - col2 + col0 * + 16 FROM tab2 AS cor0
----
1024
1200
736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5961
SELECT ALL col0 - col1 + + col0 * 48, col1 * + + 24 * - - 25 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
2485
NULL
4160
NULL
4412
NULL

skipif mysql # not compatible
query II rowsort label-5961
SELECT ALL col0 - col1 + + col0 * 48, col1 * + + 24 * - - 25 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
2485
NULL
4160
NULL
4412
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 89 - col1 + - + col0 * - 65 * - - 32 * + - col0 col0, col1 * - col2 AS col2 FROM tab0 AS cor0
----
-15743452
-210
-19570632
-99
-467992
-3807

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT DISTINCT + COUNT( * ) * COUNT( * ), + 96 AS col1 FROM tab1
----
9
96

skipif mysql # not compatible
query II rowsort label-5965
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ), + 96 AS col1 FROM tab1
----
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + 14 * + - ( - col2 ) col1, 12 - + col0 AS col1 FROM tab1
----
129024
-39
48734
-73
64736
-79

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5968
SELECT - ( COUNT( * ) ) + 51 AS col0, COUNT( * ) * 27 AS col2 FROM tab0, tab2 AS cor0
----
42
243

skipif mysql # not compatible
query II rowsort label-5968
SELECT - ( COUNT ( * ) ) + 51 AS col0, COUNT ( * ) * 27 AS col2 FROM tab0, tab2 AS cor0
----
42
243

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = col2 * 82
----

query I rowsort
SELECT DISTINCT 43 / + 7 AS col2 FROM tab2 WHERE + + col0 / + 95 * - 67 + col1 >= NULL
----

query I rowsort
SELECT + + col1 FROM tab0 WHERE NOT col2 - + 6 + - + col1 * - col2 + ( + col2 ) >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT ALL + MIN( - 83 ) AS col2 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL + MIN ( - 83 ) AS col2 FROM tab1 AS cor0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 + - col1 + + + col0 col1, + ( - + 3 ) FROM tab2 AS cor0
----
41
-3
51
-3
83
-3

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + 75 AND + col2 * + ( + - 0 )
----

query I rowsort
SELECT DISTINCT 3 + - + 74 AS col0 FROM tab1 cor0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5979
SELECT - + col1 DIV + - col0 + col1 * - ( - col0 ) + + - 78 col0 FROM tab0 AS cor0
----
1142
1749
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5979
SELECT - + col1 / + - col0 + col1 * - ( - col0 ) + + - 78 col0 FROM tab0 AS cor0
----
1142
1749
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT - 80 + - col2 + - col0 * 38 DIV 6 col1 FROM tab1 AS cor0
----
-499
-677
-724

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5980
SELECT - 80 + - col2 + - col0 * 38 / 6 col1 FROM tab1 AS cor0
----
-499
-677
-724

query I rowsort
SELECT DISTINCT + - col0 * - col1 * - - ( + - col2 ) AS col0 FROM tab0 WHERE - 54 + col2 IS NULL OR NOT col0 = NULL
----

query I rowsort
SELECT + col0 + + col2 + 73 * col0 AS col2 FROM tab0
----
1157
6448
7277

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT - MIN( col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5985
SELECT - MIN ( col0 ) AS col2 FROM tab2
----
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-5986
SELECT col0, + 5 DIV - col2 FROM tab0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-5986
SELECT col0, + 5 / - col2 FROM tab0
----
15
0
87
0
97
0

query I rowsort
SELECT ALL + ( - col2 ) + 34 FROM tab0
----
-13
-65
24

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

query I rowsort
SELECT - col1 + + + col2 FROM tab1 WHERE 53 IS NOT NULL
----
21
54
82

query I rowsort
SELECT - 85 / + - ( col0 ) + + 88 + + 0 AS col1 FROM tab0 WHERE NULL <= - col1
----

query I rowsort
SELECT ALL + ( - - col0 ) + col2 FROM tab1
----
144
147
159

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

query I rowsort
SELECT - - col2 * 45 * - col0 * - + col1 FROM tab0 AS cor0
----
2569725
432135
822150

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT - - ( COUNT( * ) ) * - - 91 - - + 18 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-5994
SELECT - - ( COUNT ( * ) ) * - - 91 - - + 18 FROM tab1 AS cor0
----
291

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT MAX( ALL - 86 ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5997
SELECT MAX ( ALL - 86 ) FROM tab0 AS cor0
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT ALL - COUNT( ALL + - 42 ) * + 87 AS col0 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL - COUNT ( ALL + - 42 ) * + 87 AS col0 FROM tab0
----
-261

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

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

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

query I rowsort
SELECT ALL - col1 * - - 80 + - col1 FROM tab1 AS cor0
----
-1134
-3807
-405

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT - col2 DIV + 50 - col0 AS col0 FROM tab1 cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-6003
SELECT - col2 / + 50 - col0 AS col0 FROM tab1 cor0
----
-52
-86
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6004
SELECT DISTINCT CAST( - 97 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT CAST ( - 97 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 72 + col0 AS col0, 67 col1 FROM tab2 AS cor0
----
118
67
136
67
147
67

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6007
SELECT - SUM ( + col2 ) col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT col1 + + - 76 AS col2 FROM tab0
----
-55
-75
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= + - col1
----

query I rowsort
SELECT DISTINCT 34 FROM tab0 WHERE ( NULL <= + col2 )
----

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

query I rowsort
SELECT - 86 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL OR NOT NULL IS NULL
----
-86
-86
-86

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

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

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

query II rowsort
SELECT col0, col1 * - 57 * - col1 FROM tab2 AS cor0
----
46
148257
64
337953
75
255873

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6017
SELECT - + 42 col2, - MIN( DISTINCT - col2 ) + SUM( + col0 ) AS col2 FROM tab0 AS cor0
----
-42
298

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6017
SELECT - + 42 col2, - MIN ( DISTINCT - col2 ) + SUM ( + col0 ) AS col2 FROM tab0 AS cor0
----
-42
298

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 < + 16
----
15
81
47

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 7 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT DISTINCT - col0 DIV + 93 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT - col0 / + 93 AS col2 FROM tab0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( + 42 ) BETWEEN + + 87 AND 69 * + 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT ALL COUNT( DISTINCT - 72 ) * - 74 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL COUNT ( DISTINCT - 72 ) * - 74 FROM tab1
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - col0 col2, col2 + - col2 - + 82 * + col0 + - - col2 * - 29 FROM tab2
----
-2116
-4439
-4096
-6408
-5625
-7832

query I rowsort
SELECT ALL - 38 FROM tab2 WHERE NOT - col0 / - 89 IS NULL
----
-38
-38
-38

query I rowsort
SELECT + col1 * + 66 + + col1 FROM tab1 AS cor0
----
3149
335
938

query I rowsort
SELECT ( - - 49 ) AS col2 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT DISTINCT + MIN( col2 ) * - COUNT( - col0 ) col1 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6027
SELECT DISTINCT + MIN ( col2 ) * - COUNT ( - col0 ) col1 FROM tab2 AS cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6028
SELECT DISTINCT - col0 DIV - + CAST( + 24 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT - col0 / - + CAST ( + 24 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
3
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6029
SELECT ALL col1 * + + col2 * + - col0 DIV + - CAST( - - 1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
25075
290836
68544

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL col1 * + + col2 * + - col0 / + - CAST ( - - 1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT ALL - col2 + - 39 + - col1 FROM tab2 cor0
----
-113
-156
-164

query I rowsort
SELECT DISTINCT - + ( 53 ) + + + 78 + + - 33 FROM tab2 AS cor0
----
-8

query II rowsort
SELECT DISTINCT + col0 * ( + col1 ) AS col2, + 0 AS col1 FROM tab2
----
2346
0
4928
0
5025
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6033
SELECT + ( - - 79 ) + + + CAST( - - col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
130
164
170

skipif mysql # not compatible
query I rowsort label-6033
SELECT + ( - - 79 ) + + + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
130
164
170

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

query I rowsort
SELECT - col0 + + - 92 FROM tab1 AS cor0
----
-143
-177
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT MIN( DISTINCT 3 ) + + + MIN( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6036
SELECT MIN ( DISTINCT 3 ) + + + MIN ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-72

query I rowsort
SELECT ALL + + col0 * - - ( - 44 ) * - col0 + + col2 FROM tab2 AS cor0
----
180264
247558
93127

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN col0 AND - col1 - 58
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT 60 * - ( COUNT( * ) ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-6039
SELECT 60 * - ( COUNT ( * ) ) FROM tab0
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6040
SELECT CAST( + 14 AS SIGNED ) / 16 + + CAST( NULL AS SIGNED ) + - + col0 AS col1, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6040
SELECT CAST ( + 14 AS INTEGER ) / 16 + + CAST ( NULL AS INTEGER ) + - + col0 AS col1, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT col1 - col1 * + 69 AS col1 FROM tab0
----
-1428
-5508
-68

query II rowsort
SELECT ALL col1 - col1 AS col2, col1 - + 71 * + col2 FROM tab2
----
0
-1582
0
-2763
0
-4051

query I rowsort
SELECT DISTINCT - 40 - + col2 AS col2 FROM tab1
----
-108
-136
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 * - col2 < - + 16
----
3

skipif mysql # not compatible
query I rowsort label-6044
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 * - col2 < - + 16
----
3

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

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

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

query I rowsort
SELECT ALL - col0 - 37 FROM tab0 cor0
----
-124
-134
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6048
SELECT DISTINCT + CAST( + - 62 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT + CAST ( + - 62 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT DISTINCT - 82 * - MAX( + + col2 ) FROM tab0 AS cor0
----
8118

skipif mysql # not compatible
query I rowsort label-6051
SELECT DISTINCT - 82 * - MAX ( + + col2 ) FROM tab0 AS cor0
----
8118

query I rowsort
SELECT ALL + 32 * - 52 + 83 FROM tab1 AS cor0
----
-1581
-1581
-1581

query I rowsort
SELECT ALL 41 * + + col0 FROM tab0 AS cor0
----
3567
3977
615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT - 42 * + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - + 39 IS NOT NULL
----
-2142
-2814
-3234

skipif mysql # not compatible
query I rowsort label-6054
SELECT - 42 * + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - + 39 IS NOT NULL
----
-2142
-2814
-3234

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

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

query I rowsort
SELECT ( + + 83 ) * 40 FROM tab1 AS cor0
----
3320
3320
3320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col0 AS col2, - 33, - 41 col2 FROM tab1
----
9 values hashing to 37e2226e55131b39aa48fed34920f749

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

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

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

query I rowsort
SELECT - AVG ( DISTINCT + - col0 ) FROM tab1 WHERE NOT NULL > NULL
----
NULL

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT - col2 NOT BETWEEN col1 * - 53 * - 83 AND - + 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6063
SELECT ALL + 39 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL + 39 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT DISTINCT - SUM( ALL - 78 ) FROM tab1 cor0
----
234

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT - SUM ( ALL - 78 ) FROM tab1 cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT + + MAX( ALL - - 85 ) + MAX( + - 12 ) - + - SUM( ALL + 74 ) FROM tab2 AS cor0
----
295

skipif mysql # not compatible
query I rowsort label-6067
SELECT + + MAX ( ALL - - 85 ) + MAX ( + - 12 ) - + - SUM ( ALL + 74 ) FROM tab2 AS cor0
----
295

onlyif mysql # DIV for integer division: 
query I rowsort label-6068
SELECT ALL + col0 DIV - 13 + - col1 FROM tab2
----
-54
-72
-81

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL + col0 / - 13 + - col1 FROM tab2
----
-54
-72
-81

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

query I rowsort
SELECT ALL 42 - col0 FROM tab2 cor0
----
-22
-33
-4

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

skipif mysql # not compatible
query I rowsort label-6071
SELECT - CAST ( - col2 AS INTEGER ) FROM tab0 cor0 WHERE + 96 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6074
SELECT CAST( NULL AS SIGNED ) + + 97 - + 87 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( + 43 )
----

skipif mysql # not compatible
query I rowsort label-6074
SELECT CAST ( NULL AS INTEGER ) + + 97 - + 87 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( + 43 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6075
SELECT + col2 * + col2 + - + col0 - - col2 DIV - ( + col1 ) FROM tab2 AS cor0
----
1536
3289
483

skipif mysql # not compatible
query I rowsort label-6075
SELECT + col2 * + col2 + - + col0 - - col2 / - ( + col1 ) FROM tab2 AS cor0
----
1536
3289
483

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

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

query I rowsort
SELECT ALL 73 + + col1 * + 25 AS col0 FROM tab2
----
1348
1748
1998

query III rowsort
SELECT * FROM tab1 WHERE col2 > - col1 * col0 / col0 * - col0
----

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

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL - COUNT ( DISTINCT col1 ) FROM tab1 WHERE + + 49 IS NULL
----
0

query I rowsort
SELECT + col2 + 74 FROM tab0
----
121
173
84

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 / + 49 NOT BETWEEN - col1 AND ( + 78 )
----

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

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

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

query I rowsort
SELECT + - col1 * - + col2 AS col1 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6085
SELECT ALL + - SUM( 86 ) DIV + ( - 92 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL + - SUM ( 86 ) / + ( - 92 ) FROM tab1 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT DISTINCT col2 DIV + + col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT col2 / + + col1 FROM tab1 AS cor0
----
1
11
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 44 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 34 FROM tab2, tab1 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT + col1 + 5 AS col1 FROM tab0 WHERE NOT + col1 * - col1 IS NULL
----
26
6
86

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 25 col0 FROM tab0
----
2025
25
525

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 14 FROM tab0 cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT ALL MAX( 91 ) AS col2 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL MAX ( 91 ) AS col2 FROM tab2
----
91

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

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

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

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

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

query II rowsort
SELECT DISTINCT + col0 + - col2 + 28 * - - ( col0 ) AS col2, - 47 AS col0 FROM tab2
----
1311
-47
1816
-47
2117
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT ALL - MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL - MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
-47

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

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

query I rowsort
SELECT DISTINCT 60 + 26 FROM tab0 AS cor0
----
86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 2 * - + col1 + col1 / col0 NOT BETWEEN NULL AND + 29
----
91
47
68

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 BETWEEN - col0 + - col2 AND - col2 - - 88 / - 83
----

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

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

query I rowsort
SELECT + col1 + + col2 + + - col0 AS col1 FROM tab1
----
-21
24
59

query I rowsort
SELECT + 45 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT + col0 AS col2 FROM tab2 WHERE - - 49 IN ( + col2 * + - col1 - + - col0, - col2 + + 67, CAST( + - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6109
SELECT + col0 AS col2 FROM tab2 WHERE - - 49 IN ( + col2 * + - col1 - + - col0, - col2 + + 67, CAST ( + - col2 AS INTEGER ) )
----

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

query III rowsort
SELECT ALL - col2, - 12 AS col0, + 73 + - col2 AS col0 FROM tab1 AS cor0
----
9 values hashing to 98681163fa7a6c5bda9118a5a56cf10e

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

query I rowsort
SELECT ALL + 37 + - col0 + 73 AS col2 FROM tab2 AS cor0
----
35
46
64

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

query I rowsort
SELECT - col0 / col0 AS col0 FROM tab2 WHERE ( NOT ( NULL IS NULL ) )
----

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

query I rowsort
SELECT + 25 - - + col0 AS col0 FROM tab2
----
100
71
89

query I rowsort
SELECT ALL 3 + + 20 * + col0 FROM tab0
----
1743
1943
303

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6119
SELECT - ( + 28 ) - + col1, CAST( - 32 AS SIGNED ) AS col2 FROM tab0
----
-109
-32
-29
-32
-49
-32

skipif mysql # not compatible
query II rowsort label-6119
SELECT - ( + 28 ) - + col1, CAST ( - 32 AS INTEGER ) AS col2 FROM tab0
----
-109
-32
-29
-32
-49
-32

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

query I rowsort
SELECT ALL - col2 * col0 * + col0 AS col1 FROM tab2
----
-163840
-326250
-48668

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

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

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

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

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

query I rowsort
SELECT + 97 * + col0 FROM tab2 AS cor0
----
4462
6208
7275

query II rowsort
SELECT col1 AS col0, 18 FROM tab1 AS cor0
----
14
18
47
18
5
18

query I rowsort
SELECT DISTINCT + 24 + - 72 FROM tab1 AS cor0
----
-48

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

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

query I rowsort
SELECT DISTINCT 94 + + col1 AS col2 FROM tab2
----
145
161
171

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6131
SELECT DISTINCT - CAST( - 38 AS SIGNED ) AS col0, + ( - col2 ) * col2 * + 23 FROM tab1 AS cor0
----
38
-106352
38
-211968
38
-80063

skipif mysql # not compatible
query II rowsort label-6131
SELECT DISTINCT - CAST ( - 38 AS INTEGER ) AS col0, + ( - col2 ) * col2 * + 23 FROM tab1 AS cor0
----
38
-106352
38
-211968
38
-80063

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * + - col1 + - 50 + + 68 * + 52 + - + col0 * col0 col0 FROM tab0 AS cor0
----
-1923
-5427
-5987

query I rowsort
SELECT DISTINCT - - col2 * col0 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
1058
2560
4350

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6135
SELECT MAX ( - 56 ) col1 FROM tab1
----
-56

query I rowsort
SELECT ALL 92 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT + 8 - 88 * 27 + + 71 + - col0 AS col0 FROM tab2 cor0
----
-2343
-2361
-2372

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT DISTINCT ( - 18 ) * - 46 * col2 - col2 DIV - 36 FROM tab1 AS cor0
----
48853
56305
79490

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT ( - 18 ) * - 46 * col2 - col2 / - 36 FROM tab1 AS cor0
----
48853
56305
79490

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - ( 6 ) * 32 col1 FROM tab2 AS cor0
----
-238
-256
-267

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT - col0 + col1 DIV 85 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6141
SELECT - col0 + col1 / 85 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + + 43 - - col0 FROM tab2 AS cor0
----
107
118
89

query I rowsort
SELECT + 73 + - col2 AS col2 FROM tab1 cor0
----
-23
14
5

query I rowsort
SELECT DISTINCT - 79 * + + col1 FROM tab0
----
-1659
-6399
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT ALL - 85 * - COUNT( * ) AS col2 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL - 85 * - COUNT ( * ) AS col2 FROM tab2
----
255

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6147
SELECT ALL - 62, ( - COUNT( * ) ) AS col2 FROM tab2
----
-62
-3

skipif mysql # not compatible
query II rowsort label-6147
SELECT ALL - 62, ( - COUNT ( * ) ) AS col2 FROM tab2
----
-62
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-6148
SELECT - 53 AS col1, - 7 DIV - col2 + - col1 FROM tab2 AS cor0
----
-53
-51
-53
-67
-53
-77

skipif mysql # not compatible
query II rowsort label-6148
SELECT - 53 AS col1, - 7 / - col2 + - col1 FROM tab2 AS cor0
----
-53
-51
-53
-67
-53
-77

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

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL - SUM ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # DIV for integer division: 
query II rowsort label-6150
SELECT + + 71, col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
71
-1
71
-1
71
-1

skipif mysql # not compatible
query II rowsort label-6150
SELECT + + 71, col0 / - col0 AS col0 FROM tab0 AS cor0
----
71
-1
71
-1
71
-1

query I rowsort
SELECT DISTINCT - 66 * + 66 AS col0 FROM tab1 cor0
----
-4356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6152
SELECT DISTINCT - COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + + col0 IN ( col0, 36 - - + 40 + + - 25, - + 84 * + col0, + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + col0 IN ( col0, 36 - - + 40 + + - 25, - + 84 * + col0, + - col1 )
----
0

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

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

query I rowsort
SELECT - - col1 * - col0 * col1 FROM tab0 AS cor0
----
-38367
-97
-98415

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT - COUNT( * ) + 70 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6156
SELECT - COUNT ( * ) + 70 FROM tab1 AS cor0
----
67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 29 + - - col0 + + 72 / col2 > NULL
----

query II rowsort
SELECT ALL + col2 + 62 AS col2, col0 FROM tab2 cor0
----
102
64
120
75
85
46

query I rowsort
SELECT + 78 * - - 3 FROM tab1
----
234
234
234

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6160
SELECT DISTINCT * FROM tab0 WHERE + col1 BETWEEN - CAST( + - ( 83 ) AS SIGNED ) AND - - 44
----

skipif mysql # not compatible
query III rowsort label-6160
SELECT DISTINCT * FROM tab0 WHERE + col1 BETWEEN - CAST ( + - ( 83 ) AS INTEGER ) AND - - 44
----

query I rowsort
SELECT ALL + col2 * + 67 FROM tab2
----
1541
2680
3886

query I rowsort
SELECT DISTINCT - col1 + + 78 + - col1 * - col2 FROM tab2
----
1200
3081
3897

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

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

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

query I rowsort
SELECT ALL col1 FROM tab0 WHERE 10 - - 83 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL 17 + 50 FROM tab2
----
67
67
67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6168
SELECT + CAST( col0 AS SIGNED ) + 70 AS col2 FROM tab1
----
121
155
161

skipif mysql # not compatible
query I rowsort label-6168
SELECT + CAST ( col0 AS INTEGER ) + 70 AS col2 FROM tab1
----
121
155
161

query I rowsort
SELECT DISTINCT + 22 * - col1 AS col2 FROM tab1
----
-1034
-110
-308

query I rowsort
SELECT + 68 * - col0 AS col2 FROM tab1
----
-3468
-5780
-6188

query I rowsort
SELECT 36 + - 43 FROM tab1 WHERE NOT NULL < - col1 * - col2
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col2 FROM tab0 WHERE NOT NULL <= 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6174
SELECT 20 FROM tab0 WHERE NOT ( col2 ) < + 7 * ( CAST( NULL AS SIGNED ) * col2 ) + col1
----

skipif mysql # not compatible
query I rowsort label-6174
SELECT 20 FROM tab0 WHERE NOT ( col2 ) < + 7 * ( CAST ( NULL AS INTEGER ) * col2 ) + col1
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6176
SELECT col2 FROM tab2 WHERE + CAST( col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6176
SELECT col2 FROM tab2 WHERE + CAST ( col0 AS REAL ) IS NULL
----

query I rowsort
SELECT + 12 / 55 - col1 FROM tab2 WHERE NULL BETWEEN col1 + - 65 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6178
SELECT * FROM tab0 WHERE NOT - col0 * CAST( NULL AS SIGNED ) + col2 NOT IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-6178
SELECT * FROM tab0 WHERE NOT - col0 * CAST ( NULL AS INTEGER ) + col2 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT - MAX( - 51 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6179
SELECT - MAX ( - 51 ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT + col1 * 70 - - 44 FROM tab2
----
3614
4734
5434

query I rowsort
SELECT DISTINCT + 19 + col2 * col2 AS col2 FROM tab0
----
119
2228
9820

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT MAX( DISTINCT - 57 ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT MAX ( DISTINCT - 57 ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT ALL - MIN( 80 ) FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL - MIN ( 80 ) FROM tab0
----
-80

query I rowsort
SELECT ALL 80 + 24 FROM tab2
----
104
104
104

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

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL MIN ( 45 ) AS col0 FROM tab1
----
45

query I rowsort
SELECT + 90 * + col0 FROM tab1 WHERE NOT ( + col2 ) < 32 + - 77
----
4590
7650
8190

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6187
SELECT ALL * FROM tab0 WHERE NOT + CAST( - 88 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6187
SELECT ALL * FROM tab0 WHERE NOT + CAST ( - 88 AS INTEGER ) IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - 14 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( - col0 ) + - 50 col0 FROM tab1 AS cor0 WHERE NOT col1 - col0 NOT BETWEEN 67 + - col0 AND ( + col2 ) * + col1
----
NULL

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

query I rowsort
SELECT col1 + + ( - ( col1 ) ) * - 43 AS col2 FROM tab2 AS cor0
----
2244
2948
3388

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT SUM( - 16 ) FROM tab1 WHERE NOT ( col0 ) IS NULL
----
-48

skipif mysql # not compatible
query I rowsort label-6193
SELECT SUM ( - 16 ) FROM tab1 WHERE NOT ( col0 ) IS NULL
----
-48

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - ( - col1 ) * 12 + 81 < + 21 + + col2 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 55 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT DISTINCT - 39 * COUNT( * ) FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT - 39 * COUNT ( * ) FROM tab2 AS cor0
----
-117

query I rowsort
SELECT + col2 * + 17 + + 30 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 46 = NULL
----

query I rowsort
SELECT - 95 AS col1 FROM tab1 AS cor0 WHERE col0 - 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT - MIN( - col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-6203
SELECT - MIN ( - col0 ) FROM tab0 cor0
----
97

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

query I rowsort
SELECT DISTINCT - 15 + - ( col1 + 62 ) FROM tab0 AS cor0
----
-158
-78
-98

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6208
SELECT ALL + col0 + ( col1 ) - col1 DIV - col1 AS col1 FROM tab2
----
142
143
98

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL + col0 + ( col1 ) - col1 / - col1 AS col1 FROM tab2
----
142
143
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6209
SELECT col0 + + col1 - + col0 DIV + col1 FROM tab1
----
137
62
73

skipif mysql # not compatible
query I rowsort label-6209
SELECT col0 + + col1 - + col0 / + col1 FROM tab1
----
137
62
73

query I rowsort
SELECT DISTINCT col1 + - col0 + - col0 FROM tab1
----
-135
-165
-88

query I rowsort
SELECT DISTINCT - col1 * - col0 + + 53 AS col1 FROM tab1
----
4330
478
767

query I rowsort
SELECT DISTINCT + 35 * + + col0 * 97 + col1 FROM tab1
----
173159
288580
308992

query I rowsort
SELECT ALL 89 * - 82 + col2 FROM tab0
----
-7199
-7251
-7288

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6215
SELECT + COUNT( * ) DIV 75 FROM tab1 AS cor0 WHERE 20 * col0 NOT BETWEEN + col1 AND ( 19 * - 43 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6215
SELECT + COUNT ( * ) / 75 FROM tab1 AS cor0 WHERE 20 * col0 NOT BETWEEN + col1 AND ( 19 * - 43 + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT DISTINCT + MIN( ALL 34 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT + MIN ( ALL 34 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
34

query II rowsort
SELECT col1, 90 FROM tab1
----
14
90
47
90
5
90

query I rowsort
SELECT 10 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IN ( - col0 )
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2, + ( + - col0 ) col0 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL MIN ( ALL + - col0 ) FROM tab0 AS cor0
----
-97

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

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

query I rowsort
SELECT + 93 * ( + col1 ) FROM tab0
----
1953
7533
93

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + 42 / - 43 / - col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + 43 col1, col0 * 25 FROM tab1
----
-2021
2275
-215
2125
-602
1275

query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab2 AS cor0 WHERE ( 71 + col2 ) NOT IN ( 7 )
----
141
142
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 3 BETWEEN + + col1 AND ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-6231
SELECT ALL - COUNT( * ) * - 54 AS col0, 0 AS col2 FROM tab2 AS cor0
----
162
0

skipif mysql # not compatible
query II rowsort label-6231
SELECT ALL - COUNT ( * ) * - 54 AS col0, 0 AS col2 FROM tab2 AS cor0
----
162
0

query I rowsort
SELECT - 96 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6236
SELECT * FROM tab1 WHERE + CAST( NULL AS DECIMAL ) IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-6236
SELECT * FROM tab1 WHERE + CAST ( NULL AS REAL ) IN ( - col0 )
----

query I rowsort
SELECT - 10 + - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-12
-172
-52

query I rowsort
SELECT ALL - 21 * + col2 FROM tab2 AS cor0
----
-1218
-483
-840

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

query I rowsort
SELECT + col1 + + + col2 FROM tab0 cor0
----
100
128
31

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT DISTINCT 34 * + MIN( - col1 ) AS col2 FROM tab0 AS cor0
----
-2754

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT 34 * + MIN ( - col1 ) AS col2 FROM tab0 AS cor0
----
-2754

query I rowsort
SELECT DISTINCT col0 * 71 + - + 74 FROM tab2 cor0
----
3192
4470
5251

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) = + ( + - 67 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 * - col2 * - 60 col2 FROM tab0 cor0
----
-273540
-576180
-58200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6247
SELECT ALL - col0 + - + col2 - col0 AS col0, CAST( + + 12 AS SIGNED ) * - 45 FROM tab1 AS cor0
----
-198
-540
-229
-540
-250
-540

skipif mysql # not compatible
query II rowsort label-6247
SELECT ALL - col0 + - + col2 - col0 AS col0, CAST ( + + 12 AS INTEGER ) * - 45 FROM tab1 AS cor0
----
-198
-540
-229
-540
-250
-540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6248
SELECT - - CAST( - 25 AS SIGNED ) FROM tab1 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-6248
SELECT - - CAST ( - 25 AS INTEGER ) FROM tab1 AS cor0
----
-25
-25
-25

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

query I rowsort
SELECT ALL - 1 + + ( - 35 ) FROM tab0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT ALL MAX( DISTINCT - 23 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL MAX ( DISTINCT - 23 ) FROM tab1
----
-23

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NULL BETWEEN 46 AND ( + - col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT + COUNT( ALL + 32 ) * ( + 63 ) AS col0 FROM tab2 WHERE + col2 <= ( - + col0 / + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT + COUNT ( ALL + 32 ) * ( + 63 ) AS col0 FROM tab2 WHERE + col2 <= ( - + col0 / + + col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6255
SELECT + 7 AS col0, - COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
7
0

skipif mysql # not compatible
query II rowsort label-6255
SELECT + 7 AS col0, - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
7
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 24 <> ( - col1 * - col0 / col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL col0 * + 4 AS col1 FROM tab0
----
348
388
60

query I rowsort
SELECT 32 * - ( - 29 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
928
928
928

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6260
SELECT - col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( - col0 ), CAST( + - col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-6260
SELECT - col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( - col0 ), CAST ( + - col0 AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT - COUNT( * ) * - + MIN( ALL 25 ) + COUNT( * ) * 28 AS col2 FROM tab2 cor0
----
159

skipif mysql # not compatible
query I rowsort label-6261
SELECT - COUNT ( * ) * - + MIN ( ALL 25 ) + COUNT ( * ) * 28 AS col2 FROM tab2 cor0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6262
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - + col2 AS SIGNED ) * + + 63 BETWEEN + - col2 - + col1 * ( 86 ) AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6262
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - + col2 AS INTEGER ) * + + 63 BETWEEN + - col2 - + col1 * ( 86 ) AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 6 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT 95 FROM tab2 AS cor0 WHERE NOT + col2 + + - col0 - - 16 * - 32 / - - col0 * 95 NOT IN ( col0 )
----

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN + col2 + - 50 AND NULL )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * + 6 + - col2 NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6269
SELECT + - col0 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-6269
SELECT + - col0 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL 25 * COUNT( * ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL 25 * COUNT ( * ) FROM tab0
----
75

query I rowsort
SELECT DISTINCT + 15 + col2 + - + col0 AS col2 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT - 47 + - COUNT( ALL - col0 ) FROM tab1 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6272
SELECT - 47 + - COUNT ( ALL - col0 ) FROM tab1 cor0
----
-50

query I rowsort
SELECT + - col0 * - col1 * - col2 + + col0 AS col2 FROM tab2 AS cor0
----
-197056
-291375
-53912

query I rowsort
SELECT 34 + + col2 FROM tab2 AS cor0
----
57
74
92

query II rowsort
SELECT ALL - 23, - 56 * - 80 AS col1 FROM tab2 AS cor0
----
-23
4480
-23
4480
-23
4480

query I rowsort
SELECT + - col1 * + 70 AS col1 FROM tab1 AS cor0
----
-3290
-350
-980

query I rowsort
SELECT ( - col1 ) + - - 56 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-11
-21
5

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

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

query I rowsort
SELECT col1 * - 59 + - + ( + col1 ) FROM tab0 AS cor0
----
-1260
-4860
-60

query I rowsort
SELECT + col0 - - col0 * - col2 AS col1 FROM tab0 AS cor0
----
-690
-783
-9506

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

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

query I rowsort
SELECT + - col2 + col1 * - col0 * col0 AS col0 FROM tab0 AS cor0
----
-158959
-18272
-9508

query II rowsort
SELECT + col1 + + col2 + + 36 AS col1, col1 AS col0 FROM tab1
----
100
5
146
14
151
47

query I rowsort
SELECT ALL ( + col0 ) * + + 72 - col0 FROM tab1 WHERE + 3 BETWEEN NULL AND 80 AND ( - col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT COUNT( * ) * - COUNT( * ) + + + 43 * 92 AS col2 FROM tab0
----
3947

skipif mysql # not compatible
query I rowsort label-6286
SELECT COUNT ( * ) * - COUNT ( * ) + + + 43 * 92 AS col2 FROM tab0
----
3947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 + - col2 col0 FROM tab1
----
-21
16
7

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

query I rowsort
SELECT ALL - 39 - 87 AS col2 FROM tab1
----
-126
-126
-126

query I rowsort
SELECT DISTINCT - + col0 - - col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, + 73 col0 FROM tab1 AS cor0
----
14
73
47
73
5
73

query I rowsort
SELECT ALL col1 * + - col0 * - ( - + 53 ) FROM tab2
----
-124338
-261184
-266325

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT + 73 AS col2, COUNT( * ) * 32 FROM tab2 AS cor0
----
73
96

skipif mysql # not compatible
query II rowsort label-6293
SELECT + 73 AS col2, COUNT ( * ) * 32 FROM tab2 AS cor0
----
73
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 54 col2, ( - col1 ) * + - col2 AS col0 FROM tab1 AS cor0
----
-54
1344
-54
295
-54
3196

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + - - 28 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + 87 AS col0 FROM tab1 WHERE NOT - col2 + col2 IS NULL
----
87

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( + - 33 ) ) = - ( + col2 ) * + + 58 * - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( col2 ) AS col1, 11 + - 17 FROM tab0
----
10
-6
47
-6
99
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT + col0 * 31 * col2 DIV 71 FROM tab1
----
2137
2189
2701

skipif mysql # not compatible
query I rowsort label-6300
SELECT + col0 * 31 * col2 / 71 FROM tab1
----
2137
2189
2701

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 73 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6302
SELECT - col2 * - - CAST( + + 56 AS SIGNED ) FROM tab2
----
-1288
-2240
-3248

skipif mysql # not compatible
query I rowsort label-6302
SELECT - col2 * - - CAST ( + + 56 AS INTEGER ) FROM tab2
----
-1288
-2240
-3248

onlyif mysql # DIV for integer division: 
query I rowsort label-6303
SELECT ALL col1 DIV 40 * col0 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL col1 / 40 * col0 AS col0 FROM tab2
----
46
64
75

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

query I rowsort
SELECT ALL col2 * - col0 + + - 2 - - col1 FROM tab0
----
-626
-851
-9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6306
SELECT ALL 75 * col2 - CAST( + col1 AS SIGNED ) * - col1 * + col2 - - col0 FROM tab2 WHERE NOT + 73 NOT IN ( - - col2, 1 ) AND NOT - 19 + col2 * + 58 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL 75 * col2 - CAST ( + col1 AS INTEGER ) * - col1 * + col2 - - col0 FROM tab2 WHERE NOT + 73 NOT IN ( - - col2, 1 ) AND NOT - 19 + col2 * + 58 IS NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, + 88 col2 FROM tab0 AS cor0
----
10
88
47
88
99
88

query I rowsort
SELECT + col1 + + 80 * + col1 AS col0 FROM tab0 AS cor0
----
1701
6561
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6311
SELECT 46 AS col0, - 50 + + CAST( NULL AS SIGNED ) + + MIN( + col0 ) FROM tab2 AS cor0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-6311
SELECT 46 AS col0, - 50 + + CAST ( NULL AS INTEGER ) + + MIN ( + col0 ) FROM tab2 AS cor0
----
46
NULL

query I rowsort
SELECT - col2 * col1 * - col1 AS col0 FROM tab0 AS cor0 WHERE ( NOT + col2 IS NULL )
----
308367
4410
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL + col0 * + + col0 + + 79 FROM tab2
----
2195
4175
5704

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0, + col0 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 + 62 col0 FROM tab1
----
127
152
200

query I rowsort
SELECT DISTINCT - 73 - - - col1 FROM tab0
----
-154
-74
-94

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

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

query I rowsort
SELECT ALL col0 * - 74 FROM tab1 AS cor0
----
-3774
-6290
-6734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6323
SELECT DISTINCT COUNT( * ) + + 46, + CAST( NULL AS SIGNED ) + 35 AS col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----
46
NULL

skipif mysql # not compatible
query II rowsort label-6323
SELECT DISTINCT COUNT ( * ) + + 46, + CAST ( NULL AS INTEGER ) + 35 AS col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----
46
NULL

query I rowsort
SELECT DISTINCT col2 * - 55 AS col0 FROM tab2 cor0
----
-1265
-2200
-3190

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT - col1 DIV - - 99 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6325
SELECT - col1 / - - 99 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 33 AS col0 FROM tab2 cor0
----
33

query I rowsort
SELECT DISTINCT - + col0 * 37 FROM tab1 AS cor0
----
-1887
-3145
-3367

query I rowsort
SELECT + col2 * - - 65 * + col0 * + col2 AS col2 FROM tab2 AS cor0
----
1581710
16399500
6656000

onlyif mysql # DIV for integer division: 
query I rowsort label-6329
SELECT ALL - - col0 DIV + - 93 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL - - col0 / + - 93 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT 5 * + col1 * - - col2 AS col1 FROM tab1
----
1475
15980
6720

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

query II rowsort
SELECT ALL col0, + 68 * - + col0 - + + col2 FROM tab1 AS cor0
----
51
-3564
85
-5839
91
-6256

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

query I rowsort
SELECT DISTINCT 64 + - col0 AS col0 FROM tab2
----
-11
0
18

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

query I rowsort
SELECT DISTINCT + + 63 - - col2 AS col1 FROM tab2 AS cor0
----
103
121
86

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

skipif mysql # not compatible
query I rowsort label-6337
SELECT + 78 - 95 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 - col2 AS col1, - 66 * - 43 + 34 * ( + 51 ) AS col0 FROM tab0 AS cor0
----
0
4572
0
4572
0
4572

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

query I rowsort
SELECT + col2 + ( 46 ) AS col2 FROM tab0 AS cor0
----
145
56
93

query I rowsort
SELECT DISTINCT - col2 * - col2 * - 46 FROM tab2 cor0
----
-154744
-24334
-73600

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

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

query II rowsort
SELECT ALL - 45, col2 FROM tab2
----
-45
23
-45
40
-45
58

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

query I rowsort
SELECT - 1 * + + 11 * col1 FROM tab0
----
-11
-231
-891

query II rowsort
SELECT ALL + col0 AS col1, + col1 * col2 FROM tab1 AS cor0
----
51
1344
85
295
91
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT - 59 * + - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
531

skipif mysql # not compatible
query I rowsort label-6348
SELECT - 59 * + - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
531

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6349
SELECT DISTINCT - CAST( - col1 AS SIGNED ), + 69 AS col1 FROM tab1
----
14
69
47
69
5
69

skipif mysql # not compatible
query II rowsort label-6349
SELECT DISTINCT - CAST ( - col1 AS INTEGER ), + 69 AS col1 FROM tab1
----
14
69
47
69
5
69

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT ( + - col2 + + - col0 ) IS NULL
----
15
87
97

query I rowsort
SELECT ALL + + 39 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6352
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col0 >= col2 * 97 + - + col1 * + + col1 + + + CAST( NULL AS SIGNED ) + col1 * - col2
----

skipif mysql # not compatible
query III rowsort label-6352
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col0 >= col2 * 97 + - + col1 * + + col1 + + + CAST ( NULL AS INTEGER ) + col1 * - col2
----

query I rowsort
SELECT + ( - + col1 ) * 47 FROM tab0 cor0
----
-3807
-47
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT ALL 59 * - + MIN( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
5723

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL 59 * - + MIN ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
5723

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT DISTINCT - MIN( DISTINCT - col2 ) * - COUNT( + col0 ) + + + 5 AS col2 FROM tab2 AS cor0
----
-169

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT - MIN ( DISTINCT - col2 ) * - COUNT ( + col0 ) + + + 5 AS col2 FROM tab2 AS cor0
----
-169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - ( + 77 ) col1 FROM tab2 AS cor0
----
-19
-37
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT DISTINCT + CAST( - 65 AS SIGNED ) + + 27 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT + CAST ( - 65 AS INTEGER ) + + 27 FROM tab2
----
-38

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

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

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

query I rowsort
SELECT col0 * 73 AS col2 FROM tab1
----
3723
6205
6643

query I rowsort
SELECT 77 * 39 FROM tab0
----
3003
3003
3003

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6364
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - + 71 - + - 81 * - col2 * col1 > - col2 * + + col1
----

skipif mysql # not compatible
query III rowsort label-6364
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - + 71 - + - 81 * - col2 * col1 > - col2 * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL - 87 * - SUM( ALL + 63 ) AS col0 FROM tab2 AS cor0
----
16443

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - 87 * - SUM ( ALL + 63 ) AS col0 FROM tab2 AS cor0
----
16443

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

query I rowsort
SELECT 46 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT ALL - col2 DIV col1 - - 16 AS col1 FROM tab2
----
16
16
16

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL - col2 / col1 - - 16 AS col1 FROM tab2
----
16
16
16

query I rowsort
SELECT col0 + - ( + col2 ) AS col1 FROM tab2
----
17
23
24

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 59 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT col2 + - 41 AS col2 FROM tab1
----
18
27
55

query I rowsort
SELECT ALL - col1 - + - ( + 85 ) + + col1 * + col1 * + col0 * col0 AS col2 FROM tab0 AS cor0
----
1476229
3337993
9493

query I rowsort
SELECT DISTINCT - 69 - col2 AS col0 FROM tab2 AS cor0
----
-109
-127
-92

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

query I rowsort
SELECT + 52 FROM tab2 cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT col1 * + col0 + - col2 * + col1 + - 4 + - - 87 FROM tab2 AS cor0
----
1222
1256
1931

onlyif mysql # DIV for integer division: 
query II rowsort label-6377
SELECT - 16 DIV + col1, col2 col0 FROM tab1 AS cor0
----
-1
96
-3
59
0
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6377
SELECT - 16 / + col1, col2 col0 FROM tab1 AS cor0
----
-1
96
-3
59
0
68

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6379
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( ( - 86 ) - - CAST( + col0 AS SIGNED ), + 83 + + 32, - col0, - col2, col0 * 44 )
----

skipif mysql # not compatible
query III rowsort label-6379
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( ( - 86 ) - - CAST ( + col0 AS INTEGER ), + 83 + + 32, - col0, - col2, col0 * 44 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6380
SELECT ALL + col1 DIV col0 AS col1, col1 FROM tab2
----
0
67
1
51
1
77

skipif mysql # not compatible
query II rowsort label-6380
SELECT ALL + col1 / col0 AS col1, col1 FROM tab2
----
0
67
1
51
1
77

query I rowsort
SELECT ALL + - ( - 74 ) * + 43 FROM tab2 AS cor0
----
3182
3182
3182

onlyif mysql # aggregate syntax: 
query II rowsort label-6382
SELECT + - 41, COUNT( - 77 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL OR NULL IS NOT NULL
----
-41
0

skipif mysql # not compatible
query II rowsort label-6382
SELECT + - 41, COUNT ( - 77 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL OR NULL IS NOT NULL
----
-41
0

query I rowsort
SELECT ALL - col2 + + 46 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-13
-22
-50

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 97 + 9 >= - 56 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 * - 12 col0 FROM tab2 AS cor0
----
168
168
168

query I rowsort
SELECT col0 * - 11 AS col2 FROM tab0 AS cor0
----
-1067
-165
-957

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6387
SELECT + col2, + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-6387
SELECT + col2, + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT ( - col1 ) DIV + + col2 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6388
SELECT ( - col1 ) / + + col2 FROM tab0 cor0
----
-1
-2
0

query III rowsort
SELECT DISTINCT - 69 * + 26 + 39 + - - col1 AS col2, + col2 + - col1, + col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to a12ecd13e2781dbed752dfae90f99dd3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6390
SELECT DISTINCT col0 * + - col2 + + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( - - col1 AS DECIMAL ) * - 35 * + + 37 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT col0 * + - col2 + + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( - - col1 AS REAL ) * - 35 * + + 37 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col2 + - + col1 AS col2 FROM tab1 AS cor0
----
4882
5010
6141

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

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

query I rowsort
SELECT DISTINCT col0 * - 18 + - 71 AS col1 FROM tab1
----
-1601
-1709
-989

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 >= + col0
----

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

query I rowsort
SELECT DISTINCT col0 * col1 + - col0 + - 77 FROM tab1
----
263
4109
586

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

skipif mysql # not compatible
query I rowsort label-6397
SELECT col0 / 20 FROM tab0 cor0
----
0
4
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6398
SELECT DISTINCT 53 DIV MAX( col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT 53 / MAX ( col1 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6399
SELECT ALL + 41 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
122
42
62

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL + 41 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
122
42
62

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NULL IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( 93 ) - col1 + - ( + col0 ) col2, - col0 AS col1 FROM tab1 AS cor0
----
-158
-51
-183
-85
-231
-91

query I rowsort
SELECT DISTINCT + + 95 AS col2 FROM tab0 AS cor0
----
95

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * 26 col1 FROM tab1 AS cor0
----
34944
7670
83096

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col0 + - 96 col2 FROM tab1 AS cor0
----
4800
4919
6092

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

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

query II rowsort
SELECT ALL + col1 AS col0, + 74 FROM tab1
----
14
74
47
74
5
74

query II rowsort
SELECT DISTINCT 71 AS col0, 81 FROM tab2
----
71
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT ALL col1 DIV + - col2 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL col1 / + - col2 AS col2 FROM tab0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT + col0 DIV + + 26 AS col1 FROM tab1
----
1
3
3

skipif mysql # not compatible
query I rowsort label-6411
SELECT + col0 / + + 26 AS col1 FROM tab1
----
1
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT DISTINCT - SUM( - + col0 ) * + 79 AS col0 FROM tab1
----
17933

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT - SUM ( - + col0 ) * + 79 AS col0 FROM tab1
----
17933

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT DISTINCT COUNT( * ) * 63 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT COUNT ( * ) * 63 FROM tab1
----
189

query I rowsort
SELECT col1 * 19 AS col0 FROM tab0 AS cor0
----
1539
19
399

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

query I rowsort
SELECT - col0 + - + 57 FROM tab0 AS cor0
----
-144
-154
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + 12, - col1 * + - 21 col1 FROM tab1 cor0
----
103
987
63
294
97
105

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6419
SELECT ALL 22, + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
22
NULL
22
NULL
22
NULL

skipif mysql # not compatible
query II rowsort label-6419
SELECT ALL 22, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
22
NULL
22
NULL
22
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> 10
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 67 AS col0, + col1 * ( - - col1 ) + - col2 col2 FROM tab2
----
-67
2578
-67
4431
-67
5889

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 = ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6423
SELECT ALL 49 * SUM( 55 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL 49 * SUM ( 55 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT ( + SUM( + ( + - col2 ) ) ) + + - SUM( + col1 ) AS col1 FROM tab2
----
-316

skipif mysql # not compatible
query I rowsort label-6430
SELECT ( + SUM ( + ( + - col2 ) ) ) + + - SUM ( + col1 ) AS col1 FROM tab2
----
-316

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6431
SELECT ALL + CAST( NULL AS DECIMAL ) + + - 26 * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL + CAST ( NULL AS REAL ) + + - 26 * - col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 * col0 * - 23 NOT IN ( + 60, 75 - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT DISTINCT 59 * - 18 - COUNT( DISTINCT + - ( - 60 ) ) FROM tab1
----
-1063

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT 59 * - 18 - COUNT ( DISTINCT + - ( - 60 ) ) FROM tab1
----
-1063

query I rowsort
SELECT DISTINCT + 53 + + col0 - 8 FROM tab2
----
109
120
91

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

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

query I rowsort
SELECT + 53 + + + col1 * + 38 FROM tab2 WHERE NOT NULL IN ( - 72, col2, - 61 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6437
SELECT DISTINCT SUM( + col2 ) AS col1, 20 AS col1 FROM tab2 AS cor0
----
121
20

skipif mysql # not compatible
query II rowsort label-6437
SELECT DISTINCT SUM ( + col2 ) AS col1, 20 AS col1 FROM tab2 AS cor0
----
121
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6438
SELECT DISTINCT + MIN( DISTINCT + col1 ), 30 AS col2 FROM tab0 AS cor0
----
1
30

skipif mysql # not compatible
query II rowsort label-6438
SELECT DISTINCT + MIN ( DISTINCT + col1 ), 30 AS col2 FROM tab0 AS cor0
----
1
30

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = 80
----

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

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

query I rowsort
SELECT ALL 71 * - col1 FROM tab0 cor0
----
-1491
-5751
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6443
SELECT DISTINCT CAST( - ( + 4 ) AS SIGNED ) AS col0 FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT CAST ( - ( + 4 ) AS INTEGER ) AS col0 FROM tab0 cor0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6444
SELECT ALL - - COUNT( * ) DIV + COUNT( * ) - + 92 AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL - - COUNT ( * ) / + COUNT ( * ) - + 92 AS col0 FROM tab1 AS cor0
----
-91

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

skipif mysql # not compatible
query I rowsort label-6445
SELECT MIN ( ALL col1 ) AS col1 FROM tab1
----
5

query III rowsort
SELECT * FROM tab1 WHERE NOT - 46 = NULL
----

query I rowsort
SELECT ALL 25 * - - col0 FROM tab1
----
1275
2125
2275

query I rowsort
SELECT DISTINCT + col2 * + 20 AS col2 FROM tab1
----
1180
1360
1920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6449
SELECT ALL - COUNT( * ) * + + 79 DIV ( + - 64 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL - COUNT ( * ) * + + 79 / ( + - 64 ) AS col0 FROM tab0
----
3

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

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

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

skipif mysql # not compatible
query I rowsort label-6451
SELECT MIN ( + 24 ) AS col0 FROM tab2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT - 84 DIV col0 AS col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-6452
SELECT - 84 / col0 AS col2 FROM tab0
----
-5
0
0

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

query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE col2 * - - col2 BETWEEN + + col1 AND col2 + - 40
----

query I rowsort
SELECT - - col1 + - 90 + + 56 AS col0 FROM tab0 AS cor0
----
-13
-33
47

query I rowsort
SELECT - col0 + - 9 AS col2 FROM tab2 AS cor0
----
-55
-73
-84

query II rowsort
SELECT ALL - ( + + col2 ) AS col1, - 52 AS col2 FROM tab2 AS cor0
----
-23
-52
-40
-52
-58
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT - MIN( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6458
SELECT - MIN ( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0
----
-59

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6460
SELECT DISTINCT - col1 AS col2, - CAST( - + col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6460
SELECT DISTINCT - col1 AS col2, - CAST ( - + col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # DIV for integer division: 
query II rowsort label-6461
SELECT 37 AS col1, 35 DIV col2 col1 FROM tab1 AS cor0
----
37
0
37
0
37
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6461
SELECT 37 AS col1, 35 / col2 col1 FROM tab1 AS cor0
----
37
0
37
0
37
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT - COUNT( * ) - + 25 AS col2 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-6462
SELECT - COUNT ( * ) - + 25 AS col2 FROM tab2 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6463
SELECT DISTINCT col0 col2, CAST( NULL AS SIGNED ) + + - col0 AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6463
SELECT DISTINCT col0 col2, CAST ( NULL AS INTEGER ) + + - col0 AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT + + 82 + + col2 AS col2 FROM tab0 AS cor0
----
129
181
92

query I rowsort
SELECT DISTINCT + col1 + - + 94 FROM tab0
----
-13
-73
-93

query I rowsort
SELECT ALL - col0 + 83 + col2 AS col2 FROM tab2
----
59
60
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - + 7 ) AS col1, - ( - + col0 ) col0 FROM tab2
----
-7
46
-7
64
-7
75

query I rowsort
SELECT ALL 63 - ( col0 ) - + 30 + - 71 - - - col1 + - col0 * - 8 FROM tab0
----
-14
550
640

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

skipif mysql # not compatible
query I rowsort label-6469
SELECT - MIN ( DISTINCT 64 ) FROM tab2 AS cor0
----
-64

query I rowsort
SELECT DISTINCT + 36 * col0 FROM tab1
----
1836
3060
3276

onlyif mysql # aggregate syntax: 
query II rowsort label-6471
SELECT - 39, MAX( ALL + col0 ) AS col0 FROM tab2
----
-39
75

skipif mysql # not compatible
query II rowsort label-6471
SELECT - 39, MAX ( ALL + col0 ) AS col0 FROM tab2
----
-39
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT col2 DIV 38 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6472
SELECT col2 / 38 FROM tab0
----
0
1
2

onlyif mysql # DIV for integer division: 
query II rowsort label-6473
SELECT col2 AS col2, + col0 DIV + col0 FROM tab1
----
59
1
68
1
96
1

skipif mysql # not compatible
query II rowsort label-6473
SELECT col2 AS col2, + col0 / + col0 FROM tab1
----
59
1
68
1
96
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT DISTINCT - 31 * - COUNT( * ) + COUNT( - col2 ) + 29 AS col0 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
29

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT - 31 * - COUNT ( * ) + COUNT ( - col2 ) + 29 AS col0 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
29

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

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

query I rowsort
SELECT DISTINCT ( - 10 ) * + 63 * + col1 + - col1 AS col0 FROM tab0
----
-13251
-51111
-631

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT MAX( ALL ( - col0 ) ) col2 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6478
SELECT MAX ( ALL ( - col0 ) ) col2 FROM tab1
----
-51

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6480
SELECT DISTINCT - col0 DIV + 13, + ( + col1 ) * - 39 col1 FROM tab1
----
-3
-546
-6
-195
-7
-1833

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6480
SELECT DISTINCT - col0 / + 13, + ( + col1 ) * - 39 col1 FROM tab1
----
-3
-546
-6
-195
-7
-1833

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * - - 90 + + col0 + 26 + 29 / col0 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + - 96 >= - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6485
SELECT DISTINCT MAX( DISTINCT - col0 ) DIV + COUNT( * ) AS col2 FROM tab1 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT MAX ( DISTINCT - col0 ) / + COUNT ( * ) AS col2 FROM tab1 cor0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT ALL CAST( + SUM( col1 ) AS SIGNED ) AS col0 FROM tab0 WHERE + - col2 IS NOT NULL
----
103

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

query I rowsort
SELECT ALL 66 + + col2 FROM tab0
----
113
165
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6488
SELECT - CAST( - COUNT( - + col0 ) AS SIGNED ) + ( MAX( - col0 ) ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-6488
SELECT - CAST ( - COUNT ( - + col0 ) AS INTEGER ) + ( MAX ( - col0 ) ) FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT 88 * COUNT( * ) + + + SUM( DISTINCT - 56 ) FROM tab0
----
208

skipif mysql # not compatible
query I rowsort label-6489
SELECT 88 * COUNT ( * ) + + + SUM ( DISTINCT - 56 ) FROM tab0
----
208

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + - 57 = - + 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT 31 + + MAX( 65 ) AS col0 FROM tab0 AS cor0 WHERE 43 + 5 BETWEEN - col0 AND + col2
----
96

skipif mysql # not compatible
query I rowsort label-6494
SELECT 31 + + MAX ( 65 ) AS col0 FROM tab0 AS cor0 WHERE 43 + 5 BETWEEN - col0 AND + col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6495
SELECT * FROM tab2 AS cor0 WHERE + 56 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6495
SELECT * FROM tab2 AS cor0 WHERE + 56 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT - ( MIN( ALL - 1 ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6496
SELECT - ( MIN ( ALL - 1 ) ) FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 + + - col1 col2 FROM tab1
----
-26
49
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 89 + col0 col0 FROM tab1
----
1297
4274
530

query I rowsort
SELECT DISTINCT - col2 * + col1 * + col1 + col0 AS col0 FROM tab0
----
-2
-308352
-4323

query I rowsort
SELECT ALL - 98 - - + col2 AS col0 FROM tab2
----
-40
-58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT DISTINCT 97 * - - COUNT( * ) AS col2 FROM tab0, tab1 AS cor0
----
873

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT 97 * - - COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
873

query II rowsort
SELECT 7 - col1 AS col0, col2 AS col1 FROM tab2
----
-44
23
-60
58
-70
40

query III rowsort
SELECT * FROM tab0 cor0 WHERE 30 >= NULL
----

query I rowsort
SELECT + 29 AS col2 FROM tab1 cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6505
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - 37 <> NULL
----

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - 37 <> NULL
----

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 82 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6509
SELECT CAST( NULL AS DECIMAL ) * - 65 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT CAST ( NULL AS REAL ) * - 65 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 34 FROM tab0 WHERE col2 * - col2 IS NULL
----

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

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

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

query I rowsort
SELECT ALL - 75 * - col1 + col0 FROM tab0 AS cor0
----
1662
172
6090

query II rowsort
SELECT DISTINCT + - ( col1 ) AS col0, col2 * 71 FROM tab2 AS cor0
----
-51
1633
-67
4118
-77
2840

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6515
SELECT CAST( - 49 AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6515
SELECT CAST ( - 49 AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT + + COUNT( * ) * - 79 + - + 52 AS col2 FROM tab1 AS cor0
----
-289

skipif mysql # not compatible
query I rowsort label-6516
SELECT + + COUNT ( * ) * - 79 + - + 52 AS col2 FROM tab1 AS cor0
----
-289

query I rowsort
SELECT ALL + + 13 AS col2 FROM tab1 AS cor0
----
13
13
13

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

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

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

query II rowsort
SELECT ALL 63, + col0 AS col2 FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND + - col2 * - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6521
SELECT DISTINCT + COUNT( DISTINCT + 22 ) * + COUNT( * ) + SUM( DISTINCT col0 ) DIV - MIN( DISTINCT + - col1 ) + - COUNT( * ) * + COUNT( * ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT + COUNT ( DISTINCT + 22 ) * + COUNT ( * ) + SUM ( DISTINCT col0 ) / - MIN ( DISTINCT + - col1 ) + - COUNT ( * ) * + COUNT ( * ) FROM tab0
----
-4

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL COUNT( * ) + - 99 AS col1 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL COUNT ( * ) + - 99 AS col1 FROM tab2
----
-96

query I rowsort
SELECT DISTINCT + 64 * - + 39 AS col0 FROM tab1
----
-2496

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

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

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

query I rowsort
SELECT col1 + - 59 - + + col0 - + col0 AS col1 FROM tab0 AS cor0
----
-212
-252
-8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 col2 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT - col1 + + - 2 AS col0 FROM tab2 AS cor0
----
-53
-69
-79

query I rowsort
SELECT DISTINCT col2 + + ( 30 ) FROM tab2 AS cor0
----
53
70
88

query II rowsort
SELECT ALL + col1 + + 32 * + + col2 * + 81, + 87 AS col1 FROM tab1
----
152933
87
176303
87
248846
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6533
SELECT + CAST( - - 37 AS SIGNED ), + col2 AS col2 FROM tab0
----
37
10
37
47
37
99

skipif mysql # not compatible
query II rowsort label-6533
SELECT + CAST ( - - 37 AS INTEGER ), + col2 AS col2 FROM tab0
----
37
10
37
47
37
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT DISTINCT - MIN( - 71 ) FROM tab0, tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT - MIN ( - 71 ) FROM tab0, tab2 AS cor0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6535
SELECT ALL - col2 DIV - - 14 FROM tab1 AS cor0
----
-4
-4
-6

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL - col2 / - - 14 FROM tab1 AS cor0
----
-4
-4
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT COUNT( * ) - - COUNT( * ) + - + COUNT( * ) * - 80 FROM tab0 cor0
----
246

skipif mysql # not compatible
query I rowsort label-6536
SELECT COUNT ( * ) - - COUNT ( * ) + - + COUNT ( * ) * - 80 FROM tab0 cor0
----
246

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

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

query I rowsort
SELECT 99 - - + 2 * 51 * - col0 * 29 * col1 AS col0 FROM tab0 AS cor0
----
-286827
-3593871
-5404167

query I rowsort
SELECT - 63 * - - col1 - + col0 FROM tab0 AS cor0
----
-1410
-160
-5118

query I rowsort
SELECT - - col0 + - - col0 AS col1 FROM tab1 AS cor0
----
102
170
182

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6542
SELECT ALL + - col2 DIV + - 96 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL + - col2 / + - 96 AS col0 FROM tab1 AS cor0
----
0
0
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT 28 * + - COUNT( * ) + MAX( ALL col2 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6544
SELECT 28 * + - COUNT ( * ) + MAX ( ALL col2 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL col1 + + 16 FROM tab2
----
67
83
93

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

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT - - col0 IS NULL
----
3

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6548
SELECT DISTINCT - 61 AS col0, col0 + + col2 DIV - 25 AS col2 FROM tab2 AS cor0
----
-61
46
-61
63
-61
73

skipif mysql # not compatible
query II rowsort label-6548
SELECT DISTINCT - 61 AS col0, col0 + + col2 / - 25 AS col2 FROM tab2 AS cor0
----
-61
46
-61
63
-61
73

query I rowsort
SELECT - - 1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
1
1
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6551
SELECT - COUNT( * ) AS col0, + MIN( col0 ) AS col0 FROM tab0 cor0
----
-3
15

skipif mysql # not compatible
query II rowsort label-6551
SELECT - COUNT ( * ) AS col0, + MIN ( col0 ) AS col0 FROM tab0 cor0
----
-3
15

query I rowsort
SELECT ALL - 73 + + - col2 + col2 FROM tab0 AS cor0
----
-73
-73
-73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 48 = NULL
----

query I rowsort
SELECT DISTINCT 4 + + col1 FROM tab2
----
55
71
81

query I rowsort
SELECT DISTINCT + 35 * 79 + + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
2766
2786
2846

query I rowsort
SELECT ALL + 4 * + 20 AS col0 FROM tab0
----
80
80
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * - 6 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT DISTINCT - col2 + 24 * col2 DIV + + ( col1 ) + - + col2 + - col1 DIV + col0 FROM tab0
----
-86
-9
2178

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT - col2 + 24 * col2 / + + ( col1 ) + - + col2 + - col1 / + col0 FROM tab0
----
-86
-9
2178

query II rowsort
SELECT - col2 * - - col1, + col2 AS col2 FROM tab1
----
-1344
96
-295
59
-3196
68

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6563
SELECT ALL COUNT( * ) DIV MAX( + CAST( + 52 AS SIGNED ) ) * - - 13 * - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
0

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL COUNT ( * ) / MAX ( + CAST ( + 52 AS INTEGER ) ) * - - 13 * - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT ALL 74 * + MIN( - - 21 ) FROM tab0
----
1554

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL 74 * + MIN ( - - 21 ) FROM tab0
----
1554

query I rowsort
SELECT ALL - col2 + - + col1 * + col2 * 70 FROM tab1
----
-20709
-223788
-94176

query I rowsort
SELECT DISTINCT - col0 - + - 67 AS col2 FROM tab2 AS cor0
----
-8
21
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 23 NOT BETWEEN - col1 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT DISTINCT + + MAX( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT + + MAX ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6572
SELECT + 73 DIV + ( + COUNT( * ) ) + - ( SUM( ALL 97 ) ) AS col0 FROM tab0 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-6572
SELECT + 73 / + ( + COUNT ( * ) ) + - ( SUM ( ALL 97 ) ) AS col0 FROM tab0 AS cor0
----
-267

query I rowsort
SELECT DISTINCT + 60 * - ( + col2 ) AS col2 FROM tab2 cor0
----
-1380
-2400
-3480

query I rowsort
SELECT 23 * + col1 - col1 * + 29 FROM tab1 AS cor0
----
-282
-30
-84

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6577
SELECT 51 - + col2 DIV + + col0 FROM tab1
----
50
51
51

skipif mysql # not compatible
query I rowsort label-6577
SELECT 51 - + col2 / + + col0 FROM tab1
----
50
51
51

query I rowsort
SELECT - 61 - col1 AS col1 FROM tab0
----
-142
-62
-82

query II rowsort
SELECT ALL - col2 * + col1 AS col2, col2 AS col0 FROM tab2
----
-1173
23
-3080
40
-3886
58

query I rowsort
SELECT DISTINCT 93 * + + col2 AS col1 FROM tab2
----
2139
3720
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT DISTINCT ( 17 ) * - + ( - COUNT( - + col1 ) ) col2 FROM tab1
----
51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT ALL 47 DIV - + 18 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL 47 / - + 18 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL - SUM( DISTINCT 74 ) AS col1 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL - SUM ( DISTINCT 74 ) AS col1 FROM tab0 AS cor0
----
-74

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

skipif mysql # not compatible
query I rowsort label-6584
SELECT ( - CAST ( NULL AS REAL ) ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 18 + 33 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6587
SELECT + CAST( NULL AS DECIMAL ) / - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT + CAST ( NULL AS REAL ) / - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

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

query II rowsort
SELECT - + 3 AS col1, col1 * - + 91 * col0 FROM tab0 AS cor0
----
-3
-110565
-3
-166257
-3
-8827

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT + - col0 DIV 81 * + 44 FROM tab1 AS cor0
----
-44
-44
0

skipif mysql # not compatible
query I rowsort label-6591
SELECT + - col0 / 81 * + 44 FROM tab1 AS cor0
----
-44
-44
0

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

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

query I rowsort
SELECT ALL col1 + - ( + col2 ) FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT 87 + - col1 FROM tab0
----
6
66
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT DISTINCT 34 * + MIN( - ( - col1 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT 34 * + MIN ( - ( - col1 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + - col2 * - 47 AS col2 FROM tab1 cor0
----
2773
3196
4512

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT col0 - col2 AS col1, col0 FROM tab2
----
17
75
23
46
24
64

query II rowsort
SELECT DISTINCT + col2 - + + 80 AS col1, + ( col1 ) * - - 32 AS col2 FROM tab2 AS cor0
----
-22
2144
-40
2464
-57
1632

query I rowsort
SELECT DISTINCT col2 - - - 20 FROM tab2 AS cor0
----
20
3
38

query I rowsort
SELECT col0 + + - col2 + - + col0 FROM tab1 cor0
----
-59
-68
-96

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

query II rowsort
SELECT ALL - col1 AS col0, col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6604
SELECT DISTINCT COUNT( * ) DIV - + MAX( ALL col2 ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT COUNT ( * ) / - + MAX ( ALL col2 ) AS col1 FROM tab2 cor0
----
0

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

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

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

query I rowsort
SELECT DISTINCT - 75 * + 41 FROM tab1
----
-3075

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 67 + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT MAX( ALL - 93 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-6609
SELECT MAX ( ALL - 93 ) FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT DISTINCT MAX( ALL - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT MAX ( ALL - col2 ) AS col1 FROM tab1
----
-59

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

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL + - MIN ( ALL + - col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT - col0 * + col1 + 1 + col0 - - ( - col1 ) * - + ( - + col2 ) AS col0 FROM tab0 AS cor0
----
-1949
-5006
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6613
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-6614
SELECT COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT + ( - 45 ) * + 48 - COUNT( * ) FROM tab0
----
-2163

skipif mysql # not compatible
query I rowsort label-6615
SELECT + ( - 45 ) * + 48 - COUNT ( * ) FROM tab0
----
-2163

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT - MAX( DISTINCT col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6617
SELECT - MAX ( DISTINCT col2 ) FROM tab0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 * col0 col1 FROM tab0
----
5481
6111
945

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT DISTINCT - MIN( col2 ) - - 60 AS col0 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT - MIN ( col2 ) - - 60 AS col0 FROM tab0
----
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT COUNT( * ) * COUNT( ALL col0 ) + + COUNT( DISTINCT - 12 + + 84 * 12 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6621
SELECT COUNT ( * ) * COUNT ( ALL col0 ) + + COUNT ( DISTINCT - 12 + + 84 * 12 ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT ALL + ( MIN( - 66 ) ) + - COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL + ( MIN ( - 66 ) ) + - COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 - - 64 FROM tab0
----
151
161
79

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6625
SELECT CAST( NULL AS DECIMAL ) - 44 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6625
SELECT CAST ( NULL AS REAL ) - 44 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + ( - 31 + - 26 * 60 ) FROM tab1
----
-1495
-1523
-1532

query I rowsort
SELECT 13 * col0 FROM tab1
----
1105
1183
663

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT COUNT( * ) FROM tab0 WHERE ( + 38 - - 15 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6629
SELECT COUNT ( * ) FROM tab0 WHERE ( + 38 - - 15 ) BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 * 5 col1 FROM tab0
----
465

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

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT col1 >= col1 * col2
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 + col1 col0 FROM tab1 AS cor0
----
40
49
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - 53 * col0 col0 FROM tab0 cor0
----
-4590
-5140
-714

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 47 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 47 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT 0 - 60 FROM tab1 AS cor0 WHERE NOT col1 * col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + 49 = ( + 52 + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6640
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + 49 = ( + 52 + + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT 60 * 82 + COUNT( * ) FROM tab1
----
4923

skipif mysql # not compatible
query I rowsort label-6641
SELECT 60 * 82 + COUNT ( * ) FROM tab1
----
4923

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 NOT IN ( - 85 + 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 * 27 col2 FROM tab2 AS cor0
----
891
891
891

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT - 99 BETWEEN ( + col0 + - col0 ) AND + col1
----
-46
-64
-75

query I rowsort
SELECT ALL - - ( - ( 76 ) ) AS col0 FROM tab1 AS cor0
----
-76
-76
-76

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT SUM( DISTINCT col1 ) FROM tab2 cor0 WHERE NOT col2 / 68 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT SUM ( DISTINCT col1 ) FROM tab2 cor0 WHERE NOT col2 / 68 IS NOT NULL
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) >= - col0
----

query I rowsort
SELECT DISTINCT 88 * - 83 AS col0 FROM tab0
----
-7304

query I rowsort
SELECT + col1 * ( ( + col2 ) ) * ( - col1 + col2 ) FROM tab0
----
-129438
-2310
9702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6655
SELECT - 54 * - CAST( - COUNT( * ) AS SIGNED ) * - MIN( - ( - col1 ) ) FROM tab2
----
8262

skipif mysql # not compatible
query I rowsort label-6655
SELECT - 54 * - CAST ( - COUNT ( * ) AS INTEGER ) * - MIN ( - ( - col1 ) ) FROM tab2
----
8262

query I rowsort
SELECT + 78 AS col0 FROM tab2 WHERE NOT NULL IN ( - 21 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT DISTINCT 87 * - MAX( - 35 ) AS col0 FROM tab2
----
3045

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT 87 * - MAX ( - 35 ) AS col0 FROM tab2
----
3045

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT - + SUM( 98 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-882

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT - + SUM ( 98 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT ALL MAX( + + col1 ) + MAX( - 95 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL MAX ( + + col1 ) + MAX ( - 95 ) FROM tab1
----
-48

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

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

query I rowsort
SELECT ALL + col2 * + + col2 * + 25 + + col2 FROM tab0 cor0
----
245124
2510
55272

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

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

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

query I rowsort
SELECT DISTINCT - - 94 * col0 AS col1 FROM tab2 AS cor0
----
4324
6016
7050

onlyif mysql # DIV for integer division: 
query I rowsort label-6669
SELECT DISTINCT - col0 + + + col1 DIV col0 * col1 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT - col0 + + + col1 / col0 * col1 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

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

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

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

query I rowsort
SELECT ALL - 47 * + + col1 * - col0 AS col1 FROM tab1 AS cor0
----
19975
201019
33558

query I rowsort
SELECT + + col2 * - 68 FROM tab0 AS cor0
----
-3196
-6732
-680

query I rowsort
SELECT DISTINCT + col2 FROM tab0 cor0 WHERE NULL IN ( 62 * - col2 * + col2 - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT DISTINCT - SUM( DISTINCT + col0 ) + MIN( + col2 ) FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT - SUM ( DISTINCT + col0 ) + MIN ( + col2 ) FROM tab2 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL COUNT( * ) + - - 58 + + 87 FROM tab2
----
148

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL COUNT ( * ) + - - 58 + + 87 FROM tab2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT 73 + - COUNT( * ) + - - 96 AS col0 FROM tab0
----
166

skipif mysql # not compatible
query I rowsort label-6677
SELECT 73 + - COUNT ( * ) + - - 96 AS col0 FROM tab0
----
166

query I rowsort
SELECT + col0 + + ( - + col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 75 + + + 94 - - - col1 AS col1 FROM tab1
----
-28
14
5

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

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

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

query I rowsort
SELECT DISTINCT 31 * col0 * - col0 AS col0 FROM tab2
----
-126976
-174375
-65596

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

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

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

query I rowsort
SELECT 63 * + 69 FROM tab0 AS cor0
----
4347
4347
4347

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 85
----

query I rowsort
SELECT - 24 * - - col0 AS col0 FROM tab2 cor0
----
-1104
-1536
-1800

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6692
SELECT ALL ( + MAX ( ALL col1 ) ) col0 FROM tab0 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 25, col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, - 79 * + 8 AS col0 FROM tab1
----
14
-632
47
-632
5
-632

onlyif mysql # aggregate syntax: 
query II rowsort label-6696
SELECT ALL + 48 * - ( - MAX( DISTINCT col1 ) ), 42 AS col2 FROM tab2
----
3696
42

skipif mysql # not compatible
query II rowsort label-6696
SELECT ALL + 48 * - ( - MAX ( DISTINCT col1 ) ), 42 AS col2 FROM tab2
----
3696
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT DISTINCT col0 * col2 AS col0 FROM tab0 WHERE NOT ( - CAST( + 43 AS SIGNED ) + + col2 ) IS NULL
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT col0 * col2 AS col0 FROM tab0 WHERE NOT ( - CAST ( + 43 AS INTEGER ) + + col2 ) IS NULL
----
705
870
9603

query I rowsort
SELECT ( col0 ) * 13 AS col0 FROM tab0
----
1131
1261
195

query I rowsort
SELECT col0 * + - 86 FROM tab1
----
-4386
-7310
-7826

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT + MIN( DISTINCT - + 31 ) AS col0 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-6703
SELECT + MIN ( DISTINCT - + 31 ) AS col0 FROM tab1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6704
SELECT - MAX( - CAST( NULL AS DECIMAL ) ) + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6704
SELECT - MAX ( - CAST ( NULL AS REAL ) ) + + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT + 3 + + - MAX( DISTINCT - 61 ) AS col2 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-6705
SELECT + 3 + + - MAX ( DISTINCT - 61 ) AS col2 FROM tab1
----
64

query I rowsort
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE NOT ( NOT - - 7 * + 39 <> NULL )
----

query I rowsort
SELECT 83 * 16 + - 85 AS col2 FROM tab0 AS cor0
----
1243
1243
1243

query I rowsort
SELECT DISTINCT - - col0 * ( + - 91 ) * - col2 FROM tab1 AS cor0
----
445536
456365
563108

query II rowsort
SELECT - 16 + + 22 AS col1, - 53 AS col0 FROM tab1 AS cor0
----
6
-53
6
-53
6
-53

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

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

query I rowsort
SELECT ALL col1 + + 67 AS col2 FROM tab2 cor0
----
118
134
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT ALL - MIN( + - 45 ) AS col1 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL - MIN ( + - 45 ) AS col1 FROM tab1 AS cor0
----
45

query I rowsort
SELECT ALL 79 * 80 * + col1 + ( + col1 ) FROM tab0
----
132741
512001
6321

query I rowsort
SELECT DISTINCT - 99 * col0 * + 96 + ( - 33 ) FROM tab0
----
-142593
-826881
-921921

query I rowsort
SELECT DISTINCT + 4 FROM tab2 WHERE - col1 = - col2
----

query I rowsort
SELECT DISTINCT col2 + + col0 + - 24 FROM tab1
----
120
123
135

query I rowsort
SELECT DISTINCT - col2 * - col2 * - + col1 + col1 + - 30 FROM tab2
----
-123153
-225351
-26958

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN - 69 AND col2
----
87
21
10

query I rowsort
SELECT ALL col2 - - 96 AS col1 FROM tab0
----
106
143
195

query II rowsort
SELECT - ( + col0 ) - + col0 AS col2, col0 FROM tab0 AS cor0
----
-174
87
-194
97
-30
15

query I rowsort
SELECT DISTINCT + - col2 - - + col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT + col2 * - ( - 4 ) + + 21 + - 64 + + 59 FROM tab1 AS cor0
----
252
288
400

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT ( - COUNT( * ) ) * 64 AS col1 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-6727
SELECT ( - COUNT ( * ) ) * 64 AS col1 FROM tab1
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6728
SELECT CAST( NULL AS SIGNED ) / - SUM( DISTINCT - col2 ) FROM tab2
----
NULL

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

query I rowsort
SELECT 95 * col2 AS col2 FROM tab2
----
2185
3800
5510

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 41 > NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6732
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 90 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6732
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 90 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6734
SELECT 84 DIV + + 98 * 54 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6734
SELECT 84 / + + 98 * 54 AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT ALL - col0 DIV + - col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL - col0 / + - col1 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT 71 * - + COUNT( * ) FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-6736
SELECT 71 * - + COUNT ( * ) FROM tab2
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6737
SELECT DISTINCT 98 AS col1, CAST( col2 AS SIGNED ) FROM tab0
----
98
10
98
47
98
99

skipif mysql # not compatible
query II rowsort label-6737
SELECT DISTINCT 98 AS col1, CAST ( col2 AS INTEGER ) FROM tab0
----
98
10
98
47
98
99

query I rowsort
SELECT ALL - - 32 FROM tab2 WHERE NOT + 86 NOT BETWEEN NULL AND + + 18
----

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + 87 + - + col0 AS col0 FROM tab0 WHERE NOT - + 80 IS NULL
----
4074
783
8516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6742
SELECT SUM( DISTINCT + CAST( - + CAST( + col1 AS SIGNED ) AS SIGNED ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT SUM ( DISTINCT + CAST ( - + CAST ( + col1 AS INTEGER ) AS INTEGER ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 42 AS col1 FROM tab2 AS cor0 WHERE NOT 58 IS NULL
----
42
42
42

query I rowsort
SELECT + 85 * - - col2 AS col0 FROM tab2 AS cor0
----
1955
3400
4930

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

query I rowsort
SELECT ALL - col2 * - col2 * col0 FROM tab2 AS cor0
----
102400
24334
252300

query I rowsort
SELECT + col2 - 5 FROM tab0 AS cor0
----
42
5
94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT + col0 * - - col2 * 61 * + + col0 DIV col0 + ( - col2 ) * col2 AS col1 FROM tab2 AS cor0
----
154560
261986
64009

skipif mysql # not compatible
query I rowsort label-6749
SELECT + col0 * - - col2 * 61 * + + col0 / col0 + ( - col2 ) * col2 AS col1 FROM tab2 AS cor0
----
154560
261986
64009

query I rowsort
SELECT - 56 * - + col1 + col0 AS col2 FROM tab2 cor0
----
2902
3827
4376

query I rowsort
SELECT + 32 AS col0 FROM tab1 AS cor0 WHERE NULL >= 13
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN col1 AND NULL
----
15
81
47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + - col0 >= + - 47 * + + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6755
SELECT ALL 9 * - COUNT( * ) AS col0, + 74 AS col1 FROM tab2 AS cor0
----
-27
74

skipif mysql # not compatible
query II rowsort label-6755
SELECT ALL 9 * - COUNT ( * ) AS col0, + 74 AS col1 FROM tab2 AS cor0
----
-27
74

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6757
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2, + col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-6757
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2, + col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 87 + + col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6761
SELECT ALL - 97 * + COUNT( * ) AS col1, 79 + + 33 AS col1 FROM tab1
----
-291
112

skipif mysql # not compatible
query II rowsort label-6761
SELECT ALL - 97 * + COUNT ( * ) AS col1, 79 + + 33 AS col1 FROM tab1
----
-291
112

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6764
SELECT col1 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-6764
SELECT col1 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL + + col0 + + + col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL col0 * + + col0 + - - col1 FROM tab2
----
2167
4173
5692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6767
SELECT - CAST( COUNT( * ) AS SIGNED ) + - MIN( + - col0 ) col0 FROM tab2 WHERE - 7 = - col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6767
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + - MIN ( + - col0 ) col0 FROM tab2 WHERE - 7 = - col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6768
SELECT ( 11 ) + + + COUNT( * ) AS col2 FROM tab0 WHERE + 17 + col0 IN ( - CAST( NULL AS SIGNED ) + + + 50, col1 + - CAST( NULL AS SIGNED ) )
----
11

skipif mysql # not compatible
query I rowsort label-6768
SELECT ( 11 ) + + + COUNT ( * ) AS col2 FROM tab0 WHERE + 17 + col0 IN ( - CAST ( NULL AS INTEGER ) + + + 50, col1 + - CAST ( NULL AS INTEGER ) )
----
11

query I rowsort
SELECT DISTINCT 77 + col0 FROM tab1 AS cor0
----
128
162
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - 5 + - + 63 + - - col1 col2 FROM tab1 AS cor0
----
-119
-251
-83

query I rowsort
SELECT + 56 * 5 * + col1 * + - col2 AS col1 FROM tab1 cor0
----
-376320
-82600
-894880

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

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE col2 <= ( - ( - 41 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT COUNT( * ) - - + 18 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-6774
SELECT COUNT ( * ) - - + 18 FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT - 95 - + - COUNT( + + col1 ) FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-6775
SELECT - 95 - + - COUNT ( + + col1 ) FROM tab2
----
-92

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

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

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

query II rowsort
SELECT - + 65 AS col2, + 25 * 10 * + + 75 + + + col0 FROM tab1 AS cor0
----
-65
18801
-65
18835
-65
18841

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

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

query I rowsort
SELECT col0 * - + ( - + 19 ) FROM tab2
----
1216
1425
874

query I rowsort
SELECT DISTINCT - 14 * + col0 FROM tab2
----
-1050
-644
-896

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

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

query I rowsort
SELECT ALL - + col1 * - col2 * - + col1 - col2 FROM tab0 AS cor0
----
-198
-308414
-4420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6785
SELECT ALL 54 DIV - COUNT( * ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL 54 / - COUNT ( * ) FROM tab1
----
-18

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

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

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

query I rowsort
SELECT ALL + col0 * - - col1 + - 53 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 43 / 21 < - - col1 * - + 66 + + col1
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col1 + - 24 * + col0 < - + 23
----
1
21
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6792
SELECT DISTINCT CAST( 41 AS SIGNED ) + - col2 FROM tab2
----
-17
1
18

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT CAST ( 41 AS INTEGER ) + - col2 FROM tab2
----
-17
1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT DISTINCT + 59 * - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-531

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT + 59 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-531

query I rowsort
SELECT ALL - 25 + - 95 AS col2 FROM tab1
----
-120
-120
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT DISTINCT - 21 DIV + col1 - - col0 FROM tab0
----
15
76
86

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT - 21 / + col1 - - col0 FROM tab0
----
15
76
86

query I rowsort
SELECT DISTINCT - 0 * - 93 * col0 + - 0 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6797
SELECT + + col0 * + + CAST( + col2 AS SIGNED ) - - 89 FROM tab0 AS cor0
----
794
959
9692

skipif mysql # not compatible
query I rowsort label-6797
SELECT + + col0 * + + CAST ( + col2 AS INTEGER ) - - 89 FROM tab0 AS cor0
----
794
959
9692

query I rowsort
SELECT ALL 36 * + - col2 - ( + - col2 ) FROM tab2 AS cor0
----
-1400
-2030
-805

query I rowsort
SELECT col2 * ( 12 ) FROM tab0 cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT ALL - SUM( ALL + 88 ) AS col1 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL - SUM ( ALL + 88 ) AS col1 FROM tab2 AS cor0
----
-264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 + ( + col1 ) col0 FROM tab2 AS cor0
----
25
35
9

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

query I rowsort
SELECT DISTINCT - 44 AS col2 FROM tab1
----
-44

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6805
SELECT ALL * FROM tab2 WHERE - 46 - - CAST( NULL AS SIGNED ) + col1 + 93 / col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6805
SELECT ALL * FROM tab2 WHERE - 46 - - CAST ( NULL AS INTEGER ) + col1 + 93 / col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6806
SELECT - col1 * - 82 * - col0 + + + col1 + 39 + - col1 DIV 58 * + - col2 + + 84 FROM tab1 WHERE NOT - col1 + col0 IS NULL
----
-34722
-350544
-58411

skipif mysql # not compatible
query I rowsort label-6806
SELECT - col1 * - 82 * - col0 + + + col1 + 39 + - col1 / 58 * + - col2 + + 84 FROM tab1 WHERE NOT - col1 + col0 IS NULL
----
-34722
-350544
-58411

query I rowsort
SELECT ALL - 15 FROM tab1 WHERE - col2 BETWEEN ( - col0 * - 62 - - ( col0 ) ) AND ( ( + + col0 ) )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col2 col1, + 67 col1 FROM tab0
----
-100
67
-2209
67
-9801
67

query II rowsort
SELECT ALL 84, col2 * - col0 AS col1 FROM tab2
----
84
-1058
84
-2560
84
-4350

query I rowsort
SELECT ALL - 94 * - 57 + + - col1 FROM tab0 AS cor0
----
5277
5337
5357

query I rowsort
SELECT 36 + col2 FROM tab2 AS cor0
----
59
76
94

query I rowsort
SELECT DISTINCT 22 * - + col1 FROM tab0 AS cor0
----
-1782
-22
-462

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col1, ( - - col1 ), + + 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT DISTINCT + SUM( + col0 ) * 7 FROM tab0
----
1393

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT + SUM ( + col0 ) * 7 FROM tab0
----
1393

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6818
SELECT col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) - - col1 IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6818
SELECT col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) - - col1 IS NULL
----
15
87
97

query II rowsort
SELECT + col2 * col2 AS col0, col2 FROM tab0
----
100
10
2209
47
9801
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6820
SELECT + 17 * - col0 * - 0 * + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6820
SELECT + 17 * - col0 * - 0 * + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6822
SELECT + COUNT ( DISTINCT + col2 ) col0 FROM tab1 AS cor0 WHERE ( NOT col1 IS NOT NULL )
----
0

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

query I rowsort
SELECT - - 97 + - + col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
0
10
82

query I rowsort
SELECT + 75 * + - col0 + + 8 AS col0 FROM tab2 AS cor0
----
-3442
-4792
-5617

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND + + col2
----
87
21
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT DISTINCT - - 21 DIV 6 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - - 21 / 6 FROM tab1 cor0
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6832
SELECT DISTINCT - 1 AS col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6832
SELECT DISTINCT - 1 AS col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1
NULL

query III rowsort
SELECT + 42 AS col0, + col0 * - - 57 - + col1, + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT - col2 DIV + 73 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6836
SELECT - col2 / + 73 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT 60 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 21 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

query I rowsort
SELECT ALL 21 * 0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

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

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

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

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

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

query I rowsort
SELECT 17 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
17
17
17

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

skipif mysql # not compatible
query II rowsort label-6846
SELECT - CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) AS col1, col2 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6847
SELECT + col1 col1, - CAST( NULL AS SIGNED ) * + - col0 col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6847
SELECT + col1 col1, - CAST ( NULL AS INTEGER ) * + - col0 col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

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

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

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

query I rowsort
SELECT DISTINCT + + 61 AS col1 FROM tab1 WHERE NULL IN ( + 52 * - 47 * - + col1, + col2 )
----

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

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

query I rowsort
SELECT col2 * + 62 + + + col0 AS col2 FROM tab1
----
3743
4307
6003

query I rowsort
SELECT DISTINCT + + col0 + - col0 AS col0 FROM tab1 WHERE NULL >= + + col1
----

query III rowsort
SELECT * FROM tab2 WHERE + ( + - col1 ) / + col1 + - 50 * - - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - ( 12 ) AS col1 FROM tab0
----
-12

query I rowsort
SELECT DISTINCT - 50 + - 19 AS col1 FROM tab2 AS cor0
----
-69

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

query I rowsort
SELECT ALL - col1 + + - col2 * + col1 AS col1 FROM tab1
----
-1358
-300
-3243

query I rowsort
SELECT - 34 - - - col1 * 91 FROM tab2
----
-4675
-6131
-7041

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT ALL + col0 - - + col2 + + col0 * + - 57 - - col2 DIV - 69 AS col0 FROM tab1
----
-2761
-4701
-5028

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL + col0 - - + col2 + + col0 * + - 57 - - col2 / - 69 AS col0 FROM tab1
----
-2761
-4701
-5028

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL + MAX( ALL + - 69 ) - - COUNT( ALL - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + MAX ( ALL + - 69 ) - - COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
-66

query II rowsort
SELECT - col0 * + 78 AS col1, 32 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( 8 )
----

query I rowsort
SELECT + - 22 AS col1 FROM tab1 cor0
----
-22
-22
-22

query I rowsort
SELECT ALL 13 * - 35 FROM tab2
----
-455
-455
-455

query I rowsort
SELECT - ( - ( 85 ) ) FROM tab2 WHERE NOT + col2 >= NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6870
SELECT ( ( - 64 ) ) DIV + + col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6870
SELECT ( ( - 64 ) ) / + + col1 FROM tab2
----
-1
0
0

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

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

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

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

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

query I rowsort
SELECT - 52 + col2 FROM tab2
----
-12
-29
6

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

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

query I rowsort
SELECT - 77 + - col2 * 88 * 50 FROM tab0 cor0
----
-206877
-435677
-44077

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT - + SUM( + - 86 ) FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT - + SUM ( + - 86 ) FROM tab2 AS cor0
----
258

query I rowsort
SELECT - 56 * - - col1 + col1 AS col1 FROM tab2 cor0
----
-2805
-3685
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT DISTINCT COUNT( col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT COUNT ( col1 ) FROM tab1 cor0
----
3

query I rowsort
SELECT col0 * + 86 AS col1 FROM tab0
----
1290
7482
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT ALL + MIN( + col2 ) - + 63 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL + MIN ( + col2 ) - + 63 FROM tab0
----
-53

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

query I rowsort
SELECT DISTINCT + 95 + col1 AS col1 FROM tab2 AS cor0
----
146
162
172

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

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

skipif mysql # not compatible
query I rowsort label-6887
SELECT + COUNT ( * ) * - 39 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-117

query I rowsort
SELECT DISTINCT + col2 - - - col0 * col0 FROM tab0 AS cor0
----
-178
-7559
-9310

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT ( + ( - col2 ) ) IS NULL
----
15
87
97

query I rowsort
SELECT + col0 * ( - col1 ) * - 84 FROM tab0 cor0
----
102060
153468
8148

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

query I rowsort
SELECT ALL 77 * - - 39 * - col0 AS col1 FROM tab1
----
-153153
-255255
-273273

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6893
SELECT ALL * FROM tab2 WHERE ( col1 + - CAST( + - 71 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6893
SELECT ALL * FROM tab2 WHERE ( col1 + - CAST ( + - 71 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT - col1 * 31 * - + col2 FROM tab1
----
41664
9145
99076

query I rowsort
SELECT ALL + col2 * 24 FROM tab1
----
1416
1632
2304

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 17 + - ( - - 44 ) NOT IN ( + + col2, col2, + 52 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6899
SELECT ALL CAST( + + COUNT( DISTINCT + col1 ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL CAST ( + + COUNT ( DISTINCT + col1 ) AS INTEGER ) FROM tab1
----
3

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

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

query II rowsort
SELECT col2 AS col0, - 44 - + + col1 * + col2 FROM tab2
----
23
-1217
40
-3124
58
-3930

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6903
SELECT * FROM tab0 WHERE NOT + col0 + + ( ( 52 ) ) BETWEEN - CAST( 41 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6903
SELECT * FROM tab0 WHERE NOT + col0 + + ( ( 52 ) ) BETWEEN - CAST ( 41 AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 43 col2, col2 FROM tab2
----
43
23
43
40
43
58

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 2 col0, 13 FROM tab2 AS cor0
----
-2
13
-2
13
-2
13

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

query I rowsort
SELECT + - col0 * col0 + + col2 * - - col0 AS col2 FROM tab2 AS cor0
----
-1058
-1275
-1536

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 12 col1 FROM tab0
----
13
33
93

query I rowsort
SELECT DISTINCT + col1 - - - 9 FROM tab1
----
-4
38
5

query II rowsort
SELECT ALL col1 + 65 AS col2, + 47 FROM tab1
----
112
47
70
47
79
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT + 21 * - MIN( - 93 ) AS col1 FROM tab1
----
1953

skipif mysql # not compatible
query I rowsort label-6914
SELECT + 21 * - MIN ( - 93 ) AS col1 FROM tab1
----
1953

query I rowsort
SELECT ( - 21 ) * ( + - col0 ) + - + col0 AS col2 FROM tab2 AS cor0
----
1280
1500
920

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * col1 * - + col2 / - - 29 < NULL
----

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

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

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

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

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

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

query I rowsort
SELECT ALL - - ( - 99 ) AS col2 FROM tab1 AS cor0
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6922
SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6922
SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND - - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 28 col1, 43 * - - col0 * - col1 AS col0 FROM tab0 AS cor0
----
-28
-4171
-28
-52245
-28
-78561

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6924
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= 40 * col2 * + CAST( - col1 AS SIGNED ) * - ( + col1 ) + col0
----

skipif mysql # not compatible
query III rowsort label-6924
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= 40 * col2 * + CAST ( - col1 AS INTEGER ) * - ( + col1 ) + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col0, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT DISTINCT + col1 * + + col2 * + + 85 FROM tab0 AS cor0 WHERE + col2 / - 42 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 62 * - col0 * + - 43 col1 FROM tab2
----
-11597100
-2820628
-6824960

query II rowsort
SELECT DISTINCT - col1 AS col2, col2 * 89 FROM tab1
----
-14
8544
-47
6052
-5
5251

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT 35 + - col1 >= 86 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6930
SELECT ALL + col1 DIV - + 72 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL + col1 / - + 72 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6931
SELECT - 58 DIV + COUNT( * ) AS col0 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-6931
SELECT - 58 / + COUNT ( * ) AS col0 FROM tab2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6932
SELECT - SUM( DISTINCT + col1 ) DIV + SUM( - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6932
SELECT - SUM ( DISTINCT + col1 ) / + SUM ( - col2 ) FROM tab1
----
0

query III rowsort
SELECT ALL + col1, col0, col2 AS col2 FROM tab0
----
9 values hashing to 70425907ff2f30c7c7b31e90e477198e

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT ALL MAX( - 34 ) FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL MAX ( - 34 ) FROM tab2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6935
SELECT ALL + 16 FROM tab1 AS cor0 WHERE col0 > + 82 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL + 16 FROM tab1 AS cor0 WHERE col0 > + 82 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 40 AS col0 FROM tab2 AS cor0 WHERE + ( - col2 ) * - col2 + 61 >= - 23
----
40
40
40

query I rowsort
SELECT ALL - 28 + col2 FROM tab0
----
-18
19
71

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

query I rowsort
SELECT - col0 + - col2 * col0 + col2 FROM tab0 AS cor0
----
-673
-947
-9601

query I rowsort
SELECT ALL - + col2 * - + col2 * - 34 - + col1 FROM tab2 AS cor0
----
-114443
-18037
-54477

query I rowsort
SELECT ALL + 44 * 73 + 79 AS col2 FROM tab2 AS cor0
----
3291
3291
3291

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

query I rowsort
SELECT DISTINCT - 38 + + col0 AS col2 FROM tab1
----
13
47
53

query I rowsort
SELECT DISTINCT col0 + + - 43 * - 90 FROM tab0
----
3885
3957
3967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 - col0 * - col0 col2, - 74 AS col0 FROM tab2
----
2093
-74
4056
-74
5567
-74

query I rowsort
SELECT col0 - - col1 * - col2 * - + 31 FROM tab0
----
118032
3166
6597

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

query I rowsort
SELECT + 11 - col1 FROM tab0
----
-10
-70
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6949
SELECT col0 DIV - 55 - - 27 * + 56 AS col0 FROM tab1
----
1511
1511
1512

skipif mysql # not compatible
query I rowsort label-6949
SELECT col0 / - 55 - - 27 * + 56 AS col0 FROM tab1
----
1511
1511
1512

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6951
SELECT ALL + col0 - - col1 + + - col0 DIV + + col1 AS col2 FROM tab1
----
137
62
73

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL + col0 - - col1 + + - col0 / + + col1 AS col2 FROM tab1
----
137
62
73

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE NOT + 17 IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 <= col0 * - col2 + + + col2 * + col1 + col0 + + col1
----
87
21
10
97
1
99

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT 52 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6956
SELECT 52 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT ALL + MAX( - + 35 ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL OR NOT ( NULL ) IS NULL AND ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL + MAX ( - + 35 ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL OR NOT ( NULL ) IS NULL AND ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT ALL - + MIN( ALL - 7 ) AS col2 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL - + MIN ( ALL - 7 ) AS col2 FROM tab1 AS cor0
----
7

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

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

query I rowsort
SELECT DISTINCT + col2 * - - 99 FROM tab1 AS cor0
----
5841
6732
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT SUM( ALL + 44 ) FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-6961
SELECT SUM ( ALL + 44 ) FROM tab2
----
132

query I rowsort
SELECT - ( - 76 ) FROM tab2
----
76
76
76

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

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

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

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

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

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

query I rowsort
SELECT ALL + col1 + - + 36 + - col2 FROM tab2 AS cor0
----
-27
-8
1

query I rowsort
SELECT DISTINCT - col2 + - 44 FROM tab1
----
-103
-112
-140

query I rowsort
SELECT - 94 + + + col2 FROM tab2 AS cor0
----
-36
-54
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6969
SELECT + - CAST( + - MAX( 99 ) AS SIGNED ) + - - MIN( + col0 ) AS col2 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-6969
SELECT + - CAST ( + - MAX ( 99 ) AS INTEGER ) + - - MIN ( + col0 ) AS col2 FROM tab1 AS cor0
----
150

query I rowsort
SELECT - col1 + 92 + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
55
64
83

query I rowsort
SELECT + col0 + + - 57 + - 24 FROM tab1 AS cor0
----
-30
10
4

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 <> - col2 - + 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - + 80 + - col1, + col2 + + + 99 - col0, - 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT SUM( DISTINCT - + 39 ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-6976
SELECT SUM ( DISTINCT - + 39 ) FROM tab0
----
-39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( + 11 * - + col1 )
----

query I rowsort
SELECT DISTINCT - + 40 AS col2 FROM tab1 AS cor0
----
-40

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

skipif mysql # not compatible
query I rowsort label-6979
SELECT - COUNT ( DISTINCT - 60 ) / + COUNT ( * ) * + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6980
SELECT DISTINCT * FROM tab2 WHERE NOT - + 39 + - - col0 * - col0 > + 98 * - CAST( - col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6980
SELECT DISTINCT * FROM tab2 WHERE NOT - + 39 + - - col0 * - col0 > + 98 * - CAST ( - col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6981
SELECT col1 DIV + 14 AS col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6981
SELECT col1 / + 14 AS col1 FROM tab1
----
0
1
3

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

skipif mysql # not compatible
query I rowsort label-6982
SELECT MIN ( ALL - 39 ) AS col0 FROM tab1
----
-39

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, 65 col2 FROM tab1 AS cor0
----
14
65
47
65
5
65

onlyif mysql # aggregate syntax: 
query II rowsort label-6985
SELECT - 0 + + COUNT( * ) * + + COUNT( * ), + ( + MIN( DISTINCT + 16 ) ) + + - COUNT( * ) AS col1 FROM tab1 cor0
----
9
13

skipif mysql # not compatible
query II rowsort label-6985
SELECT - 0 + + COUNT ( * ) * + + COUNT ( * ), + ( + MIN ( DISTINCT + 16 ) ) + + - COUNT ( * ) AS col1 FROM tab1 cor0
----
9
13

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6988
SELECT + - COUNT( * ) * + - CAST( - 77 AS SIGNED ) * + + 54 AS col1 FROM tab2 WHERE NOT - + 52 * - + 34 + - 84 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6988
SELECT + - COUNT ( * ) * + - CAST ( - 77 AS INTEGER ) * + + 54 AS col1 FROM tab2 WHERE NOT - + 52 * - + 34 + - 84 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col2 + + col0 + + + 73 * + + col2 * + 59 FROM tab1
----
254139
292899
413427

query I rowsort
SELECT ALL + col1 + 91 + - 55 * - col1 AS col0 FROM tab0
----
1267
147
4627

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 + 81 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 * - + col2 + - col2 + + + col1 AS col0, col0 AS col1 FROM tab0
----
-2175
15
-89
87
-9899
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT ALL + - 25 + - SUM( + col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL + - 25 + - SUM ( + col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-91

query I rowsort
SELECT ALL 66 * 9 AS col0 FROM tab1
----
594
594
594

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

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

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

query I rowsort
SELECT DISTINCT + 41 - + + col2 AS col1 FROM tab1 AS cor0
----
-18
-27
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 85 / 90 + - col1 - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 40 - - col0 + + + 73 * col0 / - col0 IS NULL
----

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

query I rowsort
SELECT 52 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col1 - + 4 * + col2 * + 14 FROM tab0 AS cor0
----
-2551
-539
-5543

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT ALL - 87 + 65 col2, + COUNT( ALL col0 ) AS col0 FROM tab0
----
-22
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7004
SELECT ALL - 87 + 65 col2, + COUNT ( ALL col0 ) AS col0 FROM tab0
----
-22
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT ALL 85 * - MIN( + col2 ) AS col1 FROM tab0
----
-850

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL 85 * - MIN ( + col2 ) AS col1 FROM tab0
----
-850

query II rowsort
SELECT col1, + 72 * 67 AS col1 FROM tab0
----
1
4824
21
4824
81
4824

query I rowsort
SELECT ALL col2 * - col1 * col1 AS col2 FROM tab1
----
-1475
-150212
-18816

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 BETWEEN - - col1 + - + col2 AND - col2
----

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

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL + col0 / ( - - col2 ) FROM tab1 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7011
SELECT + col1 DIV + ( 96 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7011
SELECT + col1 / + ( 96 ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + 20 FROM tab0
----
1620
20
420

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

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

query I rowsort
SELECT ALL + col0 * - col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-225
-7569
-9409

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

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

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

query II rowsort
SELECT ALL - col0 + 78, col1 * - - col2 AS col2 FROM tab0 AS cor0
----
-19
99
-9
210
63
3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7018
SELECT DISTINCT - col1 + - ( + + CAST( - - col2 AS SIGNED ) ) AS col0 FROM tab2
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT - col1 + - ( + + CAST ( - - col2 AS INTEGER ) ) AS col0 FROM tab2
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-7019
SELECT ALL + col0 + + - col0 + col2 * + col1 + + 18 DIV col1 AS col0 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL + col0 + + - col0 + col2 * + col1 + + 18 / col1 AS col0 FROM tab2
----
1173
3080
3886

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

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

query I rowsort
SELECT ALL ( - + 98 ) * - + col1 * + col1 + + 66 * - col0 FROM tab1
----
-3160
15842
210476

query I rowsort
SELECT DISTINCT + 33 + + col2 FROM tab2
----
56
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT ALL + COUNT( * ) * + 41 AS col1 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL + COUNT ( * ) * + 41 AS col1 FROM tab0
----
123

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL = ( ( col2 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT + MIN( ALL ( col0 ) ) * COUNT( col0 ) * ( - COUNT( ALL + col1 ) ) + - 68 FROM tab2 AS cor0
----
-482

skipif mysql # not compatible
query I rowsort label-7026
SELECT + MIN ( ALL ( col0 ) ) * COUNT ( col0 ) * ( - COUNT ( ALL + col1 ) ) + - 68 FROM tab2 AS cor0
----
-482

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

query I rowsort
SELECT - ( col2 ) + 93 * 26 FROM tab1
----
2322
2350
2359

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 * + 48 ) = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT COUNT( DISTINCT + ( 70 ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7031
SELECT COUNT ( DISTINCT + ( 70 ) ) AS col1 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7032
SELECT col1 DIV - 66 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7032
SELECT col1 / - 66 AS col0 FROM tab2
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT 21 DIV + ( + col1 ) FROM tab0
----
0
1
21

skipif mysql # not compatible
query I rowsort label-7033
SELECT 21 / + ( + col1 ) FROM tab0
----
0
1
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7034
SELECT 59 DIV CAST( + 35 AS SIGNED ) AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7034
SELECT 59 / CAST ( + 35 AS INTEGER ) AS col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT ALL + 25 * + ( + COUNT( + col1 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL + 25 * + ( + COUNT ( + col1 ) ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT SUM( col0 ) + 84 * - COUNT( * ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-7036
SELECT SUM ( col0 ) + 84 * - COUNT ( * ) FROM tab0
----
-53

query I rowsort
SELECT col1 + col2 * col2 AS col1 FROM tab2
----
1677
3431
580

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 * 0 ) < - 18 + - 10
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 >= ( NULL )
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT + 47 - + 56 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 - - col0 * col1 FROM tab0
----
1134
1806
96

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab2 WHERE + col2 IS NOT NULL
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * col1 col1 FROM tab0
----
1050
4050
50

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE col2 <> ( - col0 + + col2 * - col0 )
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7045
SELECT ALL col0 DIV - col2 AS col0 FROM tab1 WHERE 19 <> col0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL col0 / - col2 AS col0 FROM tab1 WHERE 19 <> col0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT - 39 * + COUNT( * ) AS col2 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-7046
SELECT - 39 * + COUNT ( * ) AS col2 FROM tab2
----
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * 60 col1 FROM tab1
----
-3000
-3000
-3000

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

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

query I rowsort
SELECT + 40 * + col0 AS col2 FROM tab0
----
3480
3880
600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col1 FROM tab0
----
-94
-94
-94

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 16 >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT 5 + col1 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7053
SELECT 5 + col1 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7055
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( - 54 ) AND CAST( 78 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7055
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( - 54 ) AND CAST ( 78 AS INTEGER )
----

query I rowsort
SELECT ALL ( 5 ) AS col1 FROM tab0
----
5
5
5

query I rowsort
SELECT ALL + 64 * - 75 FROM tab1 WHERE NULL IN ( 62 * + 25 )
----

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

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

query I rowsort
SELECT DISTINCT - 16 * - 91 FROM tab1 AS cor0
----
1456

query I rowsort
SELECT DISTINCT - col2 * 92 FROM tab1 cor0
----
-5428
-6256
-8832

query I rowsort
SELECT DISTINCT 15 * - col2 FROM tab1 AS cor0
----
-1020
-1440
-885

query I rowsort
SELECT DISTINCT ( - 82 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE 85 = 65 + - 56
----

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

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

query I rowsort
SELECT - 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
-64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 8 ) > ( NULL )
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE NOT 40 * + col2 > ( col2 )
----

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

skipif mysql # not compatible
query I rowsort label-7069
SELECT - ( col0 ) + - col0 / - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-83
0

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

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

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

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL MIN ( 0 ) FROM tab0 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT - col1 DIV col2 + - 42 FROM tab1 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-7074
SELECT - col1 / col2 + - 42 FROM tab1 AS cor0
----
-42
-42
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 * - col0 col0 FROM tab0 AS cor0
----
2349
2619
405

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

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

query I rowsort
SELECT DISTINCT 17 * col1 FROM tab2 AS cor0
----
1139
1309
867

onlyif mysql # DIV for integer division: 
query I rowsort label-7079
SELECT DISTINCT ( 56 ) * col0 + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
2856
4760
5096

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT ( 56 ) * col0 + col1 / col2 AS col2 FROM tab1 AS cor0
----
2856
4760
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT ALL + MAX( DISTINCT col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL + MAX ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( - 41 )
----
NULL

query I rowsort
SELECT DISTINCT + col0 + 50 FROM tab0
----
137
147
65

query III rowsort
SELECT * FROM tab1 WHERE ( 90 * - 41 + col2 ) IN ( - col2 + col2 )
----

query I rowsort
SELECT ALL + 67 + - col2 AS col0 FROM tab0
----
-32
20
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT - MIN( ALL + 91 ) col1 FROM tab0
----
-91

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

query I rowsort
SELECT + 53 * 37 FROM tab0
----
1961
1961
1961

query I rowsort
SELECT ALL col0 + - ( - 16 ) FROM tab1
----
101
107
67

query I rowsort
SELECT DISTINCT 58 - - col2 + col1 * col2 FROM tab0
----
256
278
3912

query I rowsort
SELECT ALL + + 98 FROM tab2 cor0
----
98
98
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + ( - col1 ) ) >= ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT + 11 * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col0 = NULL AND NOT col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT + 11 * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col0 = NULL AND NOT col0 IS NULL
----
0

query I rowsort
SELECT - - 14 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT DISTINCT - 88 + + ( + COUNT( * ) ) AS col2 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT - 88 + + ( + COUNT ( * ) ) AS col2 FROM tab0
----
-85

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7095
SELECT DISTINCT - COUNT ( * ) col0, + 96 AS col2 FROM tab1
----
-3
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT DISTINCT - 21 + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT - 21 + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

query I rowsort
SELECT + - 81 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

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

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE 88 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT + 61 - + - 16 AS col1 FROM tab2
----
77

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 cor0 WHERE 31 + - col2 <= ( + col0 * col2 - col2 )
----
-59
-68
-96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7103
SELECT - + MIN( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

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

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

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

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

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 <= ( - + col1 + + col1 )
----
-15
-87
-97

query I rowsort
SELECT col0 * - - 60 AS col0 FROM tab2 cor0
----
2760
3840
4500

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

query I rowsort
SELECT 96 FROM tab1 AS cor0 WHERE NOT - col2 IN ( col0 )
----
96
96
96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7111
SELECT 48 * - col1 DIV + col1 FROM tab0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-7111
SELECT 48 * - col1 / + col1 FROM tab0
----
-48
-48
-48

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

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

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT + + col0 * - - col0 + 5 * col1 = ( - col2 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT COUNT( * ) * + 59 * - 80 FROM tab1
----
-14160

skipif mysql # not compatible
query I rowsort label-7114
SELECT COUNT ( * ) * + 59 * - 80 FROM tab1
----
-14160

query I rowsort
SELECT ALL ( + col1 ) + - col0 * 23 FROM tab1 WHERE NOT + - 43 + + 52 NOT IN ( 73 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7116
SELECT 88 DIV - COUNT( * ) FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-7116
SELECT 88 / - COUNT ( * ) FROM tab0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 6 * - + 33 AS col0, 85 col1 FROM tab1
----
-198
85
-198
85
-198
85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 < - col1
----
15
81
47

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT + 16 < NULL
----

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

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

query I rowsort
SELECT DISTINCT ( 90 ) FROM tab1 AS cor0
----
90

query I rowsort
SELECT ALL ( col0 ) * - + 28 * + 45 + col1 AS col2 FROM tab0 cor0
----
-109599
-122219
-18819

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL <= ( + - 77 * ( + ( col1 ) - - col1 / 14 ) ) )
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE ( - - ( + - col1 ) + 89 ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT DISTINCT MAX( ALL + col1 ) + + 30 + + - COUNT( * ) * - + 0 AS col2 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT MAX ( ALL + col1 ) + + 30 + + - COUNT ( * ) * - + 0 AS col2 FROM tab1
----
77

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

query I rowsort
SELECT ( - 98 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

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

query I rowsort
SELECT DISTINCT 91 * - + 12 + + col1 FROM tab2 cor0
----
-1015
-1025
-1041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7130
SELECT - SUM( col2 ) * 55 AS col1 FROM tab1 cor0 WHERE ( col0 - - 9 / - CAST( NULL AS SIGNED ) + - + col0 ) NOT IN ( + ( + 7 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT - SUM ( col2 ) * 55 AS col1 FROM tab1 cor0 WHERE ( col0 - - 9 / - CAST ( NULL AS INTEGER ) + - + col0 ) NOT IN ( + ( + 7 ) )
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-7132
SELECT - + COUNT ( * ) / - MAX ( DISTINCT + + col0 ) / + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - col0 + 15 FROM tab0 AS cor0
----
-72
-82
0

query I rowsort
SELECT + - col0 + - 56 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL AND NOT NULL BETWEEN - col1 + + col1 AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7135
SELECT ALL ( + 16 ) / col2 col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7136
SELECT - col0 * + - col2 + + - col2 DIV - - col0 - - - ( col2 ) * col1 FROM tab0 AS cor0
----
-3105
660
9503

skipif mysql # not compatible
query I rowsort label-7136
SELECT - col0 * + - col2 + + - col2 / - - col0 - - - ( col2 ) * col1 FROM tab0 AS cor0
----
-3105
660
9503

query II rowsort
SELECT + col2 AS col1, col0 AS col2 FROM tab1 AS cor0 WHERE + 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT - MAX( + col1 ) + 54 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7138
SELECT - MAX ( + col1 ) + 54 FROM tab2
----
-23

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

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - col0 + + 99 * col2 <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7147
SELECT - ( + CAST( col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7147
SELECT - ( + CAST ( col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL col0 / col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 47 * - col2 + + col0 + + 65 AND NULL
----

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

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

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

query I rowsort
SELECT col2 FROM tab2 WHERE NOT 70 * - 71 + + + col1 * + - col2 * + + col0 NOT IN ( col2 )
----

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

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

query I rowsort
SELECT - 61 * - col0 AS col0 FROM tab2
----
2806
3904
4575

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

query I rowsort
SELECT + col0 * 98 FROM tab2
----
4508
6272
7350

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + 63 BETWEEN 91 AND NULL
----
-14
-47
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7159
SELECT + col2 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 * + + col2 - + 60 + + + col2 + - CAST( + 70 AS SIGNED ) = + col0 + + col0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-7159
SELECT + col2 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 * + + col2 - + 60 + + + col2 + - CAST ( + 70 AS INTEGER ) = + col0 + + col0
----
100
2209
9801

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + + 44 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT 37 * + COUNT( - col1 ) FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT 37 * + COUNT ( - col1 ) FROM tab2 AS cor0
----
111

query I rowsort
SELECT DISTINCT - + col2 * - col0 * - + 45 FROM tab1 AS cor0
----
-220320
-225675
-278460

query I rowsort
SELECT ALL + - col0 * + col1 + - 43 * - col2 AS col2 FROM tab2 AS cor0
----
-1357
-2531
-3208

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 / + 7 NOT IN ( col0, 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 5 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col2 FROM tab0 AS cor0 WHERE - 5 / - 12 > NULL
----

query I rowsort
SELECT - ( + + col2 ) * + - 31 AS col0 FROM tab0 AS cor0
----
1457
3069
310

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT DISTINCT + MIN( + 60 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT + MIN ( + 60 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
57

query I rowsort
SELECT - - col1 * - + col1 * 46 * - 13 + + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1555421
2684480
3545582

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT DISTINCT MAX( DISTINCT - - col2 ) + + - 41 * - - MAX( - 55 ) FROM tab2
----
2313

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT MAX ( DISTINCT - - col2 ) + + - 41 * - - MAX ( - 55 ) FROM tab2
----
2313

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

query I rowsort
SELECT ALL 62 * + + 47 FROM tab1 WHERE NOT - 12 * + col0 BETWEEN NULL AND NULL AND NOT col2 * - - col0 >= NULL
----

query I rowsort
SELECT DISTINCT col1 + - - 77 * - + 85 AS col0 FROM tab0
----
-6464
-6524
-6544

query II rowsort
SELECT col1 - + col0 + + 52, col2 - + - col1 * + 23 - + col2 * 10 AS col2 FROM tab2
----
44
1019
57
966
65
1411

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7177
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col2 + 99 * 40 + col0 AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col2 + 99 * 40 + col0 AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7180
SELECT DISTINCT - COUNT( * ) AS col1, - 15 FROM tab2 AS cor0
----
-3
-15

skipif mysql # not compatible
query II rowsort label-7180
SELECT DISTINCT - COUNT ( * ) AS col1, - 15 FROM tab2 AS cor0
----
-3
-15

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

query II rowsort
SELECT + 93 AS col0, col0 * 84 AS col1 FROM tab1 AS cor0
----
93
4284
93
7140
93
7644

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

query I rowsort
SELECT ALL - 15 * + 8 AS col0 FROM tab2
----
-120
-120
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT col2 DIV ( - col1 ) AS col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-7185
SELECT col2 / ( - col1 ) AS col1 FROM tab1 AS cor0
----
-1
-11
-6

query I rowsort
SELECT + + 45 FROM tab0 cor0
----
45
45
45

query I rowsort
SELECT DISTINCT + - 6 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
-6

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

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

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

query I rowsort
SELECT DISTINCT + 5 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) = + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT + COUNT( * ) + MAX( + 35 ) AS col2 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-7192
SELECT + COUNT ( * ) + MAX ( + 35 ) AS col2 FROM tab0
----
38

query I rowsort
SELECT + col1 + - col2 * + 43 FROM tab1
----
-2532
-2877
-4114

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7195
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE - 79 * + - col1 NOT IN ( - col1 + CAST( - col2 AS SIGNED ), - col2 * + + 21 + + ( col2 ) + + - 62 * - col0 * - + col2 )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE - 79 * + - col1 NOT IN ( - col1 + CAST ( - col2 AS INTEGER ), - col2 * + + 21 + + ( col2 ) + + - 62 * - col0 * - + col2 )
----
1
21
81

query I rowsort
SELECT ALL 44 - + col0 FROM tab2
----
-2
-20
-31

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

query II rowsort
SELECT DISTINCT - col0 - col2 AS col0, - 77 FROM tab1
----
-144
-77
-147
-77
-159
-77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7201
SELECT * FROM tab1 AS cor0 WHERE - col0 * - 69 * + 17 * - col0 + - col1 + - + col1 * - - CAST( NULL AS SIGNED ) BETWEEN NULL AND - + col0
----

skipif mysql # not compatible
query III rowsort label-7201
SELECT * FROM tab1 AS cor0 WHERE - col0 * - 69 * + 17 * - col0 + - col1 + - + col1 * - - CAST ( NULL AS INTEGER ) BETWEEN NULL AND - + col0
----

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

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

query II rowsort
SELECT DISTINCT - 14, col2 FROM tab2
----
-14
23
-14
40
-14
58

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

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

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

query I rowsort
SELECT - + 46 * - + 13 AS col2 FROM tab0 cor0
----
598
598
598

query II rowsort
SELECT - + 4, col1 FROM tab2 cor0 WHERE NOT 87 * - 35 * - col0 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

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

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL - - SUM ( col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL - col1 * - 48 * col2 + + 64 AS col2 FROM tab1 AS cor0
----
14224
153472
64576

query I rowsort
SELECT + col0 * col1 FROM tab0 WHERE NOT - - col0 = - - 45 + - 33
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 1 col1, - col0 + - 8 AS col2 FROM tab0
----
1
-105
1
-23
1
-95

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, ( + - 84 ) * - + col0 + 20 FROM tab1
----
59
7160
68
7664
96
4304

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7219
SELECT DISTINCT col2, col1 DIV col0 + + col0 AS col1 FROM tab0
----
10
87
47
20
99
97

skipif mysql # not compatible
query II rowsort label-7219
SELECT DISTINCT col2, col1 / col0 + + col0 AS col1 FROM tab0
----
10
87
47
20
99
97

query II rowsort
SELECT + ( + 90 ) * + ( - - 27 ) AS col0, col2 FROM tab0 AS cor0
----
2430
10
2430
47
2430
99

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

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

query II rowsort
SELECT ALL - + col1 * + - col2 AS col1, col2 AS col1 FROM tab1 WHERE + 51 IS NOT NULL
----
1344
96
295
59
3196
68

query I rowsort
SELECT 3 + - col1 + - col2 FROM tab0
----
-125
-28
-97

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7225
SELECT DISTINCT 60 DIV col1 + - + CAST( 17 AS SIGNED ) + 91 AS col2 FROM tab1
----
75
78
86

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT 60 / col1 + - + CAST ( 17 AS INTEGER ) + 91 AS col2 FROM tab1
----
75
78
86

query I rowsort
SELECT DISTINCT + + 48 AS col2 FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7227
SELECT ALL + - COUNT( * ) DIV 14 DIV - COUNT( * ) + 83 + - SUM( 49 ) + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL + - COUNT ( * ) / 14 / - COUNT ( * ) + 83 + - SUM ( 49 ) + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7228
SELECT ALL - - col1 * - col0 - col1 / + 7 + - + CAST( + col0 AS SIGNED ) + + col1 * - 5 / col1 * - + CAST( 27 AS SIGNED ) * + col2 * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 >= - - col0
----

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL - - col1 * - col0 - col1 / + 7 + - + CAST ( + col0 AS INTEGER ) + + col1 * - 5 / col1 * - + CAST ( 27 AS INTEGER ) * + col2 * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 >= - - col0
----

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

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

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 2, - 54 * - col1, + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7231
SELECT + 28 * + COUNT( * ), + 30 AS col1 FROM tab0 AS cor0
----
84
30

skipif mysql # not compatible
query II rowsort label-7231
SELECT + 28 * + COUNT ( * ), + 30 AS col1 FROM tab0 AS cor0
----
84
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT ALL - - COUNT( DISTINCT - 76 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL - - COUNT ( DISTINCT - 76 ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7233
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col2, - col1 DIV + + 59 FROM tab1 cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-7233
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col2, - col1 / + + 59 FROM tab1 cor0
----
51
0
85
0
91
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 33 col1 FROM tab0
----
-18
54
64

query I rowsort
SELECT DISTINCT col2 * - ( 86 ) + + 75 FROM tab1
----
-4999
-5773
-8181

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + 67 + + col0, 84, - + col1 + - 33, - - 68 )
----

query I rowsort
SELECT ( - - col2 ) FROM tab1 WHERE NOT ( + - 98 ) NOT IN ( col1 * - col0 * + 3, 0, col0 * + col2 - - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT - SUM( ALL 77 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-7238
SELECT - SUM ( ALL 77 ) FROM tab2
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7239
SELECT DISTINCT - + 36 * - CAST( NULL AS SIGNED ) / - - 81 + - 49 + + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT - + 36 * - CAST ( NULL AS INTEGER ) / - - 81 + - 49 + + + col1 FROM tab2 AS cor0
----
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 + col1 AS col2, col2 col0 FROM tab1 AS cor0 WHERE NOT + 68 > - + col0 / + col0
----

query I rowsort
SELECT + 65 * - col2 AS col2 FROM tab2 AS cor0
----
-1495
-2600
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT + - SUM( ALL - + 90 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
810

skipif mysql # not compatible
query I rowsort label-7244
SELECT + - SUM ( ALL - + 90 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
810

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 20 * - 37 col1, - col2 FROM tab0 AS cor0
----
740
-10
740
-47
740
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 37 col2 FROM tab0 AS cor0
----
2997
37
777

query I rowsort
SELECT DISTINCT - + col1 * + + col0 + - 62 FROM tab2 AS cor0
----
-2408
-4990
-5087

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE col2 IN ( 43 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + + col2 + + 84 col2 FROM tab2 AS cor0
----
1142
2644
4434

query I rowsort
SELECT col2 * + + col0 * + col2 FROM tab0 AS cor0
----
33135
8700
950697

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

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

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

query I rowsort
SELECT 56 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col2 col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query II rowsort label-7257
SELECT DISTINCT + SUM( ALL - + col0 ) * COUNT( * ), - 81 AS col1 FROM tab0
----
-597
-81

skipif mysql # not compatible
query II rowsort label-7257
SELECT DISTINCT + SUM ( ALL - + col0 ) * COUNT ( * ), - 81 AS col1 FROM tab0
----
-597
-81

query I rowsort
SELECT DISTINCT col2 * - + 30 AS col1 FROM tab0
----
-1410
-2970
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT + 71 + + COUNT( * ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-7259
SELECT + 71 + + COUNT ( * ) FROM tab2 AS cor0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT - 64 DIV + col1 + + col1 + col1 FROM tab1 AS cor0
----
-2
24
93

skipif mysql # not compatible
query I rowsort label-7260
SELECT - 64 / + col1 + + col1 + col1 FROM tab1 AS cor0
----
-2
24
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT - + ( - MAX( ALL - - 73 ) ) AS col2 FROM tab2 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT - + ( - MAX ( ALL - - 73 ) ) AS col2 FROM tab2 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT ALL - col0 - - + 83 AS col2 FROM tab1 AS cor0
----
-2
-8
32

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

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

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

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

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE 4 * - + col0 = - - 76
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + + col0, col2 * - 22 + 80 col1 FROM tab2 AS cor0
----
104
-800
133
-1196
69
-426

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 39 col0 FROM tab2
----
103
114
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT DISTINCT MAX( + 92 ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT MAX ( + 92 ) FROM tab1
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7273
SELECT 28 DIV + - SUM( - 25 ) AS col0, - 90 FROM tab1
----
0
-90

skipif mysql # not compatible
query II rowsort label-7273
SELECT 28 / + - SUM ( - 25 ) AS col0, - 90 FROM tab1
----
0
-90

query I rowsort
SELECT + - 27 * - ( col0 ) AS col2 FROM tab1 AS cor0
----
1377
2295
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT DISTINCT 36 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT 36 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27

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

onlyif mysql # DIV for integer division: 
query III rowsort label-7277
SELECT DISTINCT col0, + 35 * 27 + + - 1 AS col1, - + ( - - ( - col1 ) ) DIV - col2 FROM tab2
----
9 values hashing to d8ba28c88a1934ceda76d18a1e4ece00

skipif mysql # not compatible
query III rowsort label-7277
SELECT DISTINCT col0, + 35 * 27 + + - 1 AS col1, - + ( - - ( - col1 ) ) / - col2 FROM tab2
----
9 values hashing to d8ba28c88a1934ceda76d18a1e4ece00

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7279
SELECT COUNT( * ) DIV COUNT( ALL col1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7279
SELECT COUNT ( * ) / COUNT ( ALL col1 ) FROM tab1
----
1

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( + - 82 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 55 * + 11 col0 FROM tab0 AS cor0
----
-620
-692
-702

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7283
SELECT DISTINCT + 52 * + ( + CAST( NULL AS SIGNED ) ) AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7283
SELECT DISTINCT + 52 * + ( + CAST ( NULL AS INTEGER ) ) AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7284
SELECT 16 + - col2 * 39 DIV - col0 + + 55 AS col2 FROM tab2 AS cor0
----
101
90
95

skipif mysql # not compatible
query I rowsort label-7284
SELECT 16 + - col2 * 39 / - col0 + + 55 AS col2 FROM tab2 AS cor0
----
101
90
95

query I rowsort
SELECT DISTINCT + col2 * - col0 - - col2 * - col1 * - col1 FROM tab2 AS cor0
----
234600
256012
58765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7286
SELECT col1 + - CAST( - + CAST( + col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-7286
SELECT col1 + - CAST ( - + CAST ( + col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT + ( + col2 ) * - col1 - - + col2 AS col1 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT DISTINCT + + 34 + 89 + + ( - col1 ) FROM tab0 AS cor0
----
102
122
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 21 + + + ( + col2 ) col0 FROM tab0 AS cor0
----
10
107
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7290
SELECT ALL - - CAST( NULL AS SIGNED ) * 63 + col1, col2 DIV - + 98 AS col1 FROM tab1 cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-7290
SELECT ALL - - CAST ( NULL AS INTEGER ) * 63 + col1, col2 / - + 98 AS col1 FROM tab1 cor0
----
NULL
0
NULL
0
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT DISTINCT + COUNT( * ) + - MIN( 88 ) AS col0 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT + COUNT ( * ) + - MIN ( 88 ) AS col0 FROM tab2 AS cor0
----
-85

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

query I rowsort
SELECT ALL - col2 * - col1 + - col0 * - - col0 AS col0 FROM tab2
----
-1016
-1739
-943

onlyif mysql # DIV for integer division: 
query I rowsort label-7294
SELECT 9 * col1 DIV + 38 FROM tab1
----
1
11
3

skipif mysql # not compatible
query I rowsort label-7294
SELECT 9 * col1 / + 38 FROM tab1
----
1
11
3

query II rowsort
SELECT col2 * + col2 AS col2, + 32 FROM tab1
----
3481
32
4624
32
9216
32

query I rowsort
SELECT DISTINCT + col2 * - col0 * - + 33 FROM tab2
----
143550
34914
84480

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7298
SELECT DISTINCT 61 + - 14 DIV + 63 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT 61 + - 14 / + 63 FROM tab2
----
61

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT DISTINCT COUNT( * ) * - 42 AS col1 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT COUNT ( * ) * - 42 AS col1 FROM tab1 AS cor0
----
-126

query I rowsort
SELECT ALL + 45 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

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

query I rowsort
SELECT DISTINCT col2 + - col1 * col2 * + col2 FROM tab0
----
-178882
-2090
-9702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7305
SELECT + COUNT( * ) * CAST( + - 91 AS SIGNED ) + - 89 FROM tab1
----
-362

skipif mysql # not compatible
query I rowsort label-7305
SELECT + COUNT ( * ) * CAST ( + - 91 AS INTEGER ) + - 89 FROM tab1
----
-362

query I rowsort
SELECT DISTINCT + 37 FROM tab0 WHERE + 24 IS NOT NULL
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-7307
SELECT ALL col1 * + - col1 + + col1, - 53 DIV - col2 col0 FROM tab1
----
-182
0
-20
0
-2162
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7307
SELECT ALL col1 * + - col1 + + col1, - 53 / - col2 col0 FROM tab1
----
-182
0
-20
0
-2162
0

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

query I rowsort
SELECT + col0 * - col0 + - 57 + + col2 FROM tab2 AS cor0
----
-2150
-4113
-5624

query I rowsort
SELECT - - 15 AS col2 FROM tab2 AS cor0
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7311
SELECT - CAST( - col0 AS SIGNED ) * col2 AS col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-7311
SELECT - CAST ( - col0 AS INTEGER ) * col2 AS col2 FROM tab1
----
4896
5015
6188

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7312
SELECT ALL SUM ( DISTINCT - col2 ) col2 FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - 93 + + 66 FROM tab1
----
59
-27
68
-27
96
-27

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7315
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > ( + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7315
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > ( + CAST ( col1 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7316
SELECT ALL + col2 col0, - 33 + - 33 DIV - + col2 AS col2 FROM tab1 AS cor0
----
59
-33
68
-33
96
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7316
SELECT ALL + col2 col0, - 33 + - 33 / - + col2 AS col2 FROM tab1 AS cor0
----
59
-33
68
-33
96
-33

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

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

query I rowsort
SELECT DISTINCT - col2 * - col2 * - 18 AS col0 FROM tab0 AS cor0
----
-176418
-1800
-39762

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

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

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

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

skipif mysql # not compatible
query II rowsort label-7322
SELECT DISTINCT - - 24, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
24
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ALL - MAX( - 9 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL - MAX ( - 9 ) FROM tab0 AS cor0
----
9

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

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

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

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

query II rowsort
SELECT DISTINCT + col0 * - - col2 AS col1, + 37 FROM tab2 AS cor0
----
1058
37
2560
37
4350
37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 19 * col1 >= NULL
----

query I rowsort
SELECT - col0 * col0 * col1 + - ( - col2 ) + + + col2 AS col0 FROM tab2 AS cor0
----
-107870
-315312
-376759

query I rowsort
SELECT + col0 * + col1 + + col0 AS col2 FROM tab1
----
4368
510
765

query I rowsort
SELECT ALL + col1 + + + 29 FROM tab0
----
110
30
50

query I rowsort
SELECT col2 * + ( - col1 ) + - ( col1 ) AS col1 FROM tab0
----
-100
-231
-3888

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

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

query I rowsort
SELECT ALL - col0 + - 39 FROM tab1
----
-124
-130
-90

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

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

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

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

query I rowsort
SELECT ALL + - 36 AS col1 FROM tab1 AS cor0
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7338
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND - col0 * - col2
----

skipif mysql # not compatible
query III rowsort label-7338
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND - col0 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7339
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7339
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7340
SELECT DISTINCT - col2 DIV - col0 AS col0, - col2 FROM tab0 cor0
----
0
-10
1
-99
3
-47

skipif mysql # not compatible
query II rowsort label-7340
SELECT DISTINCT - col2 / - col0 AS col0, - col2 FROM tab0 cor0
----
0
-10
1
-99
3
-47

query I rowsort
SELECT col2 * + 2 * - + col1 FROM tab0 AS cor0
----
-198
-420
-7614

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7342
SELECT ALL + COUNT( * ) DIV + 15 FROM tab0 AS cor0
----
0

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

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

skipif mysql # not compatible
query I rowsort label-7343
SELECT - MIN ( - col1 ) AS col0 FROM tab2 cor0
----
77

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - col0 ) * - - col1 + + col1 * - 60 < - - ( + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( + - 49 ) + + - col1 * + 72 NOT BETWEEN + - col1 AND + col2
----

query II rowsort
SELECT - 68 AS col2, - 14 AS col1 FROM tab0 AS cor0
----
-68
-14
-68
-14
-68
-14

query I rowsort
SELECT ALL - + 18 FROM tab2 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + col2 * + - col2 + - 28 AS col2 FROM tab0 AS cor0
----
-128
-2237
-9829

query I rowsort
SELECT col2 + - col1 - - + 58 AS col0 FROM tab1 AS cor0
----
112
140
79

query I rowsort
SELECT ALL + - ( - col2 ) * + 45 AS col0 FROM tab2 AS cor0
----
1035
1800
2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7356
SELECT ALL - MAX( ALL + + 1 ) AS col0 FROM tab1 cor0 WHERE NOT - col0 / - CAST( + col1 AS SIGNED ) IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL - MAX ( ALL + + 1 ) AS col0 FROM tab1 cor0 WHERE NOT - col0 / - CAST ( + col1 AS INTEGER ) IS NULL
----
-1

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

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

query I rowsort
SELECT ALL + + ( + + col0 ) AS col0 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT ( col2 ), + 63 FROM tab0 AS cor0 WHERE ( NOT NULL > ( col1 ) )
----

query I rowsort
SELECT ALL - col1 + - col0 + - - 1 AS col0 FROM tab0
----
-107
-95
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7361
SELECT ( CAST( NULL AS SIGNED ) ) col2, 63 + col1 AS col0 FROM tab1
----
NULL
110
NULL
68
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7361
SELECT ( CAST ( NULL AS INTEGER ) ) col2, 63 + col1 AS col0 FROM tab1
----
NULL
110
NULL
68
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7362
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) + + + col2 AS col1, + 68 + - col2 AS col1 FROM tab0
----
NULL
-31
NULL
21
NULL
58

skipif mysql # not compatible
query II rowsort label-7362
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) + + + col2 AS col1, + 68 + - col2 AS col1 FROM tab0
----
NULL
-31
NULL
21
NULL
58

query I rowsort
SELECT ALL 34 - + - 73 AS col0 FROM tab2
----
107
107
107

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7364
SELECT + col0 - col0, 65 * - 62 + CAST( - + col2 AS SIGNED ) AS col2 FROM tab2
----
0
-4053
0
-4070
0
-4088

skipif mysql # not compatible
query II rowsort label-7364
SELECT + col0 - col0, 65 * - 62 + CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2
----
0
-4053
0
-4070
0
-4088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7365
SELECT ( - COUNT( * ) ) DIV + COUNT( * ) AS col0 FROM tab0 WHERE + col0 * + col0 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-7365
SELECT ( - COUNT ( * ) ) / + COUNT ( * ) AS col0 FROM tab0 WHERE + col0 * + col0 IS NOT NULL
----
-1

query I rowsort
SELECT 72 - - ( + col0 ) FROM tab0
----
159
169
87

query I rowsort
SELECT - col1 - - - 84 FROM tab1
----
-131
-89
-98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7369
SELECT col0 DIV + + col1 AS col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7369
SELECT col0 / + + col1 AS col1 FROM tab1
----
1
17
3

query I rowsort
SELECT + 79 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 79 / 15 + + col0 + - - col0 * + - col2 IS NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7374
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col1 AND + CAST( - - 59 AS DECIMAL ) * - - 79
----

skipif mysql # not compatible
query III rowsort label-7374
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col1 AND + CAST ( - - 59 AS REAL ) * - - 79
----

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

query II rowsort
SELECT ALL col1 AS col0, - col2 FROM tab2 cor0
----
51
-23
67
-58
77
-40

query I rowsort
SELECT ALL col1 * - - col0 + 73 FROM tab1 AS cor0
----
4350
498
787

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

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

query I rowsort
SELECT 30 * - col2 AS col0 FROM tab2
----
-1200
-1740
-690

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

skipif mysql # not compatible
query I rowsort label-7381
SELECT CAST ( - ( + + 65 ) AS INTEGER ) FROM tab1
----
-65
-65
-65

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( - 69 ) * col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 81 col1 FROM tab0
----
-1701
-6561
-81

query I rowsort
SELECT DISTINCT col0 - - col1 AS col1 FROM tab1 WHERE NOT NULL < + - col1 - + - 55
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT DISTINCT 54 DIV + 95 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT 54 / + 95 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL + 51 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL + 51 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 60 + + col0 * - col1 + + col2 * - - 33 col0, col1 * ( - col2 ) * - - col2 col2 FROM tab1
----
-1973
-217328
1582
-17405
2514
-129024

query I rowsort
SELECT + ( ( col1 ) ) + - + 17 FROM tab1 AS cor0
----
-12
-3
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT - ( - col2 ) DIV - - col1 + + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7389
SELECT - ( - col2 ) / - - col1 + + col0 FROM tab2 AS cor0
----
46
64
75

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( col2 ) * - + col1 NOT BETWEEN NULL AND - 34 AND col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + + 43 AS col2 FROM tab0
----
124
44
64

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

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT - 47 + - + COUNT ( * ) FROM tab1
----
-50

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NULL NOT IN ( col2 - - - col1, - col0, + col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT DISTINCT - - MAX( + - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT - - MAX ( + - col2 ) FROM tab0 AS cor0
----
-10

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

query I rowsort
SELECT DISTINCT + + col0 + - 75 FROM tab1 AS cor0 WHERE - col2 >= - 90 * - col1 / + col1 + - col2 + + 48
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7403
SELECT ALL - 40 DIV 33 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL - 40 / 33 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL + 29 * - + 76 FROM tab2
----
-2204
-2204
-2204

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT DISTINCT - col2 DIV col2 col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7406
SELECT DISTINCT - col2 / col2 col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7407
SELECT DISTINCT - COUNT( * ), 59 * - - MIN( - ( 11 ) ) AS col2 FROM tab2
----
-3
-649

skipif mysql # not compatible
query II rowsort label-7407
SELECT DISTINCT - COUNT ( * ), 59 * - - MIN ( - ( 11 ) ) AS col2 FROM tab2
----
-3
-649

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT NULL IN ( + 68 + ( - - col0 ), - col0 * + + col0 )
----

query I rowsort
SELECT col1 * + - 75 AS col0 FROM tab1
----
-1050
-3525
-375

query II rowsort
SELECT + ( ( - - col1 ) ) AS col2, col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT col2 + + col2 + + col0 FROM tab2
----
144
191
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT - 8 * - + COUNT( * ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT - 8 * - + COUNT ( * ) FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT DISTINCT + MIN( - col0 ) AS col0 FROM tab1 cor0 WHERE NOT ( col1 + + 88 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT + MIN ( - col0 ) AS col0 FROM tab1 cor0 WHERE NOT ( col1 + + 88 ) IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + col1 * - - col1 AS col2, - col2 * col1 * col2 AS col2 FROM tab1 AS cor0
----
196
-129024
2209
-217328
25
-17405

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL - SUM( - col0 ) col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7415
SELECT ALL - SUM ( - col0 ) col2 FROM tab0 AS cor0
----
199

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7417
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 * + 92 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7417
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 * + 92 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7418
SELECT + + 95 DIV col0 * + + 94 FROM tab1 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-7418
SELECT + + 95 / col0 * + + 94 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ALL - COUNT( * ) * + ( + + 7 ) * + MAX( + ( col1 ) ) / - - MAX( - + ( 15 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 / col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL - COUNT ( * ) * + ( + + 7 ) * + MAX ( + ( col1 ) ) / - - MAX ( - + ( 15 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 / col0 >= NULL
----
NULL

query I rowsort
SELECT col2 + - - 86 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
133
185
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT COUNT( * ) - - - COUNT( * ) - + 7 + - 85 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-7421
SELECT COUNT ( * ) - - - COUNT ( * ) - + 7 + - 85 FROM tab0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT + col2 * col2 * 5 - - 74 DIV - ( + col2 ) FROM tab1
----
17404
23119
46080

skipif mysql # not compatible
query I rowsort label-7422
SELECT + col2 * col2 * 5 - - 74 / - ( + col2 ) FROM tab1
----
17404
23119
46080

query I rowsort
SELECT ALL col1 - - ( col1 ) AS col2 FROM tab2
----
102
134
154

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 20 / 80 IS NOT NULL AND NOT + 15 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7425
SELECT MAX( + 9 ) - 36 DIV - ( + ( + MIN( - col1 ) ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7425
SELECT MAX ( + 9 ) - 36 / - ( + ( + MIN ( - col1 ) ) ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT + 5 * + - 74 + - + col2 + col2 AS col2 FROM tab2
----
-370

query I rowsort
SELECT - col2 - 19 * - col2 + - 75 FROM tab2
----
339
645
969

query I rowsort
SELECT ALL 75 + + col2 AS col1 FROM tab1
----
134
143
171

query I rowsort
SELECT ALL - col2 - + - col1 FROM tab0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7430
SELECT - col2 * ( + col0 ) DIV col1 AS col2 FROM tab2
----
-20
-33
-64

skipif mysql # not compatible
query I rowsort label-7430
SELECT - col2 * ( + col0 ) / col1 AS col2 FROM tab2
----
-20
-33
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT + 40 * - MIN( - 90 ) FROM tab2
----
3600

skipif mysql # not compatible
query I rowsort label-7431
SELECT + 40 * - MIN ( - 90 ) FROM tab2
----
3600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7432
SELECT 36 DIV COUNT( * ) * - + 60 FROM tab1
----
-720

skipif mysql # not compatible
query I rowsort label-7432
SELECT 36 / COUNT ( * ) * - + 60 FROM tab1
----
-720

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7433
SELECT * FROM tab1 cor0 WHERE NOT + col2 <> + 0 * + col2 + - 56 / CAST( NULL AS SIGNED ) + + - 69 / - col2
----

skipif mysql # not compatible
query III rowsort label-7433
SELECT * FROM tab1 cor0 WHERE NOT + col2 <> + 0 * + col2 + - 56 / CAST ( NULL AS INTEGER ) + + - 69 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT ALL - MIN( ALL 7 ) col2 FROM tab1 AS cor0
----
-7

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

query II rowsort
SELECT DISTINCT - - col1, + 27 * - - 71 AS col0 FROM tab0 AS cor0
----
1
1917
21
1917
81
1917

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

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

query II rowsort
SELECT - - 24 AS col2, col2 * - - 4 FROM tab0 AS cor0 WHERE NOT col2 - + 94 IS NOT NULL
----

query I rowsort
SELECT + ( + 46 ) * + col0 FROM tab1 cor0
----
2346
3910
4186

query II rowsort
SELECT ALL + 57 + - 27 AS col2, + col0 * - 79 AS col2 FROM tab0 AS cor0
----
30
-1185
30
-6873
30
-7663

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

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

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

query II rowsort
SELECT DISTINCT 10, col1 + - 90 + 17 + + - col2 * col0 * 30 AS col0 FROM tab0 WHERE NOT NULL BETWEEN + col0 AND + col2
----

query I rowsort
SELECT ALL - col2 + + 35 AS col1 FROM tab1
----
-24
-33
-61

query I rowsort
SELECT ALL - 79 * + + col0 AS col2 FROM tab0
----
-1185
-6873
-7663

query III rowsort
SELECT * FROM tab1 WHERE NULL = + + 88 * + + 75
----

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

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

query I rowsort
SELECT ALL col1 + - - col0 * + - col1 FROM tab2
----
-2295
-4851
-4958

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7449
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND - CAST( - 93 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7449
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND - CAST ( - 93 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col0 + + 44 * + col2 + + - col0 + col2 FROM tab0 cor0
----
2115
4455
450

query I rowsort
SELECT ALL + 21 - - 96 AS col2 FROM tab0 AS cor0
----
117
117
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 55 * + col0 NOT BETWEEN + 83 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 55 * + col0 NOT BETWEEN + 83 AND NULL
----
0

query I rowsort
SELECT 76 + + + col0 FROM tab2 AS cor0
----
122
140
151

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

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

query I rowsort
SELECT + + 61 * 28 * - col1 * col1 * + col1 + - col0 FROM tab1 cor0
----
-177329775
-213585
-4686803

query I rowsort
SELECT ALL + - col1 * 47 * - ( - - 99 ) - - 44 FROM tab1 AS cor0
----
218735
23309
65186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 17 ) + - col0 col0 FROM tab2 cor0
----
-29
-47
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7458
SELECT DISTINCT - - CAST( SUM( + col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT - - CAST ( SUM ( + col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
199

query II rowsort
SELECT col0 + + col0, col2 AS col2 FROM tab1
----
102
96
170
59
182
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7460
SELECT ( 59 ) DIV - col0 col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7460
SELECT ( 59 ) / - col0 col1 FROM tab1
----
-1
0
0

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 58 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * col2 * - + ( 90 ) col0 FROM tab0 AS cor0
----
-414540
-873180
-88200

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * col2 * - - ( col0 ) BETWEEN + 70 + + - col0 * + col1 + + + 43 AND NULL
----

query I rowsort
SELECT + 66 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 29794915b585eea848ad670075452c88

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

query I rowsort
SELECT - 56 * - + col2 AS col0 FROM tab1
----
3304
3808
5376

onlyif mysql # DIV for integer division: 
query I rowsort label-7470
SELECT + - col1 DIV col2 * + - col1 + - col2 FROM tab0 AS cor0
----
-99
32
34

skipif mysql # not compatible
query I rowsort label-7470
SELECT + - col1 / col2 * + - col1 + - col2 FROM tab0 AS cor0
----
-99
32
34

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

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

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

query I rowsort
SELECT ALL + col1 * + col1 + + col0 FROM tab1 AS cor0
----
110
2300
247

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

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

query I rowsort
SELECT - 63 + + col2 * + - col2 FROM tab2 AS cor0
----
-1663
-3427
-592

query I rowsort
SELECT ALL col0 * + ( + - col0 ) FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7477
SELECT DISTINCT + - col0 + + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT + - col0 + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT DISTINCT + COUNT( * ) + 39 AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT + COUNT ( * ) + 39 AS col0 FROM tab1 AS cor0
----
42

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

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

query II rowsort
SELECT + - 63, + col0 FROM tab2 WHERE + ( + + 73 ) >= + col2
----
-63
46
-63
64
-63
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL - 25 * + MAX( ALL + + 28 ) * + 51 AS col1 FROM tab1
----
-35700

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL - 25 * + MAX ( ALL + + 28 ) * + 51 AS col1 FROM tab1
----
-35700

query I rowsort
SELECT - col2 * - - col2 * + + 35 FROM tab1
----
-121835
-161840
-322560

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

query II rowsort
SELECT DISTINCT - 5 + 80, col2 * ( + 16 ) AS col0 FROM tab0 AS cor0
----
75
1584
75
160
75
752

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

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

query I rowsort
SELECT ALL - 32 * + ( - - 79 ) + - - ( + col0 ) + - col2 AS col2 FROM tab1
----
-2502
-2505
-2573

query I rowsort
SELECT ALL 19 * - + col2 + - col0 * + col1 AS col2 FROM tab0
----
-1978
-2017
-2108

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - 82 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * + - 49 * - col2 + - - col1 AS col0 FROM tab2
----
-150843
-190347
-57426

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * + - 49 * - col2 + - - col1 AS col0 FROM tab2
----
-150843
-190347
-57426

query I rowsort
SELECT ALL 27 * col0 - + col2 - + 26 FROM tab2
----
1193
1662
1941

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT COUNT( - 50 ) - + + 96 * - + 40 * 44 + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
168966

skipif mysql # not compatible
query I rowsort label-7492
SELECT COUNT ( - 50 ) - + + 96 * - + 40 * 44 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
168966

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

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

query I rowsort
SELECT - + col2 - - 43 + + - 1 * - col2 * col0 * - - col0 + - ( + + 20 ) AS col0 FROM tab2 cor0
----
163823
326215
48668

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7496
SELECT COUNT( * ) DIV - - 34 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7496
SELECT COUNT ( * ) / - - 34 AS col0 FROM tab1
----
0

query I rowsort
SELECT ( - 87 ) + - col0 FROM tab2 WHERE NOT ( ( NOT NULL NOT BETWEEN - 11 AND - col1 / - 19 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7498
SELECT DISTINCT - 85 DIV COUNT( * ) FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT - 85 / COUNT ( * ) FROM tab1
----
-28

query II rowsort
SELECT ALL - col0, - 41 AS col2 FROM tab0
----
-15
-41
-87
-41
-97
-41

query II rowsort
SELECT col0, - col2 + + 4 FROM tab2
----
46
-19
64
-36
75
-54

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

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

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

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

query I rowsort
SELECT DISTINCT ( - 5 ) AS col2 FROM tab0 AS cor0
----
-5

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

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

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

query I rowsort
SELECT ALL col1 * - 85 + + 27 * + col0 FROM tab1
----
-1538
187
1870

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

query I rowsort
SELECT DISTINCT + col1 * - 91 AS col2 FROM tab0
----
-1911
-7371
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 <> ( - col1 )
----

query I rowsort
SELECT ALL + 44 * 33 AS col2 FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 70 col1 FROM tab2
----
3570
4690
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT + COUNT( * ) * SUM( DISTINCT col2 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-7513
SELECT + COUNT ( * ) * SUM ( DISTINCT col2 ) FROM tab1
----
669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7514
SELECT - 36 * + col2 + - col2 FROM tab1 WHERE NOT NULL IN ( col2 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7514
SELECT - 36 * + col2 + - col2 FROM tab1 WHERE NOT NULL IN ( col2 + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + 79 * + col0 AS col1 FROM tab1
----
4029
6715
7189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 * - 29 + col1 col0 FROM tab0
----
-151
-211
-231

query I rowsort
SELECT + 86 * - col1 FROM tab2
----
-4386
-5762
-6622

query I rowsort
SELECT + 19 * 79 AS col1 FROM tab1
----
1501
1501
1501

query I rowsort
SELECT - ( col2 ) * 2 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT ALL MAX( 68 ) - SUM( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL MAX ( 68 ) - SUM ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT MAX( DISTINCT 80 ) * - MAX( ALL + 82 ) AS col1 FROM tab1 AS cor0
----
-6560

skipif mysql # not compatible
query I rowsort label-7521
SELECT MAX ( DISTINCT 80 ) * - MAX ( ALL + 82 ) AS col1 FROM tab1 AS cor0
----
-6560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT + CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
51

query III rowsort
SELECT * FROM tab2 WHERE col2 <> ( - col1 + - 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 86 + - ( col2 ) FROM tab1
----
-10
18
27

query I rowsort
SELECT DISTINCT + 85 + - col0 AS col1 FROM tab1
----
-6
0
34

query I rowsort
SELECT ( - 34 ) + col0 AS col0 FROM tab0
----
-19
53
63

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7529
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col2 + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7529
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col2 + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT - 9 * col2 - ( + 40 ) FROM tab2 AS cor0
----
-247
-400
-562

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 - - col1 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT - 55 + COUNT( col0 ) AS col1 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7532
SELECT - 55 + COUNT ( col0 ) AS col1 FROM tab2 AS cor0
----
-52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= ( 29 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7534
SELECT ALL MAX( + CAST( - col0 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL MAX ( + CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT - col2 + + 97 * col2 AS col1 FROM tab1 cor0
----
5664
6528
9216

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 33 BETWEEN - ( col2 ) AND ( col0 / + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col2 * + col0 > + 17
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + 70 IS NOT NULL
----

query I rowsort
SELECT + 72 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT - SUM( ALL + 58 ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-7540
SELECT - SUM ( ALL + 58 ) FROM tab2 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT + COUNT( * ) * + 68 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-7541
SELECT + COUNT ( * ) * + 68 FROM tab1
----
204

query I rowsort
SELECT + col1 * - 77 AS col0 FROM tab1
----
-1078
-3619
-385

query I rowsort
SELECT DISTINCT - 58 * col2 FROM tab1
----
-3422
-3944
-5568

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT DISTINCT - 52 DIV - - col1 FROM tab0
----
-2
-52
0

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT - 52 / - - col1 FROM tab0
----
-2
-52
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7545
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE - 90 = NULL OR NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - 90 = NULL OR NULL IS NOT NULL
----

query I rowsort
SELECT 74 / + col2 FROM tab0 WHERE NOT 0 * + 49 NOT BETWEEN - col2 * col1 + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT NULL >= col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT DISTINCT + MAX( col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT + MAX ( col1 ) AS col0 FROM tab0
----
81

query I rowsort
SELECT - col0 * - 0 * + 83 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT + MAX( + 4 ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-7550
SELECT + MAX ( + 4 ) FROM tab1
----
4

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE + 26 * col1 IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - + 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - - COUNT( * ) + - 58 AS col0 FROM tab0 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7553
SELECT - - COUNT ( * ) + - 58 AS col0 FROM tab0 cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT col2 FROM tab0 AS cor0 WHERE CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7554
SELECT col2 FROM tab0 AS cor0 WHERE CAST ( col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7555
SELECT 4 DIV 60 * + COUNT( col2 ) + ( + 51 ) + - 4 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7555
SELECT 4 / 60 * + COUNT ( col2 ) + ( + 51 ) + - 4 FROM tab2 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 23 ) IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 98 * - - col0 * - + 95 + 0 FROM tab0 cor0
----
139650
809970
903070

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 - + - col2 - - col2 > ( - 77 * 18 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT ALL + ( + 94 ) + - - COUNT( * ) AS col2 FROM tab1 cor0
----
97

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL + ( + 94 ) + - - COUNT ( * ) AS col2 FROM tab1 cor0
----
97

query I rowsort
SELECT ALL - 8 + 5 FROM tab0 WHERE + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7562
SELECT * FROM tab0 WHERE - col0 * + 92 * CAST( NULL AS SIGNED ) <> + 70
----

skipif mysql # not compatible
query III rowsort label-7562
SELECT * FROM tab0 WHERE - col0 * + 92 * CAST ( NULL AS INTEGER ) <> + 70
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7563
SELECT 22 / - CAST( NULL AS SIGNED ) FROM tab1 WHERE - + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT 22 / - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - + col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7564
SELECT ALL + col0 - + col1 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE 95 <= + - col0
----

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL + col0 - + col1 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE 95 <= + - col0
----

query I rowsort
SELECT DISTINCT col2 * - col0 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL + col1 + col0 + ( 44 ) FROM tab2
----
141
185
186

query I rowsort
SELECT DISTINCT col0 * + + col0 + - 72 AS col0 FROM tab1
----
2529
7153
8209

query I rowsort
SELECT DISTINCT + 59 - 66 * + 37 AS col2 FROM tab1 WHERE - - col0 + col0 * - col2 > NULL
----

query I rowsort
SELECT + col2 - 55 + - 3 AS col0 FROM tab2
----
-18
-35
0

query I rowsort
SELECT col1 - + ( col0 ) FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7571
SELECT ALL - 29 + + + CAST( NULL AS SIGNED ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL - 29 + + + CAST ( NULL AS INTEGER ) + - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * col2 FROM tab1 AS cor0 WHERE NOT + col1 * - col2 NOT IN ( 99 + col0 * + 90 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 67 + - - col0 ) <> + 85
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7574
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7574
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col1 + 57 + + + col1 + - col1 > col2 + + col1 * - 5
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7577
SELECT + CAST( NULL AS DECIMAL ) / col1 AS col0 FROM tab2 WHERE + col0 * + col1 + 79 BETWEEN + CAST( 29 AS SIGNED ) - + col2 AND - col0 / - col2
----

skipif mysql # not compatible
query I rowsort label-7577
SELECT + CAST ( NULL AS REAL ) / col1 AS col0 FROM tab2 WHERE + col0 * + col1 + 79 BETWEEN + CAST ( 29 AS INTEGER ) - + col2 AND - col0 / - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + - col1 + + - 43 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 58 AS col0, 93 FROM tab2
----
58
93
58
93
58
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL 68 - 78 + MIN( ALL 20 ) * + 32 AS col2 FROM tab2
----
630

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL 68 - 78 + MIN ( ALL 20 ) * + 32 AS col2 FROM tab2
----
630

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7581
SELECT - col1 AS col2, - CAST( NULL AS SIGNED ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-7581
SELECT - col1 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT DISTINCT + - MAX( + - 5 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT + - MAX ( + - 5 ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL - COUNT( - 92 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL - COUNT ( - 92 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT DISTINCT - + SUM( 32 ) col2 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7585
SELECT DISTINCT - + SUM ( 32 ) col2 FROM tab2 AS cor0
----
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT + col0 DIV 97 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7587
SELECT + col0 / 97 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7588
SELECT DISTINCT + col0 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT + col0 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT col0, + col1 * - ( - col1 ) AS col1, col2 FROM tab1
----
9 values hashing to 733a8078d0b2662673f9418e11fcd010

onlyif mysql # aggregate syntax: 
query II rowsort label-7590
SELECT ALL COUNT( * ) AS col1, - 28 AS col0 FROM tab0
----
3
-28

skipif mysql # not compatible
query II rowsort label-7590
SELECT ALL COUNT ( * ) AS col1, - 28 AS col0 FROM tab0
----
3
-28

query II rowsort
SELECT DISTINCT - 23, - col0 AS col0 FROM tab0
----
-23
-15
-23
-87
-23
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 38 * - 82 IS NULL OR NOT ( NOT ( NULL ) BETWEEN ( col0 - - col1 ) AND ( NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( + col2 ) col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7594
SELECT 64, MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
64
NULL

skipif mysql # not compatible
query II rowsort label-7594
SELECT 64, MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
64
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 72 + - + col0 AND - col1
----

query II rowsort
SELECT + col2 AS col2, ( - - col1 ) * + 79 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( 65 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 IN ( - col0 * 54 + - + ( - + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7598
SELECT ALL * FROM tab1 AS cor0 WHERE + 73 BETWEEN ( + col2 * CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7598
SELECT ALL * FROM tab1 AS cor0 WHERE + 73 BETWEEN ( + col2 * CAST ( NULL AS INTEGER ) ) AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT + ( 52 ) * col0 + + - 27 * + 62 FROM tab2
----
1654
2226
718

query I rowsort
SELECT DISTINCT + + 82 * - + col0 FROM tab1 AS cor0
----
-4182
-6970
-7462

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7602
SELECT ALL * FROM tab1 AS cor0 WHERE 90 * - CAST( NULL AS SIGNED ) = - col1
----

skipif mysql # not compatible
query III rowsort label-7602
SELECT ALL * FROM tab1 AS cor0 WHERE 90 * - CAST ( NULL AS INTEGER ) = - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - 11 col2 FROM tab2 AS cor0
----
40
56
66

query I rowsort
SELECT DISTINCT + col1 * - + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT DISTINCT 9 + - COUNT( + col0 ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT 9 + - COUNT ( + col0 ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT CAST( NULL AS SIGNED ) + + col0 * - col0 * - 96 - + 97 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT CAST ( NULL AS INTEGER ) + + col0 * - col0 * - 96 - + 97 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 77 + 60 + - + 27 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL - 64 FROM tab0 cor0 WHERE NOT col2 * - + col2 IN ( col0 )
----
-64
-64
-64

query I rowsort
SELECT - 81 + - + col2 * + 72 + col0 - - col0 - + - 43 FROM tab2 AS cor0
----
-1602
-2790
-4064

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 BETWEEN + ( + col2 ) * - - ( + col2 ) AND col1
----

query I rowsort
SELECT + col0 + + 56 FROM tab2
----
102
120
131

query I rowsort
SELECT - col1 * - 80 * col0 + - 43 * col1 AS col1 FROM tab2
----
185487
390929
399119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7613
SELECT ALL col1 + + 79 * col2 * - CAST( + col0 AS SIGNED ) FROM tab1
----
-386770
-396180
-488805

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL col1 + + 79 * col2 * - CAST ( + col0 AS INTEGER ) FROM tab1
----
-386770
-396180
-488805

query II rowsort
SELECT col2, + col0 FROM tab0 WHERE NULL IS NULL
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE col1 NOT BETWEEN col0 AND col0
----
3

skipif mysql # not compatible
query I rowsort label-7615
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE col1 NOT BETWEEN col0 AND col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7616
SELECT 5 DIV col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7616
SELECT 5 / col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + col2 AS col1, col2 * - col1 FROM tab1 AS cor0
----
59
-295
68
-3196
96
-1344

query I rowsort
SELECT DISTINCT + + 30 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT DISTINCT + MAX( DISTINCT - 52 ) FROM tab1, tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT + MAX ( DISTINCT - 52 ) FROM tab1, tab1 AS cor0
----
-52

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE + ( 53 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT DISTINCT + MIN( ALL + 79 ) AS col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT + MIN ( ALL + 79 ) AS col2 FROM tab1 AS cor0
----
79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = + col0 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT CAST( NULL AS SIGNED ) col0 FROM tab0 cor0 WHERE NOT + col0 BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7623
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0 WHERE NOT + col0 BETWEEN NULL AND + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT - - CAST( + AVG ( - - 9 ) AS SIGNED ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7624
SELECT - - CAST ( + AVG ( - - 9 ) AS INTEGER ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 64 > + - col1
----
15
81
47

query I rowsort
SELECT ALL - col1 * - - 51 FROM tab2 AS cor0
----
-2601
-3417
-3927

query I rowsort
SELECT DISTINCT - col0 * + + col1 * + + col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE - + col2 IN ( col1 + + - col1 * + 31, + 29 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 51 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 26 * col2 * + + col0 AS col0 FROM tab0
----
18330
22620
249678

query I rowsort
SELECT 67 * + 85 AS col0 FROM tab0
----
5695
5695
5695

query I rowsort
SELECT DISTINCT ( + + col2 ) * + 82 AS col0 FROM tab2
----
1886
3280
4756

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT 46 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7634
SELECT col1 col2, - col2 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7634
SELECT col1 col2, - col2 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT + COUNT( DISTINCT col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7635
SELECT + COUNT ( DISTINCT col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 30 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT 12 + + - col1 AS col2 FROM tab1
----
-2
-35
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * - - ( - - ( 8 ) ) IS NOT NULL
----

query I rowsort
SELECT - 71 + col1 AS col2 FROM tab0
----
-50
-70
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT - - COUNT( * ) * - 4 AS col0 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7640
SELECT - - COUNT ( * ) * - 4 AS col0 FROM tab1 AS cor0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT ALL + 84 DIV ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + 84 / ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7642
SELECT ALL 68 DIV + 66 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL 68 / + 66 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT - COUNT( - col2 ) AS col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7643
SELECT - COUNT ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col0 * - 17 FROM tab1 AS cor0
----
-1445
-1547
-867

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( - 82 ) NOT BETWEEN ( NULL ) AND ( - col0 ) / - col1
----

query I rowsort
SELECT 41 * - + col2 * + 4 - + + 41 FROM tab1
----
-11193
-15785
-9717

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT - ( + COUNT( * ) ) - + + 87 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - ( + COUNT ( * ) ) - + + 87 FROM tab2
----
-90

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL < - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT + 59 * + COUNT( * ) + + 64 + + - COUNT( * ) FROM tab2
----
238

skipif mysql # not compatible
query I rowsort label-7650
SELECT + 59 * + COUNT ( * ) + + 64 + + - COUNT ( * ) FROM tab2
----
238

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + + col0 < NULL
----

query I rowsort
SELECT DISTINCT - 40 - - + 44 FROM tab1 AS cor0
----
4

query I rowsort
SELECT ALL + - col1 - + 74 AS col1 FROM tab1 AS cor0
----
-121
-79
-88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 38 = NULL
----

query I rowsort
SELECT DISTINCT col1 - + col0 + + col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7656
SELECT DISTINCT col0 / + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + col2 * + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col1
----

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT col0 / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + col2 * + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT + - col1 * - col2 - - - CAST( + 95 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1249
200
3101

skipif mysql # not compatible
query I rowsort label-7657
SELECT + - col1 * - col2 - - - CAST ( + 95 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1249
200
3101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7658
SELECT DISTINCT + CAST( 69 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
69

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT + CAST ( 69 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + 36 * + 17 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 17 <= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE ( ( NULL IS NULL ) )
----
-3

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE ( ( NULL IS NULL ) )
----
-3

query II rowsort
SELECT DISTINCT - col2 AS col1, + col2 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT DISTINCT COUNT( DISTINCT - + 19 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT COUNT ( DISTINCT - + 19 ) FROM tab1 AS cor0
----
1

query II rowsort
SELECT + col0 * - + col1, col2 FROM tab2
----
-2346
23
-4928
40
-5025
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT - SUM( ALL - + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7665
SELECT - SUM ( ALL - + col2 ) AS col1 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7666
SELECT CAST( - AVG ( col1 ) AS SIGNED ) * - 90 AS col0 FROM tab2
----
5850

skipif mysql # not compatible
query I rowsort label-7666
SELECT CAST ( - AVG ( col1 ) AS INTEGER ) * - 90 AS col0 FROM tab2
----
5850

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + 46 = ( 43 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 8 + - col0 FROM tab1
----
-59
-93
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7669
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT col1 * 84 * 4 AS col1 FROM tab1 cor0
----
15792
1680
4704

onlyif mysql # aggregate syntax: 
query II rowsort label-7671
SELECT - COUNT( + col0 ) AS col2, MIN( DISTINCT 71 ) AS col2 FROM tab1 cor0
----
-3
71

skipif mysql # not compatible
query II rowsort label-7671
SELECT - COUNT ( + col0 ) AS col2, MIN ( DISTINCT 71 ) AS col2 FROM tab1 cor0
----
-3
71

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT - col0 + col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 86 BETWEEN NULL AND 7
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7674
SELECT DISTINCT - + COUNT( * ) DIV 62 + + 51 AS col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT - + COUNT ( * ) / 62 + + 51 AS col1 FROM tab1 cor0
----
51

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( + 18 ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7676
SELECT DISTINCT - + 36 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT - + 36 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
12

query I rowsort
SELECT + col0 / col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + 38 AS col1 FROM tab0 AS cor0
----
38
38
38

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7679
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - + CAST( - 0 AS DECIMAL ) ) * col2 * 98 * - 4 NOT BETWEEN + 51 AND - 36 * + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7679
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - + CAST ( - 0 AS REAL ) ) * col2 * 98 * - 4 NOT BETWEEN + 51 AND - 36 * + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + + 62 AS col2 FROM tab2 AS cor0
----
22
39
4

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> - 51 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7682
SELECT ALL - col2 * col2 - 98 DIV ( + 67 ) DIV col2 * - col0 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - col2 * col2 - 98 / ( + 67 ) / col2 * - col0 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT ALL CAST( + - col1 AS SIGNED ) + + col2 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL CAST ( + - col1 AS INTEGER ) + + col2 FROM tab1
----
21
54
82

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( col2 * + col2 + 80, + 59 + + 62 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 63 AS col0, + 50 + + 95 col0 FROM tab1 AS cor0
----
63
145
63
145
63
145

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 IN ( - col0 - + col0, ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + + col1 AS col0, 65 FROM tab2 AS cor0
----
51
65
67
65
77
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT DISTINCT ( + + COUNT( - - col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT ( + + COUNT ( - - col2 ) ) FROM tab1
----
3

query I rowsort
SELECT - ( - 17 ) AS col0 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT + + ( + 1 ) FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT ( - 96 ) * - col2 AS col2, - ( col1 ) FROM tab2
----
2208
-51
3840
-77
5568
-67

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + col2 - col1
----

query I rowsort
SELECT - col2 * - col2 * + - col0 AS col0 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query II rowsort label-7694
SELECT + 82 AS col1, + MIN( + - col0 ) AS col0 FROM tab2 AS cor0
----
82
-75

skipif mysql # not compatible
query II rowsort label-7694
SELECT + 82 AS col1, + MIN ( + - col0 ) AS col0 FROM tab2 AS cor0
----
82
-75

query II rowsort
SELECT ALL + col2 AS col1, + 63 FROM tab2 AS cor0
----
23
63
40
63
58
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7696
SELECT ALL - + 80, COUNT( * ) AS col1 FROM tab0 cor0
----
-80
3

skipif mysql # not compatible
query II rowsort label-7696
SELECT ALL - + 80, COUNT ( * ) AS col1 FROM tab0 cor0
----
-80
3

query I rowsort
SELECT ALL + col2 + + ( + col1 ) AS col2 FROM tab1 cor0
----
110
115
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 < + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7699
SELECT ALL COUNT( DISTINCT + - 43 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 90 * - CAST( + + 41 AS SIGNED ) ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL COUNT ( DISTINCT + - 43 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 90 * - CAST ( + + 41 AS INTEGER ) ) < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7700
SELECT ALL + 57 DIV - ( col1 ) + col0 FROM tab2 AS cor0 WHERE col1 + - col2 + col2 + + + col0 + + 80 * - + 57 * - - CAST( col2 AS SIGNED ) IS NOT NULL
----
45
64
75

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL + 57 / - ( col1 ) + col0 FROM tab2 AS cor0 WHERE col1 + - col2 + col2 + + + col0 + + 80 * - + 57 * - - CAST ( col2 AS INTEGER ) IS NOT NULL
----
45
64
75

query II rowsort
SELECT DISTINCT col2 - - ( - col2 ) AS col2, - col0 AS col1 FROM tab0
----
0
-15
0
-87
0
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT + col0 DIV - 5 FROM tab2
----
-12
-15
-9

skipif mysql # not compatible
query I rowsort label-7702
SELECT + col0 / - 5 FROM tab2
----
-12
-15
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-7703
SELECT + col0, 48 * col0 DIV + 81 AS col2 FROM tab0
----
15
8
87
51
97
57

skipif mysql # not compatible
query II rowsort label-7703
SELECT + col0, 48 * col0 / + 81 AS col2 FROM tab0
----
15
8
87
51
97
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7704
SELECT DISTINCT col1 * 72 * - CAST( + col1 AS SIGNED ) col1 FROM tab2
----
-187272
-323208
-426888

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7704
SELECT DISTINCT col1 * 72 * - CAST ( + col1 AS INTEGER ) col1 FROM tab2
----
-187272
-323208
-426888

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT ( + col0 ) * + col2 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT DISTINCT - SUM( - col0 ) * - 87 FROM tab2
----
-16095

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT - SUM ( - col0 ) * - 87 FROM tab2
----
-16095

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL >= - col0
----

query II rowsort
SELECT ALL 72 AS col2, + col0 FROM tab1 AS cor0
----
72
51
72
85
72
91

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT + + 61 IS NOT NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT - col2 * - - 81 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( - col1, col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 27 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7712
SELECT DISTINCT + col2 / ( + - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT + col2 / ( + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7713
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7713
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3

query II rowsort
SELECT - + col2 AS col2, 10 FROM tab1 AS cor0
----
-59
10
-68
10
-96
10

query I rowsort
SELECT ( 17 ) FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE 8 IS NULL
----

query I rowsort
SELECT - ( ( + 25 ) ) FROM tab1 AS cor0
----
-25
-25
-25

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN + col1 AND - 43
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7719
SELECT - col1 * 11 / + + CAST( NULL AS DECIMAL ) + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7719
SELECT - col1 * 11 / + + CAST ( NULL AS REAL ) + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - 68 AS col2 FROM tab0
----
-53
19
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7721
SELECT ALL 15 + + ( + CAST( - - COUNT( ALL - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL 15 + + ( + CAST ( - - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) FROM tab0
----
15

query I rowsort
SELECT 80 + col2 AS col0 FROM tab0
----
127
179
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7723
SELECT DISTINCT COUNT( ALL - - CAST( + 43 AS SIGNED ) ) + ( + COUNT( * ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT COUNT ( ALL - - CAST ( + 43 AS INTEGER ) ) + ( + COUNT ( * ) ) FROM tab0
----
6

query II rowsort
SELECT DISTINCT + ( + col2 ), 61 AS col1 FROM tab0
----
10
61
47
61
99
61

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * - - 51 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT DISTINCT MIN( col1 ) * + + COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT MIN ( col1 ) * + + COUNT ( * ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT + 91 * - - 20 - + + col1 AS col0 FROM tab1
----
1773
1806
1815

onlyif mysql # DIV for integer division: 
query I rowsort label-7729
SELECT DISTINCT col1 * - + ( + 2 ) - col1 DIV + ( + 50 ) AS col1 FROM tab1
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT col1 * - + ( + 2 ) - col1 / + ( + 50 ) AS col1 FROM tab1
----
-10
-28
-94

query I rowsort
SELECT DISTINCT + - col0 - + 43 FROM tab1 cor0
----
-128
-134
-94

query I rowsort
SELECT 32 * - col0 FROM tab2 AS cor0 WHERE ( NULL ) <= 84 + + - col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, 35 * col1 col1 FROM tab2 AS cor0
----
46
1785
64
2695
75
2345

query I rowsort
SELECT - - col0 + + + col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = - - 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + - 83 * - col1 AS col1, - 36 col1 FROM tab1 AS cor0
----
1111
-36
330
-36
3810
-36

query I rowsort
SELECT DISTINCT - + 46 + - 61 AS col0 FROM tab0 AS cor0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT DISTINCT + COUNT( * ) * 84 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT + COUNT ( * ) * 84 FROM tab1 AS cor0
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 * 57 * - + col2 col2 FROM tab0
----
-235752
-496584
-50160

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7740
SELECT DISTINCT ( - + ( CAST( - COUNT( col1 ) AS SIGNED ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT ( - + ( CAST ( - COUNT ( col1 ) AS INTEGER ) ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL ( - ( col0 ) ) AS col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 66 > NULL
----

query I rowsort
SELECT DISTINCT 67 * - 95 FROM tab1 AS cor0
----
-6365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT - SUM( ALL CAST( + + 58 AS SIGNED ) ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-7744
SELECT - SUM ( ALL CAST ( + + 58 AS INTEGER ) ) FROM tab2 AS cor0
----
-174

query II rowsort
SELECT col1 * + - col2, + col2 AS col0 FROM tab0 AS cor0
----
-210
10
-3807
47
-99
99

query I rowsort
SELECT - col0 * + col1 * + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2, col0 - col1 * - 34, col1 + 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 22, col2 + 81 - + 98 + + - col1 * col1 col1 FROM tab1
----
22
-117
22
-2158
22
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + 85 + - 72 NOT IN ( - - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 + + 35 * - ( + col0 ) * col0 * + col0 AS col1 FROM tab1 AS cor0
----
-21494434
-26375053
-4642881

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT - ( + ( - 97 ) ) + + ( COUNT( - 46 ) ) AS col0 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-7751
SELECT - ( + ( - 97 ) ) + + ( COUNT ( - 46 ) ) AS col0 FROM tab0 AS cor0
----
100

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7753
SELECT + 54 FROM tab2 AS cor0 WHERE NOT ( + - col0 ) >= - col2 + CAST( NULL AS SIGNED ) + CAST( - col0 AS DECIMAL ) * - col2
----

skipif mysql # not compatible
query I rowsort label-7753
SELECT + 54 FROM tab2 AS cor0 WHERE NOT ( + - col0 ) >= - col2 + CAST ( NULL AS INTEGER ) + CAST ( - col0 AS REAL ) * - col2
----

query II rowsort
SELECT col2, - ( + - 91 ) AS col0 FROM tab2 AS cor0
----
23
91
40
91
58
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT DISTINCT MAX( col1 ) AS col2 FROM tab2 AS cor0 WHERE ( - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT MAX ( col1 ) AS col2 FROM tab2 AS cor0 WHERE ( - col0 ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( col1 ) + + + col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT col0 * - col1 + col2 + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT col0 * - col1 + col2 + col2 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE 80 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT COUNT( + ( + 13 ) ) * MIN( DISTINCT col0 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7760
SELECT COUNT ( + ( + 13 ) ) * MIN ( DISTINCT col0 ) FROM tab0
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7761
SELECT - CAST( NULL AS DECIMAL ) * col0 * + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT - CAST ( NULL AS REAL ) * col0 * + + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7762
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN - - 84 - - + col1 + - 61 * + 74 AND col1
----

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN - - 84 - - + col1 + - 61 * + 74 AND col1
----

query I rowsort
SELECT + col0 * - col0 * - col1 AS col0 FROM tab2
----
107916
315392
376875

onlyif mysql # DIV for integer division: 
query II rowsort label-7764
SELECT DISTINCT + 90, - col1 DIV + - 95 AS col2 FROM tab1
----
90
0

skipif mysql # not compatible
query II rowsort label-7764
SELECT DISTINCT + 90, - col1 / + - 95 AS col2 FROM tab1
----
90
0

query I rowsort
SELECT 18 + 37 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT ALL - - 56 * + 91 + - + 31 FROM tab2 AS cor0
----
5065
5065
5065

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT - - COUNT( * ) + 35 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
44

skipif mysql # not compatible
query I rowsort label-7767
SELECT - - COUNT ( * ) + 35 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT - SUM( + 73 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-657

skipif mysql # not compatible
query I rowsort label-7768
SELECT - SUM ( + 73 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-657

onlyif mysql # aggregate syntax: 
query II rowsort label-7769
SELECT ALL + - COUNT( * ) - + 96, COUNT( * ) AS col1 FROM tab2 cor0
----
-99
3

skipif mysql # not compatible
query II rowsort label-7769
SELECT ALL + - COUNT ( * ) - + 96, COUNT ( * ) AS col1 FROM tab2 cor0
----
-99
3

query I rowsort
SELECT DISTINCT col2 + + col2 + + col0 FROM tab2 AS cor0
----
144
191
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 96 / - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT - MAX( ALL + 94 ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7772
SELECT - MAX ( ALL + 94 ) FROM tab2 AS cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7773
SELECT DISTINCT + col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7773
SELECT DISTINCT + col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT 47 * + MIN( col2 ) AS col0 FROM tab2
----
1081

skipif mysql # not compatible
query I rowsort label-7774
SELECT 47 * + MIN ( col2 ) AS col0 FROM tab2
----
1081

query I rowsort
SELECT DISTINCT 77 * + 73 FROM tab1 WHERE NOT col1 IS NULL
----
5621

query I rowsort
SELECT 96 * + + col1 AS col1 FROM tab0
----
2016
7776
96

query I rowsort
SELECT DISTINCT + - col1 * + 33 + - + ( + 7 ) AS col0 FROM tab0 cor0
----
-2680
-40
-700

query I rowsort
SELECT DISTINCT + + 19 * 42 AS col2 FROM tab1 AS cor0
----
798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7779
SELECT ALL - CAST( - + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7779
SELECT ALL - CAST ( - + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7780
SELECT - CAST( - 76 AS SIGNED ) FROM tab1
----
76
76
76

skipif mysql # not compatible
query I rowsort label-7780
SELECT - CAST ( - 76 AS INTEGER ) FROM tab1
----
76
76
76

query I rowsort
SELECT DISTINCT - col0 * + 93 + + col2 FROM tab1 AS cor0
----
-4647
-7846
-8395

query II rowsort
SELECT ALL 60 * col0, 81 AS col1 FROM tab0 cor0
----
5220
81
5820
81
900
81

query I rowsort
SELECT - 13 AS col0 FROM tab2 AS cor0 WHERE - col0 * + - col1 IS NOT NULL
----
-13
-13
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7784
SELECT DISTINCT - COUNT( * ) DIV + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT - COUNT ( * ) / + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7785
SELECT - + 38 DIV col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7785
SELECT - + 38 / col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7786
SELECT ALL - - ( + ( + COUNT( * ) ) ) + - 22 AS col0, + COUNT( * ) FROM tab1 AS cor0
----
-19
3

skipif mysql # not compatible
query II rowsort label-7786
SELECT ALL - - ( + ( + COUNT ( * ) ) ) + - 22 AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
-19
3

query I rowsort
SELECT + ( 67 ) FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
67
67
67

query I rowsort
SELECT DISTINCT + col1 * - + col1 + col2 FROM tab2 AS cor0
----
-2578
-4431
-5889

query I rowsort
SELECT + + 84 + col0 * col1 FROM tab2 AS cor0
----
2430
5012
5109

query I rowsort
SELECT - col1 + - 50 * + col1 AS col0 FROM tab2 AS cor0
----
-2601
-3417
-3927

query I rowsort
SELECT col1 + - - 68 FROM tab2
----
119
135
145

query I rowsort
SELECT ALL - col0 + 86 - + + 68 AS col2 FROM tab2
----
-28
-46
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT DISTINCT 77 * COUNT( * ) AS col2 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT 77 * COUNT ( * ) AS col2 FROM tab1
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT 80 + - COUNT( * ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-7794
SELECT 80 + - COUNT ( * ) FROM tab1
----
77

query II rowsort
SELECT 69 + 81 * + 38 AS col2, col1 - + 21 AS col0 FROM tab2
----
3147
30
3147
46
3147
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7796
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE ( col0 * - + col1 + 44 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( col0 * - + col1 + 44 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7797
SELECT DISTINCT - 93 DIV - 19 - - col0 + 69 AS col0 FROM tab0 AS cor0
----
160
170
88

skipif mysql # not compatible
query I rowsort label-7797
SELECT DISTINCT - 93 / - 19 - - col0 + 69 AS col0 FROM tab0 AS cor0
----
160
170
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT + col0 / + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT + col0 / + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( + + col1 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - 41 AS col0 FROM tab2
----
23
-41
40
-41
58
-41

query I rowsort
SELECT ALL - 71 + ( + - 86 ) AS col1 FROM tab0
----
-157
-157
-157

query II rowsort
SELECT ALL col1 - + col2 AS col0, col2 + 75 * + + col1 AS col2 FROM tab2
----
28
3848
37
5815
9
5083

query I rowsort
SELECT ALL - ( - 2 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # DIV for integer division: 
query I rowsort label-7804
SELECT ALL - col1 DIV + 94 + + - col2 * - 48 + + col1 AS col2 FROM tab2
----
1155
1997
2851

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL - col1 / + 94 + + - col2 * - 48 + + col1 AS col2 FROM tab2
----
1155
1997
2851

query II rowsort
SELECT 17 AS col2, col1 AS col1 FROM tab1
----
17
14
17
47
17
5

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col1 + + col0 AND + col1
----

query II rowsort
SELECT 22, 7 AS col1 FROM tab0 AS cor0
----
22
7
22
7
22
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7808
SELECT + + COUNT( DISTINCT col2 ) AS col1, 87 FROM tab2 AS cor0
----
3
87

skipif mysql # not compatible
query II rowsort label-7808
SELECT + + COUNT ( DISTINCT col2 ) AS col1, 87 FROM tab2 AS cor0
----
3
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7809
SELECT ALL - COUNT( * ) DIV COUNT( * ) + - 61 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL - COUNT ( * ) / COUNT ( * ) + - 61 FROM tab1 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT - COUNT( * ) AS col1, + 18 - ( - 26 ) FROM tab0 AS cor0
----
-3
44

skipif mysql # not compatible
query II rowsort label-7810
SELECT - COUNT ( * ) AS col1, + 18 - ( - 26 ) FROM tab0 AS cor0
----
-3
44

query I rowsort
SELECT + + col0 * - - 11 FROM tab0 AS cor0
----
1067
165
957

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT DISTINCT - SUM( - 1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT - SUM ( - 1 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT ALL + ( - + 0 ) AS col1, col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT 17 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7814
SELECT 17 / col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT col2 DIV + - col2 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7815
SELECT col2 / + - col2 AS col1 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT SUM( - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT SUM ( - col1 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT + col2 * + col0 * 42 + - col1 FROM tab2 AS cor0
----
107443
182633
44385

query I rowsort
SELECT DISTINCT + - col1 * + - 17 + - col0 AS col0 FROM tab2 AS cor0
----
1064
1245
821

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 35 + + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT DISTINCT 72 + - - COUNT( * ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT 72 + - - COUNT ( * ) AS col0 FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT ALL + 76 * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL + 76 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT DISTINCT COUNT( * ) * + 71 AS col0 FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT COUNT ( * ) * + 71 AS col0 FROM tab2 AS cor0
----
213

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 38 IS NULL
----

query I rowsort
SELECT + 57 * - 31 FROM tab1 AS cor0
----
-1767
-1767
-1767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT ALL CAST( + - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL CAST ( + - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7826
SELECT + COUNT( * ) DIV + - 47 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7826
SELECT + COUNT ( * ) / + - 47 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT DISTINCT + - col2 * + col2 * - col1 + - 9 + + 12 DIV - + 1 FROM tab2 AS cor0
----
123179
225367
26958

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT + - col2 * + col2 * - col1 + - 9 + + 12 / - + 1 FROM tab2 AS cor0
----
123179
225367
26958

query II rowsort
SELECT 0 * + col1 AS col1, - 20 AS col0 FROM tab1
----
0
-20
0
-20
0
-20

query I rowsort
SELECT DISTINCT - 48 + + 32 FROM tab0
----
-16

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) + + - 36 + 98 <= + - col1
----

query I rowsort
SELECT ALL 26 - + col0 * + 32 AS col2 FROM tab2
----
-1446
-2022
-2374

query I rowsort
SELECT ALL - 85 * col1 - + + ( - - col1 ) * - + col2 + - + col2 AS col1 FROM tab2
----
-1867
-3185
-3505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - 44 - 92 col2 FROM tab0
----
-121
-39
-49

query II rowsort
SELECT ALL col2 + + + col0 AS col0, col0 FROM tab2
----
104
64
133
75
69
46

query I rowsort
SELECT - 71 - + col1 AS col1 FROM tab1
----
-118
-76
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 - - 80 col2 FROM tab1
----
2681
7305
8361

query I rowsort
SELECT + col0 + 79 * + 15 + + - col0 AS col2 FROM tab1 AS cor0
----
1185
1185
1185

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL SUM( + col0 ) FROM tab2 AS cor0 WHERE ( - col2 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL SUM ( + col0 ) FROM tab2 AS cor0 WHERE ( - col2 ) <= NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 35 / + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT + + col2 DIV ( - col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7840
SELECT + + col2 / ( - col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( NULL ) = + 71
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7842
SELECT - col1 DIV - + CAST( - + col2 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7842
SELECT - col1 / - + CAST ( - + col2 AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7843
SELECT DISTINCT - col0 DIV + 84 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT - col0 / + 84 AS col2 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT + + MIN( ALL + col2 ) col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7844
SELECT + + MIN ( ALL + col2 ) col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT + ( - SUM( - + 75 ) ) FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7845
SELECT + ( - SUM ( - + 75 ) ) FROM tab0 AS cor0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7846
SELECT CAST( + + 24 AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
24
24
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7846
SELECT CAST ( + + 24 AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
24
24
24

query I rowsort
SELECT ALL - col0 * - + 5 FROM tab1 AS cor0
----
255
425
455

query II rowsort
SELECT 79 AS col0, col1 * + + ( - 53 ) AS col2 FROM tab1
----
79
-2491
79
-265
79
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + + ( - 52 ) + MIN( ALL 67 ) AS col1 FROM tab2 WHERE NOT + + col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7849
SELECT + + ( - 52 ) + MIN ( ALL 67 ) AS col1 FROM tab2 WHERE NOT + + col0 <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 * - + col2 col0 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7851
SELECT DISTINCT CAST( NULL AS SIGNED ) / 80 * - - CAST( NULL AS SIGNED ) * 85 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 80 * - - CAST ( NULL AS INTEGER ) * 85 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + ( - + col0 ) AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT ( NOT ( NULL ) < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT + COUNT( * ) + + 84 AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-7854
SELECT + COUNT ( * ) + + 84 AS col0 FROM tab2
----
87

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7856
SELECT - col1, - CAST( - ( 30 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
30
-67
30
-77
30

skipif mysql # not compatible
query II rowsort label-7856
SELECT - col1, - CAST ( - ( 30 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
30
-67
30
-77
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= ( col0 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7858
SELECT + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + col2 + - col1
----

query I rowsort
SELECT - ( 8 ) AS col1 FROM tab0 cor0
----
-8
-8
-8

query I rowsort
SELECT 51 FROM tab2 cor0 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 - col2 col0 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT col1 + + + col1 AS col2, col2 FROM tab0 cor0
----
162
47
2
99
42
10

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) > + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - 25 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 87 + 23 FROM tab0 AS cor0
----
110
110
110

query I rowsort
SELECT DISTINCT - col0 + 21 FROM tab1
----
-30
-64
-70

query I rowsort
SELECT DISTINCT 70 - - col0 AS col0 FROM tab0
----
157
167
85

query I rowsort
SELECT ALL - col2 + - 84 FROM tab1
----
-143
-152
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7870
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) * - 82 - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - 82 - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT DISTINCT ( - 31 ) * + + col0 * - - col1 + - col1 - - col2 / + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT ( - 31 ) * + + col0 * - - col1 + - col1 - - col2 / + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7872
SELECT DISTINCT 48 DIV + col1 + col1 AS col2, + col1 AS col2 FROM tab0
----
23
21
49
1
81
81

skipif mysql # not compatible
query II rowsort label-7872
SELECT DISTINCT 48 / + col1 + col1 AS col2, + col1 AS col2 FROM tab0
----
23
21
49
1
81
81

query I rowsort
SELECT ( - 3 ) FROM tab1
----
-3
-3
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT - 48 - + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7875
SELECT - 48 - + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-45

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 68 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7877
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) FROM tab0 WHERE NOT + col2 - + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT + col2 - + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT COUNT( * ) * + - MIN( ALL + col2 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-7878
SELECT COUNT ( * ) * + - MIN ( ALL + col2 ) FROM tab2
----
-69

query IIIIII rowsort
SELECT * FROM tab1 cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
35

query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7882
SELECT DISTINCT + - ( + - 24 ) AS col0, + SUM( col2 ) AS col2 FROM tab2 AS cor0
----
24
121

skipif mysql # not compatible
query II rowsort label-7882
SELECT DISTINCT + - ( + - 24 ) AS col0, + SUM ( col2 ) AS col2 FROM tab2 AS cor0
----
24
121

query I rowsort
SELECT ( - + col0 ) * + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT + col2 * col0 - - - col0 AS col2 FROM tab2 AS cor0
----
1012
2496
4275

onlyif mysql # DIV for integer division: 
query I rowsort label-7885
SELECT DISTINCT - - col2 DIV + col2 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT - - col2 / + col2 AS col2 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7886
SELECT ALL CAST( NULL AS DECIMAL ) * - 53 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL CAST ( NULL AS REAL ) * - 53 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT + + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7887
SELECT + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7888
SELECT - 76 DIV - - 15 AS col2 FROM tab1
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-7888
SELECT - 76 / - - 15 AS col2 FROM tab1
----
-5
-5
-5

query I rowsort
SELECT DISTINCT 23 FROM tab1 WHERE NOT NULL < - col2 + - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col0 ) / - col2 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL + ( - + MIN( col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + ( - + MIN ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ALL + MAX( DISTINCT + + 95 ) AS col1 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL + MAX ( DISTINCT + + 95 ) AS col1 FROM tab0 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT + MIN( ( + - 26 ) ) AS col2 FROM tab2 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7893
SELECT + MIN ( ( + - 26 ) ) AS col2 FROM tab2 cor0
----
-26

query I rowsort
SELECT + - 92 FROM tab0 AS cor0 WHERE NULL = - col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE + col1 + col0 IN ( + col2 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 + col0 IN ( + col2 + - col2 )
----
0

query I rowsort
SELECT + ( + ( + 69 ) ) + + col2 + + - ( - - 19 ) FROM tab2 AS cor0
----
108
73
90

query I rowsort
SELECT ALL + col2 + - 96 AS col0 FROM tab2
----
-38
-56
-73

query I rowsort
SELECT + col0 + + 35 AS col0 FROM tab2
----
110
81
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 < col2 / - 6 + + - col1 + + 47
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7900
SELECT - COUNT( * ) col1, + SUM( DISTINCT col0 ) * - 13 * 11 * + + 95 - + COUNT( * ) + + 37 DIV + ( + COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3
-2703406

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7900
SELECT - COUNT ( * ) col1, + SUM ( DISTINCT col0 ) * - 13 * 11 * + + 95 - + COUNT ( * ) + + 37 / + ( + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3
-2703406

query II rowsort
SELECT ALL col2, - col0 * - col1 * - col2 * col0 FROM tab0 cor0
----
10
-1589490
47
-856575
99
-931491

query I rowsort
SELECT - - 13 / + - col1 + - col0 AS col2 FROM tab2 AS cor0 WHERE NULL < + 45
----

query I rowsort
SELECT DISTINCT + col0 * - 93 + col0 * col1 FROM tab0
----
-180
-6264
-8924

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 76 BETWEEN 44 + + col0 AND + col2 / - col0
----

query I rowsort
SELECT ( - col1 ) - - 50 FROM tab0
----
-31
29
49

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + - col2 + + - col2 AND NULL
----

query I rowsort
SELECT 65 * col0 + 96 * - 96 AS col2 FROM tab2
----
-4341
-5056
-6226

query I rowsort
SELECT ALL + 37 - - 66 * - col1 - + col0 * - - col1 FROM tab0
----
-126
-3176
-6524

query II rowsort
SELECT + ( col2 ) + - col0 * + + col1 + - col0 AS col2, + 60 AS col1 FROM tab1
----
-4300
60
-451
60
-669
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7910
SELECT ALL col2 DIV + col1 - - col2 AS col1 FROM tab0
----
10
198
47

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL col2 / + col1 - - col2 AS col1 FROM tab0
----
10
198
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7911
SELECT - COUNT( + col1 ) * - 46 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7911
SELECT - COUNT ( + col1 ) * - 46 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT ALL CAST( - + col0 AS SIGNED ) * + col1 col0 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7912
SELECT ALL CAST ( - + col0 AS INTEGER ) * + col1 col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7913
SELECT DISTINCT 51 DIV + MIN( - col0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT 51 / + MIN ( - col0 ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7914
SELECT COUNT( * ) DIV + 13 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT COUNT ( * ) / + 13 AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 64 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col1, col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL >= 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ALL + 18 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL + 18 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT col0 FROM tab1 AS cor0 WHERE NOT col1 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7919
SELECT col0 FROM tab1 AS cor0 WHERE NOT col1 < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - - 17 * col1 FROM tab1 cor0
----
238
799
85

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <> ( + - 24 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7922
SELECT - + 12, 5 + col2 DIV - + col2 AS col0 FROM tab2 AS cor0
----
-12
4
-12
4
-12
4

skipif mysql # not compatible
query II rowsort label-7922
SELECT - + 12, 5 + col2 / - + col2 AS col0 FROM tab2 AS cor0
----
-12
4
-12
4
-12
4

query III rowsort
SELECT * FROM tab1 WHERE NOT 23 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL MIN( - 51 ) + - 8 AS col0 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL MIN ( - 51 ) + - 8 AS col0 FROM tab2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT + 4 * COUNT( * ) col0 FROM tab1
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7925
SELECT + 4 * COUNT ( * ) col0 FROM tab1
----
12

query I rowsort
SELECT + col1 * + ( + + col1 ) + + - col2 AS col0 FROM tab2
----
2578
4431
5889

query II rowsort
SELECT ALL col2 * - col0, 53 + - - col1 AS col1 FROM tab2 cor0
----
-1058
104
-2560
130
-4350
120

query I rowsort
SELECT ALL + col2 * + ( + - 63 ) AS col2 FROM tab0 cor0
----
-2961
-6237
-630

query I rowsort
SELECT ALL col1 * 85 AS col1 FROM tab0 AS cor0
----
1785
6885
85

query I rowsort
SELECT ALL 56 + - - col2 FROM tab2
----
114
79
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7932
SELECT + col0 + + + CAST( + col1 AS SIGNED ) * + col0 + 76 AS col0 FROM tab0 AS cor0
----
1306
1990
270

skipif mysql # not compatible
query I rowsort label-7932
SELECT + col0 + + + CAST ( + col1 AS INTEGER ) * + col0 + 76 AS col0 FROM tab0 AS cor0
----
1306
1990
270

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT - + 44 + + + COUNT( * ) FROM tab0 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-7933
SELECT - + 44 + + + COUNT ( * ) FROM tab0 cor0
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-7934
SELECT ALL col1, 8 DIV + col1 + col1 DIV 15 * - + col2 * + col1 + + col0 FROM tab1 cor0
----
14
51
47
-9497
5
86

skipif mysql # not compatible
query II rowsort label-7934
SELECT ALL col1, 8 / + col1 + col1 / 15 * - + col2 * + col1 + + col0 FROM tab1 cor0
----
14
51
47
-9497
5
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7935
SELECT ALL - 14 - col2 + - - 3 / - + col2 - - + CAST( NULL AS SIGNED ) AS col1, CAST( 34 AS SIGNED ) FROM tab1 cor0
----
NULL
34
NULL
34
NULL
34

skipif mysql # not compatible
query II rowsort label-7935
SELECT ALL - 14 - col2 + - - 3 / - + col2 - - + CAST ( NULL AS INTEGER ) AS col1, CAST ( 34 AS INTEGER ) FROM tab1 cor0
----
NULL
34
NULL
34
NULL
34

query I rowsort
SELECT + 40 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
40
40
40

query I rowsort
SELECT ALL - 28 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-28
-28
-28

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = 27
----

query II rowsort
SELECT DISTINCT - 43 + + - 86 AS col0, - col0 FROM tab1
----
-129
-51
-129
-85
-129
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 89 <= - + 49 / + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + col2 ) * - + ( - 12 ) + + col2 AS col0 FROM tab0
----
-1089
-110
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT DISTINCT + MAX( - + col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7942
SELECT DISTINCT + MAX ( - + col1 ) AS col1 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT DISTINCT SUM( - col2 ) col0 FROM tab2 WHERE NULL IS NULL
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7943
SELECT DISTINCT SUM ( - col2 ) col0 FROM tab2 WHERE NULL IS NULL
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT ALL - CAST( + 96 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL - CAST ( + 96 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-96
-96
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 8 + - 63, col2, + - col1 + + col2, + + col0, col2, col0 * - - col0 + - + col2, + + col1 + col0 )
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT 22 * - - 49 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col2 * - col1 FROM tab1 AS cor0
----
51
-1344
85
-295
91
-3196

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 76 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7949
SELECT DISTINCT MIN( - 70 ), AVG ( - col1 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-7949
SELECT DISTINCT MIN ( - 70 ), AVG ( - col1 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-70
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7950
SELECT ( COUNT( * ) ) col1, ( - COUNT( * ) ) AS col1 FROM tab0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7950
SELECT ( COUNT ( * ) ) col1, ( - COUNT ( * ) ) AS col1 FROM tab0
----
3
-3

query I rowsort
SELECT ALL 48 * - 62 FROM tab1 AS cor0
----
-2976
-2976
-2976

query I rowsort
SELECT - - 70 * - col0 * - 72 AS col0 FROM tab0 AS cor0
----
438480
488880
75600

query I rowsort
SELECT + + col2 - + col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1 * + col2 * + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7954
SELECT ALL - MAX( col2 ) * - 21 AS col0, + COUNT( * ) + + ( COUNT( DISTINCT - ( 20 ) ) ) col0 FROM tab1 AS cor0
----
2016
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7954
SELECT ALL - MAX ( col2 ) * - 21 AS col0, + COUNT ( * ) + + ( COUNT ( DISTINCT - ( 20 ) ) ) col0 FROM tab1 AS cor0
----
2016
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT + MAX( - 8 ) AS col0 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7955
SELECT + MAX ( - 8 ) AS col0 FROM tab2 AS cor0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7956
SELECT DISTINCT SUM( - CAST( + col1 AS SIGNED ) ) * - + MAX( ALL + col0 ) FROM tab0 AS cor0
----
9991

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT SUM ( - CAST ( + col1 AS INTEGER ) ) * - + MAX ( ALL + col0 ) FROM tab0 AS cor0
----
9991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7957
SELECT DISTINCT + CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7958
SELECT DISTINCT - - col0 AS col2, - col1 / - col2 FROM tab0 WHERE NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-7958
SELECT DISTINCT - - col0 AS col2, - col1 / - col2 FROM tab0 WHERE NULL = CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + + col2 / + 89 / + col0 + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 * col2 col1 FROM tab1
----
3953
4556
6432

query I rowsort
SELECT col0 * + 43 AS col0 FROM tab2
----
1978
2752
3225

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT 9 * + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT - 96 * COUNT( * ) AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-7963
SELECT - 96 * COUNT ( * ) AS col2 FROM tab1
----
-288

query I rowsort
SELECT - 8 + + + 54 AS col2 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT - col1 + - + 87 + + 69 * + - ( - col1 ) * - col0 * + - col0 + + 12 FROM tab1 AS cor0
----
2492545
2512477
26855161

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT + 65 * ( - MAX( ALL col0 ) ) FROM tab2
----
-4875

skipif mysql # not compatible
query I rowsort label-7966
SELECT + 65 * ( - MAX ( ALL col0 ) ) FROM tab2
----
-4875

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7967
SELECT ALL * FROM tab1 WHERE col2 = ( - CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7967
SELECT ALL * FROM tab1 WHERE col2 = ( - CAST ( - col1 AS INTEGER ) )
----

query I rowsort
SELECT - col1 * + 63 AS col1 FROM tab0
----
-1323
-5103
-63

query I rowsort
SELECT DISTINCT 44 * - 48 FROM tab0
----
-2112

query I rowsort
SELECT + 56 FROM tab2 WHERE NOT col0 * - col0 <= 28 + + 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7971
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT ( - col0 * col1 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7971
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( - col0 * col1 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT ( CAST( - col0 AS SIGNED ) ) + + col1 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-7972
SELECT ( CAST ( - col0 AS INTEGER ) ) + + col1 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7973
SELECT DISTINCT + CAST( 60 AS SIGNED ) * + COUNT( ALL 85 * - col0 - 17 ) col2 FROM tab1
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7973
SELECT DISTINCT + CAST ( 60 AS INTEGER ) * + COUNT ( ALL 85 * - col0 - 17 ) col2 FROM tab1
----
180

query III rowsort
SELECT * FROM tab1 WHERE 24 NOT BETWEEN ( + 3 ) AND ( - col0 - + ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT col1 DIV 64 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7975
SELECT col1 / 64 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7976
SELECT DISTINCT + 0 DIV col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT + 0 / col0 FROM tab0
----
0

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 56 + + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + 18 AS col2 FROM tab0
----
-69
-79
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7980
SELECT 95 / - CAST( - ( col1 ) AS DECIMAL ) AS col2 FROM tab2 WHERE NOT ( - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7980
SELECT 95 / - CAST ( - ( col1 ) AS REAL ) AS col2 FROM tab2 WHERE NOT ( - col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 9 + + col0 / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL SUM( ALL + ( 66 ) ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL SUM ( ALL + ( 66 ) ) FROM tab1
----
198

query I rowsort
SELECT ALL 8 AS col0 FROM tab2 WHERE NOT - 82 IN ( 73 )
----
8
8
8

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE col1 < ( + col0 )
----
1
21

query I rowsort
SELECT DISTINCT ( - 8 ) FROM tab2 WHERE NOT ( 57 ) NOT IN ( + 96 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 + ( - 11 ) * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( - 61 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - 72 * COUNT( * ) AS col2 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-7990
SELECT - 72 * COUNT ( * ) AS col2 FROM tab0
----
-216

query I rowsort
SELECT 67 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 43
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + 74 / - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 28 > col1
----
15
81
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7994
SELECT DISTINCT + 3 * CAST( NULL AS DECIMAL ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7994
SELECT DISTINCT + 3 * CAST ( NULL AS REAL ) col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 49 IN ( - 82 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + 77 ) FROM tab2 cor0
----
77
77
77

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT col1 + 32 * - col2 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT 40 * col1 FROM tab0 AS cor0 WHERE 84 + 38 IS NOT NULL
----
3240
40
840

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT - MAX( - 66 ) AS col0 FROM tab0 cor0
----
66

skipif mysql # not compatible
query I rowsort label-7999
SELECT - MAX ( - 66 ) AS col0 FROM tab0 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT ALL SUM( 14 ) + COUNT( * ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL SUM ( 14 ) + COUNT ( * ) FROM tab0 AS cor0
----
45

query I rowsort
SELECT + - 90 * + col2 + 62 AS col2 FROM tab2 AS cor0
----
-2008
-3538
-5158

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + col0 * ( 89 ) AS col2 FROM tab1 AS cor0
----
4553
7570
8146

query I rowsort
SELECT DISTINCT + 28 FROM tab1 WHERE - col0 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT 11 + - ( + col1 ) + col0 AS col2 FROM tab2
----
-2
19
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT - 79 + - COUNT( * ) col1 FROM tab0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8006
SELECT - 79 + - COUNT ( * ) col1 FROM tab0
----
-82

query I rowsort
SELECT col2 * + 16 + + col1 AS col1 FROM tab0
----
1585
181
833

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT MAX( ALL - 56 ) * - 53 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND 73
----
2968

skipif mysql # not compatible
query I rowsort label-8008
SELECT MAX ( ALL - 56 ) * - 53 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND 73
----
2968

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT MIN( ALL - col0 ) + 68 AS col1 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-8009
SELECT MIN ( ALL - col0 ) + 68 AS col1 FROM tab0
----
-29

query I rowsort
SELECT ( + - col0 ) + - col1 AS col2 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT 52 + + MIN( ( + col1 ) ) AS col1 FROM tab2
----
103

skipif mysql # not compatible
query I rowsort label-8011
SELECT 52 + + MIN ( ( + col1 ) ) AS col1 FROM tab2
----
103

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * - ( 45 ) NOT IN ( + 5 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 69 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + COUNT( ALL ( - col1 ) ) FROM tab0 WHERE + col1 * - col0 IN ( - col2 * + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8014
SELECT + COUNT ( ALL ( - col1 ) ) FROM tab0 WHERE + col1 * - col0 IN ( - col2 * + col0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8015
SELECT COUNT( * ) + 72 * + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8015
SELECT COUNT ( * ) + 72 * + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( 20 ) IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8017
SELECT COUNT( * ) * - MAX( DISTINCT - ( col0 ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT COUNT ( * ) * - MAX ( DISTINCT - ( col0 ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT DISTINCT MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8019
SELECT ALL + + CAST( - 23 AS SIGNED ) DIV col0 + 98 AS col0 FROM tab2 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL + + CAST ( - 23 AS INTEGER ) / col0 + 98 AS col0 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT 31 * + CAST( NULL AS SIGNED ) * - + col0 - 84 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8020
SELECT 31 * + CAST ( NULL AS INTEGER ) * - + col0 - 84 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT + + 93 * COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
837

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8021
SELECT + + 93 * COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
837

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 >= ( - 18 - - col1 )
----
75
67
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 52 * - - col0 + + col0 <> ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 22 * + col0 AS col0 FROM tab1 AS cor0
----
1122
1870
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
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-8025
SELECT + ( + COUNT ( * ) ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT - + COUNT( ALL - 18 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8026
SELECT - + COUNT ( ALL - 18 ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8027
SELECT - + col1 * + + CAST( NULL AS SIGNED ) / 44 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT - + col1 * + + CAST ( NULL AS INTEGER ) / 44 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col1 FROM tab0 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL + COUNT( * ) * + 50 + + + COUNT( ALL ( 33 ) ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL + COUNT ( * ) * + 50 + + + COUNT ( ALL ( 33 ) ) FROM tab1 AS cor0
----
153

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT col2 = 72
----
1
21
81

query I rowsort
SELECT - col1 * + 16 AS col1 FROM tab0 AS cor0
----
-1296
-16
-336

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8032
SELECT ALL * FROM tab0 WHERE NOT ( - col0 + + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8032
SELECT ALL * FROM tab0 WHERE NOT ( - col0 + + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + col1 * 59 FROM tab2
----
153459
264851
349811

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT DISTINCT - SUM( + + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT - SUM ( + + col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT MIN( + ( - col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT MIN ( + ( - col2 ) ) FROM tab1
----
-96

query I rowsort
SELECT 51 * - 31 FROM tab0
----
-1581
-1581
-1581

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL >= col1
----

query I rowsort
SELECT ALL + 14 * - - col0 FROM tab2
----
1050
644
896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8039
SELECT DISTINCT COUNT( * ) DIV + + SUM( col1 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT COUNT ( * ) / + + SUM ( col1 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 * + 0 AS col1 FROM tab0 WHERE - - 79 + 4 + col0 / + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE - 71 <> col0 * + col0 + ( 96 + + col0 * - 8 )
----
3

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE - 71 <> col0 * + col0 + ( 96 + + col0 * - 8 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT ALL + COUNT( * ) * + MAX( - - 0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL + COUNT ( * ) * + MAX ( - - 0 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col2 * - 22 FROM tab0 AS cor0
----
-1034
-2178
-220

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 0 + - 15 > ( NULL )
----

query I rowsort
SELECT ALL + - 35 * - 95 FROM tab0 AS cor0
----
3325
3325
3325

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT DISTINCT + 2 + COUNT( * ) * - 9 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT + 2 + COUNT ( * ) * - 9 FROM tab2 AS cor0
----
-25

query II rowsort
SELECT - 54 + 49 * + - col1 AS col1, + 37 AS col2 FROM tab2
----
-2553
37
-3337
37
-3827
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8048
SELECT - ( - + col0 ) * + col1 + + + 23 + + - 16 - + 7 DIV col2 AS col1 FROM tab1
----
4284
432
721

skipif mysql # not compatible
query I rowsort label-8048
SELECT - ( - + col0 ) * + col1 + + + 23 + + - 16 - + 7 / col2 AS col1 FROM tab1
----
4284
432
721

query III rowsort
SELECT * FROM tab2 WHERE 92 + - col2 IS NULL
----

query I rowsort
SELECT - 14 + + ( + col2 ) FROM tab0 cor0
----
-4
33
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8051
SELECT DISTINCT - + MIN( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT - + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 48 col2 FROM tab2 AS cor0
----
-19
-29
-3

query II rowsort
SELECT + + col2 AS col0, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL - - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL - - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 + + + col1 ) BETWEEN + col2 * + col0 AND col2
----

query I rowsort
SELECT + + ( - + 56 ) FROM tab2 AS cor0
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col2 col0 FROM tab0 AS cor0 WHERE NULL IN ( + col2 * + 64 )
----

query I rowsort
SELECT DISTINCT 88 + - col2 * + col0 + col1 + 22 FROM tab0
----
-514
-739
-9492

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8059
SELECT * FROM tab2 WHERE - 73 BETWEEN ( ( + + 27 ) * - col1 + CAST( NULL AS DECIMAL ) ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-8059
SELECT * FROM tab2 WHERE - 73 BETWEEN ( ( + + 27 ) * - col1 + CAST ( NULL AS REAL ) ) AND + col2
----

query I rowsort
SELECT DISTINCT + 81 + - 72 AS col2 FROM tab2
----
9

query I rowsort
SELECT col0 FROM tab2 WHERE ( + + 46 ) NOT BETWEEN 76 + col0 / - 9 AND NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8062
SELECT - 49 AS col1, COUNT( * ) AS col1 FROM tab1
----
-49
3

skipif mysql # not compatible
query II rowsort label-8062
SELECT - 49 AS col1, COUNT ( * ) AS col1 FROM tab1
----
-49
3

query I rowsort
SELECT ALL 42 + + + 14 FROM tab1
----
56
56
56

query I rowsort
SELECT ALL + col2 + + col0 + - col1 AS col2 FROM tab1
----
112
133
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col0 FROM tab2
----
28

query I rowsort
SELECT col0 - + col0 * + - col0 FROM tab1
----
2652
7310
8372

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 98 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT - ( - + col0 ) + - CAST( + col2 AS SIGNED ) * - col2 + - + ( col1 ) - col1 FROM tab0
----
145
2062
9896

skipif mysql # not compatible
query I rowsort label-8068
SELECT - ( - + col0 ) + - CAST ( + col2 AS INTEGER ) * - col2 + - + ( col1 ) - col1 FROM tab0
----
145
2062
9896

query II rowsort
SELECT ( - col0 ) * - col1 + + col1 AS col0, + col1 * + + col0 FROM tab0
----
1296
1215
1848
1827
98
97

query I rowsort
SELECT + - col1 + - + col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

query III rowsort
SELECT DISTINCT + 80 AS col0, 3, + col1 + - + col1 AS col0 FROM tab2 AS cor0
----
80
3
0

query III rowsort
SELECT * FROM tab0 WHERE - 14 IN ( + - col0 + - 80 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8073
SELECT ALL COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab1 WHERE + col1 DIV + 96 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab1 WHERE + col1 / + 96 IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT DISTINCT + MIN( + ( col0 ) ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT + MIN ( + ( col0 ) ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT + + 91 FROM tab2 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT DISTINCT - + SUM( DISTINCT + 89 ) AS col0 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT - + SUM ( DISTINCT + 89 ) AS col0 FROM tab1 AS cor0
----
-89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( col1, + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + - 95 AS col2, col0 + + 51 + col0 * + col1 col1 FROM tab0 AS cor0
----
4465
1281
9405
245
950
1965

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 57 / - col1 ) >= NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL COUNT( * ) * 5 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL COUNT ( * ) * 5 FROM tab0 AS cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 33 BETWEEN NULL AND - col2 )
----
64
77
40
75
67
58

query I rowsort
SELECT - 94 * + col2 * 68 AS col2 FROM tab1
----
-377128
-434656
-613632

onlyif mysql # aggregate syntax: 
query II rowsort label-8085
SELECT ALL + 38 AS col2, COUNT( * ) AS col1 FROM tab2
----
38
3

skipif mysql # not compatible
query II rowsort label-8085
SELECT ALL + 38 AS col2, COUNT ( * ) AS col1 FROM tab2
----
38
3

query II rowsort
SELECT - 73, + col0 FROM tab0
----
-73
15
-73
87
-73
97

query I rowsort
SELECT - ( - 14 ) AS col2 FROM tab0
----
14
14
14

query I rowsort
SELECT DISTINCT 37 * + - col1 AS col1 FROM tab0 cor0
----
-2997
-37
-777

query II rowsort
SELECT 83 AS col2, col1 AS col2 FROM tab1 AS cor0
----
83
14
83
47
83
5

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - 61 * + 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ALL - 85 * + COUNT( * ) * - 93 FROM tab1 cor0
----
23715

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - 85 * + COUNT ( * ) * - 93 FROM tab1 cor0
----
23715

query I rowsort
SELECT DISTINCT 28 - + 61 FROM tab0, tab2 AS cor0
----
-33

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( NULL ) > col1 + col0
----

query I rowsort
SELECT + 97 + 51 FROM tab2 AS cor0
----
148
148
148

query I rowsort
SELECT - 43 + - col1 + + + col1 FROM tab1 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT - COUNT( * ) + - + 37 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8096
SELECT - COUNT ( * ) + - + 37 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT + col2 + - - col1 + + col0 FROM tab2 AS cor0
----
120
181
200

query I rowsort
SELECT 43 + - - 71 + + + col1 * - 4 + col2 FROM tab0 AS cor0
----
-163
209
40

query I rowsort
SELECT DISTINCT - + 3 - + 51 FROM tab0 cor0
----
-54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( - 61 ) AND - 42 * + col1
----

query I rowsort
SELECT + col1 - col0 * 89 FROM tab2 cor0
----
-4043
-5619
-6608

onlyif mysql # DIV for integer division: 
query II rowsort label-8102
SELECT ALL col2 AS col0, col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-8102
SELECT ALL col2 AS col0, col1 / + col2 AS col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8103
SELECT - - col2 AS col2, col2 - + col2 DIV + ( ( + col2 ) ) FROM tab1 AS cor0
----
59
58
68
67
96
95

skipif mysql # not compatible
query II rowsort label-8103
SELECT - - col2 AS col2, col2 - + col2 / + ( ( + col2 ) ) FROM tab1 AS cor0
----
59
58
68
67
96
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 14 col1, + col0 AS col2 FROM tab1 AS cor0
----
14
51
14
85
14
91

query I rowsort
SELECT DISTINCT + + 23 * col0 AS col0 FROM tab2 AS cor0
----
1058
1472
1725

query II rowsort
SELECT col2, 39 * + col1 FROM tab1 AS cor0
----
59
195
68
1833
96
546

query II rowsort
SELECT ALL + col0, + 22 FROM tab1 AS cor0
----
51
22
85
22
91
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT DISTINCT - CAST( + 65 AS SIGNED ) col1 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8108
SELECT DISTINCT - CAST ( + 65 AS INTEGER ) col1 FROM tab0 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT - - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NOT ( + - col1 IS NOT NULL ) )
----
3

skipif mysql # not compatible
query I rowsort label-8109
SELECT - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NOT ( + - col1 IS NOT NULL ) )
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT COUNT( ALL - 69 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8111
SELECT COUNT ( ALL - 69 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + ( col2 ) * - ( - col2 ) AS col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT ALL col2 * + 17 + + col2 AS col1 FROM tab2 cor0
----
1044
414
720

onlyif mysql # DIV for integer division: 
query II rowsort label-8114
SELECT ALL - + ( + col2 ) DIV + - ( + + col0 ), col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-8114
SELECT ALL - + ( + col2 ) / + - ( + + col0 ), col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

query I rowsort
SELECT DISTINCT - ( + - 21 ) AS col1 FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT + - COUNT( * ) * 43 AS col0 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-8116
SELECT + - COUNT ( * ) * 43 AS col0 FROM tab1 AS cor0
----
-129

query I rowsort
SELECT DISTINCT + ( - 93 ) * - 46 FROM tab1 AS cor0
----
4278

query I rowsort
SELECT DISTINCT - 13 * - 27 FROM tab0 AS cor0
----
351

query II rowsort
SELECT + + col1, + 34 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE + 12 NOT IN ( - - col1 + + col2, col1 )
----
3

skipif mysql # not compatible
query I rowsort label-8120
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE + 12 NOT IN ( - - col1 + + col2, col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT + 15 - + 7 * - COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-8121
SELECT + 15 - + 7 * - COUNT ( * ) FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT 94 + + COUNT( 67 ) AS col2 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT 94 + + COUNT ( 67 ) AS col2 FROM tab2
----
97

query I rowsort
SELECT ALL + col1 + - - 29 + - col0 AS col0 FROM tab1
----
-15
-51
-8

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 - + + 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8125
SELECT + + 37 + COUNT( * ) + + COUNT( * ) * 64 AS col0, - 69 - - + MAX( DISTINCT + ( - col0 ) ) FROM tab1 WHERE NULL BETWEEN NULL AND col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-8125
SELECT + + 37 + COUNT ( * ) + + COUNT ( * ) * 64 AS col0, - 69 - - + MAX ( DISTINCT + ( - col0 ) ) FROM tab1 WHERE NULL BETWEEN NULL AND col1
----
37
NULL

query I rowsort
SELECT - 49 + - col2 FROM tab2
----
-107
-72
-89

query I rowsort
SELECT - + col2 + + 59 FROM tab1 AS cor0
----
-37
-9
0

query I rowsort
SELECT ALL 10 - - col0 AS col1 FROM tab0 AS cor0
----
107
25
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 33 NOT BETWEEN ( - 60 ) AND col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT 74 * + COUNT( ALL - 16 ) - - - 61 FROM tab0 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-8131
SELECT 74 * + COUNT ( ALL - 16 ) - - - 61 FROM tab0 AS cor0
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8132
SELECT - col0 * CAST( NULL AS SIGNED ) + - 97 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT - col0 * CAST ( NULL AS INTEGER ) + - 97 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8133
SELECT DISTINCT + SUM( DISTINCT + + CAST( ( col0 ) AS SIGNED ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT + SUM ( DISTINCT + + CAST ( ( col0 ) AS INTEGER ) ) FROM tab0
----
199

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 18 )
----

query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab1 cor0
----
33

query II rowsort
SELECT - + 14, col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col0 * 27 AS col2 FROM tab0
----
2349
2619
405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col0, + col0 col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT - COUNT( + col0 ) * + 22 AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8139
SELECT - COUNT ( + col0 ) * + 22 AS col1 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT 39 * - COUNT( * ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT 39 * - COUNT ( * ) FROM tab2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT DISTINCT MAX( DISTINCT - - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT MAX ( DISTINCT - - col2 ) AS col1 FROM tab1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8142
SELECT MIN( - col0 ) + COUNT( * ) + + + SUM( DISTINCT - - CAST( + + 96 AS SIGNED ) ) + MAX( DISTINCT + 11 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-8142
SELECT MIN ( - col0 ) + COUNT ( * ) + + + SUM ( DISTINCT - - CAST ( + + 96 AS INTEGER ) ) + MAX ( DISTINCT + 11 ) FROM tab2
----
35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 35 - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT DISTINCT - + col2 * col0 DIV - col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT - + col2 * col0 / - col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT DISTINCT - col2 * + + CAST( NULL AS SIGNED ) + + 73 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT - col2 * + + CAST ( NULL AS INTEGER ) + + 73 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - 9 * - col0 FROM tab0
----
-6345
-7830
-86427

query I rowsort
SELECT - + col2 + + col2 + + - col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - col0 + - 63 FROM tab1 AS cor0
----
-114
-148
-154

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT - 37 + 27 FROM tab0 AS cor0
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8151
SELECT + - col2 * + 56 + col0 + CAST( + + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1191
-2099
-3106

skipif mysql # not compatible
query I rowsort label-8151
SELECT + - col2 * + 56 + col0 + CAST ( + + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1191
-2099
-3106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT DISTINCT + ( col2 ) * + 58 * + - col0 + - CAST( + - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-283917
-290785
-358813

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT + ( col2 ) * + 58 * + - col0 + - CAST ( + - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-283917
-290785
-358813

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT + - COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT + - COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col2
----
0

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE + 20 + col2 + - col2 < + col0 * col0 + + - col1 + 81
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT + COUNT( ALL + col0 ) + MIN( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8155
SELECT + COUNT ( ALL + col0 ) + MIN ( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
8

query I rowsort
SELECT ( + + ( 49 ) ) FROM tab0
----
49
49
49

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NULL ) NOT IN ( + 37, - col2 * + col2 + 32, + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT DISTINCT + 28 - + SUM( ALL + col0 ) + - + COUNT( * ) AS col1 FROM tab1
----
-202

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT + 28 - + SUM ( ALL + col0 ) + - + COUNT ( * ) AS col1 FROM tab1
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT COUNT( * ) - + 4 + + + 15 AS col0 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT COUNT ( * ) - + 4 + + + 15 AS col0 FROM tab0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col0 + + + col0 col1 FROM tab1
----
59
170
68
182
96
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 WHERE ( - col1 IS NOT NULL )
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT + ( - SUM( DISTINCT col1 ) ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8163
SELECT + ( - SUM ( DISTINCT col1 ) ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT SUM( - - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8164
SELECT SUM ( - - col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NULL IN ( - + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 7 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT - 20 * + ( 49 ) * + MIN( + col2 ) AS col1 FROM tab0 AS cor0
----
-9800

skipif mysql # not compatible
query I rowsort label-8167
SELECT - 20 * + ( 49 ) * + MIN ( + col2 ) AS col1 FROM tab0 AS cor0
----
-9800

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT - + COUNT( + col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8168
SELECT - + COUNT ( + col1 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT - ( + + 33 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 / + + col1 * - - col2 = + + col1 * + col0
----
-33
-33
-33

query I rowsort
SELECT ALL - col2 + + + col1 AS col0 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8171
SELECT ALL * FROM tab2 WHERE ( 70 ) <= - 45 * + CAST( - col1 AS SIGNED ) - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8171
SELECT ALL * FROM tab2 WHERE ( 70 ) <= - 45 * + CAST ( - col1 AS INTEGER ) - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - - 19 ) AS col2 FROM tab0
----
-19

query I rowsort
SELECT + 49 FROM tab1 WHERE NOT + 52 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8174
SELECT col1 * - CAST( NULL AS SIGNED ) / + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT col1 * - CAST ( NULL AS INTEGER ) / + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL 6 * + + COUNT( * ) + - + 50 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL 6 * + + COUNT ( * ) + - + 50 FROM tab0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8177
SELECT ALL - ( + - MIN( ALL + CAST( col1 AS SIGNED ) ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - ( + - MIN ( ALL + CAST ( col1 AS INTEGER ) ) ) FROM tab2
----
51

query I rowsort
SELECT col0 * + - 65 FROM tab2 AS cor0
----
-2990
-4160
-4875

query I rowsort
SELECT col2 * + - 57 + + col1 AS col2 FROM tab2 AS cor0
----
-1260
-2203
-3239

query I rowsort
SELECT 84 + col1 - 95 FROM tab2 cor0
----
40
56
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 = + 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + - col0 - - 53 FROM tab0
----
-143
-44
-9

query I rowsort
SELECT + + 89 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8184
SELECT COUNT( * ) DIV + + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-8184
SELECT COUNT ( * ) / + + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8185
SELECT + 2 + col0, CAST( + 14 AS SIGNED ) AS col1 FROM tab1
----
53
14
87
14
93
14

skipif mysql # not compatible
query II rowsort label-8185
SELECT + 2 + col0, CAST ( + 14 AS INTEGER ) AS col1 FROM tab1
----
53
14
87
14
93
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT DISTINCT SUM( DISTINCT + 48 ) FROM tab2, tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT SUM ( DISTINCT + 48 ) FROM tab2, tab0 AS cor0
----
48

query I rowsort
SELECT DISTINCT col2 * - col0 - + col2 AS col0 FROM tab2 AS cor0
----
-1081
-2600
-4408

onlyif mysql # aggregate syntax: 
query II rowsort label-8188
SELECT COUNT( * ), + 38 AS col2 FROM tab1 AS cor0
----
3
38

skipif mysql # not compatible
query II rowsort label-8188
SELECT COUNT ( * ), + 38 AS col2 FROM tab1 AS cor0
----
3
38

query I rowsort
SELECT DISTINCT - + 74 - 2 FROM tab2 AS cor0
----
-76

query I rowsort
SELECT + - ( 48 ) FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT + 0 * + col0 * + ( - col1 ) + - - col2 AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT DISTINCT + - COUNT( DISTINCT + 86 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT + - COUNT ( DISTINCT + 86 ) FROM tab1 AS cor0
----
-1

query II rowsort
SELECT DISTINCT + 10, - col2 AS col2 FROM tab2 AS cor0
----
10
-23
10
-40
10
-58

query I rowsort
SELECT + col2 FROM tab2 WHERE - col2 <= NULL
----

query I rowsort
SELECT ALL 56 * - - 26 FROM tab0
----
1456
1456
1456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8196
SELECT - - 40 * - 1 - - CAST( ( + 56 ) AS SIGNED ) AS col0 FROM tab0 WHERE NOT col1 BETWEEN + 40 AND + CAST( NULL AS SIGNED )
----
16
16

skipif mysql # not compatible
query I rowsort label-8196
SELECT - - 40 * - 1 - - CAST ( ( + 56 ) AS INTEGER ) AS col0 FROM tab0 WHERE NOT col1 BETWEEN + 40 AND + CAST ( NULL AS INTEGER )
----
16
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8197
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) / - + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) / - + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ( + - col2 ) * - col0 * col2 - + col0 * + 43 AS col1 FROM tab1
----
292230
416871
467823

query I rowsort
SELECT ALL + - 27 + col2 FROM tab1 WHERE col1 + - 83 / ( + 56 ) + col2 + + col1 = - + col0 * col0 * - col0 / col1
----

query II rowsort
SELECT DISTINCT ( 62 ), col1 FROM tab2 AS cor0
----
62
51
62
67
62
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8201
SELECT + - 45 * + CAST( NULL AS DECIMAL ) / + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT + - 45 * + CAST ( NULL AS REAL ) / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT COUNT( * ) - + 61 * - 27 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
1656

skipif mysql # not compatible
query I rowsort label-8202
SELECT COUNT ( * ) - + 61 * - 27 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
1656

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> + col1
----

query II rowsort
SELECT + + col1, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT DISTINCT - + COUNT( + col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT - + COUNT ( + col1 ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - - col2 AS col1, - col2 * col0 FROM tab2 AS cor0
----
23
-1058
40
-2560
58
-4350

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE ( NULL ) <= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( 12 ) + + + 87 AS col2, col2 * - col1 col2 FROM tab1 AS cor0
----
75
-1344
75
-295
75
-3196

query I rowsort
SELECT DISTINCT - 11 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL - col0 + + col0 AS col1, 40 * - ( 51 ) + - ( - - col2 ) * - - col0 AS col1 FROM tab0
----
0
-11643
0
-2745
0
-2910

onlyif mysql # aggregate syntax: 
query II rowsort label-8211
SELECT 63 + COUNT( * ), + 32 AS col0 FROM tab0
----
66
32

skipif mysql # not compatible
query II rowsort label-8211
SELECT 63 + COUNT ( * ), + 32 AS col0 FROM tab0
----
66
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - + 44 AS col1, 10 - + 55 col0 FROM tab0
----
-34
-45
3
-45
55
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT DISTINCT 47 DIV - col2 AS col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT 47 / - col2 AS col2 FROM tab2
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8214
SELECT DISTINCT COUNT( ALL + col2 ) col1, + COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8214
SELECT DISTINCT COUNT ( ALL + col2 ) col1, + COUNT ( * ) AS col2 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ( + ( - SUM( + 16 ) ) ) + + COUNT( * ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-8215
SELECT ( + ( - SUM ( + 16 ) ) ) + + COUNT ( * ) FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL + ( COUNT( * ) ) + - - COUNT( DISTINCT - + ( - col2 ) ) col0 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8216
SELECT ALL + ( COUNT ( * ) ) + - - COUNT ( DISTINCT - + ( - col2 ) ) col0 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 + + + col2 * + col1 + - + col2 col0 FROM tab2
----
1190
3080
3868

query III rowsort
SELECT * FROM tab2 WHERE - + ( - col1 ) + - col1 IS NULL
----

query I rowsort
SELECT col0 + - col1 * 97 FROM tab0
----
-1950
-7842
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL MAX( - 2 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL MAX ( - 2 ) FROM tab1
----
-2

query I rowsort
SELECT 12 + - + 2 FROM tab2
----
10
10
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 88 * + + col1 + - col0 + + col2 * - - col2 < + + 51 - - 4
----

query I rowsort
SELECT ALL - ( 14 ) AS col0 FROM tab2 AS cor0
----
-14
-14
-14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - + 87 AND NULL
----

query I rowsort
SELECT 68 AS col0 FROM tab1 WHERE NULL IS NULL
----
68
68
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 78 - + col0 * - col1 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8227
SELECT - + 61 DIV - - col1 + + - 21 * - col0 FROM tab0 AS cor0
----
1825
1976
315

skipif mysql # not compatible
query I rowsort label-8227
SELECT - + 61 / - - col1 + + - 21 * - col0 FROM tab0 AS cor0
----
1825
1976
315

query I rowsort
SELECT ALL + col2 * + - 84 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT + MAX( - + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL >= + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT + MAX ( - + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL >= + 46
----
NULL

query I rowsort
SELECT 14 * + col1 FROM tab1 AS cor0
----
196
658
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT ALL + + col0 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + + col0 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT - CAST( - - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8232
SELECT - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT - COUNT( * ) * MAX( ALL - - 65 ) AS col0 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8233
SELECT - COUNT ( * ) * MAX ( ALL - - 65 ) AS col0 FROM tab2 cor0
----
-195

query I rowsort
SELECT + 93 FROM tab2 AS cor0 WHERE NOT col2 > col2
----
93
93
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + 42 ) IS NOT NULL
----

query I rowsort
SELECT - col1 + + 35 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-16
-32
-42

query III rowsort
SELECT * FROM tab0 WHERE NOT + 15 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8239
SELECT DISTINCT * FROM tab2 WHERE - CAST( col0 AS SIGNED ) + col1 + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8239
SELECT DISTINCT * FROM tab2 WHERE - CAST ( col0 AS INTEGER ) + col1 + + col0 IS NULL
----

query II rowsort
SELECT - 49 AS col1, col1 FROM tab0 AS cor0
----
-49
1
-49
21
-49
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8241
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE 96 + col2 + + 94 * + col0 * - 40 * + + col2 * CAST( NULL AS DECIMAL ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE 96 + col2 + + 94 * + col0 * - 40 * + + col2 * CAST ( NULL AS REAL ) IS NULL
----
51
85
91

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query II rowsort
SELECT + col2 + + col2 - + col0 * - 16 * - + 67 * + col0 * + + col1, + col0 * + ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 * - col1 > NULL
----

query I rowsort
SELECT 89 + - - col2 AS col2 FROM tab2 AS cor0
----
112
129
147

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( 2 ) = 64 * col1 * col2 * + col0 - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8247
SELECT DISTINCT 59 DIV + 8 - - + 81 + col1 FROM tab1 AS cor0
----
102
135
93

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT 59 / + 8 - - + 81 + col1 FROM tab1 AS cor0
----
102
135
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL + 7 * + COUNT( * ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL + 7 * + COUNT ( * ) FROM tab1 AS cor0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8249
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) * - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 40 * - col1 * + + col1 AS col1 FROM tab0 AS cor0
----
-17640
-262440
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT DISTINCT + MAX( DISTINCT - - 40 ) * + - 8 col2 FROM tab2 AS cor0
----
-320

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8251
SELECT DISTINCT + MAX ( DISTINCT - - 40 ) * + - 8 col2 FROM tab2 AS cor0
----
-320

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + col1 * + 19 + - col1 IS NULL
----

query I rowsort
SELECT AVG ( + col1 ) AS col2 FROM tab1 WHERE ( - col2 / + 40 + - 25 - + + col1 + + - col0 - col1 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT + COUNT( * ) * + 40 AS col1 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-8254
SELECT + COUNT ( * ) * + 40 AS col1 FROM tab0
----
120

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * - col0 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL + 5 + - COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL + 5 + - COUNT ( * ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT DISTINCT MIN( - - 33 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT MIN ( - - 33 ) FROM tab2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8258
SELECT - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8258
SELECT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - col1 + + 16 AS col1, col2 col1 FROM tab2
----
11
23
24
58
3
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + + - col1 col1 FROM tab1
----
16
49
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8261
SELECT CAST( + col0 AS SIGNED ) DIV + col2 + 45 + - - col1 FROM tab2
----
113
123
98

skipif mysql # not compatible
query I rowsort label-8261
SELECT CAST ( + col0 AS INTEGER ) / + col2 + 45 + - - col1 FROM tab2
----
113
123
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 63 * 49 / 1 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8262
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 63 * 49 / 1 col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8263
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8263
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT 94 / - CAST( NULL AS SIGNED ) / 22 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8264
SELECT 94 / - CAST ( NULL AS INTEGER ) / 22 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 48 - + 82 FROM tab2 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT COUNT( * ) - + 7 * 68 AS col2 FROM tab0 AS cor0
----
-473

skipif mysql # not compatible
query I rowsort label-8266
SELECT COUNT ( * ) - + 7 * 68 AS col2 FROM tab0 AS cor0
----
-473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT + col2 * - col2 + + col0 + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8267
SELECT + col2 * - col2 + + col0 + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 70 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + - col1 + + - col1 + ( - col0 )
----

query I rowsort
SELECT DISTINCT col0 * + 53 * + col2 AS col1 FROM tab0
----
37365
46110
508959

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT - 61 DIV + col0 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8271
SELECT - 61 / + col0 AS col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT + 10 * - + col0 FROM tab0
----
-150
-870
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT + COUNT( * ) FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8273
SELECT + COUNT ( * ) FROM tab1, tab0 cor0
----
9

query II rowsort
SELECT - 67 AS col0, + 51 FROM tab2
----
-67
51
-67
51
-67
51

query I rowsort
SELECT + col1 * - - 33 * - - col2 AS col1 FROM tab1
----
105468
44352
9735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8276
SELECT DISTINCT + CAST( - + SUM( - col2 ) AS SIGNED ) AS col2, - COUNT( * ) DIV COUNT( * ) FROM tab0
----
156
-1

skipif mysql # not compatible
query II rowsort label-8276
SELECT DISTINCT + CAST ( - + SUM ( - col2 ) AS INTEGER ) AS col2, - COUNT ( * ) / COUNT ( * ) FROM tab0
----
156
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 36 col2 FROM tab0 WHERE NOT - 12 + - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1, + col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT DISTINCT + - COUNT( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT + - COUNT ( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT - col1 * + + col1 * + + col0 FROM tab2 AS cor0
----
-119646
-336675
-379456

query I rowsort
SELECT col0 * + + col1 * + col1 AS col2 FROM tab0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT DISTINCT + MIN( - 13 ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8283
SELECT DISTINCT + MIN ( - 13 ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-8284
SELECT - 40, COUNT( * ) AS col0 FROM tab0
----
-40
3

skipif mysql # not compatible
query II rowsort label-8284
SELECT - 40, COUNT ( * ) AS col0 FROM tab0
----
-40
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT + 94 * col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL - COUNT( * ) * 12 col1 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8286
SELECT ALL - COUNT ( * ) * 12 col1 FROM tab2 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8287
SELECT - CAST( NULL AS SIGNED ) + - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT - CAST ( NULL AS INTEGER ) + - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 * + 57 FROM tab1 cor0
----
-2679
-285
-798

onlyif mysql # DIV for integer division: 
query I rowsort label-8289
SELECT DISTINCT 22 DIV 54 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT 22 / 54 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col2 * + col2 + + 74 + - 59 * - col1 + + 38 AS col2 FROM tab1
----
10154
3888
7509

query I rowsort
SELECT ALL col2 * + 15 AS col2 FROM tab2
----
345
600
870

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8292
SELECT DISTINCT - col2 DIV 60 * + - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT - col2 / 60 * + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
99

query I rowsort
SELECT + col0 * - - col2 - + col0 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT col2 - + + 64 AS col1 FROM tab2
----
-24
-41
-6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= col1 * 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT - 36 + - - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8296
SELECT - 36 + - - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8298
SELECT DISTINCT - 57 AS col1, - ( + CAST( - col2 AS SIGNED ) ) col1 FROM tab2 AS cor0
----
-57
23
-57
40
-57
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8298
SELECT DISTINCT - 57 AS col1, - ( + CAST ( - col2 AS INTEGER ) ) col1 FROM tab2 AS cor0
----
-57
23
-57
40
-57
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT ALL 25 / + ( - col2 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL 25 / + ( - col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT + ( + COUNT( 98 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8300
SELECT + ( + COUNT ( 98 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col0 * + col0 + + + col0 AS col0 FROM tab1 AS cor0
----
-2550
-7140
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT DISTINCT + - COUNT( - 21 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8302
SELECT DISTINCT + - COUNT ( - 21 ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - ( - + col2 ) AS col2 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 9 <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT ALL 58 DIV + - col0 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL 58 / + - col0 AS col2 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT - col0 DIV - - col1 AS col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-8306
SELECT - col0 / - - col1 AS col2 FROM tab0
----
-4
-97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT ALL - - col1 DIV + + 58 * 28 * - col2 AS col0 FROM tab1 WHERE + col2 * - + col2 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL - - col1 / + + 58 * 28 * - col2 AS col0 FROM tab1 WHERE + col2 * - + col2 IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL 45 * - - col2 AS col0 FROM tab2
----
1035
1800
2610

query I rowsort
SELECT + 15 * - col1 FROM tab2 AS cor0
----
-1005
-1155
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8310
SELECT - MAX( + CAST( - 43 AS SIGNED ) ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-8310
SELECT - MAX ( + CAST ( - 43 AS INTEGER ) ) FROM tab0 AS cor0
----
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 6 * - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + col2 * + + col1 FROM tab2 AS cor0
----
1127
3016
3811

onlyif mysql # DIV for integer division: 
query III rowsort label-8314
SELECT ALL + + col0 DIV - 78 + col0 AS col2, col2, - 16 * + col0 + - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 < + + col2 * col1 + + + col1 * + 51 * - col2
----
9 values hashing to 592ccec48dd9d39b1582d72d8eaec544

skipif mysql # not compatible
query III rowsort label-8314
SELECT ALL + + col0 / - 78 + col0 AS col2, col2, - 16 * + col0 + - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 < + + col2 * col1 + + + col1 * + 51 * - col2
----
9 values hashing to 592ccec48dd9d39b1582d72d8eaec544

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT DISTINCT COUNT( * ) + + 62 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
65

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT COUNT ( * ) + + 62 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8316
SELECT ALL + col1 + + 76 DIV - 98 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL + col1 + + 76 / - 98 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT col2, - 10 * + - 44 AS col0, + - col0 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
9 values hashing to 3133070f7d765697d7ef9e182aa6bfb0

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT DISTINCT + 20 + + - MIN( DISTINCT + - 73 ) * - - 40 FROM tab1 cor0
----
2940

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT + 20 + + - MIN ( DISTINCT + - 73 ) * - - 40 FROM tab1 cor0
----
2940

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + col0 + - col0 )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE col2 > NULL
----

query I rowsort
SELECT - col2 - col1 + + - 96 FROM tab2
----
-170
-213
-221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8323
SELECT col0 + + + ( - col1 ) + - + CAST( + col2 AS SIGNED ) * - 72 * - col0 + ( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT col0 + + + ( - col1 ) + - + CAST ( + col2 AS INTEGER ) * - 72 * - col0 + ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT ( + ( + + COUNT( * ) ) ) + - - COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8324
SELECT ( + ( + + COUNT ( * ) ) ) + - - COUNT ( * ) AS col2 FROM tab0
----
6

query I rowsort
SELECT 4 + - - col2 * - + 10 AS col1 FROM tab1
----
-586
-676
-956

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT - MAX( - 24 ) AS col1 FROM tab1, tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-8326
SELECT - MAX ( - 24 ) AS col1 FROM tab1, tab0 cor0
----
24

query I rowsort
SELECT ALL - + col2 - col1 AS col0 FROM tab2 cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT DISTINCT - MAX( + 58 ) AS col2 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT - MAX ( + 58 ) AS col2 FROM tab0 AS cor0
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8329
SELECT - col1 * - 38, CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
1786
NULL
190
NULL
532
NULL

skipif mysql # not compatible
query II rowsort label-8329
SELECT - col1 * - 38, CAST ( NULL AS REAL ) AS col1 FROM tab1
----
1786
NULL
190
NULL
532
NULL

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL + + ( MAX( ALL - + col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL + + ( MAX ( ALL - + col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT - 56, + AVG ( + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL MIN( + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL MIN ( + col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT - - col2 * - + col1 + - - ( - col2 ) FROM tab2 cor0
----
-1196
-3120
-3944

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 27 + - - col0 + - 51 * 5 BETWEEN 54 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT + 22 * COUNT( * ) col0 FROM tab2
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8336
SELECT + 22 * COUNT ( * ) col0 FROM tab2
----
66

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 62 + 61 AND NULL
----

query I rowsort
SELECT ALL col2 * ( + - 85 ) * 85 AS col1 FROM tab1
----
-426275
-491300
-693600

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8339
SELECT DISTINCT + col2 / CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) AS col1, + col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8339
SELECT DISTINCT + col2 / CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) AS col1, + col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT 77 DIV - - col2 AS col0 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-8340
SELECT 77 / - - col2 AS col0 FROM tab2
----
1
1
3

query II rowsort
SELECT col0, 78 AS col1 FROM tab2
----
46
78
64
78
75
78

query I rowsort
SELECT 18 + + + col1 - - ( + 60 ) + + + col1 - 49 AS col2 FROM tab2
----
131
163
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8343
SELECT DISTINCT - COUNT( * ) AS col1, - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8343
SELECT DISTINCT - COUNT ( * ) AS col1, - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1 AS cor0
----
-3
NULL

query II rowsort
SELECT ALL + 83, col2 * + col2 AS col1 FROM tab0 AS cor0
----
83
100
83
2209
83
9801

query II rowsort
SELECT col2, - 52 FROM tab1 AS cor0
----
59
-52
68
-52
96
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8346
SELECT DISTINCT + 6 DIV 78 FROM tab1, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT + 6 / 78 FROM tab1, tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT - + COUNT( * ) * + + SUM( - + 15 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
1215

skipif mysql # not compatible
query I rowsort label-8347
SELECT - + COUNT ( * ) * + + SUM ( - + 15 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
1215

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 24 - + 4 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < ( + + col2 ) + + - col0
----

query I rowsort
SELECT ( + col0 ) + - col2 * ( + col2 ) FROM tab2 AS cor0
----
-1536
-3289
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT DISTINCT + + 4 + MIN( - col1 ) FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT + + 4 + MIN ( - col1 ) FROM tab2 AS cor0
----
-73

query I rowsort
SELECT col0 + - col2 + - col0 AS col1 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col0 col0, - col0 - + 76, + col2 + - + col0 col2 FROM tab2
----
9 values hashing to a1ffc92876268b7efc19edf050d09e45

query I rowsort
SELECT ALL - - 3 FROM tab0 WHERE - 37 <= NULL
----

query I rowsort
SELECT ALL - 61 - + - 52 AS col2 FROM tab2
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8356
SELECT + col1 * - CAST( + ( + - col2 ) AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-8356
SELECT + col1 * - CAST ( + ( + - col2 ) AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
210
3807
99

query I rowsort
SELECT ALL - col0 + - col2 + + 77 AS col0 FROM tab2
----
-27
-56
8

query I rowsort
SELECT - + col0 - + col2 + + col2 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - 47 - + col2 AS col1 FROM tab0 AS cor0
----
-146
-57
-94

query I rowsort
SELECT + + ( - - ( - + col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT DISTINCT - - col1 * + + 30 - col0 AS col1, - col0 * - - col2 AS col2 FROM tab0 AS cor0
----
-67
-9603
2415
-705
543
-870

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 48 IS NOT NULL
----

query I rowsort
SELECT + - 49 AS col0 FROM tab1 cor0
----
-49
-49
-49

query II rowsort
SELECT ALL - 50 AS col2, 88 AS col2 FROM tab2 AS cor0
----
-50
88
-50
88
-50
88

query II rowsort
SELECT ALL + col1, col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT + - col1 * - col0 * + ( + - 38 ) + 39 * + col1 AS col1 FROM tab0 AS cor0
----
-3647
-43011
-68607

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT - MIN( ALL - + 22 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT - MIN ( ALL - + 22 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
66

query II rowsort
SELECT - col2 AS col0, - col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 20 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2 * col0 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
705
81
870
21
9603
1

query I rowsort
SELECT ALL + col0 * + ( - 66 ) FROM tab0
----
-5742
-6402
-990

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 22 AS col2 FROM tab2 WHERE NOT ( NOT - 36 = NULL )
----

query I rowsort
SELECT DISTINCT + 17 + + - col1 AS col1 FROM tab2
----
-34
-50
-60

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT + 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL ( MAX( DISTINCT - col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL ( MAX ( DISTINCT - col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8378
SELECT - col2 + col1 + col2 * - CAST( NULL AS SIGNED ) + col2 + col2 / + + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8378
SELECT - col2 + col1 + col2 * - CAST ( NULL AS INTEGER ) + col2 + col2 / + + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT DISTINCT + COUNT( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT + COUNT ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - + ( - + 45 ) AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8381
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8381
SELECT + CAST ( NULL AS REAL ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col1 * 10 + - col2 FROM tab0
----
-109
-220
-857

query I rowsort
SELECT ALL - col1 + - 25 AS col0 FROM tab0
----
-106
-26
-46

query II rowsort
SELECT ALL - col2 AS col1, + col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL + + 5 - 93 + - - 95 - + - col0 FROM tab1 AS cor0
----
58
92
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8386
SELECT - COUNT( * ) col0, COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8386
SELECT - COUNT ( * ) col0, COUNT ( * ) FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT 84 * - COUNT( * ) * 91 FROM tab2 AS cor0 WHERE col2 + 58 + + col2 <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-8387
SELECT 84 * - COUNT ( * ) * 91 FROM tab2 AS cor0 WHERE col2 + 58 + + col2 <= + col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 <> - col1
----

query II rowsort
SELECT ALL - - col2 AS col2, - 84 FROM tab1 AS cor0
----
59
-84
68
-84
96
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT DISTINCT - COUNT( col2 ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8390
SELECT DISTINCT - COUNT ( col2 ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col2 - col0 * col2 * + - col0 * 22 - - + col0 FROM tab0
----
1665277
20492998
232712

onlyif mysql # DIV for integer division: 
query I rowsort label-8392
SELECT col0 + col1 * 92 DIV - col1 FROM tab0
----
-5
-77
5

skipif mysql # not compatible
query I rowsort label-8392
SELECT col0 + col1 * 92 / - col1 FROM tab0
----
-5
-77
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col1 + col0 * col2 col1 FROM tab2
----
2419
4208
961

query II rowsort
SELECT DISTINCT + col1 + + - ( - 56 ) - col2 AS col2, col2 * col1 FROM tab0
----
-42
99
67
210
90
3807

query I rowsort
SELECT col2 + + ( + col1 ) AS col0 FROM tab0
----
100
128
31

query I rowsort
SELECT - col2 / col0 / col2 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL - COUNT( * ) * 69 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-621

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL - COUNT ( * ) * 69 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-621

query I rowsort
SELECT 34 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 >= - col2
----

query I rowsort
SELECT DISTINCT + col1 + + col2 - - + col0 AS col0 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT ALL 43 * 74 AS col1 FROM tab0 AS cor0
----
3182
3182
3182

query I rowsort
SELECT + col0 + + - 85 AS col1 FROM tab2
----
-10
-21
-39

query I rowsort
SELECT 98 + - + col0 FROM tab1
----
13
47
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + + col0 * 50 col2 FROM tab1
----
2499
4165
4459

query II rowsort
SELECT ALL + col2 AS col2, + col0 AS col0 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 <> - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8407
SELECT ALL - + 37 / - - ( + COUNT( ALL - col2 ) ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - + 37 / - - ( + COUNT ( ALL - col2 ) ) * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - col0 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8409
SELECT ALL + 57 + + CAST( NULL AS SIGNED ) + + COUNT( * ) * COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL + 57 + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT + - col2, + 9 AS col0, + 92 AS col1 FROM tab1 AS cor0
----
9 values hashing to ca26c0826c265634b4ccb5e5bffdf2ac

query II rowsort
SELECT ( + col2 ) AS col1, - 78 + - ( + + 74 ) * - + col2 FROM tab2
----
23
1624
40
2882
58
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT DISTINCT - 72 - - COUNT( * ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT - 72 - - COUNT ( * ) FROM tab1
----
-69

query II rowsort
SELECT ALL col2 + col2 AS col2, col0 AS col2 FROM tab0 AS cor0
----
198
97
20
87
94
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT + COUNT( * ) + + 74 col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8414
SELECT + COUNT ( * ) + + 74 col1 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8415
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - col0 ) * + CAST( 8 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8415
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - col0 ) * + CAST ( 8 AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8416
SELECT DISTINCT + - col2 DIV 57, col0 AS col1 FROM tab0 AS cor0
----
-1
97
0
15
0
87

skipif mysql # not compatible
query II rowsort label-8416
SELECT DISTINCT + - col2 / 57, col0 AS col1 FROM tab0 AS cor0
----
-1
97
0
15
0
87

query I rowsort
SELECT col0 * - + 9 AS col2 FROM tab2
----
-414
-576
-675

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 >= NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8419
SELECT CAST( + + ( + COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8419
SELECT CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NULL >= col1 * + 21 / col1
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR - col0 + ( - col0 ) + - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 84 * - 84 * + col2 AS col2 FROM tab1 AS cor0
----
-416304
-479808
-677376

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT - col0 / + col1 NOT IN ( + 38 + 16 )
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
59
68
96

query I rowsort
SELECT 17 - - ( col2 ) FROM tab0
----
116
27
64

query I rowsort
SELECT ALL col2 + col2 * 90 FROM tab2
----
2093
3640
5278

query I rowsort
SELECT + ( + col1 ) - + col2 AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8428
SELECT DISTINCT 87 DIV col2 AS col2 FROM tab2 WHERE ( + col1 ) <> 74
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT 87 / col2 AS col2 FROM tab2 WHERE ( + col1 ) <> 74
----
1
2
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8429
SELECT ALL CAST( NULL AS DECIMAL ) - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL CAST ( NULL AS REAL ) - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT DISTINCT + COUNT( * ) + + 43 FROM tab0 WHERE ( NULL ) NOT BETWEEN + col0 AND 95 + - col1
----
43

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT + COUNT ( * ) + + 43 FROM tab0 WHERE ( NULL ) NOT BETWEEN + col0 AND 95 + - col1
----
43

query I rowsort
SELECT ALL + col2 + + col2 AS col2 FROM tab0
----
198
20
94

query I rowsort
SELECT ALL - ( + col1 ) + col0 AS col0 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT 45 + - 27 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
18

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 20 + col2 / 69 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 >= ( 4 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8436
SELECT DISTINCT * FROM tab0 WHERE NOT 43 * - CAST( NULL AS DECIMAL ) BETWEEN ( 0 ) AND + 87
----

skipif mysql # not compatible
query III rowsort label-8436
SELECT DISTINCT * FROM tab0 WHERE NOT 43 * - CAST ( NULL AS REAL ) BETWEEN ( 0 ) AND + 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT DISTINCT + SUM( ALL - 64 ) * + COUNT( * ) AS col1 FROM tab0
----
-576

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT + SUM ( ALL - 64 ) * + COUNT ( * ) AS col1 FROM tab0
----
-576

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN + col2 AND + col2
----

query I rowsort
SELECT DISTINCT - 41 * + col0 AS col1 FROM tab0
----
-3567
-3977
-615

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 26 NOT BETWEEN ( ( 69 ) + + col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 - + col2 col0 FROM tab2 WHERE NOT - 91 + col1 IS NULL
----
31
49
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8442
SELECT CAST( - col2 AS DECIMAL ) AS col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8442
SELECT CAST ( - col2 AS REAL ) AS col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT col1 + col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8444
SELECT ALL + col0 - 93 DIV col1 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL + col0 - 93 / col1 FROM tab2
----
45
63
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8445
SELECT COUNT( * ) * MIN( + ( - col0 ) DIV col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8445
SELECT COUNT ( * ) * MIN ( + ( - col0 ) / col0 ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 ) >= - ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + - 46 AS col2 FROM tab2 AS cor0
----
-104
-69
-86

query I rowsort
SELECT ALL col1 * 10 FROM tab2 AS cor0
----
510
670
770

query I rowsort
SELECT + 38 + - col1 FROM tab2 AS cor0
----
-13
-29
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8450
SELECT + ( - 72 ) AS col1 FROM tab0 AS cor0 WHERE ( + 81 * + CAST( 34 * 2 AS SIGNED ) ) BETWEEN NULL AND ( - col2 * col1 + + 83 )
----

skipif mysql # not compatible
query I rowsort label-8450
SELECT + ( - 72 ) AS col1 FROM tab0 AS cor0 WHERE ( + 81 * + CAST ( 34 * 2 AS INTEGER ) ) BETWEEN NULL AND ( - col2 * col1 + + 83 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8451
SELECT DISTINCT CAST( 26 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
0
1
26

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT CAST ( 26 AS INTEGER ) / col1 FROM tab0 AS cor0
----
0
1
26

query I rowsort
SELECT DISTINCT - 12 * 81 AS col2 FROM tab1 AS cor0
----
-972

query I rowsort
SELECT + col1 + - col0 * 27 FROM tab0 AS cor0
----
-2328
-2618
-324

query I rowsort
SELECT ALL + 38 + col0 FROM tab2 AS cor0
----
102
113
84

query I rowsort
SELECT DISTINCT - col0 + - 7 FROM tab1 AS cor0
----
-58
-92
-98

query I rowsort
SELECT DISTINCT - 56 + - 56 FROM tab0
----
-112

query I rowsort
SELECT ALL - col1 + + 92 AS col1 FROM tab2
----
15
25
41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 / + ( + 48 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT MIN( DISTINCT 93 ) AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-8459
SELECT MIN ( DISTINCT 93 ) AS col0 FROM tab1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8460
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE + CAST( NULL AS SIGNED ) BETWEEN NULL AND + 60
----

skipif mysql # not compatible
query IIIIII rowsort label-8460
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE + CAST ( NULL AS INTEGER ) BETWEEN NULL AND + 60
----

query I rowsort
SELECT ALL - - col0 - + ( 40 ) * + col2 FROM tab0 AS cor0
----
-1865
-313
-3863

query I rowsort
SELECT ALL 52 FROM tab0 AS cor0 WHERE NULL IS NULL
----
52
52
52

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND ( + 81 * - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 + + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 51 + + 43
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

query I rowsort
SELECT - 64 * - - 61 AS col1 FROM tab2
----
-3904
-3904
-3904

query I rowsort
SELECT + col2 + 55 FROM tab1 WHERE NOT NULL < ( + 36 * col0 )
----

query I rowsort
SELECT DISTINCT + col1 * - col1 * col0 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT + MIN( + 79 ) * MIN( DISTINCT col1 - - col0 ) col1 FROM tab0
----
7584

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8470
SELECT + MIN ( + 79 ) * MIN ( DISTINCT col1 - - col0 ) col1 FROM tab0
----
7584

query I rowsort
SELECT + 41 + 91 FROM tab1 WHERE NOT col1 BETWEEN col1 - + 85 AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8472
SELECT CAST( + - COUNT( * ) AS SIGNED ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8472
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT COUNT( * ) FROM tab0 WHERE NOT col0 BETWEEN ( col2 + 42 ) AND ( ( col0 ) )
----
2

skipif mysql # not compatible
query I rowsort label-8473
SELECT COUNT ( * ) FROM tab0 WHERE NOT col0 BETWEEN ( col2 + 42 ) AND ( ( col0 ) )
----
2

query I rowsort
SELECT - col2 * + col0 * - 98 AS col1 FROM tab0
----
69090
85260
941094

query I rowsort
SELECT ALL col1 + col1 FROM tab2 WHERE col2 - col2 NOT IN ( - col1 - + ( col0 ) )
----
102
134
154

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT BETWEEN ( 68 * col0 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( 99 ) FROM tab2 AS cor0
----
99
99
99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col0 * col0 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT + AVG ( + + 74 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT + AVG ( + + 74 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( col0 ) IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 col2 FROM tab0 WHERE NOT - - col0 IS NULL
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8484
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 38 * + + 2 ) > NULL
----

query I rowsort
SELECT + 4 + + 13 AS col1 FROM tab0 cor0
----
17
17
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8487
SELECT ALL + SUM( - ( - 71 ) ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - CAST( NULL AS SIGNED ) + - 97 AND ( 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + SUM ( - ( - 71 ) ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - CAST ( NULL AS INTEGER ) + - 97 AND ( 87 )
----
NULL

query I rowsort
SELECT ALL + ( - ( + col1 ) ) * + 79 FROM tab0 cor0
----
-1659
-6399
-79

query I rowsort
SELECT DISTINCT ( - col1 ) + + col1 * col1 AS col1 FROM tab2 AS cor0
----
2550
4422
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT - 13 + + COUNT( * ) + 28 + 40 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8490
SELECT - 13 + + COUNT ( * ) + 28 + 40 FROM tab1 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - - 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT + COUNT( * ) + 72 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8492
SELECT + COUNT ( * ) + 72 FROM tab2
----
75

query I rowsort
SELECT DISTINCT + col0 + col1 + - - col2 FROM tab1
----
149
161
206

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE + 74 * - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE + 74 * - + col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * - - col1 + - col2 FROM tab1
----
-1440
-3264
-354

query I rowsort
SELECT ALL col0 * col1 + - col2 FROM tab0
----
-2
1168
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL COUNT( * ) * 39 col0 FROM tab0 WHERE + + col2 - ( + col1 ) / col1 <> col0
----
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8497
SELECT ALL COUNT ( * ) * 39 col0 FROM tab0 WHERE + + col2 - ( + col1 ) / col1 <> col0
----
117

query I rowsort
SELECT ALL - 58 * - 85 + + 34 AS col1 FROM tab2 WHERE NOT - + col2 - - + col0 <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8499
SELECT - COUNT( * ) + - + MIN( + - ( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT - COUNT ( * ) + - + MIN ( + - ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8500
SELECT + COUNT( * ) + + CAST( - ( + + COUNT( * ) ) AS SIGNED ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT + COUNT ( * ) + + CAST ( - ( + + COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL AVG ( 13 ) FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----
NULL

query I rowsort
SELECT - col2 * + + 27 FROM tab0 AS cor0
----
-1269
-2673
-270

query I rowsort
SELECT DISTINCT + 0 + + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + col2 * - ( 20 ) + + 0 FROM tab0
----
-1980
-200
-940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - 75 + col0 * col2 col2 FROM tab1 cor0 WHERE NOT - 50 IS NULL
----
-2304
1088
590

query I rowsort
SELECT - - ( + col1 ) AS col0 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 0 IS NOT NULL
----

query I rowsort
SELECT + 75 * col1 AS col0 FROM tab0 AS cor0
----
1575
6075
75

query I rowsort
SELECT - + col2 * ( 47 ) AS col0 FROM tab1 AS cor0
----
-2773
-3196
-4512

onlyif mysql # DIV for integer division: 
query I rowsort label-8511
SELECT - - ( - + col2 ) DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8511
SELECT - - ( - + col2 ) / + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 56 * + 36 FROM tab0 AS cor0
----
2016
2016
2016

query I rowsort
SELECT DISTINCT col2 * - 99 FROM tab2
----
-2277
-3960
-5742

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( NULL BETWEEN ( NULL ) AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT + 55 * - MIN( - - 86 ) AS col0 FROM tab1
----
-4730

skipif mysql # not compatible
query I rowsort label-8515
SELECT + 55 * - MIN ( - - 86 ) AS col0 FROM tab1
----
-4730

query I rowsort
SELECT ALL + 72 * + 69 * - 30 FROM tab0
----
-149040
-149040
-149040

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 WHERE 21 > ( NULL )
----

query I rowsort
SELECT 89 AS col1 FROM tab0 WHERE NOT ( ( - col2 IS NULL ) )
----
89
89
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8519
SELECT + col2 + ( col2 ) FROM tab1 WHERE NOT - CAST( - col2 AS DECIMAL ) / 81 + + col2 * 97 IS NULL
----
118
136
192

skipif mysql # not compatible
query I rowsort label-8519
SELECT + col2 + ( col2 ) FROM tab1 WHERE NOT - CAST ( - col2 AS REAL ) / 81 + + col2 * 97 IS NULL
----
118
136
192

query I rowsort
SELECT + - 15 FROM tab1, tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8521
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - ( + 35 ) + - + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - ( + 35 ) + - + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 >= NULL AND NULL NOT BETWEEN col2 + col0 AND - 0
----

query I rowsort
SELECT DISTINCT 7 + - col2 AS col1 FROM tab0
----
-3
-40
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8524
SELECT ALL - 0 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL - 0 / + col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 46 col0 FROM tab2
----
-2346
-3082
-3542

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8526
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST( + CAST( + col2 AS SIGNED ) AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8526
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST ( + CAST ( + col2 AS INTEGER ) AS REAL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT DISTINCT - MIN( ALL + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT - MIN ( ALL + col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8528
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 - + col2 AND - CAST( + col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8528
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 - + col2 AND - CAST ( + col1 AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8529
SELECT DISTINCT col0 * - col0 col0 FROM tab1 WHERE - CAST( - 54 AS SIGNED ) * - col1 = + 17 OR ( + 98 ) <= ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8529
SELECT DISTINCT col0 * - col0 col0 FROM tab1 WHERE - CAST ( - 54 AS INTEGER ) * - col1 = + 17 OR ( + 98 ) <= ( NULL )
----

query I rowsort
SELECT ALL + 85 AS col1 FROM tab0 WHERE - 13 / + + 82 = - ( + - 22 )
----

query I rowsort
SELECT 90 - + col2 FROM tab0
----
-9
43
80

query II rowsort
SELECT ALL - 8 AS col0, col2 FROM tab0
----
-8
10
-8
47
-8
99

query I rowsort
SELECT ( + - 15 ) + + col0 * col1 AS col2 FROM tab0
----
1200
1812
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8534
SELECT 31 + - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT 31 + - - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 2 ) + col2 + + col0 FROM tab1
----
146
149
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT - CAST( - - 70 AS SIGNED ) * col2 + + - col1 AS col0 FROM tab0
----
-3371
-6931
-721

skipif mysql # not compatible
query I rowsort label-8536
SELECT - CAST ( - - 70 AS INTEGER ) * col2 + + - col1 AS col0 FROM tab0
----
-3371
-6931
-721

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8537
SELECT ALL * FROM tab2 WHERE + - 36 < col2 * - CAST( + col2 AS SIGNED ) + + col2
----

skipif mysql # not compatible
query III rowsort label-8537
SELECT ALL * FROM tab2 WHERE + - 36 < col2 * - CAST ( + col2 AS INTEGER ) + + col2
----

query I rowsort
SELECT ALL - col0 + + col1 + - col2 * - col2 * 20 FROM tab2
----
10585
32013
67272

query I rowsort
SELECT 4 + + ( - col1 ) + col1 FROM tab0 cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 89 + - - col2 col2 FROM tab2 AS cor0
----
4117
5736
6733

query I rowsort
SELECT DISTINCT - ( - 52 ) * - col0 + + col1 * col2 + - col2 FROM tab0
----
-4324
-5044
2980

query I rowsort
SELECT ALL + 95 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - + MIN( + col2 ) - + - 51 FROM tab1 cor0 WHERE NOT NULL > col2 * - col1 * col1 + + col0 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT - + MIN ( + col2 ) - + - 51 FROM tab1 cor0 WHERE NOT NULL > col2 * - col1 * col1 + + col0 * - col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8545
SELECT DISTINCT - - 53 + + - col1 FROM tab2 AS cor0 WHERE NOT - col2 IN ( - - CAST( NULL AS SIGNED ), + 51 )
----

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT - - 53 + + - col1 FROM tab2 AS cor0 WHERE NOT - col2 IN ( - - CAST ( NULL AS INTEGER ), + 51 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN ( NULL ) AND - col2
----

query I rowsort
SELECT 63 * - 46 AS col0 FROM tab1
----
-2898
-2898
-2898

query I rowsort
SELECT ALL col1 * + + 46 * - col1 AS col0 FROM tab2
----
-119646
-206494
-272734

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT DISTINCT + ( - + COUNT( * ) ) * + ( COUNT( * ) ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT + ( - + COUNT ( * ) ) * + ( COUNT ( * ) ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT col1 * - - 64 FROM tab0
----
1344
5184
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8551
SELECT DISTINCT ( - + col0 ) DIV - - col2 AS col1 FROM tab0
----
-8
0

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT ( - + col0 ) / - - col2 AS col1 FROM tab0
----
-8
0

query I rowsort
SELECT 22 * + ( - 14 ) * col1 AS col2 FROM tab2
----
-15708
-20636
-23716

query I rowsort
SELECT 10 AS col0 FROM tab1 WHERE NOT ( + 42 ) IS NULL
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT ALL col2 DIV + ( + - ( - + col1 ) ) col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8554
SELECT ALL col2 / + ( + - ( - + col1 ) ) col0 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT - col0, + col0 AS col1 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL col1 * - 41 FROM tab2 AS cor0
----
-2091
-2747
-3157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT MIN( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8558
SELECT MIN ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL + MAX( 66 ) col2 FROM tab0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8559
SELECT ALL + MAX ( 66 ) col2 FROM tab0
----
66

query I rowsort
SELECT DISTINCT 57 + + 21 FROM tab2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8561
SELECT + col0 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8561
SELECT + col0 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT ALL SUM( + - 43 ) AS col2 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL SUM ( + - 43 ) AS col2 FROM tab1 AS cor0
----
-129

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( col1 ) + + + col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + - 67 AS col1 FROM tab0 cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL < + col1
----

query I rowsort
SELECT ALL + 93 * + 86 AS col2 FROM tab2 AS cor0
----
7998
7998
7998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT + col1 AS col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8568
SELECT + col1 AS col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT + MIN( - + 13 ) AS col1 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-8569
SELECT + MIN ( - + 13 ) AS col1 FROM tab1
----
-13

query I rowsort
SELECT DISTINCT ( - 86 ) + col0 FROM tab2
----
-11
-22
-40

query I rowsort
SELECT ALL - col1 + + col2 + col1 * + - col2 + + 97 + col0 AS col2 FROM tab2
----
-1058
-2956
-3723

query I rowsort
SELECT + - col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT 18 * - 84 * - COUNT( * ) FROM tab1, tab1 AS cor0
----
13608

skipif mysql # not compatible
query I rowsort label-8573
SELECT 18 * - 84 * - COUNT ( * ) FROM tab1, tab1 AS cor0
----
13608

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT DISTINCT COUNT( * ) - + + SUM( + col2 ) * + COUNT( * ) FROM tab0
----
-465

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT COUNT ( * ) - + + SUM ( + col2 ) * + COUNT ( * ) FROM tab0
----
-465

query I rowsort
SELECT + - col2 - - col2 AS col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8576
SELECT + COUNT( * ) DIV + ( + MAX( - col1 ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8576
SELECT + COUNT ( * ) / + ( + MAX ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 27 ) col0 FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8578
SELECT DISTINCT 26 AS col2, + COUNT( * ) + - 96 FROM tab1
----
26
-93

skipif mysql # not compatible
query II rowsort label-8578
SELECT DISTINCT 26 AS col2, + COUNT ( * ) + - 96 FROM tab1
----
26
-93

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE col2 + - col0 NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8580
SELECT col0, CAST( NULL AS SIGNED ) * 15 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8580
SELECT col0, CAST ( NULL AS INTEGER ) * 15 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 16 col1 FROM tab1 cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT SUM( - ( + col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8582
SELECT SUM ( - ( + col2 ) ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT - COUNT( + 36 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8583
SELECT - COUNT ( + 36 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL + SUM( ALL col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL + SUM ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL 44 * - col2 FROM tab0 AS cor0
----
-2068
-4356
-440

query II rowsort
SELECT DISTINCT col1, + col2 + col1 AS col1 FROM tab1 AS cor0
----
14
110
47
115
5
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT COUNT( * ) * 4 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8587
SELECT COUNT ( * ) * 4 FROM tab0 AS cor0
----
12

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 3 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + col1 ) - col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-66
-96
66

query II rowsort
SELECT col2 * - - col2, + 87 AS col0 FROM tab1
----
3481
87
4624
87
9216
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8591
SELECT - - ( - MIN( ALL + 55 ) ) DIV + 15 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8591
SELECT - - ( - MIN ( ALL + 55 ) ) / + 15 FROM tab2 cor0
----
-3

query II rowsort
SELECT ALL ( - + col0 ) + - col2 + 20 AS col1, col2 - + ( + col0 ) FROM tab2 cor0
----
-113
-17
-49
-23
-84
-24

query I rowsort
SELECT 7 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + - col2 * - col0 AND - 49
----

query I rowsort
SELECT DISTINCT - - ( + 2 ) + + col1 FROM tab1 AS cor0
----
16
49
7

query I rowsort
SELECT col2 - col1 AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-28
-37
-9

query I rowsort
SELECT col2 + + col2 + - ( - 49 ) AS col2 FROM tab0
----
143
247
69

query II rowsort
SELECT - col0 AS col2, 99 FROM tab0 AS cor0
----
-15
99
-87
99
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT - CAST( + 9 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-207
-360
-522

skipif mysql # not compatible
query I rowsort label-8598
SELECT - CAST ( + 9 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-207
-360
-522

query II rowsort
SELECT + 22 * + + col2 + + + col1, col0 * - col0 AS col0 FROM tab1 AS cor0
----
1303
-7225
1543
-8281
2126
-2601

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 30 < + ( - col1 ) * - - 30 * col1 + + + 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8601
SELECT + ( - SUM( + CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8601
SELECT + ( - SUM ( + CAST ( NULL AS REAL ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 32 * + 59 AS col1 FROM tab2 AS cor0
----
1888

query I rowsort
SELECT DISTINCT 40 * col2 AS col2 FROM tab1 AS cor0
----
2360
2720
3840

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < 52
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8605
SELECT ALL - - MAX( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL - - MAX ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8606
SELECT ALL - + col0 DIV col2 + - col2 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL - + col0 / col2 + - col2 FROM tab2 AS cor0
----
-25
-41
-59

query I rowsort
SELECT + 22 - col0 FROM tab0 AS cor0
----
-65
-75
7

query I rowsort
SELECT - 88 * 18 - + ( col2 ) AS col2 FROM tab1 WHERE - + col1 * + col0 / + col2 + - col0 IS NOT NULL
----
-1643
-1652
-1680

query I rowsort
SELECT DISTINCT ( - ( + col1 ) ) + - + col1 + + + col0 + + col1 * + col1 + col0 FROM tab1
----
185
2297
270

query I rowsort
SELECT DISTINCT 52 * col1 + - 70 AS col2 FROM tab1
----
190
2374
658

query I rowsort
SELECT ALL 53 + - col2 AS col1 FROM tab2
----
-5
13
30

query I rowsort
SELECT DISTINCT ( col1 ) + 97 - - col1 FROM tab0
----
139
259
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL + ( + COUNT( * ) ) - - + 84 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL + ( + COUNT ( * ) ) - - + 84 FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8614
SELECT - col2 + - + 89 * + ( + col1 ) DIV CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
-7
21
30

skipif mysql # not compatible
query I rowsort label-8614
SELECT - col2 + - + 89 * + ( + col1 ) / CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
-7
21
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT 31 + - COUNT( * ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-8615
SELECT 31 + - COUNT ( * ) FROM tab1
----
28

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL > + + col0 + - - col1 + - + 37 + - col0 * - col1 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8617
SELECT DISTINCT 67 DIV + CAST( + + col0 AS SIGNED ) + - 77 AS col2 FROM tab1 cor0
----
-76
-77

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT 67 / + CAST ( + + col0 AS INTEGER ) + - 77 AS col2 FROM tab1 cor0
----
-76
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT COUNT( * ) + - MIN( DISTINCT - col1 ) FROM tab0 WHERE NOT - + col1 + - + col2 IS NULL
----
84

skipif mysql # not compatible
query I rowsort label-8618
SELECT COUNT ( * ) + - MIN ( DISTINCT - col1 ) FROM tab0 WHERE NOT - + col1 + - + col2 IS NULL
----
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + + 56
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 + ( - 62 ) FROM tab1 AS cor0
----
-121
-130
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT ALL ( + COUNT( * ) ) * - ( 31 ) AS col1 FROM tab2 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL ( + COUNT ( * ) ) * - ( 31 ) AS col1 FROM tab2 cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT - AVG ( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT - AVG ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 25 * - + col0 FROM tab2
----
-1150
-1600
-1875

query II rowsort
SELECT 99 AS col2, + 57 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
99
57
99
57
99
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT ALL 31 DIV + col0 + - col2 FROM tab0
----
-10
-45
-99

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL 31 / + col0 + - col2 FROM tab0
----
-10
-45
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT + 23 + + - COUNT( * ) col0 FROM tab1
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8627
SELECT + 23 + + - COUNT ( * ) col0 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT DISTINCT ( - 46 ) * - COUNT( * ) * + 90 FROM tab0
----
12420

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT ( - 46 ) * - COUNT ( * ) * + 90 FROM tab0
----
12420

query I rowsort
SELECT ALL - ( col2 ) * + 86 * + 24 AS col1 FROM tab2 AS cor0
----
-119712
-47472
-82560

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8631
SELECT + col0 DIV + - 86 + - + col1 + - - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8631
SELECT + col0 / + - 86 + - + col1 + - - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + + 38 + + - col0 - + col1 * - + 75 * + col0 * 25 + + - ( col0 ) + 54 col2 FROM tab2 AS cor0
----
4398801
9240041
9421884

query I rowsort
SELECT DISTINCT - ( 45 ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-45

query I rowsort
SELECT DISTINCT - col0 * - - ( col1 ) * - col1 * + col0 FROM tab2
----
24285184
25250625
5503716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT - 91 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT - 91 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL + + MAX( + col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL + + MAX ( + col0 ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8637
SELECT ALL - col1 DIV - 49 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL - col1 / - 49 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + + ( - 85 ) + - col0 AS col0 FROM tab0 AS cor0
----
-100
-172
-182

query II rowsort
SELECT - col1 * - col2 + - 21 + + 72, col2 + - + ( + + col1 ) AS col0 FROM tab2 cor0
----
1224
-28
3131
-37
3937
-9

query II rowsort
SELECT col1 + - + 38 AS col1, col2 FROM tab0 AS cor0
----
-17
10
-37
99
43
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 47 IN ( - ( - + ( + col0 ) ), + col1, col1, + + ( 45 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8642
SELECT ( + CAST( COUNT( * ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8642
SELECT ( + CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0
----
3

query II rowsort
SELECT col2 AS col2, col2 AS col0 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT + 63 DIV col1 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-8644
SELECT + 63 / col1 FROM tab1
----
1
12
4

query I rowsort
SELECT ALL col1 + + 69 AS col2 FROM tab1
----
116
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT 68 * - COUNT( * ) FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT 68 * - COUNT ( * ) FROM tab0
----
-204

query I rowsort
SELECT + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + col2 * col1 + + 41 AS col0 FROM tab0 AS cor0
----
140
251
3848

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 / + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 34 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
34

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NULL >= col1 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8652
SELECT DISTINCT - 75 col0, 90 DIV + 91 AS col0 FROM tab0 AS cor0
----
-75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8652
SELECT DISTINCT - 75 col0, 90 / + 91 AS col0 FROM tab0 AS cor0
----
-75
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8653
SELECT DISTINCT 11 AS col2, CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
11
23
11
40
11
58

skipif mysql # not compatible
query II rowsort label-8653
SELECT DISTINCT 11 AS col2, CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
11
23
11
40
11
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col2, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8655
SELECT ALL - + ( ( + CAST( - 70 AS SIGNED ) ) ) AS col1, col0 FROM tab1 AS cor0
----
70
51
70
85
70
91

skipif mysql # not compatible
query II rowsort label-8655
SELECT ALL - + ( ( + CAST ( - 70 AS INTEGER ) ) ) AS col1, col0 FROM tab1 AS cor0
----
70
51
70
85
70
91

query I rowsort
SELECT + ( - + 11 ) FROM tab0 AS cor0
----
-11
-11
-11

query II rowsort
SELECT ALL - col1, 22 AS col0 FROM tab0 AS cor0
----
-1
22
-21
22
-81
22

query I rowsort
SELECT ALL col0 + + col2 + - 29 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - - col0 AS col1, + col2 * - - col1 * col1 AS col1 FROM tab0 AS cor0
----
15
308367
87
4410
97
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 <> - + col1
----

query I rowsort
SELECT DISTINCT + ( - - 94 ) AS col0 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT col1 + + - col1 AS col0 FROM tab1
----
0

query I rowsort
SELECT + ( - + ( - col0 ) ) * - col0 AS col0 FROM tab2
----
-2116
-4096
-5625

query II rowsort
SELECT DISTINCT 87 * + + col1 AS col0, - col2 FROM tab1
----
1218
-96
4089
-68
435
-59

query I rowsort
SELECT ALL col0 * - + col0 AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT - 65 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT - 65 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col0 + - col1 AS col0 FROM tab2 AS cor0
----
1007
2483
4283

query I rowsort
SELECT DISTINCT - + 52 FROM tab2 cor0
----
-52

query I rowsort
SELECT 6 * + - 85 * col2 + col1 FROM tab2 AS cor0
----
-11679
-20323
-29513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8670
SELECT DISTINCT - col0 + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT - col0 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT ALL 59 + + 53 * - COUNT( * ) - + COUNT( * ) FROM tab2
----
-103

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL 59 + + 53 * - COUNT ( * ) - + COUNT ( * ) FROM tab2
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL - + COUNT( ( col1 ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8672
SELECT ALL - + COUNT ( ( col1 ) ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE NOT 91 * + 70 + ( - - col2 ) <> + ( + - col0 ) + - 50 + col2 * + 44
----

query II rowsort
SELECT - + 0 AS col0, 89 + col1 AS col1 FROM tab2 AS cor0
----
0
140
0
156
0
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8675
SELECT ALL + MAX( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL + MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 - + - col2 + + col0 - col1 + - 92 * + col1 AS col0 FROM tab2 AS cor0
----
-4720
-6173
-7121

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT DISTINCT ( - COUNT( * ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8677
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8678
SELECT ALL - col2 AS col0, CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-8678
SELECT ALL - col2 AS col0, CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT + 54 - - + ( - + col0 ), col1 FROM tab2 AS cor0
----
-10
77
-21
67
8
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - col1 + + col2 + - - col2 <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8681
SELECT col2 DIV - col1 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8681
SELECT col2 / - col1 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col2 * + + 75 FROM tab0
----
-3525
-7425
-750

query I rowsort
SELECT DISTINCT col0 * - 86 * + col0 AS col1 FROM tab2
----
-181976
-352256
-483750

query I rowsort
SELECT ALL + - 97 AS col2 FROM tab2 WHERE ( - 89 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8685
SELECT - - col2, 50 FROM tab0 WHERE NOT ( - col0 * - col1 > + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-8685
SELECT - - col2, 50 FROM tab0 WHERE NOT ( - col0 * - col1 > + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 52 * - 63 * + - col0 AS col2 FROM tab1
----
-167076
-278460
-298116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8687
SELECT ALL COUNT( * ) DIV - + COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL COUNT ( * ) / - + COUNT ( * ) FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8688
SELECT + col1 DIV + 33 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8688
SELECT + col1 / + 33 FROM tab2
----
1
2
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * - 72 * - col0 + + 95 * col2 * + 16 * + - 17 <= - col1 + - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8690
SELECT DISTINCT + col2 DIV - ( col2 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT + col2 / - ( col2 ) FROM tab2
----
-1

query II rowsort
SELECT ( + 35 ) AS col0, 36 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
35
36
35
36
35
36

query II rowsort
SELECT ALL + + col2, col0 AS col1 FROM tab0 AS cor0 WHERE + 78 = ( + col2 )
----

query I rowsort
SELECT ALL + + col0 + + + 54 FROM tab2 AS cor0
----
100
118
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT ALL + MAX( ALL - - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL + MAX ( ALL - - col2 ) FROM tab2 AS cor0
----
58

query II rowsort
SELECT ALL 29 AS col2, col1 AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT 45 * col1 FROM tab1 AS cor0
----
2115
225
630

onlyif mysql # aggregate syntax: 
query II rowsort label-8697
SELECT ALL + - MAX( DISTINCT - col1 ) + - COUNT( * ) AS col1, + COUNT( * ) FROM tab0 AS cor0
----
-2
3

skipif mysql # not compatible
query II rowsort label-8697
SELECT ALL + - MAX ( DISTINCT - col1 ) + - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
-2
3

query II rowsort
SELECT DISTINCT - 4, col0 + + - col2 - + - 74 * + 54 AS col2 FROM tab2
----
-4
4013
-4
4019
-4
4020

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT + 18 + - + MAX( ALL - 40 ) AS col2 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-8699
SELECT + 18 + - + MAX ( ALL - 40 ) AS col2 FROM tab1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8700
SELECT DISTINCT + CAST( - 29 AS SIGNED ) + + + COUNT( * ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT + CAST ( - 29 AS INTEGER ) + + + COUNT ( * ) FROM tab0
----
-26

query I rowsort
SELECT - 84 + 64 FROM tab1
----
-20
-20
-20

query II rowsort
SELECT ALL - 45, col1 AS col0 FROM tab1
----
-45
14
-45
47
-45
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 <= - ( + ( + - col2 ) ) * 57 + 15 + + ( - col1 )
----

query II rowsort
SELECT ALL + col2, col0 AS col1 FROM tab0 cor0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT 36 DIV - - 73 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8705
SELECT 36 / - - 73 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8706
SELECT - - col0 + - - CAST( NULL AS SIGNED ) - - col2 + 85 FROM tab2 WHERE + 78 NOT BETWEEN col2 * - 11 + col1 * + col1 + - 4 AND NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT - - col0 + - - CAST ( NULL AS INTEGER ) - - col2 + 85 FROM tab2 WHERE + 78 NOT BETWEEN col2 * - 11 + col1 * + col1 + - 4 AND NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col2 + - col2 FROM tab0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL NOT BETWEEN ( NULL ) AND ( - 94 ) )
----

query I rowsort
SELECT - col2 * - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - - 27 ) * + 69 * + col0 + + col2 * ( col2 ) AS col1 FROM tab0 cor0
----
162181
190512
30154

query I rowsort
SELECT ALL - + 62 * + 21 - + col0 AS col0 FROM tab0 AS cor0
----
-1317
-1389
-1399

query I rowsort
SELECT DISTINCT 59 * + ( - col1 ) + - col2 FROM tab1 AS cor0
----
-2841
-354
-922

query II rowsort
SELECT ALL - ( + col0 ), - col1 AS col0 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) < + col1 * + 80
----

query I rowsort
SELECT DISTINCT 70 * + col1 FROM tab2
----
3570
4690
5390

query I rowsort
SELECT ( ( + + 67 ) ) FROM tab1
----
67
67
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8717
SELECT ALL MAX( + col2 ) * - 41 + + 89 col0, + 88 AS col2 FROM tab1
----
-3847
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8717
SELECT ALL MAX ( + col2 ) * - 41 + + 89 col0, + 88 AS col2 FROM tab1
----
-3847
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT SUM( ALL - col2 ) * - + SUM( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
16068

skipif mysql # not compatible
query I rowsort label-8718
SELECT SUM ( ALL - col2 ) * - + SUM ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
16068

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8719
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * - + col1 * + col2 NOT BETWEEN col2 AND ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-8719
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col1 * + col2 NOT BETWEEN col2 AND ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 51 + - col2 + - col1 + 59 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8721
SELECT DISTINCT + COUNT( - col1 ) * ( - 0 ) + + 7 / + - CAST( NULL AS SIGNED ) + - 64 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT + COUNT ( - col1 ) * ( - 0 ) + + 7 / + - CAST ( NULL AS INTEGER ) + - 64 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 * - col1 + - - col2 AS col1 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT ALL + col0 * - - col2 + - + 33 FROM tab1 AS cor0
----
4863
4982
6155

query I rowsort
SELECT ALL - 63 + - col0 + col1 * - + col0 AS col2 FROM tab1
----
-4431
-573
-828

query I rowsort
SELECT ALL + col1 + - - 50 AS col1 FROM tab0
----
131
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL COUNT( DISTINCT + + col2 ) - - 98 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL COUNT ( DISTINCT + + col2 ) - - 98 FROM tab1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT + - ( - MIN( col2 ) ) + ( - 92 ) col2 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8727
SELECT + - ( - MIN ( col2 ) ) + ( - 92 ) col2 FROM tab0 AS cor0
----
-82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - 18 >= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 NOT BETWEEN - col0 * - + col2 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - - col2 + - + col2 * col1 + + - col1 FROM tab1 cor0
----
2945
3538
4715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 27 col1, col1 FROM tab0
----
27
1
27
21
27
81

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 * + col0 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT + + COUNT( ALL - ( + 54 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8733
SELECT + + COUNT ( ALL - ( + 54 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( + 61 ) FROM tab0 AS cor0
----
-61

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) * - ( - - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT ALL - 30 * + - MAX( - 68 ) FROM tab0
----
-2040

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL - 30 * + - MAX ( - 68 ) FROM tab0
----
-2040

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ( + ( - COUNT( * ) ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8737
SELECT ( + ( - COUNT ( * ) ) ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8738
SELECT + CAST( + MIN( + 3 ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8738
SELECT + CAST ( + MIN ( + 3 ) AS INTEGER ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - col0 + 35 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT 2 DIV + + ( + col0 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8740
SELECT 2 / + + ( + col0 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT - ( - + COUNT( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT - ( - + COUNT ( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col0 * - ( - - col2 ) FROM tab2
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - + 63 col2 FROM tab1 AS cor0
----
2961
315
882

query I rowsort
SELECT DISTINCT - 89 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT + ( + CAST( NULL AS SIGNED ) ) + - - 66 + + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT + ( + CAST ( NULL AS INTEGER ) ) + - - 66 + + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL + + COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL + + COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT COUNT( * ) + 3 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8747
SELECT COUNT ( * ) + 3 FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT - col1 * - 65 FROM tab1 AS cor0
----
3055
325
910

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT + 10 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8749
SELECT + 10 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8750
SELECT ALL + COUNT( * ) DIV + 41 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL + COUNT ( * ) / + 41 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT DISTINCT - col2 + - col0 + - 12 + col2 DIV col0 FROM tab2 AS cor0
----
-116
-145
-81

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT - col2 + - col0 + - 12 + col2 / col0 FROM tab2 AS cor0
----
-116
-145
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 + + + col0 col1 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT col1 * col0 + col2 * 39 AS col0 FROM tab2
----
3243
6488
7287

query I rowsort
SELECT 10 + col0 FROM tab0 WHERE col0 * 28 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT DISTINCT 92 + - + COUNT( * ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT 92 + - + COUNT ( * ) FROM tab0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT MAX( + col1 ) * 50 FROM tab2
----
3850

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT MAX ( + col1 ) * 50 FROM tab2
----
3850

query I rowsort
SELECT ALL - 96 * + 77 AS col1 FROM tab1
----
-7392
-7392
-7392

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 / - 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT - MAX( DISTINCT - 51 ) AS col2 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8759
SELECT - MAX ( DISTINCT - 51 ) AS col2 FROM tab0 AS cor0
----
51

query I rowsort
SELECT ALL - 32 + + - 95 + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-112
-30
-40

query I rowsort
SELECT - + col2 - + - 21 FROM tab0 AS cor0
----
-26
-78
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8762
SELECT ALL - COUNT( * ) DIV + + 51 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL - COUNT ( * ) / + + 51 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL - COUNT( ALL + col0 ) + - - COUNT( * ) * - MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL - COUNT ( ALL + col0 ) + - - COUNT ( * ) * - MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
-291

query I rowsort
SELECT + col0 * - col1 - - col1 FROM tab0 AS cor0
----
-1134
-1806
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL + col1 * - col2 * col2 AS col1 FROM tab0
----
-178929
-2100
-9801

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT 65 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8768
SELECT - ( - ( - COUNT( * ) ) ) AS col2, CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8768
SELECT - ( - ( - COUNT ( * ) ) ) AS col2, CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col2 ) col0 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT DISTINCT - col1, col1 AS col0 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT - + col1, 79 AS col1 FROM tab2 AS cor0
----
-51
79
-67
79
-77
79

query I rowsort
SELECT DISTINCT - - 85 * + 62 AS col1 FROM tab2 AS cor0
----
5270

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8773
SELECT DISTINCT * FROM tab2 WHERE col2 - + ( - 86 ) * + col2 / CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8773
SELECT DISTINCT * FROM tab2 WHERE col2 - + ( - 86 ) * + col2 / CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8774
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - MIN( DISTINCT ( col2 ) ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-8774
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - MIN ( DISTINCT ( col2 ) ) FROM tab0
----
-30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 67 * + col1 <= 75
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + - ( + + col1 ) * - col1 AS col0 FROM tab0 cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT - MIN( + 24 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8777
SELECT - MIN ( + 24 ) FROM tab1 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8778
SELECT - - CAST( NULL AS SIGNED ), + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8778
SELECT - - CAST ( NULL AS INTEGER ), + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8779
SELECT ALL - 8, COUNT( * ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query II rowsort label-8779
SELECT ALL - 8, COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT ALL + col2 * + - 88 + 49 FROM tab1
----
-5143
-5935
-8399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8781
SELECT DISTINCT 82 * COUNT( * ) + CAST( ( + + 37 ) AS SIGNED ) FROM tab1
----
283

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT 82 * COUNT ( * ) + CAST ( ( + + 37 ) AS INTEGER ) FROM tab1
----
283

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL - COUNT( * ) * + 60 * 42 AS col0 FROM tab1 AS cor0
----
-7560

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL - COUNT ( * ) * + 60 * 42 AS col0 FROM tab1 AS cor0
----
-7560

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL + MIN( col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL + MIN ( col0 ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT 53 - - col1 + + + col2 FROM tab0 AS cor0 WHERE NOT - 2 IS NOT NULL
----

query I rowsort
SELECT - col0 * - + col0 + + 72 FROM tab1 AS cor0
----
2673
7297
8353

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT ALL - col0 DIV col2 - 53 FROM tab2 cor0
----
-54
-54
-55

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL - col0 / col2 - 53 FROM tab2 cor0
----
-54
-54
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8787
SELECT ALL * FROM tab0 cor0 WHERE col0 > + - col2 * + + 34 + - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8787
SELECT ALL * FROM tab0 cor0 WHERE col0 > + - col2 * + + 34 + - ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL 53 + col1 + col2 FROM tab0
----
153
181
84

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE - - 54 * + col1 * + + 68 - - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NULL >= + col1
----

query I rowsort
SELECT DISTINCT - col1 + - 21 AS col2 FROM tab0
----
-102
-22
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 81 * - + col1 + + col1 col0, + 18 FROM tab1
----
-1120
18
-3760
18
-400
18

query I rowsort
SELECT DISTINCT 1 - + - 18 FROM tab0
----
19

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 56 + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT DISTINCT SUM( - - 69 ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT SUM ( - - 69 ) FROM tab2
----
207

query I rowsort
SELECT col0 + 60 AS col1 FROM tab0 AS cor0
----
147
157
75

query I rowsort
SELECT - 41 + + + col1 AS col2 FROM tab0 AS cor0
----
-20
-40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT DISTINCT - COUNT( + col1 ) - + 96 FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT - COUNT ( + col1 ) - + 96 FROM tab1 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT DISTINCT + COUNT( - 51 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8799
SELECT DISTINCT + COUNT ( - 51 ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 * + + 82 AS col2 FROM tab1
----
4182
6970
7462

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 80 / 43 * - 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8802
SELECT DISTINCT + COUNT( DISTINCT col1 ) DIV - 94 * - 77 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT + COUNT ( DISTINCT col1 ) / - 94 * - 77 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col2 * col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 4 * + + col1 AS col1 FROM tab0 AS cor0
----
324
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL ( 40 ) * + SUM( 5 ) FROM tab2
----
600

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL ( 40 ) * + SUM ( 5 ) FROM tab2
----
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT DISTINCT + AVG ( - CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8806
SELECT DISTINCT + AVG ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8807
SELECT 16 AS col2, + col2 + col2 * CAST( NULL AS SIGNED ) FROM tab0
----
16
NULL
16
NULL
16
NULL

skipif mysql # not compatible
query II rowsort label-8807
SELECT 16 AS col2, + col2 + col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
16
NULL
16
NULL
16
NULL

query I rowsort
SELECT + 26 + col2 FROM tab1
----
122
85
94

query I rowsort
SELECT 2 + + col2 + col1 * + + col1 FROM tab0
----
102
453
6610

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + 13 * + 8 AND NULL AND NOT NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT DISTINCT + 12 DIV - - col0 + - 58 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT + 12 / - - col0 + - 58 FROM tab0
----
-58

query I rowsort
SELECT DISTINCT - col1 + + - 84 FROM tab2
----
-135
-151
-161

query I rowsort
SELECT ALL + 30 + - - col1 AS col1 FROM tab1
----
35
44
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL - + COUNT( * ) * + ( + 10 ) - + - COUNT( * ) AS col0 FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL - + COUNT ( * ) * + ( + 10 ) - + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-27

query I rowsort
SELECT + AVG ( + - 88 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT col2 * + col0 * + col0 + + col0 * col0 + + col2 + - 99 DIV - - 68 FROM tab2 cor0
----
167975
331932
50806

skipif mysql # not compatible
query I rowsort label-8818
SELECT col2 * + col0 * + col0 + + col0 * col0 + + col2 + - 99 / - - 68 FROM tab2 cor0
----
167975
331932
50806

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT CAST( NULL AS SIGNED ) + - - 71 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT CAST ( NULL AS INTEGER ) + - - 71 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 43 / - col1 FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - + 38 ) + - - col1 AS col0 FROM tab2 AS cor0
----
13
29
39

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8824
SELECT + col1 DIV + - 42 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8824
SELECT + col1 / + - 42 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + 36 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT DISTINCT - col0 * + col1 * 22 + col1 AS col1 FROM tab2
----
-108339
-110483
-51561

query I rowsort
SELECT + - col2 * + col1 * ( - col2 ) FROM tab2 AS cor0
----
123200
225388
26979

query I rowsort
SELECT - + 0 * ( + col2 ) * + col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 * + 58 col1 FROM tab0 AS cor0
----
2900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT - CAST( NULL AS SIGNED ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT DISTINCT + col2 * - CAST( + 60 AS SIGNED ) + - - col0 FROM tab0 AS cor0
----
-2805
-513
-5843

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT + col2 * - CAST ( + 60 AS INTEGER ) + - - col0 FROM tab0 AS cor0
----
-2805
-513
-5843

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col2 + + 95 AS col0 FROM tab2
----
23
118
40
135
58
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col2 FROM tab1
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 93 col2, 6 AS col2 FROM tab0 AS cor0
----
93
6
93
6
93
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8836
SELECT CAST( NULL AS SIGNED ) - + 34 AS col2 FROM tab1 AS cor0 WHERE NOT 19 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT CAST ( NULL AS INTEGER ) - + 34 AS col2 FROM tab1 AS cor0 WHERE NOT 19 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col1, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT DISTINCT col0 AS col2, + ( - + col2 ) AS col0 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE + ( 23 ) < - 54
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT 57 - - col1 IS NOT NULL
----

query I rowsort
SELECT 56 * col2 AS col2 FROM tab0
----
2632
5544
560

onlyif mysql # DIV for integer division: 
query I rowsort label-8842
SELECT - 42 DIV + col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8842
SELECT - 42 / + col0 col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8843
SELECT - col1 + + + ( ( + CAST( 28 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-23
-39
-49

skipif mysql # not compatible
query I rowsort label-8843
SELECT - col1 + + + ( ( + CAST ( 28 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-23
-39
-49

query I rowsort
SELECT - - ( 53 ) + + ( col1 ) * + col0 * + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-383617
-4625452
-9550

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL + + SUM( DISTINCT + 97 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL + + SUM ( DISTINCT + 97 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT + 89 * + 15 + - 50 FROM tab0 cor0
----
1285
1285
1285

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 43 <> 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * + col1 col2 FROM tab2
----
3060
4020
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT ALL + COUNT( ALL - + col1 ) - ( - COUNT( * ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL + COUNT ( ALL - + col1 ) - ( - COUNT ( * ) ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + COUNT( * ) * - 40 AS col2 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-8850
SELECT + COUNT ( * ) * - 40 AS col2 FROM tab0
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8851
SELECT * FROM tab0 cor0 WHERE ( + CAST( 83 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8851
SELECT * FROM tab0 cor0 WHERE ( + CAST ( 83 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 59 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL + AVG ( DISTINCT - + 67 ) + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + AVG ( DISTINCT - + 67 ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= col0
----
NULL

query II rowsort
SELECT - 92 AS col1, col1 FROM tab0 AS cor0
----
-92
1
-92
21
-92
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 85 + - col1 col2 FROM tab1 AS cor0
----
-150
-175
-223

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE 43 * - col2 <= - + 61 + - 56 + - col0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT DISTINCT - ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT - ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - - 17 - + col1 + + - 31 AS col0, - col1 FROM tab1 AS cor0
----
-19
-5
-28
-14
-61
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 + + col1 col0 FROM tab0 AS cor0
----
132
52
72

query I rowsort
SELECT - 47 + + col1 AS col0 FROM tab1
----
-33
-42
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + + 13 col1 FROM tab2
----
2359
4941
5038

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( ( + col0 ) * - col2 + - col0, 95 + - col2 + - - 54 * + + col1 / - + 89 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT ALL + MIN( DISTINCT + col1 ) + - COUNT( ALL - col1 ) col1 FROM tab1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8863
SELECT ALL + MIN ( DISTINCT + col1 ) + - COUNT ( ALL - col1 ) col1 FROM tab1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8864
SELECT - CAST( + ( - - col1 ) AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8864
SELECT - CAST ( + ( - - col1 ) AS INTEGER ) FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-8865
SELECT ALL - col1 AS col2, 66 DIV + 86 AS col0 FROM tab2
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-8865
SELECT ALL - col1 AS col2, 66 / + 86 AS col0 FROM tab2
----
-51
0
-67
0
-77
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8866
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE ( NOT + - 89 * - col2 * - col0 + + 78 IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE ( NOT + - 89 * - col2 * - col0 + + 78 IS NULL )
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8869
SELECT ALL * FROM tab2 WHERE NOT + ( - col0 ) * + CAST( col0 AS SIGNED ) * ( - col0 ) + + col1 - - - col2 - + - col1 / col0 IS NULL OR ( NOT NULL <> - CAST( NULL AS SIGNED ) * - 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8869
SELECT ALL * FROM tab2 WHERE NOT + ( - col0 ) * + CAST ( col0 AS INTEGER ) * ( - col0 ) + + col1 - - - col2 - + - col1 / col0 IS NULL OR ( NOT NULL <> - CAST ( NULL AS INTEGER ) * - 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT + MAX( DISTINCT + col1 ) col2 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8870
SELECT DISTINCT + MAX ( DISTINCT + col1 ) col2 FROM tab0
----
81

query I rowsort
SELECT 12 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + 47 * col2 FROM tab2
----
1081
1880
2726

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE - 87 = + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT DISTINCT - + MIN( DISTINCT + col0 ) col2 FROM tab2 cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8874
SELECT DISTINCT - + MIN ( DISTINCT + col0 ) col2 FROM tab2 cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 / - 9 * + + col2 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 > NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 * col1 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 3 * + + col1 AS col2 FROM tab1 AS cor0
----
-141
-15
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8879
SELECT - - CAST( MAX( - col2 ) AS SIGNED ) + MIN( ALL + - 18 ) AS col2 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8879
SELECT - - CAST ( MAX ( - col2 ) AS INTEGER ) + MIN ( ALL + - 18 ) AS col2 FROM tab0 AS cor0
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8880
SELECT + 24 + - MIN( + col0 ) + 3 DIV + - 77 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8880
SELECT + 24 + - MIN ( + col0 ) + 3 / + - 77 FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT COUNT( * ) FROM tab0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8881
SELECT COUNT ( * ) FROM tab0 WHERE col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8882
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST( - 74 AS SIGNED ) + - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8882
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST ( - 74 AS INTEGER ) + - col2 AND NULL
----

query I rowsort
SELECT - 77 * + ( col2 ) + + col0 + 93 FROM tab1
----
-4365
-5052
-7248

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL MAX( ALL + + 93 ) col1 FROM tab1
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8884
SELECT ALL MAX ( ALL + + 93 ) col1 FROM tab1
----
93

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 94 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8886
SELECT - MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) * + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT - MAX ( DISTINCT + CAST ( NULL AS REAL ) ) * + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - 91 col1 FROM tab1 AS cor0
----
1274
4277
455

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * 25 NOT IN ( col1 - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT + col0 DIV - 41 AS col2 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-8889
SELECT + col0 / - 41 AS col2 FROM tab0
----
-2
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8890
SELECT + 39 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8890
SELECT + 39 / col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 25 + 43 AS col0 FROM tab1 WHERE + col1 * + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 32 - + col2 * + col1 AS col0 FROM tab0
----
-131
-242
-3839

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8893
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-8893
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) IN ( - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL 18 + + COUNT( * ) col1 FROM tab2
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8895
SELECT ALL 18 + + COUNT ( * ) col1 FROM tab2
----
21

query I rowsort
SELECT - ( + 92 ) * + col0 AS col0 FROM tab1
----
-4692
-7820
-8372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 + - col2 col2 FROM tab2 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + 46 FROM tab2
----
-21
-31
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 ) NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - 46 AS col1 FROM tab1
----
-2346
-3910
-4186

query I rowsort
SELECT + col1 + + 26 FROM tab0
----
107
27
47

query III rowsort
SELECT * FROM tab0 WHERE 33 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col1 FROM tab1 WHERE NOT col1 * + 70 + ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * 67 AS col0 FROM tab2
----
1541
2680
3886

query I rowsort
SELECT - 6 AS col0 FROM tab2 WHERE NOT - col0 IN ( + col0 + + 56 )
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT + 83 FROM tab2 WHERE col2 + 72 * + col1 > + CAST( col2 AS SIGNED ) / 27
----
83
83
83

skipif mysql # not compatible
query I rowsort label-8906
SELECT + 83 FROM tab2 WHERE col2 + 72 * + col1 > + CAST ( col2 AS INTEGER ) / 27
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 WHERE NULL <> 33
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE - 88 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT DISTINCT - COUNT( * ) + CAST( NULL AS SIGNED ) * ( 46 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS INTEGER ) * ( 46 ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + 66 > col2
----

query I rowsort
SELECT 23 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * + 83 + col1 )
----

query I rowsort
SELECT DISTINCT - 52 FROM tab1 AS cor0 CROSS JOIN tab0
----
-52

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 98 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ALL ( - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL ( - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1
----
-9

query I rowsort
SELECT DISTINCT col0 * 32 + + col1 FROM tab0 AS cor0 WHERE col2 <= - col0
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL > ( + 4 / - col0 - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8920
SELECT COUNT( * ) DIV + MAX( col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8920
SELECT COUNT ( * ) / + MAX ( col0 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( col1 ) IN ( 75 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT 25 * - 45 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) + 28 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-8922
SELECT 25 * - 45 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) + 28 * - col1 )
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( 91 )
----

query I rowsort
SELECT 16 * + 8 AS col2 FROM tab2 cor0 WHERE NOT - col1 IS NULL
----
128
128
128

query I rowsort
SELECT ALL + - 1 * + col2 + + 41 FROM tab1 AS cor0
----
-18
-27
-55

query I rowsort
SELECT DISTINCT - col2 * 45 FROM tab1 AS cor0
----
-2655
-3060
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE - col0 <> + col0 + + 95
----
3

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 <> + col0 + + 95
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT MIN( ALL - ( col1 ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-8928
SELECT MIN ( ALL - ( col1 ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT DISTINCT MAX( ALL col0 ) + 85 FROM tab0
----
182

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT MAX ( ALL col0 ) + 85 FROM tab0
----
182

query III rowsort
SELECT * FROM tab0 WHERE col1 + + col0 IS NULL
----

query I rowsort
SELECT ALL ( - 51 ) + 95 FROM tab2
----
44
44
44

query I rowsort
SELECT ALL 46 * + ( col1 ) + + col0 * 71 FROM tab0
----
4791
6933
7143

query I rowsort
SELECT - 64 + + 90 FROM tab0
----
26
26
26

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 ) = NULL
----

query I rowsort
SELECT + + col1 + - 0 * + col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT ALL 44 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL 44 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 16 * + col2 col2 FROM tab2 AS cor0 WHERE - col0 * + col2 NOT IN ( col2 )
----
-345
-600
-870

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 45 = ( + 30 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT ALL + - CAST( 97 AS SIGNED ) * 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bc33cff4533f3ce6796120c0b1a573f2

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL + - CAST ( 97 AS INTEGER ) * 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bc33cff4533f3ce6796120c0b1a573f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 * col2 - - 78 col0 FROM tab1
----
4798
5518
7758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8942
SELECT 17 * + ( COUNT( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1 WHERE ( - - 55 ) < + col2 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-8942
SELECT 17 * + ( COUNT ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1 WHERE ( - - 55 ) < + col2 * + col1
----
0

query I rowsort
SELECT ALL col0 + + ( - - col1 ) + col2 FROM tab1
----
149
161
206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( 82 ) col2 FROM tab2
----
-1886
-3280
-4756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8945
SELECT col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( - - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8945
SELECT col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( - - col1 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 * - 92 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + - col2 + - col0 AND 98 * + 89
----
-5369
-6188
-8736

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 26 + - 49 ) IS NULL OR - 14 <= ( 54 ) * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + + col2, col2 * - col1 AS col0 FROM tab0 cor0
----
10
-210
47
-3807
99
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8949
SELECT ALL - + COUNT( * ) AS col2, MAX( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-3
77

skipif mysql # not compatible
query II rowsort label-8949
SELECT ALL - + COUNT ( * ) AS col2, MAX ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-3
77

query I rowsort
SELECT ALL 85 AS col2 FROM tab2 cor0
----
85
85
85

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 BETWEEN + col2 AND + col0
----
51
14
96

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 56 / col0 / col0 >= NULL
----

query I rowsort
SELECT 47 * - - col2 AS col1 FROM tab1
----
2773
3196
4512

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT ALL 24 * - COUNT( * ) FROM tab2 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL 24 * - COUNT ( * ) FROM tab2 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT ( 41 ) * - col2 AS col2 FROM tab1
----
-2419
-2788
-3936

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 / - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 * col0 FROM tab1 AS cor0 WHERE ( ( - col1 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 88 * 28 + - col0 < NULL
----

query I rowsort
SELECT + col1 * + col1 * - 58 FROM tab1
----
-11368
-128122
-1450

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL - MIN( DISTINCT + - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - MIN ( DISTINCT + - col2 ) AS col1 FROM tab1
----
96

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( col1 + + col0 )
----

query I rowsort
SELECT - - 36 + + + 59 FROM tab1 cor0 WHERE NOT - col1 + - - 78 IS NULL
----
95
95
95

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab1 AS cor0 WHERE NOT - 86 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col0 + - + col1 * + + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 32 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * - 7 FROM tab1 AS cor0
----
329
35
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + ( col2 ) col1 FROM tab0 cor0
----
-210
-3807
-99

query II rowsort
SELECT ALL + + col1, col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 60 + - col2 FROM tab1 AS cor0
----
-36
-8
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 99 col2 FROM tab2
----
-22
-32
-48

query III rowsort
SELECT * FROM tab2 WHERE - + col2 BETWEEN ( col0 * + col0 * - col1 * 75 ) AND NULL
----

query II rowsort
SELECT 43 AS col1, col0 AS col1 FROM tab2
----
43
46
43
64
43
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT DISTINCT + 37 + - - CAST( + + col2 AS SIGNED ) FROM tab0
----
136
47
84

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT + 37 + - - CAST ( + + col2 AS INTEGER ) FROM tab0
----
136
47
84

query I rowsort
SELECT - 81 + - col0 FROM tab1 WHERE + - ( 6 ) < - + col1 + - + col1
----

query I rowsort
SELECT ALL 6 * col1 FROM tab1
----
282
30
84

query III rowsort
SELECT * FROM tab2 WHERE + 62 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL COUNT( * ) + - 7 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL COUNT ( * ) + - 7 FROM tab2
----
-4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 * col0 >= ( + - col2 ) )
----

query I rowsort
SELECT DISTINCT - col2 * + - 47 FROM tab0
----
2209
4653
470

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT DISTINCT - - ( 5 ) * - COUNT( * ) FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT - - ( 5 ) * - COUNT ( * ) FROM tab2 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + - 4 + - 95 / - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8981
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + - 4 + - 95 / - col2 )
----
0

query I rowsort
SELECT + - 0 - + col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8983
SELECT ALL 73 DIV + MIN( ALL - ( - col1 ) ) + + 44 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL 73 / + MIN ( ALL - ( - col1 ) ) + + 44 FROM tab2
----
45

query I rowsort
SELECT DISTINCT 45 + - 96 AS col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8985
SELECT DISTINCT + MIN( ALL + col2 ) DIV 3 AS col1 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT + MIN ( ALL + col2 ) / 3 AS col1 FROM tab1
----
19

query I rowsort
SELECT DISTINCT - 78 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8987
SELECT ALL - CAST( NULL AS DECIMAL ) * - col0 + - ( + col1 ) + - + 3 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL - CAST ( NULL AS REAL ) * - col0 + - ( + col1 ) + - + 3 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8989
SELECT DISTINCT + 10 DIV - ( + ( + 68 ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT + 10 / - ( + ( + 68 ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT DISTINCT MIN( - 74 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 57 * 59 NOT BETWEEN ( + col1 ) AND 58 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT MIN ( - 74 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 57 * 59 NOT BETWEEN ( + col1 ) AND 58 + + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8991
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT ALL 95 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1
-4
-95

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL 95 / - col1 AS col0 FROM tab0 AS cor0
----
-1
-4
-95

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 IN ( + col2 + - - 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT DISTINCT + + ( - + COUNT( col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT + + ( - + COUNT ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + - col1 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) <= + col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8997
SELECT - AVG ( - - 98 ) * + COUNT( * ) / COUNT( * ) * + + COUNT( - col0 ) / - AVG ( + col0 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT - AVG ( - - 98 ) * + COUNT ( * ) / COUNT ( * ) * + + COUNT ( - col0 ) / - AVG ( + col0 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8998
SELECT COUNT( * ) * COUNT( 76 ) col1, 32 FROM tab2
----
9
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8998
SELECT COUNT ( * ) * COUNT ( 76 ) col1, 32 FROM tab2
----
9
32

query I rowsort
SELECT ALL 52 * + + 78 AS col2 FROM tab2
----
4056
4056
4056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9000
SELECT + CAST( col1 AS SIGNED ) * col2 FROM tab2 WHERE NOT - col0 <= ( - + col1 * + col2 + + 82 + - 35 / - 71 )
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-9000
SELECT + CAST ( col1 AS INTEGER ) * col2 FROM tab2 WHERE NOT - col0 <= ( - + col1 * + col2 + + 82 + - 35 / - 71 )
----
1173
3080
3886

query I rowsort
SELECT + 45 * - col0 AS col1 FROM tab1
----
-2295
-3825
-4095

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT NULL < + + ( 26 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 58 ) >= ( + col2 + + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT + MIN( + ( - + col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9004
SELECT + MIN ( + ( - + col1 ) ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL COUNT( * ) * 28 AS col1 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL COUNT ( * ) * 28 AS col1 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL COUNT( + - ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL COUNT ( + - ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9007
SELECT ALL - col2 FROM tab1 AS cor0 WHERE CAST( col0 AS DECIMAL ) * col1 + + 3 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL - col2 FROM tab1 AS cor0 WHERE CAST ( col0 AS REAL ) * col1 + + 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL MIN( ALL 79 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL MIN ( ALL 79 ) FROM tab0 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT DISTINCT - MAX( DISTINCT + 18 ) AS col1 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT - MAX ( DISTINCT + 18 ) AS col1 FROM tab0 AS cor0
----
-18

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( col0 ) ) = col2 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 58 * + 52 - - - col1 + + + col2 IS NULL
----

query II rowsort
SELECT col2 * col2 AS col2, + 81 AS col1 FROM tab0 cor0
----
100
81
2209
81
9801
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9015
SELECT + col2 DIV 90 col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9015
SELECT + col2 / 90 col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + ( + 47 ) AS col0 FROM tab2 AS cor0 WHERE + 50 + - col2 IS NULL
----

query I rowsort
SELECT - - 62 FROM tab2 cor0
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9018
SELECT - - CAST( - 82 AS SIGNED ), - 75 AS col1 FROM tab2 cor0
----
-82
-75
-82
-75
-82
-75

skipif mysql # not compatible
query II rowsort label-9018
SELECT - - CAST ( - 82 AS INTEGER ), - 75 AS col1 FROM tab2 cor0
----
-82
-75
-82
-75
-82
-75

query I rowsort
SELECT ALL - + col1 + + + col2 * - col2 * + col2 FROM tab2 AS cor0
----
-12218
-195179
-64077

query I rowsort
SELECT DISTINCT - + 38 FROM tab2 AS cor0 WHERE col2 + + 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT COUNT( * ) + - 12 AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9021
SELECT COUNT ( * ) + - 12 AS col1 FROM tab0
----
-9

query II rowsort
SELECT DISTINCT - col0 + - col0 * 45, - 62 AS col0 FROM tab2
----
-2116
-62
-2944
-62
-3450
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT + COUNT( DISTINCT - col0 ) + - 77 col1 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9023
SELECT + COUNT ( DISTINCT - col0 ) + - 77 col1 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT + 97 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query II rowsort label-9025
SELECT + 33 AS col2, - ( ( + COUNT( * ) ) ) AS col2 FROM tab1
----
33
-3

skipif mysql # not compatible
query II rowsort label-9025
SELECT + 33 AS col2, - ( ( + COUNT ( * ) ) ) AS col2 FROM tab1
----
33
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - + MIN( DISTINCT + col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9026
SELECT - + MIN ( DISTINCT + col0 ) FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL MAX( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL MAX ( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 + + - 5 + - col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL + ( + COUNT( * ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL + ( + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + 79 * + - 46 FROM tab2 AS cor0
----
-3634

query I rowsort
SELECT ALL ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL + - col1 FROM tab1 AS cor0 WHERE NOT col1 * - 92 + col2 NOT BETWEEN + 12 AND col0
----

query I rowsort
SELECT DISTINCT col0 * + 51 AS col2 FROM tab2 AS cor0
----
2346
3264
3825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 17 ) * col2 col2, + col1 AS col2 FROM tab2
----
391
51
680
77
986
67

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( + - col2 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9036
SELECT 88 DIV - col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-9036
SELECT 88 / - col2 FROM tab2
----
-1
-2
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9037
SELECT ALL + MAX( - col1 ) DIV - MAX( - 57 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL + MAX ( - col1 ) / - MAX ( - 57 ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL - COUNT( * ) * COUNT( * ) * COUNT( * ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL - COUNT ( * ) * COUNT ( * ) * COUNT ( * ) FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-9039
SELECT DISTINCT MAX( DISTINCT - + 96 ) AS col0, + 34 col2 FROM tab1
----
-96
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9039
SELECT DISTINCT MAX ( DISTINCT - + 96 ) AS col0, + 34 col2 FROM tab1
----
-96
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT - MAX( 69 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-9040
SELECT - MAX ( 69 ) FROM tab2
----
-69

query I rowsort
SELECT DISTINCT 47 + - 18 + - - col1 AS col1 FROM tab1
----
34
43
76

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 76 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 31 * - 49 AS col1 FROM tab0 AS cor0
----
-1519
-1519
-1519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + 98 - + - col1 col2, 8 FROM tab2 AS cor0
----
107
8
126
8
135
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT DISTINCT + ( ( col1 ) ) col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - CAST( - col0 AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9045
SELECT DISTINCT + ( ( col1 ) ) col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - CAST ( - col0 AS INTEGER ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL col1 + - 5 AS col0 FROM tab1 cor0
----
0
42
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT COUNT( * ) + + + 89 AS col1 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9047
SELECT COUNT ( * ) + + + 89 AS col1 FROM tab2 AS cor0
----
92

query I rowsort
SELECT - 21 + col0 AS col1 FROM tab2 cor0
----
25
43
54

query I rowsort
SELECT ALL - ( - + col2 ) * + col1 + col1 FROM tab2
----
1224
3157
3953

query II rowsort
SELECT DISTINCT + col1 - - col2, col2 FROM tab1
----
110
96
115
68
64
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL - 85 + MAX( ALL + col0 ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL - 85 + MAX ( ALL + col0 ) FROM tab2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9052
SELECT + 33 DIV - col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9052
SELECT + 33 / - col0 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - col0 * - 2 FROM tab1
----
198
229
250

query I rowsort
SELECT ALL col2 - - col1 AS col2 FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab2 cor0 WHERE 45 = - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9056
SELECT - col2 - col1 DIV + + col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9056
SELECT - col2 - col1 / + + col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT ALL ( + 21 ) * - col1 + + col2 + + - col2 DIV - col1 FROM tab0 AS cor0
----
-1654
-431
177

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL ( + 21 ) * - col1 + + col2 + + - col2 / - col1 FROM tab0 AS cor0
----
-1654
-431
177

query I rowsort
SELECT DISTINCT - col0 * + - 87 * + col0 FROM tab2 AS cor0
----
184092
356352
489375

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9059
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) / 19 IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-9059
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / 19 IS NOT NULL
----

query I rowsort
SELECT + ( + 33 ) + + - col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9061
SELECT - + COUNT( * ) AS col2, 17 FROM tab2 cor0
----
-3
17

skipif mysql # not compatible
query II rowsort label-9061
SELECT - + COUNT ( * ) AS col2, 17 FROM tab2 cor0
----
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + - 25 ) col1 FROM tab0 AS cor0
----
25
25
25

query II rowsort
SELECT DISTINCT 69 AS col0, - 69 AS col0 FROM tab1 AS cor0
----
69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT - COUNT( ALL - + col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9064
SELECT - COUNT ( ALL - + col1 ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9066
SELECT ALL + MAX( DISTINCT ( + - ( + 10 ) ) ) * + 97, MAX( ALL - 49 ) + + 52 col2 FROM tab0 AS cor0
----
-970
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9066
SELECT ALL + MAX ( DISTINCT ( + - ( + 10 ) ) ) * + 97, MAX ( ALL - 49 ) + + 52 col2 FROM tab0 AS cor0
----
-970
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9067
SELECT ALL - 93 DIV 43 DIV + col0 + - 12 AS col1 FROM tab2 AS cor0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL - 93 / 43 / + col0 + - 12 AS col1 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9068
SELECT + CAST( - 61 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2 * - col1
----

skipif mysql # not compatible
query I rowsort label-9068
SELECT + CAST ( - 61 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2 * - col1
----

query I rowsort
SELECT DISTINCT - col2 * - 30 FROM tab1
----
1770
2040
2880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - ( + - 85 ) AS col0 FROM tab0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT - 44 * - + MIN( DISTINCT - 17 ) col2 FROM tab2
----
-748

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9072
SELECT - 44 * - + MIN ( DISTINCT - 17 ) col2 FROM tab2
----
-748

onlyif mysql # DIV for integer division: 
query II rowsort label-9073
SELECT col1 DIV - 66, - col1 AS col0 FROM tab0 cor0
----
-1
-81
0
-1
0
-21

skipif mysql # not compatible
query II rowsort label-9073
SELECT col1 / - 66, - col1 AS col0 FROM tab0 cor0
----
-1
-81
0
-1
0
-21

query I rowsort
SELECT ALL + - 6 * + + col2 AS col2 FROM tab0 AS cor0
----
-282
-594
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL COUNT( * ) * - 7 col2 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9075
SELECT ALL COUNT ( * ) * - 7 col2 FROM tab0 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT + col1 + + CAST( 24 AS SIGNED ) FROM tab1 AS cor0
----
29
38
71

skipif mysql # not compatible
query I rowsort label-9076
SELECT + col1 + + CAST ( 24 AS INTEGER ) FROM tab1 AS cor0
----
29
38
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT - + CAST( NULL AS SIGNED ) + + - ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT - + CAST ( NULL AS INTEGER ) + + - ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 29 + + 47 * - - col0 * + + col0 * + + col1 FROM tab0
----
442252
7470632
856604

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT DISTINCT - 57 * - - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT - 57 * - - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9080
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9081
SELECT DISTINCT - + SUM( + ( + + col0 ) ) DIV + 70 AS col1 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT - + SUM ( + ( + + col0 ) ) / + 70 AS col1 FROM tab0 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - + col0 col1, 63 * 35 * + + col1 - - 75 FROM tab0 AS cor0
----
-225
178680
-7569
46380
-9409
2280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9083
SELECT DISTINCT COUNT( * ) DIV 70 * - SUM( - 55 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT COUNT ( * ) / 70 * - SUM ( - 55 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9084
SELECT ALL * FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) > col0
----

skipif mysql # not compatible
query III rowsort label-9084
SELECT ALL * FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT - MAX( - + col1 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9085
SELECT - MAX ( - + col1 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT - col1 + - 27 - - - col0 FROM tab1 AS cor0
----
-117
-165
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - + col0 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9088
SELECT DISTINCT 75 DIV SUM( - + col1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT 75 / SUM ( - + col1 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT 63 - COUNT( * ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT 63 - COUNT ( * ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT + ( + SUM( + 19 ) ) AS col1 FROM tab2, tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-9090
SELECT + ( + SUM ( + 19 ) ) AS col1 FROM tab2, tab1 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL COUNT( * ) - 26 * + MIN( DISTINCT - - ( + + col2 ) ) FROM tab1
----
-1531

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL COUNT ( * ) - 26 * + MIN ( DISTINCT - - ( + + col2 ) ) FROM tab1
----
-1531

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT MIN( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT MIN ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9093
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + 71 * - CAST( NULL AS SIGNED ) + + - 93 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9093
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + 71 * - CAST ( NULL AS INTEGER ) + + - 93 FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT ( + + 94 ) AS col1 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT 12 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT DISTINCT COUNT( DISTINCT + 93 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT COUNT ( DISTINCT + 93 ) FROM tab0 cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9097
SELECT DISTINCT col0, + col2 DIV - - col0 FROM tab0 AS cor0
----
15
3
87
0
97
1

skipif mysql # not compatible
query II rowsort label-9097
SELECT DISTINCT col0, + col2 / - - col0 FROM tab0 AS cor0
----
15
3
87
0
97
1

query I rowsort
SELECT 34 * - + 49 FROM tab0
----
-1666
-1666
-1666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9099
SELECT - 22 DIV - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9099
SELECT - 22 / - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
4

query I rowsort
SELECT DISTINCT + + ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
15
87
97

query I rowsort
SELECT 68 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT ALL AVG ( ALL - col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 ) BETWEEN ( 88 ) AND + + col2
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 66 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 66 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 88 + + ( col2 ) + col2 * - col2 FROM tab2
----
-1472
-3218
-418

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL + MAX( DISTINCT + 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL + MAX ( DISTINCT + 45 ) FROM tab2
----
45

query I rowsort
SELECT DISTINCT - 63 / - - 71 + - 57 * - col2 FROM tab2 WHERE - 40 >= 67 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9108
SELECT col2 DIV - CAST( - col0 AS SIGNED ) + + + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9108
SELECT col2 / - CAST ( - col0 AS INTEGER ) + + + col1 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - 91 + col2, - col0 col0 FROM tab0
----
190
-97
1921
-87
7418
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9110
SELECT 26 + - - SUM( DISTINCT - col0 ) AS col0, ( - - COUNT( * ) ) FROM tab0
----
-173
3

skipif mysql # not compatible
query II rowsort label-9110
SELECT 26 + - - SUM ( DISTINCT - col0 ) AS col0, ( - - COUNT ( * ) ) FROM tab0
----
-173
3

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT + + col1 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT col0 * - 14 AS col0 FROM tab0
----
-1218
-1358
-210

query I rowsort
SELECT DISTINCT - col2 * - + col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL - - COUNT( * ) * + ( + 91 ) AS col0 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL - - COUNT ( * ) * + ( + 91 ) AS col0 FROM tab0 AS cor0
----
273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 3 col0 FROM tab1 AS cor0
----
-54
-88
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT - ( + - COUNT( * ) ) - - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9116
SELECT - ( + - COUNT ( * ) ) - - COUNT ( * ) FROM tab1
----
6

query III rowsort
SELECT * FROM tab1 WHERE + 43 >= NULL
----

query I rowsort
SELECT DISTINCT col1 + 34 FROM tab0
----
115
35
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 + col1 col0 FROM tab0
----
101
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 19 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 19 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9121
SELECT ALL + MAX( - col1 ), SUM( ALL 1 ) AS col1 FROM tab2 AS cor0
----
-51
3

skipif mysql # not compatible
query II rowsort label-9121
SELECT ALL + MAX ( - col1 ), SUM ( ALL 1 ) AS col1 FROM tab2 AS cor0
----
-51
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 56 col2 FROM tab1 AS cor0
----
-42
-51
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9123
SELECT ALL + COUNT( DISTINCT - - col2 ) DIV + 12 * - 62 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9123
SELECT ALL + COUNT ( DISTINCT - - col2 ) / + 12 * - 62 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 66 * - col2 * + col0 FROM tab2 AS cor0
----
-168960
-287100
-69828

query II rowsort
SELECT - 55 * 73, - 15 AS col2 FROM tab2 AS cor0
----
-4015
-15
-4015
-15
-4015
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT DISTINCT - ( - + COUNT( * ) ) + - 9 AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT - ( - + COUNT ( * ) ) + - 9 AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9127
SELECT DISTINCT 37 * - col1 + + + col2 DIV + + col2 FROM tab2
----
-1886
-2478
-2848

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT 37 * - col1 + + + col2 / + + col2 FROM tab2
----
-1886
-2478
-2848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9128
SELECT ALL - CAST( + 35 AS SIGNED ) + + col2 AS col1 FROM tab1
----
24
33
61

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL - CAST ( + 35 AS INTEGER ) + + col2 AS col1 FROM tab1
----
24
33
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9129
SELECT DISTINCT * FROM tab1 WHERE + 72 + + + CAST( NULL AS SIGNED ) IN ( + - col1 * col1, col0 )
----

skipif mysql # not compatible
query III rowsort label-9129
SELECT DISTINCT * FROM tab1 WHERE + 72 + + + CAST ( NULL AS INTEGER ) IN ( + - col1 * col1, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL - 43 * - COUNT( * ) FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL - 43 * - COUNT ( * ) FROM tab0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT ALL 60 * - CAST( - col1 AS SIGNED ) * + col2 FROM tab1
----
17700
191760
80640

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL 60 * - CAST ( - col1 AS INTEGER ) * + col2 FROM tab1
----
17700
191760
80640

onlyif mysql # aggregate syntax: 
query II rowsort label-9132
SELECT DISTINCT + 46 + 71 AS col0, - COUNT( + col1 ) FROM tab0 WHERE NOT NULL <= - col2
----
117
0

skipif mysql # not compatible
query II rowsort label-9132
SELECT DISTINCT + 46 + 71 AS col0, - COUNT ( + col1 ) FROM tab0 WHERE NOT NULL <= - col2
----
117
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col0 AND + + col2
----

query I rowsort
SELECT ALL 36 * - + 4 * - col2 * - 81 AS col2 FROM tab2 AS cor0
----
-268272
-466560
-676512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 76 * col0 col1, 92 AS col2 FROM tab1 AS cor0
----
-3876
92
-6460
92
-6916
92

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 BETWEEN ( col1 ) AND col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT - 35 * COUNT( * ) * 73 AS col0 FROM tab2 cor0
----
-7665

skipif mysql # not compatible
query I rowsort label-9138
SELECT - 35 * COUNT ( * ) * 73 AS col0 FROM tab2 cor0
----
-7665

onlyif mysql # aggregate syntax: 
query II rowsort label-9139
SELECT DISTINCT COUNT( * ) AS col1, MIN( + - 25 ) AS col1 FROM tab0
----
3
-25

skipif mysql # not compatible
query II rowsort label-9139
SELECT DISTINCT COUNT ( * ) AS col1, MIN ( + - 25 ) AS col1 FROM tab0
----
3
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-9140
SELECT - col2 AS col0, - col0 DIV - + col0 AS col0 FROM tab1 AS cor0
----
-59
1
-68
1
-96
1

skipif mysql # not compatible
query II rowsort label-9140
SELECT - col2 AS col0, - col0 / - + col0 AS col0 FROM tab1 AS cor0
----
-59
1
-68
1
-96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL 72 * + + ( - COUNT( * ) ) * COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
-648

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL 72 * + + ( - COUNT ( * ) ) * COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-648

query I rowsort
SELECT - col1 * col1 * ( col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 AS col1, col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT ALL + COUNT( DISTINCT - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL + COUNT ( DISTINCT - col2 ) FROM tab2
----
3

query I rowsort
SELECT ALL - + ( - + col1 ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9147
SELECT CAST( NULL AS DECIMAL ) + CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT CAST ( NULL AS REAL ) + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9148
SELECT + 97 + - 99 + - + col2 + col0 DIV ( + 79 ) FROM tab0 AS cor0
----
-100
-11
-49

skipif mysql # not compatible
query I rowsort label-9148
SELECT + 97 + - 99 + - + col2 + col0 / ( + 79 ) FROM tab0 AS cor0
----
-100
-11
-49

query I rowsort
SELECT ALL + col2 + - col1 + + col0 + col0 FROM tab1
----
184
203
224

query I rowsort
SELECT col2 * ( + + col0 ) - 95 + + - col2 * + col0 FROM tab2 cor0
----
-95
-95
-95

query I rowsort
SELECT + + col1 * - + 49 - + col1 FROM tab0 cor0
----
-1050
-4050
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9152
SELECT ALL - col0 DIV - + col0 - 77 FROM tab1 AS cor0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL - col0 / - + col0 - 77 FROM tab1 AS cor0
----
-76
-76
-76

query I rowsort
SELECT - + 89 FROM tab1 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - col1 - 45 FROM tab0 AS cor0
----
-126
-46
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9155
SELECT ALL ( + - ( 10 ) ) DIV + col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL ( + - ( 10 ) ) / + col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 - col1 * - + 75 col1 FROM tab1 AS cor0
----
1122
3597
447

onlyif mysql # aggregate syntax: 
query II rowsort label-9157
SELECT ALL + COUNT( * ), SUM( + - ( + 72 ) ) AS col2 FROM tab2 AS cor0
----
3
-216

skipif mysql # not compatible
query II rowsort label-9157
SELECT ALL + COUNT ( * ), SUM ( + - ( + 72 ) ) AS col2 FROM tab2 AS cor0
----
3
-216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9158
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT ( - - CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT ( - - CAST ( NULL AS REAL ) ) IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT ALL + SUM( DISTINCT ( - + 14 ) ) + - 38 + + - COUNT( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 84 * + col1 * + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL + SUM ( DISTINCT ( - + 14 ) ) + - 38 + + - COUNT ( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 84 * + col1 * + col2 AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + + 84 * - col2 * col1 * + + col0 * - - 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + ( + - col0 ) AS col2 FROM tab1 cor0
----
51
85
91

query II rowsort
SELECT 4, + col2 FROM tab2
----
4
23
4
40
4
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT 19 DIV 65 * + 78 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9163
SELECT 19 / 65 * + 78 col2 FROM tab2
----
0
0
0

query II rowsort
SELECT col0, 75 AS col2 FROM tab1
----
51
75
85
75
91
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 27 col1, col0 AS col1 FROM tab0
----
27
15
27
87
27
97

query II rowsort
SELECT DISTINCT col2 AS col2, col0 - + + col0 AS col0 FROM tab2 AS cor0
----
23
0
40
0
58
0

query I rowsort
SELECT 67 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT DISTINCT + ( - + ( + COUNT( * ) ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9168
SELECT DISTINCT + ( - + ( + COUNT ( * ) ) ) col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL < col1
----

query I rowsort
SELECT col1 + - col1 * 2 * + col1 + - col2 AS col1 FROM tab2
----
-11821
-5174
-8969

query III rowsort
SELECT ALL * FROM tab2 WHERE - 4 IS NULL
----

query I rowsort
SELECT ALL + col1 * - col0 + + + col2 AS col2 FROM tab2
----
-2323
-4888
-4967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT DISTINCT col2 + CAST( - col2 AS SIGNED ) * + ( + col2 ) AS col1 FROM tab1
----
-3422
-4556
-9120

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT col2 + CAST ( - col2 AS INTEGER ) * + ( + col2 ) AS col1 FROM tab1
----
-3422
-4556
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL BETWEEN - col1 * + 2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL BETWEEN - col1 * + 2 AND NULL
----
0

query I rowsort
SELECT ALL - col2 + - + col2 AS col1 FROM tab0
----
-198
-20
-94

query II rowsort
SELECT col0, 76 + - 90 FROM tab1
----
51
-14
85
-14
91
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT - COUNT( + - 94 ) - - MAX( DISTINCT col1 ) FROM tab0 WHERE NULL IS NULL
----
78

skipif mysql # not compatible
query I rowsort label-9178
SELECT - COUNT ( + - 94 ) - - MAX ( DISTINCT col1 ) FROM tab0 WHERE NULL IS NULL
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9179
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9180
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT CAST( col0 AS DECIMAL ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-9180
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT CAST ( col0 AS REAL ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9181
SELECT ALL + col0, - ( + + col0 ) + CAST( 96 AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-9181
SELECT ALL + col0, - ( + + col0 ) + CAST ( 96 AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NULL >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col0 + - - 77 AS col0 FROM tab0
----
164
174
92

query I rowsort
SELECT + 28 + - col2 FROM tab2
----
-12
-30
5

query I rowsort
SELECT - ( + - 81 ) AS col2 FROM tab1 WHERE + + col2 IS NOT NULL
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT ALL - 93 * ( col1 ) * + + 34 * - 44 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL - 93 * ( col1 ) * + + 34 * - 44 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 21 * + col2 AS col1 FROM tab2
----
1218
483
840

onlyif mysql # DIV for integer division: 
query I rowsort label-9187
SELECT ALL + col0 DIV - 13 AS col1 FROM tab0
----
-1
-6
-7

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL + col0 / - 13 AS col1 FROM tab0
----
-1
-6
-7

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9189
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( - - CAST( - - 18 AS SIGNED ) - - - CAST( col1 AS SIGNED ) IS NULL ) )
----

skipif mysql # not compatible
query III rowsort label-9189
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( - - CAST ( - - 18 AS INTEGER ) - - - CAST ( col1 AS INTEGER ) IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT - SUM( ALL + + col1 ) AS col2 FROM tab0 WHERE NOT + col1 * + - 45 + col2 IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-9190
SELECT - SUM ( ALL + + col1 ) AS col2 FROM tab0 WHERE NOT + col1 * + - 45 + col2 IS NULL
----
-103

query I rowsort
SELECT ALL col2 * + - col0 * col2 * + + col0 AS col2 FROM tab0
----
-497025
-756900
-92217609

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT - 79 DIV - ( + + col1 ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9192
SELECT - 79 / - ( + + col1 ) AS col2 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 36 + ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9194
SELECT ALL + 32 - - - COUNT( * ) DIV + 71 AS col1 FROM tab2, tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL + 32 - - - COUNT ( * ) / + 71 AS col1 FROM tab2, tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - COUNT( * ) FROM tab1 WHERE NOT ( ( ( 65 * - 54 >= 70 ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-9195
SELECT - COUNT ( * ) FROM tab1 WHERE NOT ( ( ( 65 * - 54 >= 70 ) ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT - + SUM( - - 34 ) AS col0 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9196
SELECT - + SUM ( - - 34 ) AS col0 FROM tab0 AS cor0
----
-102

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - col1 + + - 21 + - - col1 = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9198
SELECT ALL + + COUNT( * ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9198
SELECT ALL + + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 74 ) col1 FROM tab1 cor0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT DISTINCT - ( col2 ) * - CAST( NULL AS SIGNED ) * - + 60 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT - ( col2 ) * - CAST ( NULL AS INTEGER ) * - + 60 AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 + + 82 + - 11 col1 FROM tab2
----
124
124
124

onlyif mysql # DIV for integer division: 
query I rowsort label-9202
SELECT ALL ( - col2 ) DIV + 65 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL ( - col2 ) / + 65 AS col1 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT + MAX( DISTINCT ( - - col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9203
SELECT + MAX ( DISTINCT ( - - col2 ) ) FROM tab1 AS cor0
----
96

query II rowsort
SELECT - ( + col2 ) AS col1, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9205
SELECT COUNT( * ) DIV - COUNT( ALL - 11 ) col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9205
SELECT COUNT ( * ) / - COUNT ( ALL - 11 ) col2 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT COUNT( * ) AS col0 FROM tab1 cor0 WHERE ( NOT - col0 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-9206
SELECT COUNT ( * ) AS col0 FROM tab1 cor0 WHERE ( NOT - col0 IS NULL )
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + 54
----

query I rowsort
SELECT DISTINCT ( + + 12 ) * - col0 AS col0 FROM tab0 AS cor0
----
-1044
-1164
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9209
SELECT - CAST( NULL AS SIGNED ) * col2 * 94 / + col0 + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT - CAST ( NULL AS INTEGER ) * col2 * 94 / + col0 + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT + + col0 * col1 * + - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-201019
-2125
-9996

skipif mysql # not compatible
query I rowsort label-9210
SELECT + + col0 * col1 * + - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT DISTINCT - - 70 + - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT - - 70 + - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
70

query III rowsort
SELECT * FROM tab1 WHERE - 34 + + 82 IS NULL
----

query I rowsort
SELECT - col2 + - 93 AS col1 FROM tab1
----
-152
-161
-189

query III rowsort
SELECT * FROM tab2 WHERE - 61 - col2 IS NULL
----

query I rowsort
SELECT ALL + col2 * - col1 * - 57 AS col0 FROM tab1
----
16815
182172
76608

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT - 30 * + - 79 + COUNT( * ) * - COUNT( + - ( + col0 ) ) + - + 28 FROM tab2
----
2333

skipif mysql # not compatible
query I rowsort label-9216
SELECT - 30 * + - 79 + COUNT ( * ) * - COUNT ( + - ( + col0 ) ) + - + 28 FROM tab2
----
2333

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT COUNT( * ) + 78 * COUNT( * ) FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-9217
SELECT COUNT ( * ) + 78 * COUNT ( * ) FROM tab1
----
237

query II rowsort
SELECT DISTINCT col1 - - col0 AS col2, - col1 AS col1 FROM tab2 AS cor0
----
141
-77
142
-67
97
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + col1 + - 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL + COUNT( * ) * 89 + + - 65 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
202

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL + COUNT ( * ) * 89 + + - 65 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9221
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT 77 * - 76 - - 72 + + col1 FROM tab1
----
-5733
-5766
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT DISTINCT + + 21 + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
12

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT + + 21 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
12

query I rowsort
SELECT ALL - - col2 + + col1 + + col1 * + - col1 * + 22 AS col2 FROM tab1 WHERE NULL IS NULL
----
-4202
-48483
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL + COUNT( ALL + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL + COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - 20 FROM tab1 cor0
----
-20

query I rowsort
SELECT - col1 * ( - + col1 ) FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT - + COUNT( DISTINCT + 41 ) col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9228
SELECT - + COUNT ( DISTINCT + 41 ) col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL ( + col0 ) * + 45 FROM tab1 AS cor0
----
2295
3825
4095

query I rowsort
SELECT DISTINCT - 75 * + col1 + + 76 AS col1 FROM tab1 AS cor0
----
-299
-3449
-974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9231
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT SUM( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9232
SELECT SUM ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT COUNT( - + col2 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9233
SELECT COUNT ( - + col2 ) col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9234
SELECT - CAST( - - col2 AS SIGNED ) DIV 32 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9234
SELECT - CAST ( - - col2 AS INTEGER ) / 32 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9235
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col1, 98 FROM tab1
----
59
98
68
98
96
98

skipif mysql # not compatible
query II rowsort label-9235
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col1, 98 FROM tab1
----
59
98
68
98
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9236
SELECT COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9237
SELECT ALL MIN( CAST( - ( - + col1 ) AS SIGNED ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL MIN ( CAST ( - ( - + col1 ) AS INTEGER ) ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL - 52 AS col1 FROM tab1 WHERE - col0 IS NOT NULL
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT COUNT( * ) * - 71 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-9239
SELECT COUNT ( * ) * - 71 FROM tab2 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 - 74 > - 47
----
3

skipif mysql # not compatible
query I rowsort label-9240
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 - 74 > - 47
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL <> - col1 / - col1 )
----

query II rowsort
SELECT 80 AS col2, col1 FROM tab1
----
80
14
80
47
80
5

query I rowsort
SELECT ALL + - col1 - + 72 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-153
-73
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL 10 + - - COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL 10 + - - COUNT ( * ) FROM tab0
----
13

query I rowsort
SELECT 8 * + 15 AS col0 FROM tab2
----
120
120
120

query I rowsort
SELECT ( - 59 ) FROM tab0
----
-59
-59
-59

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 8 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9248
SELECT col2 * CAST( - col2 AS SIGNED ) * - col1 + - col2 AS col0 FROM tab0
----
178882
2090
9702

skipif mysql # not compatible
query I rowsort label-9248
SELECT col2 * CAST ( - col2 AS INTEGER ) * - col1 + - col2 AS col0 FROM tab0
----
178882
2090
9702

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 98 + + 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT ALL + COUNT( * ) * 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
639

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL + COUNT ( * ) * 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT ALL - ( + + col0 ) AS col1 FROM tab0 AS cor0 WHERE CAST( + + col2 AS SIGNED ) <> - col2
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL - ( + + col0 ) AS col1 FROM tab0 AS cor0 WHERE CAST ( + + col2 AS INTEGER ) <> - col2
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col2 + - + col2 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col2, ( + col1 ), - + 38 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9254
SELECT - 69 DIV + - col1 FROM tab1
----
1
13
4

skipif mysql # not compatible
query I rowsort label-9254
SELECT - 69 / + - col1 FROM tab1
----
1
13
4

query I rowsort
SELECT DISTINCT + col0 + - col2 + col1 + + 94 * + col2 FROM tab0
----
1038
4467
9305

query II rowsort
SELECT ALL col1 AS col2, 15 + + col0 * - + col2 + + - 50 FROM tab1
----
14
-4931
47
-6223
5
-5050

query I rowsort
SELECT ALL + col0 + + - 40 + 11 AS col1 FROM tab2
----
17
35
46

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE + - col0 NOT IN ( + + col1 )
----
51
67
77

query I rowsort
SELECT ALL + col1 - col0 AS col2 FROM tab0 cor0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9260
SELECT ALL + - ( col0 ) DIV + 38 - + 6 FROM tab2 AS cor0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL + - ( col0 ) / + 38 - + 6 FROM tab2 AS cor0
----
-7
-7
-7

query I rowsort
SELECT + col1 - col2 * + - col2 AS col0 FROM tab0 AS cor0
----
121
2290
9802

query I rowsort
SELECT ( - col0 ) + col1 AS col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT COUNT( ALL - - 41 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9263
SELECT COUNT ( ALL - - 41 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT - - 42 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( col2 AS SIGNED ) * + 12 * col1 * - + col2 * + - col1 * + - col1 + - col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-9264
SELECT - - 42 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( col2 AS INTEGER ) * + 12 * col1 * - + col2 * + - col1 * + - col1 + - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT 94 * COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-9265
SELECT 94 * COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
285

query I rowsort
SELECT - - ( + 61 ) * - - col0 + col2 FROM tab2 AS cor0
----
2829
3944
4633

onlyif mysql # aggregate syntax: 
query II rowsort label-9267
SELECT ALL 57 col0, COUNT( ALL - + col1 ) FROM tab0
----
57
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9267
SELECT ALL 57 col0, COUNT ( ALL - + col1 ) FROM tab0
----
57
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9268
SELECT ALL - CAST( NULL AS SIGNED ), + MAX( 95 ) col2 FROM tab2
----
NULL
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9268
SELECT ALL - CAST ( NULL AS INTEGER ), + MAX ( 95 ) col2 FROM tab2
----
NULL
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT 81 * col2 AS col1 FROM tab2
----
1863
3240
4698

query II rowsort
SELECT ALL - + 99, + col1 FROM tab2 AS cor0 WHERE NOT + col2 / - - 41 BETWEEN NULL AND - 13 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 82, col1 * - col0 col2 FROM tab2 AS cor0
----
82
-2346
82
-4928
82
-5025

query I rowsort
SELECT ALL + - ( - 8 ) AS col0 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT + ( - + 42 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT DISTINCT 44 * - + COUNT( * ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT 44 * - + COUNT ( * ) FROM tab1
----
-132

query I rowsort
SELECT DISTINCT - + col2 * - col2 * col2 AS col0 FROM tab1 AS cor0
----
205379
314432
884736

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT ALL - col0 DIV - 87 + 3 FROM tab0 AS cor0
----
3
4
4

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL - col0 / - 87 + 3 FROM tab0 AS cor0
----
3
4
4

query I rowsort
SELECT DISTINCT + 34 + - + col0 + - + 24 AS col2 FROM tab1 AS cor0
----
-41
-75
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9279
SELECT + - col1 DIV 96 * - CAST( - 77 AS SIGNED ) DIV + + 26 - col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9279
SELECT + - col1 / 96 * - CAST ( - 77 AS INTEGER ) / + + 26 - col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9280
SELECT DISTINCT + - col0 DIV col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT + - col0 / col0 FROM tab2 cor0
----
-1

query I rowsort
SELECT col0 * 97 AS col1 FROM tab0 AS cor0
----
1455
8439
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9282
SELECT DISTINCT + ( + - 51 ) / AVG ( ALL + + col1 ) + + AVG ( ALL + col2 ) + - MAX( + col1 ) / + CAST( NULL AS SIGNED ) + + - 1 + + - COUNT( * ) + - COUNT( * ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT + ( + - 51 ) / AVG ( ALL + + col1 ) + + AVG ( ALL + col2 ) + - MAX ( + col1 ) / + CAST ( NULL AS INTEGER ) + + - 1 + + - COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 + + + col0 + + 53 FROM tab2
----
150
194
195

query I rowsort
SELECT col0 FROM tab2 WHERE + col2 <= + 86 * col2
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-9285
SELECT ALL 36 * - col0 DIV ( col0 ) + col0 AS col1, 58 FROM tab1
----
15
58
49
58
55
58

skipif mysql # not compatible
query II rowsort label-9285
SELECT ALL 36 * - col0 / ( col0 ) + col0 AS col1, 58 FROM tab1
----
15
58
49
58
55
58

query III rowsort
SELECT * FROM tab0 WHERE - col0 < + 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 - + col2 * - col0 * - 25 AS col2 FROM tab0
----
-17578
-21740
-239976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9288
SELECT col1 + CAST( NULL AS SIGNED ) + col1 * + col2 + - CAST( - ( col1 ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT col1 + CAST ( NULL AS INTEGER ) + col1 * + col2 + - CAST ( - ( col1 ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT DISTINCT - MIN( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT - MIN ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - 65 * - + 83 AS col1 FROM tab1
----
5395
5395
5395

query II rowsort
SELECT + 56, col1 AS col0 FROM tab2 AS cor0
----
56
51
56
67
56
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT - SUM( DISTINCT 7 ) FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT - SUM ( DISTINCT 7 ) FROM tab2 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT DISTINCT - - SUM( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE + ( - 88 ) * + col1 * + col1 + - + col0 / + 89 + - col1 * - + col1 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT - - SUM ( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE + ( - 88 ) * + col1 * + col1 + - + col0 / + 89 + - col1 * - + col1 <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9294
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - CAST( NULL AS SIGNED ) * - + col2, 60 + col1 )
----

skipif mysql # not compatible
query III rowsort label-9294
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - CAST ( NULL AS INTEGER ) * - + col2, 60 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT ALL MIN( + - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL MIN ( + - col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9296
SELECT + col2 + + col1 DIV + 16 AS col0 FROM tab1
----
59
70
96

skipif mysql # not compatible
query I rowsort label-9296
SELECT + col2 + + col1 / + 16 AS col0 FROM tab1
----
59
70
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT - COUNT( * ) * MIN( DISTINCT + col0 ) * - 64 FROM tab1
----
9792

skipif mysql # not compatible
query I rowsort label-9297
SELECT - COUNT ( * ) * MIN ( DISTINCT + col0 ) * - 64 FROM tab1
----
9792

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT col0 DIV - - 73 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9298
SELECT col0 / - - 73 FROM tab2
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col0 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT - MIN( + col1 ) * - 27 col1 FROM tab1 cor0
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9300
SELECT - MIN ( + col1 ) * - 27 col1 FROM tab1 cor0
----
135

query I rowsort
SELECT DISTINCT + 95 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
95

query I rowsort
SELECT DISTINCT col1 + + - col1 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL - 61 + - MIN( DISTINCT - col2 ) * - 8 AS col1 FROM tab0
----
-853

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL - 61 + - MIN ( DISTINCT - col2 ) * - 8 AS col1 FROM tab0
----
-853

query I rowsort
SELECT 77 * + 17 AS col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
1309
1309
1309

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT ALL + 46 DIV col1 * col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL + 46 / col1 * col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + col2 * + 82, col1 * + col2 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL MAX( 52 ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL MAX ( 52 ) FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT DISTINCT - SUM( - 37 ) FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT - SUM ( - 37 ) FROM tab0 AS cor0
----
111

query II rowsort
SELECT DISTINCT + col1 AS col0, - 77 AS col1 FROM tab2 AS cor0
----
51
-77
67
-77
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT MIN( ALL + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9310
SELECT MIN ( ALL + - col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9311
SELECT - + 44 AS col1, + COUNT( - col2 ) + 62 + + - MIN( ( + + col1 ) ) + 37 * + MAX( ALL + 21 ) AS col2 FROM tab0 AS cor0
----
-44
841

skipif mysql # not compatible
query II rowsort label-9311
SELECT - + 44 AS col1, + COUNT ( - col2 ) + 62 + + - MIN ( ( + + col1 ) ) + 37 * + MAX ( ALL + 21 ) AS col2 FROM tab0 AS cor0
----
-44
841

query I rowsort
SELECT ALL + 77 + + + col0 + + col2 AS col0 FROM tab0
----
139
174
273

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT DISTINCT 57 + COUNT( * ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT 57 + COUNT ( * ) AS col1 FROM tab2
----
60

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + col0 NOT IN ( + + col1, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - 85 + - col2 AS col2 FROM tab1 cor0
----
-1286
-4063
-484

query I rowsort
SELECT DISTINCT 94 * - + col1 FROM tab1
----
-1316
-4418
-470

query I rowsort
SELECT ALL + 28 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT + MIN( ALL - + col0 ) * COUNT( * ) AS col0 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-9318
SELECT + MIN ( ALL - + col0 ) * COUNT ( * ) AS col0 FROM tab2
----
-225

query I rowsort
SELECT + 57 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT - - ( 58 ) * + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
174

skipif mysql # not compatible
query I rowsort label-9320
SELECT - - ( 58 ) * + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
174

query II rowsort
SELECT - 30 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
-30
-14
-30
-47
-30
-5

query I rowsort
SELECT ALL 50 + - - col0 AS col1 FROM tab1 AS cor0
----
101
135
141

query I rowsort
SELECT ALL - col2 - - - col2 AS col2 FROM tab1 cor0 WHERE NULL < NULL
----

query II rowsort
SELECT + 23, col2 FROM tab0
----
23
10
23
47
23
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT DISTINCT 67 + - col2 * col0 + 74 AS col2 FROM tab2
----
-2419
-4209
-917

query I rowsort
SELECT ALL + 88 * - 82 AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND 66
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9328
SELECT DISTINCT 94 DIV col1 FROM tab1
----
18
2
6

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT 94 / col1 FROM tab1
----
18
2
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9329
SELECT 40 DIV + col2 AS col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-9329
SELECT 40 / + col2 AS col0 FROM tab0
----
0
0
4

query I rowsort
SELECT DISTINCT ( + 43 ) FROM tab2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT - - ( col1 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT - - ( col1 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT - + COUNT( * ) + - ( SUM( ALL col0 ) ) AS col2 FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-9332
SELECT - + COUNT ( * ) + - ( SUM ( ALL col0 ) ) AS col2 FROM tab0 AS cor0
----
-202

query II rowsort
SELECT - 54 * - 48 * col1 * col0 * + - col0 AS col0, - 42 * - 82 FROM tab2
----
-279718272
3444
-817496064
3444
-976860000
3444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9334
SELECT DISTINCT + - CAST( - - MIN( - - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT + - CAST ( - - MIN ( - - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col0 col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT + 37 - - - SUM( ALL + col2 ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9336
SELECT + 37 - - - SUM ( ALL + col2 ) FROM tab2 AS cor0
----
-84

query III rowsort
SELECT ALL ( + 93 ) AS col2, - col1 AS col0, - 97 AS col2 FROM tab1 AS cor0
----
9 values hashing to 97b7720a8852367cd8e24c5e9d6b7331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9338
SELECT + - SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE col2 + 14 = - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT + - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE col2 + 14 = - 79
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IS NULL AND NOT + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - + ( + 83 ) AS col0, col2 + ( col0 ) + + + 68 FROM tab0 AS cor0
----
-83
130
-83
165
-83
264

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 61 >= NULL AND - 61 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 21 * + 53 AS col2 FROM tab0
----
1113

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL COUNT( + - 3 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL COUNT ( + - 3 ) FROM tab1
----
3

query I rowsort
SELECT col2 - - col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 22, col0 AS col0 FROM tab2
----
22
46
22
64
22
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 81 AS col2, col1 col1 FROM tab0 AS cor0
----
-81
1
-81
21
-81
81

query I rowsort
SELECT + col1 - - 77 AS col1 FROM tab2
----
128
144
154

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE - 37 / col2 NOT BETWEEN - col2 * 16 + - 0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT + 26 + - 37 * COUNT( * ) AS col1 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-9349
SELECT + 26 + - 37 * COUNT ( * ) AS col1 FROM tab1
----
-85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( 13 * - col2 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT col0 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT - MIN( DISTINCT col2 ) col2 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9352
SELECT - MIN ( DISTINCT col2 ) col2 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9353
SELECT * FROM tab1 WHERE + ( 39 ) BETWEEN ( col2 ) AND - ( CAST( + col1 AS SIGNED ) ) + + col1
----

skipif mysql # not compatible
query III rowsort label-9353
SELECT * FROM tab1 WHERE + ( 39 ) BETWEEN ( col2 ) AND - ( CAST ( + col1 AS INTEGER ) ) + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9354
SELECT * FROM tab2 WHERE col1 * - ( col2 * - col0 ) - - CAST( NULL AS SIGNED ) * + col1 < NULL
----

skipif mysql # not compatible
query III rowsort label-9354
SELECT * FROM tab2 WHERE col1 * - ( col2 * - col0 ) - - CAST ( NULL AS INTEGER ) * + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 85 col2 FROM tab0
----
3995
8415
850

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( - col0 ) IN ( - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( - col0 ) IN ( - col2 )
----
3

query I rowsort
SELECT ( - col2 ) * col0 AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - 63 - + col0 FROM tab0
----
-150
-160
-78

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT ( + col1 * - col0 ) <= col2
----

query I rowsort
SELECT 69 - - col0 AS col2 FROM tab1
----
120
154
160

query I rowsort
SELECT ALL - col2 * 5 AS col0 FROM tab1
----
-295
-340
-480

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - col2 * col2
----

query I rowsort
SELECT ALL 70 - + 34 * + col2 AS col0 FROM tab0
----
-1528
-270
-3296

query I rowsort
SELECT DISTINCT col1 + 68 * col0 AS col0 FROM tab0 WHERE 44 + + 15 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 5 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + ( + col1 ) FROM tab0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * 61 col1 FROM tab1
----
-3111
-5185
-5551

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( 71 / + col0 )
----

query I rowsort
SELECT ALL - col2 + 88 FROM tab1
----
-8
20
29

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT ( NULL ) IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 7 * - col0 NOT BETWEEN ( - 90 ) AND 35 * - col2 - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 90 - + ( col1 ) AS col2 FROM tab0 AS cor0
----
69
89
9

query III rowsort
SELECT * FROM tab0 WHERE ( 77 * ( ( - col0 ) ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT COUNT( * ) + 3 * + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-9375
SELECT COUNT ( * ) + 3 * + COUNT ( * ) FROM tab1
----
12

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 14 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + 29 + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 + col0 IS NULL
----
116
126
44

query I rowsort
SELECT DISTINCT 25 * - col1 - + 44 AS col0 FROM tab0 AS cor0
----
-2069
-569
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9380
SELECT + ( + col0 ) * col1 + col2 AS col0 FROM tab0 AS cor0 WHERE - 63 NOT BETWEEN ( - CAST( NULL AS SIGNED ) * col0 ) AND 5
----

skipif mysql # not compatible
query I rowsort label-9380
SELECT + ( + col0 ) * col1 + col2 AS col0 FROM tab0 AS cor0 WHERE - 63 NOT BETWEEN ( - CAST ( NULL AS INTEGER ) * col0 ) AND 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT DISTINCT - SUM( col1 ) - 4 * - 21 FROM tab2 AS cor0 WHERE NOT ( + col1 ) < - 50
----
-111

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT - SUM ( col1 ) - 4 * - 21 FROM tab2 AS cor0 WHERE NOT ( + col1 ) < - 50
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-9382
SELECT - 6 DIV + 9 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9382
SELECT - 6 / + 9 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9383
SELECT COUNT( * ) DIV 19 FROM tab2 AS cor0 WHERE ( NULL ) <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9383
SELECT COUNT ( * ) / 19 FROM tab2 AS cor0 WHERE ( NULL ) <> ( NULL )
----
0

query I rowsort
SELECT ALL - - 78 AS col2 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT - col1 * - col1 - + col2 AS col1 FROM tab2 AS cor0
----
2578
4431
5889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT ALL + col1 + + CAST( 7 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + col1
----

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL + col1 + + CAST ( 7 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + col1
----

query I rowsort
SELECT ALL + col1 + + 20 * - col1 AS col0 FROM tab0 cor0 WHERE NOT - col2 <= NULL
----

query I rowsort
SELECT + + 49 * 3 FROM tab1 AS cor0
----
147
147
147

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 45 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - 71 ) AS col1 FROM tab2
----
71
71
71

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 ) > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col2 FROM tab1 WHERE col1 IS NOT NULL
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9393
SELECT + SUM( + CAST( col2 AS SIGNED ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9393
SELECT + SUM ( + CAST ( col2 AS INTEGER ) ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT DISTINCT - ( + ( + COUNT( * ) ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT - ( + ( + COUNT ( * ) ) ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9395
SELECT ALL + CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT - col2 + col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ( - MAX( - 12 ) ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9397
SELECT ( - MAX ( - 12 ) ) FROM tab2
----
12

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 73 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 30 / + 36 FROM tab1 WHERE NOT NULL > 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT - SUM( col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT - SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT - col1 * - - col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-9

query II rowsort
SELECT col2, + ( - - col1 ) FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9404
SELECT DISTINCT - MIN( - col1 ) DIV + 53 FROM tab1 WHERE NOT - ( col2 ) DIV + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT - MIN ( - col1 ) / + 53 FROM tab1 WHERE NOT - ( col2 ) / + col0 IS NULL
----
0

query II rowsort
SELECT + 4, col1 - col1 AS col1 FROM tab0 AS cor0
----
4
0
4
0
4
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9406
SELECT + col2 AS col2, col2 DIV - - col1 FROM tab1 AS cor0
----
59
11
68
1
96
6

skipif mysql # not compatible
query II rowsort label-9406
SELECT + col2 AS col2, col2 / - - col1 FROM tab1 AS cor0
----
59
11
68
1
96
6

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + + col0 NOT BETWEEN col2 AND - col1
----

query I rowsort
SELECT DISTINCT ( - ( col2 ) ) * + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9409
SELECT - ( CAST( + - COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9409
SELECT - ( CAST ( + - COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 17 AS col2 FROM tab2 cor0 WHERE NOT + col2 + col0 * + 27 BETWEEN col2 AND 80
----
17
17
17

query II rowsort
SELECT 83 AS col1, - col2 AS col0 FROM tab1 cor0
----
83
-59
83
-68
83
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT ALL - col0 DIV - - ( - col0 ) + 87 FROM tab0 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL - col0 / - - ( - col0 ) + 87 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + 50 FROM tab0 AS cor0 WHERE - col1 NOT IN ( - col0 + col2 )
----
41

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + 50 FROM tab0 AS cor0 WHERE - col1 NOT IN ( - col0 + col2 )
----
41

query I rowsort
SELECT DISTINCT + 54 * + 7 FROM tab0
----
378

query II rowsort
SELECT DISTINCT + 49 + + col0, 57 * + - col0 * 75 + + col1 * col1 AS col1 FROM tab1
----
100
-217829
134
-363350
140
-386816

query II rowsort
SELECT ALL col2 + col2 AS col1, col0 AS col0 FROM tab2
----
116
75
46
46
80
64

query III rowsort
SELECT * FROM tab1 WHERE - col2 = 60 * ( + 58 * - 5 + col1 ) + - col2
----

query I rowsort
SELECT - col2 + + col1 + + 69 * + 1 FROM tab0
----
-29
103
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9419
SELECT ALL col2 DIV col1 * + + col1 AS col0 FROM tab1
----
47
55
84

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL col2 / col1 * + + col1 AS col0 FROM tab1
----
47
55
84

query I rowsort
SELECT - col2 + col2 + col0 * - + col2 - - col2 * - col0 FROM tab0 AS cor0
----
-1410
-1740
-19206

query I rowsort
SELECT - 43 + 95 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9422
SELECT ALL 18 DIV - 69 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL 18 / - 69 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + + 47 * + 53 - + 60 AS col0 FROM tab2 AS cor0
----
2477
2495
2506

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT ALL ( - MAX( 35 ) ) + - COUNT( * ) + + 87 * MAX( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-4475

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL ( - MAX ( 35 ) ) + - COUNT ( * ) + + 87 * MAX ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-4475

query I rowsort
SELECT + - 15 FROM tab0 cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 73 + + 5 AS col0 FROM tab0
----
78

query I rowsort
SELECT - 91 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - 56 NOT BETWEEN - col1 + - 77 AND col2 / col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9429
SELECT ALL ( CAST( NULL AS SIGNED ) ) * col0 col2 FROM tab2 cor0 WHERE - 26 * - col0 > ( - - col2 * + col1 + col2 ) AND NOT ( + 48 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9429
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * col0 col2 FROM tab2 cor0 WHERE - 26 * - col0 > ( - - col2 * + col1 + col2 ) AND NOT ( + 48 ) IS NOT NULL
----

query I rowsort
SELECT col0 * 2 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( + 28 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT ALL CAST( - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 < + ( + ( - - ( - ( 79 ) ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 < + ( + ( - - ( - ( 79 ) ) ) )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9433
SELECT DISTINCT - COUNT( * ) AS col1, + MAX( ALL col1 ) FROM tab2 AS cor0
----
-3
77

skipif mysql # not compatible
query II rowsort label-9433
SELECT DISTINCT - COUNT ( * ) AS col1, + MAX ( ALL col1 ) FROM tab2 AS cor0
----
-3
77

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 NOT BETWEEN + 95 AND col1 + - col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT MIN( ALL - 80 ) AS col2 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-9435
SELECT MIN ( ALL - 80 ) AS col2 FROM tab0
----
-80

query I rowsort
SELECT + col2 * + ( - 38 ) FROM tab2
----
-1520
-2204
-874

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 + - + col1 * + ( - col2 ) IN ( 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT MIN( - 63 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-9438
SELECT MIN ( - 63 ) FROM tab0
----
-63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9439
SELECT 2 DIV - + CAST( - 95 AS SIGNED ) col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9439
SELECT 2 / - + CAST ( - 95 AS INTEGER ) col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= ( col2 )
----

query I rowsort
SELECT - - col1 AS col0 FROM tab1 WHERE NOT NULL < + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 < - 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 * + 92 - + col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 55 FROM tab0 cor0 WHERE ( - ( - 36 ) BETWEEN ( col0 + 52 * col2 ) AND ( + 57 ) * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + + 62 IS NOT NULL )
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

query I rowsort
SELECT + 71 + + 63 + col0 FROM tab1 cor0
----
185
219
225

query I rowsort
SELECT DISTINCT - + col2 * - + col1 + + ( - + col1 ) + + col1 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 25 / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT + COUNT( * ) + + 1 AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-9450
SELECT + COUNT ( * ) + + 1 AS col1 FROM tab0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 + 43 - - + col1 + - col2 * + 18 * + col1 col2 FROM tab2
----
-20983
-55283
-69801

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( - - col2 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9453
SELECT DISTINCT + 93 + + 70 + - col2 + col2 / + col0 + + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT + 93 + + 70 + - col2 + col2 / + col0 + + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - 78 FROM tab0
----
-3666
-7722
-780

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 34 BETWEEN NULL AND - col2 + + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL MAX( col1 ) * - 73 + COUNT( * ) AS col0 FROM tab0
----
-5910

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL MAX ( col1 ) * - 73 + COUNT ( * ) AS col0 FROM tab0
----
-5910

query I rowsort
SELECT DISTINCT - - 18 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT ALL CAST( - - col1 AS SIGNED ) col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9458
SELECT ALL CAST ( - - col1 AS INTEGER ) col0 FROM tab2
----
51
67
77

query I rowsort
SELECT - col1 - - 78 + - col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-24
-56
-76

query I rowsort
SELECT 77 - - - col1 FROM tab2 cor0
----
0
10
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN - + col1 AND ( + 38 ) AND NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < NULL AND NOT ( NOT NULL >= NULL )
----

query I rowsort
SELECT - + 56 * - col1 - - col1 FROM tab1 AS cor0
----
2679
285
798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9464
SELECT DISTINCT + + 86 + CAST( + ( CAST( - COUNT( * ) AS SIGNED ) ) AS SIGNED ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT + + 86 + CAST ( + ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS INTEGER ) FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT + 9 + 57 + + COUNT( * ) + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9465
SELECT + 9 + 57 + + COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT + col1 + - col2 * + + 38 + - col1 AS col1 FROM tab1
----
-2242
-2584
-3648

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9468
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) BETWEEN - + col2 AND col2
----

skipif mysql # not compatible
query III rowsort label-9468
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) BETWEEN - + col2 AND col2
----

query I rowsort
SELECT + 58 AS col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + 28 * col1 AND + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 78 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT 82 * + COUNT( * ) FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-9471
SELECT 82 * + COUNT ( * ) FROM tab1 AS cor0
----
246

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT + ( - - CAST( NULL AS SIGNED ) ) * - + 13 * - SUM( DISTINCT + col0 ) * - 26 + 59 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT + ( - - CAST ( NULL AS INTEGER ) ) * - + 13 * - SUM ( DISTINCT + col0 ) * - 26 + 59 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 54 * - col2 FROM tab1
----
-3186
-3672
-5184

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < col1 * + 90
----

query I rowsort
SELECT ALL + col2 * - + 47 FROM tab1
----
-2773
-3196
-4512

query I rowsort
SELECT DISTINCT + 60 * 7 AS col0 FROM tab0
----
420

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( col0 ) IN ( + col2 / col2, col0 + + 64 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9479
SELECT ALL col1 DIV 45 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL col1 / 45 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 48 = col0 + + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 80 col1, col0 AS col2 FROM tab2
----
-80
46
-80
64
-80
75

query I rowsort
SELECT - col2 AS col0 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT - + 85 AS col1, - col1 * - 11 * - col1 AS col1 FROM tab0 AS cor0
----
-85
-11
-85
-4851
-85
-72171

query I rowsort
SELECT - ( + col1 ) + 44 AS col0 FROM tab2 AS cor0
----
-23
-33
-7

query II rowsort
SELECT ALL - ( + col0 ) + + ( + 21 ) * 56, 45 AS col0 FROM tab1 cor0
----
1085
45
1091
45
1125
45

query I rowsort
SELECT + ( col1 ) * + - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - col2 + + - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL - + ( + - ( + COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - + ( + - ( + COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 + + ( - - 30 ) * + col1 IS NULL
----

query II rowsort
SELECT - 32 AS col1, col1 FROM tab1 AS cor0
----
-32
14
-32
47
-32
5

query I rowsort
SELECT DISTINCT col2 + - - col1 AS col2 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9493
SELECT DISTINCT * FROM tab2 WHERE + ( - col0 ) / CAST( NULL AS SIGNED ) - 17 * 64 + - col0 - - 51 / 12 + + col2 + - col2 / 26 BETWEEN - col1 AND 41
----

skipif mysql # not compatible
query III rowsort label-9493
SELECT DISTINCT * FROM tab2 WHERE + ( - col0 ) / CAST ( NULL AS INTEGER ) - 17 * 64 + - col0 - - 51 / 12 + + col2 + - col2 / 26 BETWEEN - col1 AND 41
----

query I rowsort
SELECT 44 + + - 80 AS col2 FROM tab2
----
-36
-36
-36

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + col2 * ( + + col0 ) + - col1 + col0
----

query I rowsort
SELECT - - col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9497
SELECT - CAST( SUM( ALL + 29 ) AS SIGNED ) + ( - + 93 ) FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-9497
SELECT - CAST ( SUM ( ALL + 29 ) AS INTEGER ) + ( - + 93 ) FROM tab1
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9498
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 9 col0 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9500
SELECT * FROM tab2 WHERE NOT - - col0 * + col0 * - 99 / CAST( col2 AS SIGNED ) - - + col1 + + col0 * + col1 + + col0 = ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9500
SELECT * FROM tab2 WHERE NOT - - col0 * + col0 * - 99 / CAST ( col2 AS INTEGER ) - - + col1 + + col0 * + col1 + + col0 = ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT DISTINCT - CAST( 90 AS SIGNED ) * - 69 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
6210

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT - CAST ( 90 AS INTEGER ) * - 69 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
6210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9502
SELECT - 99 DIV + COUNT( * ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-9502
SELECT - 99 / + COUNT ( * ) FROM tab2
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 21 AS col0, - col0 col1 FROM tab2 AS cor0
----
-21
-46
-21
-64
-21
-75

query I rowsort
SELECT ALL + + ( - col1 ) FROM tab0 AS cor0 WHERE col1 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9505
SELECT ALL * FROM tab1 AS cor0 WHERE 10 NOT IN ( - - ( + CAST( 92 AS SIGNED ) ) + + CAST( col0 AS SIGNED ), col2, 23 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9505
SELECT ALL * FROM tab1 AS cor0 WHERE 10 NOT IN ( - - ( + CAST ( 92 AS INTEGER ) ) + + CAST ( col0 AS INTEGER ), col2, 23 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 < - - 81
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - COUNT( DISTINCT + + col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9507
SELECT - COUNT ( DISTINCT + + col0 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL - 81 * - + col2 AS col2 FROM tab2 AS cor0
----
1863
3240
4698

query II rowsort
SELECT ALL - col1 AS col1, - col0 - + 79 FROM tab0 cor0
----
-1
-176
-21
-166
-81
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + col0 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 * + - col1, + col2 AS col0 FROM tab0
----
-210
10
-3807
47
-99
99

query I rowsort
SELECT ALL - ( - + col0 ) * 89 AS col1 FROM tab0
----
1335
7743
8633

query I rowsort
SELECT + + col1 AS col1 FROM tab0 WHERE NOT - col1 * col0 / + 55 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9514
SELECT - 39 DIV + 87 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9514
SELECT - 39 / + 87 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ALL - MAX( 32 ) AS col0 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL - MAX ( 32 ) AS col0 FROM tab0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9516
SELECT + 32 DIV - MIN( DISTINCT + - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9516
SELECT + 32 / - MIN ( DISTINCT + - col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL - ( + ( + MAX( DISTINCT 8 ) ) ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - ( + ( + MAX ( DISTINCT 8 ) ) ) FROM tab0
----
-8

query I rowsort
SELECT DISTINCT + col2 * ( - - 89 ) + + 33 * + 7 FROM tab2 AS cor0
----
2278
3791
5393

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - col1 ) NOT BETWEEN + - 93 + col2 AND NULL
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9520
SELECT - MAX( DISTINCT 61 ) + - COUNT( * ) col2, + COUNT( * ) AS col1 FROM tab0
----
-64
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9520
SELECT - MAX ( DISTINCT 61 ) + - COUNT ( * ) col2, + COUNT ( * ) AS col1 FROM tab0
----
-64
3

query II rowsort
SELECT DISTINCT + + col0, + 51 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
51
51
85
51
91
51

query I rowsort
SELECT ALL - 29 + - + col1 FROM tab0 AS cor0
----
-110
-30
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9523
SELECT DISTINCT + + col0 + + + col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT + + col0 + + + col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col2 AS col1, - col1 + + 24 * + col1 AS col0 FROM tab0
----
10
483
47
1863
99
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 + - + 46 NOT BETWEEN ( col1 + + col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 - 37 AS col2 FROM tab0
----
-16
-36
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL 57 + + SUM( DISTINCT - col0 ) AS col1 FROM tab0
----
-142

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL 57 + + SUM ( DISTINCT - col0 ) AS col1 FROM tab0
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-9528
SELECT ALL col2 DIV - 95 * col1 - 45 * + 62 FROM tab2
----
-2790
-2790
-2790

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL col2 / - 95 * col1 - 45 * + 62 FROM tab2
----
-2790
-2790
-2790

query I rowsort
SELECT col2 - + + col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 - - + col0 * - 69 AS col0 FROM tab0
----
-5993
-6594
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT - SUM( + - 26 ) - - MIN( col1 ) AS col0 FROM tab2 WHERE 19 * - col0 IS NOT NULL
----
129

skipif mysql # not compatible
query I rowsort label-9531
SELECT - SUM ( + - 26 ) - - MIN ( col1 ) AS col0 FROM tab2 WHERE 19 * - col0 IS NOT NULL
----
129

query I rowsort
SELECT DISTINCT col1 * + col2 - - 47 FROM tab1
----
1391
3243
342

query I rowsort
SELECT ALL col0 - - col1 + col1 FROM tab2 cor0
----
148
209
218

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + 82, col1 + + - 96 AS col2 FROM tab0 AS cor0
----
82
-15
82
-75
82
-95

query II rowsort
SELECT + - col2 AS col1, - col1 AS col0 FROM tab2 cor0
----
-23
-51
-40
-77
-58
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 72 AS col0, - col0 col2 FROM tab1 cor0
----
-72
-51
-72
-85
-72
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * + col1 * - - col1 * - col2 col1 FROM tab2 AS cor0
----
13518120
14840634
3409911

query II rowsort
SELECT ( + 72 ), - col1 * - 56 AS col1 FROM tab1 AS cor0
----
72
2632
72
280
72
784

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 * + ( - + col2 ) * - - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT DISTINCT - COUNT( * ) * + ( + ( 60 ) ) AS col2 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT - COUNT ( * ) * + ( + ( 60 ) ) AS col2 FROM tab0
----
-180

query I rowsort
SELECT ALL + 14 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col2 FROM tab2 cor0
----
-70

onlyif mysql # DIV for integer division: 
query II rowsort label-9544
SELECT DISTINCT + + col2 * col1 col2, - 22 DIV + col0 FROM tab1 AS cor0
----
1344
0
295
0
3196
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9544
SELECT DISTINCT + + col2 * col1 col2, - 22 / + col0 FROM tab1 AS cor0
----
1344
0
295
0
3196
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT - COUNT( ( col0 ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9545
SELECT - COUNT ( ( col0 ) ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT + - col2 * - 8 AS col0 FROM tab1 AS cor0
----
472
544
768

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL <= + col0 / + col1 AND NOT NULL = NULL
----

query I rowsort
SELECT col0 * - col2 + col1 AS col0 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9549
SELECT ALL + COUNT( * ) DIV - - 29 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL + COUNT ( * ) / - - 29 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT DISTINCT - COUNT( * ) * COUNT( * ) - + MIN( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) - + MIN ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL + COUNT( * ) * 29 AS col1 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL + COUNT ( * ) * 29 AS col1 FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9553
SELECT * FROM tab0 WHERE NOT 82 NOT IN ( + - col1 + col1 * CAST( NULL AS SIGNED ), col0 + - col1 + - col1 * + + col0 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-9553
SELECT * FROM tab0 WHERE NOT 82 NOT IN ( + - col1 + col1 * CAST ( NULL AS INTEGER ), col0 + - col1 + - col1 * + + col0 * + col2 )
----

query II rowsort
SELECT + 81 AS col2, + 6 AS col2 FROM tab0 AS cor0
----
81
6
81
6
81
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT - MAX( DISTINCT + 46 ) + + 43 + + 86 AS col0 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT - MAX ( DISTINCT + 46 ) + + 43 + + 86 AS col0 FROM tab1 AS cor0
----
83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 43 IS NULL
----

query I rowsort
SELECT ALL col1 * 96 + + col0 FROM tab0
----
193
2103
7791

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT + + 19 DIV ( 51 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9558
SELECT + + 19 / ( 51 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9559
SELECT CAST( NULL AS SIGNED ) * + + col1 col1, col0 * ( + + col2 ) + - col1 + - col2 + - 91 FROM tab2 AS cor0
----
NULL
2352
NULL
4134
NULL
893

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9559
SELECT CAST ( NULL AS INTEGER ) * + + col1 col1, col0 * ( + + col2 ) + - col1 + - col2 + - 91 FROM tab2 AS cor0
----
NULL
2352
NULL
4134
NULL
893

query II rowsort
SELECT - 94 * + col2 AS col0, - col2 * + col2 * + 30 + col0 AS col1 FROM tab1 AS cor0
----
-5546
-104345
-6392
-138629
-9024
-276429

query I rowsort
SELECT col1 - - + 76 FROM tab1 AS cor0
----
123
81
90

query II rowsort
SELECT + 83 - - + 72 AS col2, 58 FROM tab1 AS cor0
----
155
58
155
58
155
58

query I rowsort
SELECT DISTINCT + col1 + - + col1 AS col2 FROM tab0 cor0
----
0

query II rowsort
SELECT ALL - col0 AS col0, - col1 + 40 - - ( + col0 ) FROM tab1
----
-51
77
-85
120
-91
84

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 < ( 38 )
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT - 16 DIV + - col0 + col1 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9566
SELECT - 16 / + - col0 + col1 AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9567
SELECT ALL 78 DIV 27 + - COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL 78 / 27 + - COUNT ( * ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT - col2 + - - col0 AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL - col1 + + 38 AS col1 FROM tab1
----
-9
24
33

query I rowsort
SELECT - 86 * - col0 * 12 FROM tab1
----
52632
87720
93912

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT NULL >= + col0 * - + 12
----

query I rowsort
SELECT + + col2 AS col0 FROM tab1 WHERE NOT NULL IN ( ( col0 ) + 67, 95 * - 87, col1 + + 57 )
----

query I rowsort
SELECT DISTINCT col0 * + - 51 FROM tab0 AS cor0
----
-4437
-4947
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL - + MAX( ALL + 96 ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL - + MAX ( ALL + 96 ) AS col0 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT - 24 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9576
SELECT col0 AS col2, col0 + + CAST( NULL AS SIGNED ) + 97 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9576
SELECT col0 AS col2, col0 + + CAST ( NULL AS INTEGER ) + 97 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT ALL + + col2, 45 AS col0 FROM tab0 cor0
----
10
45
47
45
99
45

query I rowsort
SELECT col1 * - col2 + + col1 FROM tab0 cor0
----
-189
-3726
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT DISTINCT COUNT( * ) * + MAX( + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT COUNT ( * ) * + MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query II rowsort
SELECT + 11 + - 98 AS col0, + col2 AS col0 FROM tab1
----
-87
59
-87
68
-87
96

query I rowsort
SELECT - 44 * col0 * - + col1 + 33 + col0 * + col1 AS col0 FROM tab0
----
4398
54708
82248

query I rowsort
SELECT DISTINCT - ( + - col1 ) * - 47 FROM tab0
----
-3807
-47
-987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 27 * - - col0, col0 col1 FROM tab2
----
1242
46
1728
64
2025
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9584
SELECT CAST( col0 AS SIGNED ) AS col1, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-9584
SELECT CAST ( col0 AS INTEGER ) AS col1, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT - 7 * + col0 AS col0 FROM tab0
----
-105
-609
-679

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT DISTINCT - col1 * col1 + - ( + col1 ) DIV - + col0 AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT - col1 * col1 + - ( + col1 ) / - + col0 AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL 79 + + COUNT( * ) AS col2 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL 79 + + COUNT ( * ) AS col2 FROM tab1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9588
SELECT + col2 * - + col0 - - + ( + + col0 ) + 63 DIV col1 * 21 - col2 FROM tab2
----
-1014
-2536
-4333

skipif mysql # not compatible
query I rowsort label-9588
SELECT + col2 * - + col0 - - + ( + + col0 ) + 63 / col1 * 21 - col2 FROM tab2
----
-1014
-2536
-4333

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT 32 * + - MAX( 99 ) + + COUNT( * ) AS col0 FROM tab1
----
-3165

skipif mysql # not compatible
query I rowsort label-9589
SELECT 32 * + - MAX ( 99 ) + + COUNT ( * ) AS col0 FROM tab1
----
-3165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9590
SELECT ALL 87 / + col0 + - 96 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL 87 / + col0 + - 96 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 63 + + col2 FROM tab2 AS cor0
----
103
121
86

query II rowsort
SELECT - + 73 AS col2, - 84 AS col2 FROM tab1 AS cor0
----
-73
-84
-73
-84
-73
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT DISTINCT + MAX( + ( - 38 ) ) AS col2 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT + MAX ( + ( - 38 ) ) AS col2 FROM tab1 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT DISTINCT - MAX( col2 ) col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9594
SELECT DISTINCT - MAX ( col2 ) col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL 43 + + + 69 AS col0 FROM tab0 AS cor0
----
112
112
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT ( col0 ) * - CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-9596
SELECT ( col0 ) * - CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT + MIN( - 73 ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-9597
SELECT + MIN ( - 73 ) FROM tab0
----
-73

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - + col0 + + - col2 * - + 85 - + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT DISTINCT + CAST( + 8 AS SIGNED ) * + 45 + - + 61 FROM tab1
----
299

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT + CAST ( + 8 AS INTEGER ) * + 45 + - + 61 FROM tab1
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT DISTINCT - - MIN( - 95 ) AS col1 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-9600
SELECT DISTINCT - - MIN ( - 95 ) AS col1 FROM tab2 AS cor0
----
-95

query I rowsort
SELECT + - col2 * - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col0 FROM tab0 WHERE NULL IS NULL
----
174
194
30

query I rowsort
SELECT 3 * - - 42 FROM tab1
----
126
126
126

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - - col0 + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9605
SELECT - SUM( DISTINCT col2 ) DIV COUNT( * ) * MIN( ALL - col1 ), + COUNT( * ) AS col2 FROM tab0 AS cor0
----
4212
3

skipif mysql # not compatible
query II rowsort label-9605
SELECT - SUM ( DISTINCT col2 ) / COUNT ( * ) * MIN ( ALL - col1 ), + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
4212
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 < 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT + MIN( col0 ) FROM tab1 AS cor0 WHERE NOT ( + col1 IS NULL )
----
51

skipif mysql # not compatible
query I rowsort label-9607
SELECT + MIN ( col0 ) FROM tab1 AS cor0 WHERE NOT ( + col1 IS NULL )
----
51

query I rowsort
SELECT - 58 * - - col2 AS col1 FROM tab2 AS cor0
----
-1334
-2320
-3364

onlyif mysql # aggregate syntax: 
query II rowsort label-9609
SELECT ALL + - COUNT( * ) AS col1, - 99 FROM tab2 AS cor0
----
-3
-99

skipif mysql # not compatible
query II rowsort label-9609
SELECT ALL + - COUNT ( * ) AS col1, - 99 FROM tab2 AS cor0
----
-3
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT DISTINCT - 75 * - - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT 75 <> NULL
----

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT - 75 * - - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT 75 <> NULL
----

query I rowsort
SELECT + ( 40 ) AS col0 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9612
SELECT - + COUNT( * ) col2, - 14 FROM tab1 AS cor0
----
-3
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9612
SELECT - + COUNT ( * ) col2, - 14 FROM tab1 AS cor0
----
-3
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT ALL + 73 + + - col0 + + 17 DIV + 58 + - col1 * col2 * + 82 AS col1 FROM tab1
----
-110186
-24202
-262090

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL + 73 + + - col0 + + 17 / + 58 + - col1 * col2 * + 82 AS col1 FROM tab1
----
-110186
-24202
-262090

query I rowsort
SELECT + 76 + + col2 FROM tab0
----
123
175
86

query I rowsort
SELECT col2 + - 10 * - + col2 - - col2 AS col1 FROM tab2
----
276
480
696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9616
SELECT ALL + col1 AS col2, + CAST( - ( - 93 ) AS SIGNED ) AS col2 FROM tab1
----
14
93
47
93
5
93

skipif mysql # not compatible
query II rowsort label-9616
SELECT ALL + col1 AS col2, + CAST ( - ( - 93 ) AS INTEGER ) AS col2 FROM tab1
----
14
93
47
93
5
93

query I rowsort
SELECT + col0 * - 80 + + + col0 AS col1 FROM tab1
----
-4029
-6715
-7189

query II rowsort
SELECT DISTINCT col2 * - col2 AS col2, col2 AS col0 FROM tab2 AS cor0
----
-1600
40
-3364
58
-529
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT - + COUNT( + col1 ) + + MAX( + col0 ) AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9619
SELECT - + COUNT ( + col1 ) + + MAX ( + col0 ) AS col2 FROM tab2 AS cor0
----
72

query I rowsort
SELECT - 89 + - ( 80 ) FROM tab1 AS cor0
----
-169
-169
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT + SUM( - ( + 83 ) ) col1 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9621
SELECT DISTINCT + SUM ( - ( + 83 ) ) col1 FROM tab1 AS cor0
----
-249

query I rowsort
SELECT DISTINCT col1 + - 90 FROM tab0
----
-69
-89
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9623
SELECT DISTINCT 88 DIV ( + MAX( ALL col1 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT 88 / ( + MAX ( ALL col1 ) ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9624
SELECT + + 61 - - COUNT( DISTINCT - col1 ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
64
3

skipif mysql # not compatible
query II rowsort label-9624
SELECT + + 61 - - COUNT ( DISTINCT - col1 ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
64
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 39 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9626
SELECT - CAST( + - 99 AS SIGNED ) - + - 44 + - + col1 + col1 AS col1 FROM tab2 AS cor0
----
143
143
143

skipif mysql # not compatible
query I rowsort label-9626
SELECT - CAST ( + - 99 AS INTEGER ) - + - 44 + - + col1 + col1 AS col1 FROM tab2 AS cor0
----
143
143
143

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT DISTINCT + MAX( DISTINCT 53 ) FROM tab1 AS cor0 WHERE NOT 15 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT + MAX ( DISTINCT 53 ) FROM tab1 AS cor0 WHERE NOT 15 < NULL
----
NULL

query III rowsort
SELECT ALL * 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 ALL + 55 col1 FROM tab2
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT DISTINCT - SUM( DISTINCT - 36 ) AS col0 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT - SUM ( DISTINCT - 36 ) AS col0 FROM tab1
----
36

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - ( + ( - col1 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 28 = - 78
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col1, 31 * + 86 + + col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9634
SELECT COUNT( * ) AS col0, MAX( + col1 ) FROM tab1
----
3
47

skipif mysql # not compatible
query II rowsort label-9634
SELECT COUNT ( * ) AS col0, MAX ( + col1 ) FROM tab1
----
3
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9635
SELECT DISTINCT - COUNT( * ) * - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT - COUNT ( * ) * - - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT + 29 DIV col0 * col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9636
SELECT + 29 / col0 * col0 col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9637
SELECT DISTINCT col2 DIV - 96 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT col2 / - 96 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT DISTINCT + 45 DIV + ( + col1 ) AS col2 FROM tab0
----
0
2
45

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT + 45 / + ( + col1 ) AS col2 FROM tab0
----
0
2
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT ALL + ( - - COUNT( * ) ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL + ( - - COUNT ( * ) ) AS col0 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT ( NULL ) BETWEEN col1 * col2 AND - col2 * + - 47 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 10 * + ( - + col0 ) col2 FROM tab1 cor0
----
-510
-850
-910

query I rowsort
SELECT 34 * 52 FROM tab1 AS cor0
----
1768
1768
1768

query I rowsort
SELECT ALL 80 * + 68 * col1 AS col2 FROM tab1
----
255680
27200
76160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9644
SELECT ALL - MAX( + - CAST( NULL AS SIGNED ) ) / COUNT( * ) FROM tab2 WHERE NOT + - 56 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL - MAX ( + - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) FROM tab2 WHERE NOT + - 56 IS NOT NULL
----
NULL

query I rowsort
SELECT 72 * col1 AS col0 FROM tab2
----
3672
4824
5544

query I rowsort
SELECT ALL - 2 * - + ( 19 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( col1 ) * + col2 + - col1 < - col1 + - col2
----
15
81
47
87
21
10

query I rowsort
SELECT ALL col2 + + + 1 FROM tab1 cor0
----
60
69
97

query I rowsort
SELECT - + 63 + + - 79 FROM tab2 AS cor0
----
-142
-142
-142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT DISTINCT 37 * + CAST( + CAST( 32 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT 37 * + CAST ( + CAST ( 32 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ALL 20 + - - COUNT( * ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL 20 + - - COUNT ( * ) FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-9652
SELECT ALL col1 + + - 24 * 98 AS col0, col1 * - - col0 DIV - + col0 + - col1 * + col0 col1 FROM tab2
----
-2275
-5005
-2285
-5092
-2301
-2397

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9652
SELECT ALL col1 + + - 24 * 98 AS col0, col1 * - - col0 / - + col0 + - col1 * + col0 col1 FROM tab2
----
-2275
-5005
-2285
-5092
-2301
-2397

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + COUNT( * ) + - - 70 AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-9653
SELECT + COUNT ( * ) + - - 70 AS col0 FROM tab2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9654
SELECT - 93 DIV + ( + col2 ) + - - 19 FROM tab0
----
10
18
19

skipif mysql # not compatible
query I rowsort label-9654
SELECT - 93 / + ( + col2 ) + - - 19 FROM tab0
----
10
18
19

query II rowsort
SELECT ALL - 99 AS col0, col2 AS col2 FROM tab2
----
-99
23
-99
40
-99
58

query I rowsort
SELECT DISTINCT 98 + + ( + + 21 ) FROM tab2
----
119

query III rowsort
SELECT * FROM tab2 WHERE ( col0 / - ( - - col1 ) * - col1 IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( - 52 ) BETWEEN col2 AND ( NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9659
SELECT AVG ( + CAST( NULL AS SIGNED ) ) FROM tab0 cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + - 90 AS col2 FROM tab2 cor0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT - + col2 DIV - col0 - - 11 AS col1 FROM tab0 AS cor0
----
11
12
14

skipif mysql # not compatible
query I rowsort label-9661
SELECT - + col2 / - col0 - - 11 AS col1 FROM tab0 AS cor0
----
11
12
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT + 76 + COUNT( * ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9662
SELECT + 76 + COUNT ( * ) FROM tab2 AS cor0
----
79

query I rowsort
SELECT 27 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9664
SELECT DISTINCT SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9664
SELECT DISTINCT SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - 32, col0 AS col0 FROM tab0 AS cor0
----
-32
15
-32
87
-32
97

query II rowsort
SELECT - - col0 AS col2, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT 12 IS NULL
----
1
21
81

query I rowsort
SELECT + 9 * + col0 FROM tab2 AS cor0
----
414
576
675

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT - ( - - ( + - COUNT( * ) ) ) * - 90 * + - 58 AS col2 FROM tab2 AS cor0
----
15660

skipif mysql # not compatible
query I rowsort label-9669
SELECT - ( - - ( + - COUNT ( * ) ) ) * - 90 * + - 58 AS col2 FROM tab2 AS cor0
----
15660

onlyif mysql # DIV for integer division: 
query II rowsort label-9670
SELECT col1 DIV + col2 AS col2, + 61 FROM tab2
----
1
61
1
61
2
61

skipif mysql # not compatible
query II rowsort label-9670
SELECT col1 / + col2 AS col2, + 61 FROM tab2
----
1
61
1
61
2
61

query I rowsort
SELECT 57 * + 98 FROM tab0
----
5586
5586
5586

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - col0 IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - col1, col2 * + - col0 col0 FROM tab2
----
-2346
-1058
-4928
-2560
-5025
-4350

onlyif mysql # DIV for integer division: 
query II rowsort label-9674
SELECT ALL 21 - - - col1 * col0 DIV - col2 - 72 AS col0, - col2 FROM tab2 WHERE 99 IS NOT NULL
----
35
-58
51
-23
72
-40

skipif mysql # not compatible
query II rowsort label-9674
SELECT ALL 21 - - - col1 * col0 / - col2 - 72 AS col0, - col2 FROM tab2 WHERE 99 IS NOT NULL
----
35
-58
51
-23
72
-40

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - col2 * - 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL COUNT( + - 71 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL COUNT ( + - 71 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT ALL AVG ( DISTINCT - col1 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL AVG ( DISTINCT - col1 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - MIN( - 82 ) FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-9678
SELECT - MIN ( - 82 ) FROM tab2 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT COUNT( * ) + - ( + MIN( ALL + 20 ) ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-9679
SELECT COUNT ( * ) + - ( + MIN ( ALL + 20 ) ) FROM tab0 AS cor0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT + + col0 DIV 63 AS col0 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9680
SELECT + + col0 / 63 AS col0 FROM tab2 cor0
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9681
SELECT - + MAX( - - col2 ) DIV 42 col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9681
SELECT - + MAX ( - - col2 ) / 42 col0 FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT - ( COUNT( DISTINCT + col0 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9682
SELECT - ( COUNT ( DISTINCT + col0 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9683
SELECT - + COUNT( * ) DIV + 53 + + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9683
SELECT - + COUNT ( * ) / + 53 + + COUNT ( * ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 * col0 * - ( 78 ) - + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-202974
-563609
-645986

query II rowsort
SELECT ALL - col1 + - - col0 AS col1, col0 FROM tab2
----
-13
64
-5
46
8
75

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 56 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9687
SELECT DISTINCT - 51 + - col2 + - + 61 DIV - col0 AS col2 FROM tab1
----
-110
-119
-146

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT - 51 + - col2 + - + 61 / - col0 AS col2 FROM tab1
----
-110
-119
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9688
SELECT DISTINCT ( - - COUNT( * ) ) - COUNT( ALL + col1 ) DIV ( COUNT( * ) ) col1 FROM tab0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9688
SELECT DISTINCT ( - - COUNT ( * ) ) - COUNT ( ALL + col1 ) / ( COUNT ( * ) ) col1 FROM tab0
----
2

query II rowsort
SELECT + 64 AS col1, col2 FROM tab0 WHERE - 68 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 + - - 38 col1 FROM tab2
----
42
42
42

query I rowsort
SELECT + + col2 + + col2 * - col0 FROM tab1 AS cor0
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9692
SELECT - 26 * + - COUNT( * ) * + CAST( NULL AS SIGNED ) + - - 75 * 83 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9692
SELECT - 26 * + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - - 75 * 83 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 45 + col2 FROM tab1 AS cor0
----
104
113
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT - SUM( DISTINCT + - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9694
SELECT - SUM ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9696
SELECT ALL - 28 + - COUNT( DISTINCT - 31 ) DIV 30 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL - 28 + - COUNT ( DISTINCT - 31 ) / 30 FROM tab1 AS cor0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9697
SELECT DISTINCT + - CAST( + MAX( + + 51 ) AS SIGNED ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-51

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT + - CAST ( + MAX ( + + 51 ) AS INTEGER ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - - col1
----

query I rowsort
SELECT - ( + 79 ) FROM tab2 AS cor0
----
-79
-79
-79

query I rowsort
SELECT - 56 FROM tab1 AS cor0 WHERE NOT NULL >= + 37 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col0 col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT + col2 * - 55 AS col1 FROM tab1 AS cor0
----
-3245
-3740
-5280

query II rowsort
SELECT 42 AS col2, col0 + - ( - - col1 ) - + + 1 + + 54 AS col2 FROM tab0 AS cor0
----
42
-13
42
119
42
149

query I rowsort
SELECT ALL - + 95 * + col2 AS col0 FROM tab0 cor0
----
-4465
-9405
-950

onlyif mysql # aggregate syntax: 
query II rowsort label-9705
SELECT ALL COUNT( * ), + 79 AS col0 FROM tab2 cor0
----
3
79

skipif mysql # not compatible
query II rowsort label-9705
SELECT ALL COUNT ( * ), + 79 AS col0 FROM tab2 cor0
----
3
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9706
SELECT ALL - ( - 27 ) * - COUNT( * ) AS col2, COUNT( * ) * - + COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
-243
-81

skipif mysql # not compatible
query II rowsort label-9706
SELECT ALL - ( - 27 ) * - COUNT ( * ) AS col2, COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
-243
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * + col1 + 72 / + col1 BETWEEN NULL AND + col1 * - + col2 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT ALL - - 0 - - + col0 FROM tab1 WHERE NOT - 95 + + - 74 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 27 * - col1 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT DISTINCT ( + + 78 ) * + 14 + COUNT( + col1 ) AS col1 FROM tab1
----
1095

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT ( + + 78 ) * + 14 + COUNT ( + col1 ) AS col1 FROM tab1
----
1095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9712
SELECT CAST( 97 AS SIGNED ) FROM tab0 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-9712
SELECT CAST ( 97 AS INTEGER ) FROM tab0 AS cor0
----
97
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9713
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 81 AS col2, COUNT( * ) FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9713
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 81 AS col2, COUNT ( * ) FROM tab2 cor0
----
NULL
3

query I rowsort
SELECT DISTINCT + + col1 * + + 87 FROM tab1 AS cor0 WHERE col1 < col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 BETWEEN - col1 / col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + + 16 - + - 90 FROM tab2 WHERE NOT + col2 IS NULL AND NOT 96 BETWEEN - 94 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9717
SELECT ALL + col0 + 92 AS col0, col1 + + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
107
162
179
42
189
2

skipif mysql # not compatible
query II rowsort label-9717
SELECT ALL + col0 + 92 AS col0, col1 + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
107
162
179
42
189
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 IN ( - + col2 + - 38 + + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( NOT NULL = 19 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9720
SELECT DISTINCT + COUNT( * ) + - + 31 + + - 85 - + COUNT( * ) DIV - - 64 AS col1 FROM tab2 AS cor0
----
-113

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT + COUNT ( * ) + - + 31 + + - 85 - + COUNT ( * ) / - - 64 AS col1 FROM tab2 AS cor0
----
-113

onlyif mysql # DIV for integer division: 
query II rowsort label-9721
SELECT col1 DIV - 40 AS col0, col2 FROM tab2 AS cor0
----
-1
23
-1
40
-1
58

skipif mysql # not compatible
query II rowsort label-9721
SELECT col1 / - 40 AS col0, col2 FROM tab2 AS cor0
----
-1
23
-1
40
-1
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9722
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab1 WHERE NOT col2 * + col2 * - col1 < + col0 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9724
SELECT ALL ( CAST( NULL AS SIGNED ) ) + + + col0 + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL ( CAST ( NULL AS INTEGER ) ) + + + col0 + col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + 16, + col0 FROM tab1
----
16
51
16
85
16
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT ALL - col0 DIV + col2 + - col1 * col1 AS col0 FROM tab2
----
-2603
-4490
-5930

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL - col0 / + col2 + - col1 * col1 AS col0 FROM tab2
----
-2603
-4490
-5930

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT DISTINCT - COUNT( * ) - 74 AS col2 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT - COUNT ( * ) - 74 AS col2 FROM tab1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL COUNT( * ) + + COUNT( * ) * + 19 AS col0 FROM tab1 WHERE + 69 IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL COUNT ( * ) + + COUNT ( * ) * + 19 AS col0 FROM tab1 WHERE + 69 IS NOT NULL
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9729
SELECT DISTINCT + col0 - + ( + + 92 ) - + col1 DIV 84 AS col1 FROM tab1
----
-1
-41
-7

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT + col0 - + ( + + 92 ) - + col1 / 84 AS col1 FROM tab1
----
-1
-41
-7

query I rowsort
SELECT DISTINCT + 11 * + + 22 FROM tab0
----
242

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * + col1 AND + + col1 AND NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT + COUNT( * ) - - + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9732
SELECT + COUNT ( * ) - - + COUNT ( * ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT - col1 - + 66 AS col2 FROM tab0 AS cor0
----
-147
-67
-87

query I rowsort
SELECT ALL 23 - + - col1 + 83 AS col2 FROM tab2 AS cor0
----
157
173
183

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 11 + + 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9736
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 49 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9736
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 49 )
----

query I rowsort
SELECT ALL - col0 * + - ( + + 80 ) FROM tab1
----
4080
6800
7280

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > + ( - 87 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 81 col0, 38 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
18 values hashing to 0a4151aaf44474454922f2f560c108e7

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL - MIN( - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL - MIN ( - col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 65 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9741
SELECT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 65 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT DISTINCT COUNT( ALL - + 78 ) FROM tab1 AS cor0 WHERE NULL < + col0
----
0

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT COUNT ( ALL - + 78 ) FROM tab1 AS cor0 WHERE NULL < + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL + COUNT( * ) - - ( MIN( ALL - + col0 ) ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + COUNT ( * ) - - ( MIN ( ALL - + col0 ) ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 * + + 43 AS col1 FROM tab0
----
3741
4171
645

onlyif mysql # aggregate syntax: 
query II rowsort label-9745
SELECT ALL - COUNT( * ), + COUNT( * ) AS col1 FROM tab1 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9745
SELECT ALL - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1 cor0
----
-3
3

query I rowsort
SELECT + - col0 * + ( - col0 ) FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT ALL + - MIN( ALL - 42 ) AS col2 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL + - MIN ( ALL - 42 ) AS col2 FROM tab2 AS cor0
----
42

query I rowsort
SELECT - - 71 + + 95 FROM tab2 cor0
----
166
166
166

query I rowsort
SELECT + - 16 + + + col2 * ( 64 ) FROM tab1 AS cor0
----
3760
4336
6128

query I rowsort
SELECT ALL - col0 * + + col0 AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT DISTINCT - 25 * + CAST( col2 AS SIGNED ) + + 80 FROM tab1 AS cor0
----
-1395
-1620
-2320

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT - 25 * + CAST ( col2 AS INTEGER ) + + 80 FROM tab1 AS cor0
----
-1395
-1620
-2320

query I rowsort
SELECT - col2 + - col1 + + + col2 * col2 + - - col2 FROM tab0
----
2128
79
9800

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT - - COUNT( * ) + + 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
68

skipif mysql # not compatible
query I rowsort label-9753
SELECT - - COUNT ( * ) + + 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
68

query I rowsort
SELECT ALL col1 - 89 FROM tab1 AS cor0
----
-42
-75
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9755
SELECT DISTINCT + 75 DIV + - col0 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT + 75 / + - col0 FROM tab0 AS cor0
----
-5
0

query I rowsort
SELECT DISTINCT + - 68 * - - 71 FROM tab0 AS cor0
----
-4828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9757
SELECT + ( - - 54 ) * + 29 * - + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-100224
-117450
-72036

skipif mysql # not compatible
query I rowsort label-9757
SELECT + ( - - 54 ) * + 29 * - + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-100224
-117450
-72036

query I rowsort
SELECT - + 20 FROM tab1 cor0
----
-20
-20
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9759
SELECT ALL + + 32 DIV - col1 + 93 AS col2 FROM tab1 AS cor0
----
87
91
93

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL + + 32 / - col1 + 93 AS col2 FROM tab1 AS cor0
----
87
91
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 / - 19 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 / - 19 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT MAX( + col0 ) AS col2 FROM tab2 WHERE col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT MAX ( + col0 ) AS col2 FROM tab2 WHERE col0 <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9762
SELECT DISTINCT - col2 * + col0 + - col1 DIV 7 FROM tab2
----
-1065
-2571
-4359

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT - col2 * + col0 + - col1 / 7 FROM tab2
----
-1065
-2571
-4359

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL + SUM( ALL + 19 ) * + + COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
1539

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL + SUM ( ALL + 19 ) * + + COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
1539

query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN NULL AND - 62 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT + COUNT( * ) + 74 AS col0 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-9765
SELECT + COUNT ( * ) + 74 AS col0 FROM tab0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT ALL + col1 - 26 * + col0 * + col2 * + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL + col1 - 26 * + col0 * + col2 * + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + 19 AS col2 FROM tab1
----
-40
-49
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT ALL ( - ( - col1 ) ) + + 61 DIV + col0 AS col0 FROM tab2
----
52
67
77

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL ( - ( - col1 ) ) + + 61 / + col0 AS col0 FROM tab2
----
52
67
77

query I rowsort
SELECT DISTINCT - ( - - 58 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - ( - col0 ) AS col2, col1 AS col0 FROM tab2 cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9771
SELECT + - COUNT( + col2 ) col0, + COUNT( * ) DIV - 48 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9771
SELECT + - COUNT ( + col2 ) col0, + COUNT ( * ) / - 48 FROM tab0 AS cor0
----
-3
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 39 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9773
SELECT 16 DIV - col2 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9773
SELECT 16 / - col2 AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT col1 * - - 0 * col0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + + ( - col1 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT ALL COUNT( * ) col2 FROM tab1 AS cor0 WHERE ( + - 24 ) + - - col0 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9776
SELECT ALL COUNT ( * ) col2 FROM tab1 AS cor0 WHERE ( + - 24 ) + - - col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9777
SELECT ALL + col2 / + + col0 * + + ( + col0 ) FROM tab1 AS cor0 WHERE + CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL + col2 / + + col0 * + + ( + col0 ) FROM tab1 AS cor0 WHERE + CAST ( col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9779
SELECT ALL - - 44 AS col1, + MIN( ALL - ( + 61 ) ) AS col2 FROM tab2 AS cor0
----
44
-61

skipif mysql # not compatible
query II rowsort label-9779
SELECT ALL - - 44 AS col1, + MIN ( ALL - ( + 61 ) ) AS col2 FROM tab2 AS cor0
----
44
-61

query II rowsort
SELECT + + 84, col1 FROM tab2 AS cor0
----
84
51
84
67
84
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT + 27 + - + COUNT( * ) FROM tab2 cor0
----
24

skipif mysql # not compatible
query I rowsort label-9781
SELECT + 27 + - + COUNT ( * ) FROM tab2 cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 + + col1 col1 FROM tab0
----
108
28
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT - MIN( DISTINCT col0 ) * - COUNT( * ) + + ( 29 ) AS col1 FROM tab2
----
167

skipif mysql # not compatible
query I rowsort label-9783
SELECT - MIN ( DISTINCT col0 ) * - COUNT ( * ) + + ( 29 ) AS col1 FROM tab2
----
167

query I rowsort
SELECT ALL - col2 + - - col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - ( - + ( + col1 ) ) * - 91 * - col0 + - 29 AS col1 FROM tab2
----
213457
448419
457246

query I rowsort
SELECT ( + 76 ) AS col0 FROM tab0
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT - CAST( - 41 AS SIGNED ) FROM tab1
----
41
41
41

skipif mysql # not compatible
query I rowsort label-9787
SELECT - CAST ( - 41 AS INTEGER ) FROM tab1
----
41
41
41

query I rowsort
SELECT ALL - col0 + - 40 AS col1 FROM tab2
----
-104
-115
-86

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - ( - 39 ) * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT - 75 * - ( - + SUM( ALL - + col2 ) ) FROM tab2
----
9075

skipif mysql # not compatible
query I rowsort label-9791
SELECT - 75 * - ( - + SUM ( ALL - + col2 ) ) FROM tab2
----
9075

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND - 47 * 24 + - 44
----

query I rowsort
SELECT col1 * col0 * - - 70 AS col0 FROM tab0
----
127890
6790
85050

query I rowsort
SELECT DISTINCT + + 93 + + 2 * - 98 - + - col2 FROM tab1 AS cor0
----
-35
-44
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 31 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-106
-77
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT ALL - 64 DIV + 62 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL - 64 / + 62 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9797
SELECT CAST( NULL AS SIGNED ) + - col2 - ( col0 ) * + col1 * + - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9797
SELECT CAST ( NULL AS INTEGER ) + - col2 - ( col0 ) * + col1 * + - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 WHERE + col0 / + col1 IS NULL
----

query I rowsort
SELECT ALL 33 - + - col2 * - col1 FROM tab0
----
-177
-3774
-66

query III rowsort
SELECT * FROM tab0 cor0 WHERE 82 * - col1 * + - 70 - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - 23 ) AS col1 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT ALL SUM( ALL - 65 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-195

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL SUM ( ALL - 65 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-195

query I rowsort
SELECT DISTINCT - ( 88 ) FROM tab2 cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT COUNT( * ) AS col0 FROM tab0 cor0 WHERE NULL >= + col2 + col1
----
0

skipif mysql # not compatible
query I rowsort label-9804
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NULL >= + col2 + col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9805
SELECT DISTINCT - + 18 DIV + COUNT( * ) + MIN( - col1 ) col2 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9805
SELECT DISTINCT - + 18 / + COUNT ( * ) + MIN ( - col1 ) col2 FROM tab1 AS cor0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9806
SELECT + + col2 DIV + - col2 col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9806
SELECT + + col2 / + - col2 col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE + col2 < - col0
----

query I rowsort
SELECT ALL ( + col1 ) + + col2 AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9809
SELECT ALL + 67 + - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL + 67 + - + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9810
SELECT * FROM tab2 WHERE col1 + + col0 NOT IN ( - + col2 * col0 + CAST( - + col2 AS SIGNED ), - col2, + 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9810
SELECT * FROM tab2 WHERE col1 + + col0 NOT IN ( - + col2 * col0 + CAST ( - + col2 AS INTEGER ), - col2, + 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9811
SELECT DISTINCT 88 DIV - COUNT( * ) - + ( + SUM( ALL - col2 ) ) + - COUNT( * ) col2 FROM tab1
----
191

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9811
SELECT DISTINCT 88 / - COUNT ( * ) - + ( + SUM ( ALL - col2 ) ) + - COUNT ( * ) col2 FROM tab1
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL - 40 * COUNT( * ) FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL - 40 * COUNT ( * ) FROM tab1
----
-120

query I rowsort
SELECT AVG ( DISTINCT + - col1 ) AS col2 FROM tab0 WHERE NOT ( NULL ) < - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT - - MIN( ALL 58 ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9814
SELECT - - MIN ( ALL 58 ) FROM tab0 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT + MIN( DISTINCT 1 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9815
SELECT + MIN ( DISTINCT 1 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - col1 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT + 89 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT - + SUM( ALL 82 ) FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-9818
SELECT - + SUM ( ALL 82 ) FROM tab2 AS cor0
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT + + SUM( DISTINCT + 28 ) AS col2 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9819
SELECT + + SUM ( DISTINCT + 28 ) AS col2 FROM tab1 AS cor0
----
28

query I rowsort
SELECT DISTINCT 39 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
39

query I rowsort
SELECT DISTINCT col0 * + + ( + ( - 66 ) ) FROM tab2
----
-3036
-4224
-4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9822
SELECT DISTINCT + 34 DIV - COUNT( * ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT + 34 / - COUNT ( * ) FROM tab1
----
-11

query II rowsort
SELECT col2, col1 * - col1 * - 0 FROM tab2
----
23
0
40
0
58
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 + - 26 + + col2 col1 FROM tab0
----
143
54
91

query I rowsort
SELECT + col0 + - + 22 * 21 - + + col0 + + - col0 FROM tab1
----
-513
-547
-553

query I rowsort
SELECT ALL - + 72 + col1 FROM tab2 AS cor0
----
-21
-5
5

query II rowsort
SELECT DISTINCT ( + ( col1 ) ), col0 * + - 94 FROM tab2 AS cor0
----
51
-4324
67
-7050
77
-6016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9828
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL <> ( - 19 + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9828
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL <> ( - 19 + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL col2 * - 41 FROM tab0
----
-1927
-4059
-410

query I rowsort
SELECT ALL 85 * 19 AS col2 FROM tab2
----
1615
1615
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT 70 - + MAX( - col1 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9831
SELECT 70 - + MAX ( - col1 ) AS col2 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT COUNT( * ) * ( 60 ) FROM tab1 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9832
SELECT COUNT ( * ) * ( 60 ) FROM tab1 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT col2 - - 78 AS col0 FROM tab1
----
137
146
174

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 66 * 0 FROM tab0 WHERE NOT col1 - - col2 BETWEEN 73 * + col1 AND col1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND 21 + col2 * + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) BETWEEN NULL AND + 56
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9838
SELECT + SUM( ALL - col2 ) DIV COUNT( * ) AS col1 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-9838
SELECT + SUM ( ALL - col2 ) / COUNT ( * ) AS col1 FROM tab0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-9839
SELECT + col2 DIV + col2 + - col0 FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-9839
SELECT + col2 / + col2 + - col0 FROM tab1
----
-50
-84
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9840
SELECT - MAX( + col1 ) DIV 45 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9840
SELECT - MAX ( + col1 ) / 45 FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9841
SELECT ALL * FROM tab1 WHERE - 3 * CAST( NULL AS SIGNED ) NOT IN ( col2 * 8 )
----

skipif mysql # not compatible
query III rowsort label-9841
SELECT ALL * FROM tab1 WHERE - 3 * CAST ( NULL AS INTEGER ) NOT IN ( col2 * 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT DISTINCT + 38 + + 10 * + COUNT( ALL 28 ) AS col1 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT + 38 + + 10 * + COUNT ( ALL 28 ) AS col1 FROM tab1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT DISTINCT 72 DIV col1 FROM tab1
----
1
14
5

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT 72 / col1 FROM tab1
----
1
14
5

query I rowsort
SELECT ALL 5 AS col1 FROM tab1 WHERE - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9845
SELECT ALL * FROM tab0 WHERE ( - 82 + col0 ) > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9845
SELECT ALL * FROM tab0 WHERE ( - 82 + col0 ) > + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 + 59 FROM tab0
----
146
156
74

query III rowsort
SELECT * FROM tab1 WHERE ( - ( + col1 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * 40 AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT col1 - col1 * 26 FROM tab0
----
-2025
-25
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL - COUNT( * ) * - 56 FROM tab2 WHERE NULL <= 46
----
0

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL - COUNT ( * ) * - 56 FROM tab2 WHERE NULL <= 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT COUNT( * ) * SUM( DISTINCT col2 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-9851
SELECT COUNT ( * ) * SUM ( DISTINCT col2 ) FROM tab1
----
669

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT COUNT( * ) * - 46 AS col1 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-9852
SELECT COUNT ( * ) * - 46 AS col1 FROM tab2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT DISTINCT - COUNT( * ) * + 30 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT - COUNT ( * ) * + 30 FROM tab1
----
-90

query I rowsort
SELECT ALL 41 + 31 FROM tab1
----
72
72
72

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + 95 + col2 > + col0 / - ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 26 - - col1 AS col0 FROM tab1
----
31
40
73

query I rowsort
SELECT - ( + col0 ) - + col1 FROM tab1
----
-138
-65
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( 52 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT 45 * MAX( - col0 ) AS col0 FROM tab1 WHERE NOT col2 + + col0 * col0 IN ( + 92 )
----
-2295

skipif mysql # not compatible
query I rowsort label-9860
SELECT 45 * MAX ( - col0 ) AS col0 FROM tab1 WHERE NOT col2 + + col0 * col0 IN ( + 92 )
----
-2295

query I rowsort
SELECT - col1 * + 30 AS col1 FROM tab2
----
-1530
-2010
-2310

query I rowsort
SELECT DISTINCT - 51 FROM tab0 AS cor0 CROSS JOIN tab1
----
-51

query I rowsort
SELECT 38 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT - + COUNT( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9864
SELECT - + COUNT ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + 13 * 45 FROM tab1 AS cor0
----
585
585
585

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 27
----

query I rowsort
SELECT DISTINCT - col0 * 11 FROM tab0 AS cor0 WHERE 1 - - col2 < col0 + col1 * col2
----
-1067
-165
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT DISTINCT SUM( ALL + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT SUM ( ALL + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL + + col0 + 44 * col2 FROM tab1 AS cor0
----
2681
3083
4275

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 32 * + col1 - col1 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT DISTINCT + 73 + COUNT( * ) AS col2 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT + 73 + COUNT ( * ) AS col2 FROM tab1
----
76

query I rowsort
SELECT ( 18 ) + + col2 FROM tab2
----
41
58
76

query I rowsort
SELECT ALL col1 + + + 11 AS col0 FROM tab0
----
12
32
92

query I rowsort
SELECT 87 AS col1 FROM tab0 WHERE - col0 + + col0 IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT ( - col2 + col2 ) NOT IN ( - col0 * - col2 + col1 * col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 32 ) BETWEEN NULL AND col2
----
87
21
10

query I rowsort
SELECT col1 - 49 AS col1 FROM tab2 cor0
----
18
2
28

query I rowsort
SELECT DISTINCT - - col0 + + - col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 + + - col1 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT - 42 + col2 AS col0 FROM tab0 AS cor0
----
-32
5
57

query I rowsort
SELECT 56 * - 50 * col2 + 41 FROM tab2
----
-111959
-162359
-64359

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL MAX( ALL - + ( 74 ) ) - + 57 FROM tab0
----
-131

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL MAX ( ALL - + ( 74 ) ) - + 57 FROM tab0
----
-131

query I rowsort
SELECT DISTINCT + 17 + 94 + - 21 FROM tab0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT col1 DIV - + col2 + - col2 - 73 FROM tab0
----
-121
-172
-85

skipif mysql # not compatible
query I rowsort label-9884
SELECT col1 / - + col2 + - col2 - 73 FROM tab0
----
-121
-172
-85

query I rowsort
SELECT DISTINCT - + col2 - col1 + - ( + 67 ) AS col0 FROM tab1 cor0
----
-131
-177
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 + + col0 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
118
152
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0, - 11 col2 FROM tab2 cor0
----
46
-11
64
-11
75
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT DISTINCT SUM( DISTINCT 16 ) FROM tab2 AS cor0 WHERE NOT + col0 + + col1 + + col2 = - 51
----
16

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT SUM ( DISTINCT 16 ) FROM tab2 AS cor0 WHERE NOT + col0 + + col1 + + col2 = - 51
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9889
SELECT ALL - ( - + COUNT( * ) ) - - MIN( DISTINCT + col2 ) * COUNT( ALL 54 - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL - ( - + COUNT ( * ) ) - - MIN ( DISTINCT + col2 ) * COUNT ( ALL 54 - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT 73 - + ( - + col1 ) AS col0 FROM tab2 AS cor0
----
124
140
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9891
SELECT - 71 FROM tab2 AS cor0 WHERE NOT + ( - - CAST( NULL AS SIGNED ) ) + + col0 BETWEEN ( ( - 68 ) - col0 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9891
SELECT - 71 FROM tab2 AS cor0 WHERE NOT + ( - - CAST ( NULL AS INTEGER ) ) + + col0 BETWEEN ( ( - 68 ) - col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND - ( 66 ) + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 ) >= col2 * 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * - - col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT 38 + - col0 FROM tab2 AS cor0 WHERE NOT - 85 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col1 + - col1 * col1 NOT BETWEEN ( + ( - ( col0 ) ) ) AND 80
----

query II rowsort
SELECT col2 * + col1 AS col2, - col0 AS col1 FROM tab2
----
1173
-46
3080
-64
3886
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9898
SELECT DISTINCT SUM( + 19 ) col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9898
SELECT DISTINCT SUM ( + 19 ) col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
57

query I rowsort
SELECT 91 * - col1 AS col0 FROM tab1
----
-1274
-4277
-455

onlyif mysql # aggregate syntax: 
query II rowsort label-9900
SELECT DISTINCT SUM( ALL - 74 ), MAX( ALL col2 ) AS col1 FROM tab1
----
-222
96

skipif mysql # not compatible
query II rowsort label-9900
SELECT DISTINCT SUM ( ALL - 74 ), MAX ( ALL col2 ) AS col1 FROM tab1
----
-222
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL AND NOT ( NULL ) BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9901
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL AND NOT ( NULL ) BETWEEN NULL AND ( NULL )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + 87 + + col0 - 41 * col1 NOT IN ( col2 / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT DISTINCT - SUM( - + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT - SUM ( - + col0 ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT DISTINCT - SUM( 21 ) FROM tab2 WHERE - - col2 * - 19 NOT IN ( + col0 )
----
-63

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT - SUM ( 21 ) FROM tab2 WHERE - - col2 * - 19 NOT IN ( + col0 )
----
-63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 48 + - 14 < ( + col2 )
----
87
21
10

query I rowsort
SELECT DISTINCT 4 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 IS NULL )
----
160
232
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 21 IN ( - 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 37 FROM tab0 WHERE NOT - col1 <= - col2 + - 36
----
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 73 - - col2 BETWEEN NULL AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9910
SELECT ALL + 76 * - col0 * + col1 + 34 + - + col2 + + col2 DIV - 65 FROM tab2 AS cor0
----
-178285
-374534
-381924

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL + 76 * - col0 * + col1 + 34 + - + col2 + + col2 / - 65 FROM tab2 AS cor0
----
-178285
-374534
-381924

query I rowsort
SELECT - - col0 * + 31 FROM tab2 AS cor0
----
1426
1984
2325

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE ( + ( + ( + col1 ) ) / - col2 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9913
SELECT CAST( NULL AS SIGNED ) / - - SUM( + col1 ) * + SUM( ALL 18 ) * 97 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT CAST ( NULL AS INTEGER ) / - - SUM ( + col1 ) * + SUM ( ALL 18 ) * 97 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * + + 64 AS col0 FROM tab2 AS cor0
----
-2944
-4096
-4800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9915
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 + 47 AND ( + CAST( - + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9915
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 + 47 AND ( + CAST ( - + col1 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col0 + 6 AS col1 FROM tab1 AS cor0
----
57
91
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9917
SELECT + CAST( 1 AS SIGNED ) col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9917
SELECT + CAST ( 1 AS INTEGER ) col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT ALL - MAX( DISTINCT ( - col1 ) ) * 67 * + 65 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
13065

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL - MAX ( DISTINCT ( - col1 ) ) * 67 * + 65 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
13065

query I rowsort
SELECT ( ( col1 ) ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - 34 - 35 )
----

query I rowsort
SELECT DISTINCT + 18 * + col2 * - - col0 + + 28 + - col0 * + col0 FROM tab2 AS cor0
----
16956
42012
72703

query I rowsort
SELECT DISTINCT col1 + + - col2 + + col1 AS col1 FROM tab1 AS cor0
----
-49
-68
26

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NULL ) BETWEEN + 64 AND 87 / 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT - MAX( ALL + - col0 ) FROM tab0 WHERE NULL IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-9923
SELECT - MAX ( ALL + - col0 ) FROM tab0 WHERE NULL IS NULL
----
15

query I rowsort
SELECT DISTINCT - col2 + - 33 * col0 AS col0 FROM tab0
----
-2881
-3300
-542

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9925
SELECT DISTINCT * FROM tab2 WHERE - ( - + 75 ) NOT BETWEEN NULL AND + CAST( - col2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9925
SELECT DISTINCT * FROM tab2 WHERE - ( - + 75 ) NOT BETWEEN NULL AND + CAST ( - col2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + 75 * + ( + col2 ) + + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9927
SELECT ALL col0 * - + col2 * + CAST( + col2 AS SIGNED ) * - col0 FROM tab1
----
23970816
25150225
38291344

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL col0 * - + col2 * + CAST ( + col2 AS INTEGER ) * - col0 FROM tab1
----
23970816
25150225
38291344

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9928
SELECT ALL 51 * - CAST( + - col0 AS SIGNED ) * - + col1, - 89 col2 FROM tab1
----
-21675
-89
-218127
-89
-36414
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9928
SELECT ALL 51 * - CAST ( + - col0 AS INTEGER ) * - + col1, - 89 col2 FROM tab1
----
-21675
-89
-218127
-89
-36414
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT ALL + 75 * - 48 - col1 FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) * col0 <> + - col2
----

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL + 75 * - 48 - col1 FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) * col0 <> + - col2
----

query I rowsort
SELECT + 38 + + 96 AS col0 FROM tab0 AS cor0
----
134
134
134

query I rowsort
SELECT + col1 + + - col0 * + 34 FROM tab1 cor0
----
-1720
-2885
-3047

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9932
SELECT * FROM tab2 AS cor0 WHERE col0 IN ( + CAST( NULL AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-9932
SELECT * FROM tab2 AS cor0 WHERE col0 IN ( + CAST ( NULL AS INTEGER ) * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9933
SELECT - CAST( col0 AS SIGNED ) * col2 col2 FROM tab2 AS cor0 WHERE + + col2 IN ( + col1 + col0 ) OR ( + 1 * col1 + 57 ) IS NOT NULL
----
-1058
-2560
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9933
SELECT - CAST ( col0 AS INTEGER ) * col2 col2 FROM tab2 AS cor0 WHERE + + col2 IN ( + col1 + col0 ) OR ( + 1 * col1 + 57 ) IS NOT NULL
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - 3 + + col1 - + ( + - col2 ) * - 16 AS col2 FROM tab0 AS cor0
----
-142
-1586
-674

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( + + 78 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT - CAST( - col1 AS SIGNED ) - - col0 AS col2 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-9936
SELECT - CAST ( - col1 AS INTEGER ) - - col0 AS col2 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL COUNT( * ) - 70 col2 FROM tab2
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9937
SELECT ALL COUNT ( * ) - 70 col2 FROM tab2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9938
SELECT CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9938
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ALL + COUNT( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL + COUNT ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9940
SELECT ALL ( + COUNT( * ) ) DIV - 48 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL ( + COUNT ( * ) ) / - 48 AS col1 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT col1 * + + col0 AS col2, - col2 * - - col0 AS col1 FROM tab0 AS cor0
----
1215
-705
1827
-870
97
-9603

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 + 65 ) BETWEEN - col0 AND ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - 29 AS col1 FROM tab0
----
-2523
-2813
-435

query II rowsort
SELECT ALL 59, + col0 FROM tab2
----
59
46
59
64
59
75

query III rowsort
SELECT * FROM tab2 WHERE NOT - 0 > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9946
SELECT DISTINCT - COUNT( * ) AS col2, + 0 AS col2 FROM tab1
----
-3
0

skipif mysql # not compatible
query II rowsort label-9946
SELECT DISTINCT - COUNT ( * ) AS col2, + 0 AS col2 FROM tab1
----
-3
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9947
SELECT COUNT( * ) DIV + 68 AS col2 FROM tab0 WHERE NOT ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9947
SELECT COUNT ( * ) / + 68 AS col2 FROM tab0 WHERE NOT ( NULL ) > NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9948
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, COUNT( - col0 ) * - ( - MAX( + 0 ) ) FROM tab0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9948
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, COUNT ( - col0 ) * - ( - MAX ( + 0 ) ) FROM tab0
----
NULL
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE - col1 BETWEEN - + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col0 AND + 11
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, + col0 - - col1 + + col2 FROM tab0 AS cor0
----
-1
197
-21
118
-81
143

query I rowsort
SELECT + ( + + col0 ) / + - col2 * 78 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 * + - col2, col0 FROM tab1
----
-3481
85
-4624
91
-9216
51

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE 23 >= NULL
----

query I rowsort
SELECT 57 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT CAST( NULL AS SIGNED ) * - 43 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT CAST ( NULL AS INTEGER ) * - 43 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2 * + col1 AS col1, col0 + - ( - col1 ) AS col0 FROM tab2
----
1173
97
3080
141
3886
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 7 col2 FROM tab1
----
357
595
637

query I rowsort
SELECT DISTINCT 74 * col1 * - col0 AS col1 FROM tab2
----
-173604
-364672
-371850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9961
SELECT COUNT( * ) + + + ( COUNT( * ) ) DIV + 95 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9961
SELECT COUNT ( * ) + + + ( COUNT ( * ) ) / + 95 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + - ( AVG ( + 86 ) ) FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL - MAX( DISTINCT - col0 ) + + COUNT( * ) FROM tab2 cor0
----
49

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL - MAX ( DISTINCT - col0 ) + + COUNT ( * ) FROM tab2 cor0
----
49

query I rowsort
SELECT - + 45 + col2 AS col2 FROM tab1 AS cor0
----
14
23
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT DISTINCT + COUNT( * ) * + ( - - 41 ) + COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT + COUNT ( * ) * + ( - - 41 ) + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
123

query I rowsort
SELECT ALL - col1 + - col0 * 11 AS col0 FROM tab0
----
-1068
-246
-978

query I rowsort
SELECT DISTINCT col2 + 70 AS col2 FROM tab2
----
110
128
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9968
SELECT ALL col2 * - col2 + col2 * + - 65 * - col0 AS col1, - CAST( NULL AS SIGNED ) FROM tab2
----
164800
NULL
279386
NULL
68241
NULL

skipif mysql # not compatible
query II rowsort label-9968
SELECT ALL col2 * - col2 + col2 * + - 65 * - col0 AS col1, - CAST ( NULL AS INTEGER ) FROM tab2
----
164800
NULL
279386
NULL
68241
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9969
SELECT * FROM tab0 WHERE 45 + + 42 - col1 + + + col2 / + - col0 * CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-9969
SELECT * FROM tab0 WHERE 45 + + 42 - col1 + + + col2 / + - col0 * CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9970
SELECT ALL - 51 + - + CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL - 51 + - + CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + 0 * - - col0 * - - 16 AS col1 FROM tab1 WHERE NULL <= + - 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT DISTINCT CAST( - - col1 AS SIGNED ) + 18 FROM tab1 WHERE 52 IN ( - col2 / - 54, col1 )
----

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) + 18 FROM tab1 WHERE 52 IN ( - col2 / - 54, col1 )
----

query I rowsort
SELECT DISTINCT col1 * + + ( + col2 ) + + col2 FROM tab1
----
1440
3264
354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9974
SELECT DISTINCT + COUNT( * ) DIV - CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT + COUNT ( * ) / - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - ( - - 48 ) AS col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + - 97 AS col2 FROM tab1 AS cor0
----
-12
-46
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT - 24 + COUNT( * ) FROM tab0 WHERE - - 95 * col1 * - 95 + + col2 < + + 45
----
-21

skipif mysql # not compatible
query I rowsort label-9977
SELECT - 24 + COUNT ( * ) FROM tab0 WHERE - - 95 * col1 * - 95 + + col2 < + + 45
----
-21

query I rowsort
SELECT ALL - 17 * + + ( + col0 ) + - col0 - - col0 FROM tab0
----
-1479
-1649
-255

query I rowsort
SELECT DISTINCT + col1 * - - ( + - col2 ) AS col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9980
SELECT ALL col2 DIV + + 47 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL col2 / + + 47 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 54 ) col0 FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL 28 FROM tab0 AS cor0 WHERE NOT ( + col1 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( ( col0 ), col0 * - col1 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9984
SELECT + ( CAST( NULL AS SIGNED ) ) * - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT + ( CAST ( NULL AS INTEGER ) ) * - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 19 NOT IN ( - col1 + ( - + col0 ) )
----

query I rowsort
SELECT col0 * - col0 * + col0 FROM tab2
----
-262144
-421875
-97336

query I rowsort
SELECT + 12 * - - col2 AS col0 FROM tab0
----
1188
120
564

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 18 <= ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - col1 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9990
SELECT ALL col2 DIV col2 * col0 AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL col2 / col2 * col0 AS col1 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 > + col0
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT + + SUM( ALL + 1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9992
SELECT + + SUM ( ALL + 1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL - - 58 + + MIN( + - col1 ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - - 58 + + MIN ( + - col1 ) FROM tab1 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL - ( ( COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL - ( ( COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col2 + col0 * - col1 + - + col0 AS col0 FROM tab1 cor0
----
-4300
-451
-669

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col1, + 85 - 30, 76, + - 99 - - 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT ( MAX( - 18 ) ) * + 13 AS col2 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-9997
SELECT ( MAX ( - 18 ) ) * + 13 AS col2 FROM tab2
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT + SUM( ALL + + 1 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9998
SELECT + SUM ( ALL + + 1 ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - + ( col2 ) * - col0 * + + 19 + ( + - col0 ) FROM tab1 AS cor0
----
117481
92973
95200

